/* ============================================================
   OSINT Toolbox — Website Stylesheet
   Dark theme, mobile-first, no external dependencies
   ============================================================ */

:root {
  --bg:             #0d0d0f;
  --surface:        #111113;
  --card:           #18181c;
  --border:         #272730;
  --text:           #ededf2;
  --text-secondary: #878799;
  --text-muted:     #4a4a5e;
  --accent:         #4a9eff;
  --accent-hover:   #70b8ff;
  --radius:         14px;
  --radius-sm:      9px;
  --radius-xs:      6px;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

/* ── Layout ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
}

.nav-links {
  display: none;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
}

@media (min-width: 600px) {
  .nav-links {
    display: flex;
  }
}

/* ── Hero ── */
.hero {
  padding: 88px 0 72px;
  text-align: center;
}

.hero-icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  margin: 0 auto 28px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 12px 40px rgba(74, 158, 255, 0.18);
}

.hero-title {
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-tagline {
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.badge {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 13px;
  border-radius: 20px;
  letter-spacing: 0.01em;
}

.badge-accent {
  border-color: rgba(74, 158, 255, 0.4);
  color: var(--accent);
  background: rgba(74, 158, 255, 0.06);
}

.appstore-link {
  display: inline-flex;
}

.appstore-link img {
  height: 50px;
  width: auto;
  transition: opacity 0.15s;
}

.appstore-link:hover img {
  opacity: 0.85;
}

/* ── Section base ── */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(1.55rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 16px;
}

/* ── Highlights grid ── */
.highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 540px) {
  .highlights {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .highlights {
    grid-template-columns: repeat(4, 1fr);
  }
}

.highlight-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.highlight-icon {
  font-size: 26px;
  margin-bottom: 14px;
  line-height: 1;
}

.highlight-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.highlight-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Split layout ── */
.split {
  display: flex;
  flex-direction: column;
  gap: 52px;
  align-items: center;
}

@media (min-width: 780px) {
  .split {
    flex-direction: row;
    gap: 72px;
  }

  .split-reverse {
    flex-direction: row-reverse;
  }
}

.split-text {
  flex: 1;
  min-width: 0;
}

.split-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.split-text p:last-of-type {
  margin-bottom: 0;
}

.split-media {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

/* ── Screenshots ── */
.screenshot {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  cursor: zoom-in;
  transition: opacity 0.15s;
}

.screenshot:hover {
  opacity: 0.88;
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
  object-fit: contain;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 22px;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ── Tag lists (indicators, tools) ── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
  list-style: none;
}

.tag-list li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 13px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 22px;
  list-style: none;
}

.tool-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 7px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.tool-list li::before {
  content: "→";
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
}

/* ── Privacy ── */
.privacy-intro {
  max-width: 580px;
  margin: 0 auto 40px;
  text-align: center;
}

.privacy-intro p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-top: 14px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 560px) {
  .privacy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .privacy-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

.privacy-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  font-size: 13.5px;
  line-height: 1.5;
}

.privacy-check {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 0px;
}

/* ── Footer ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 24px;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.footer-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.footer-copy {
  font-size: 12.5px;
  color: var(--text-muted);
}

@media (min-width: 700px) {
  .footer-copy {
    flex: 1;
    text-align: center;
  }
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
}

/* ── Accessibility ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── OSINT intro paragraph ── */
.section-intro {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-intro p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.section-intro strong {
  color: var(--text);
}

/* ── Privacy section intro ── */
.privacy-lead {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-top: 14px;
}

/* ── Apple Intelligence callout ── */
.ai-callout {
  background: linear-gradient(160deg, rgba(74, 158, 255, 0.07) 0%, rgba(74, 158, 255, 0.02) 100%);
  border-top: 1px solid rgba(74, 158, 255, 0.18);
  border-bottom: 1px solid rgba(74, 158, 255, 0.18);
}

.ai-block {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.ai-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.ai-sparkle {
  color: var(--accent);
  font-size: 16px;
}

.ai-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.ai-heading {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.ai-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
}

.ai-example {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  background: var(--card);
  border: 1px solid rgba(74, 158, 255, 0.28);
  border-radius: var(--radius);
  padding: 24px 22px;
  margin-bottom: 22px;
  text-align: left;
}

@media (min-width: 620px) {
  .ai-example {
    flex-direction: row;
    align-items: center;
  }
}

.ai-prompt,
.ai-result {
  flex: 1;
}

.ai-side-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 9px;
}

.ai-prompt-text {
  font-size: 14px;
  color: var(--text);
  font-style: italic;
  line-height: 1.55;
  border: none;
  margin: 0;
  padding: 0;
}

.ai-arrow {
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
  text-align: center;
  transform: rotate(90deg);
}

@media (min-width: 620px) {
  .ai-arrow {
    transform: none;
  }
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ai-chip {
  display: inline-block;
  background: rgba(74, 158, 255, 0.1);
  border: 1px solid rgba(74, 158, 255, 0.3);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
}

.ai-footnote {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
}
