/* ═════════════════════════════════════════════════════════════════════
   Stego-Lab — Shared Stylesheet
   Premium dark theme · Inter + Quicksand · CSP-safe (no inline)
   ═════════════════════════════════════════════════════════════════════ */

/* ── Self-hosted Fonts (SIL OFL, see /fonts/OFL.txt) ──────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/stego-lab/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/stego-lab/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/stego-lab/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/stego-lab/fonts/quicksand-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/stego-lab/fonts/quicksand-700.woff2') format('woff2');
}

/* ── Design Tokens ────────────────────────────────────────────────────── */
:root {
  --bg-0: #0a0a0f;
  --bg-1: #1a1a2e;
  --bg-2: #0f0f1a;

  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.06);
  --panel-hover: rgba(255, 255, 255, 0.08);

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.12);

  --text: #e9eef7;
  --text-bright: #f4f9ff;
  --muted: #9fb2cc;
  --muted-2: #8aa0c2;

  --cyan: #00d4ff;
  --green: #00ff88;
  --purple: #667eea;
  --indigo: #764ba2;

  --grad: linear-gradient(135deg, #667eea, #764ba2);
  --grad-hero: linear-gradient(120deg, #fff 10%, #00d4ff 55%, #667eea 100%);

  --radius: 16px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --space: 8px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(1100px 560px at 50% -8%, rgba(102, 126, 234, 0.25), transparent 60%),
    radial-gradient(760px 460px at 88% 6%, rgba(0, 212, 255, 0.10), transparent 55%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: #66d9ff;
}

h1, h2, h3, h4 {
  font-family: 'Quicksand', 'Inter', sans-serif;
  letter-spacing: 0.3px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Layout ───────────────────────────────────────────────────────────── */
.wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 64px;
}

/* ── Navigation ───────────────────────────────────────────────────────── */
nav.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  position: sticky;
  top: 8px;
  z-index: 50;
  margin-bottom: 24px;
  padding: 8px 12px;
  background: rgba(15, 16, 28, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

nav.site-nav .nav-brand {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  margin-right: auto;
  padding-left: 4px;
  letter-spacing: 1.2px;
  text-decoration: none;
}

nav.site-nav a:not(.nav-brand):not(.nav-lang a) {
  text-decoration: none;
  color: #dcebff;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition);
}

nav.site-nav a:not(.nav-brand):not(.nav-lang a):hover {
  background: rgba(0, 212, 255, 0.16);
  border-color: rgba(0, 212, 255, 0.35);
  color: #fff;
}

/* Language switcher */
nav.site-nav .nav-lang {
  display: inline-flex;
  gap: 0;
  margin-left: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  overflow: hidden;
}

nav.site-nav .nav-lang a {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 5px 10px !important;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

nav.site-nav .nav-lang a.active {
  background: var(--grad) !important;
  color: #fff;
}

nav.site-nav .nav-lang a:hover {
  color: #fff;
}

/* ── Content Card (subpages) ──────────────────────────────────────────── */
main.content {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 32px 36px;
}

main.content h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin: 0 0 12px;
  font-weight: 700;
}

main.content h2 {
  font-size: 1.25rem;
  color: var(--text-bright);
  margin: 28px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

main.content h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-bright);
  margin: 20px 0 8px;
  letter-spacing: 0;
}

main.content h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #dbe8fb;
  margin: 14px 0 4px;
}

main.content p,
main.content li {
  color: var(--muted);
  line-height: 1.65;
}

main.content ul,
main.content ol {
  padding-left: 22px;
}

main.content li {
  margin: 4px 0;
}

main.content code {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.88em;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

main.content pre {
  background: #0a1322;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
}

main.content pre code {
  background: none;
  border: none;
  padding: 0;
}

main.content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

main.content blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--cyan);
  background: rgba(0, 212, 255, 0.05);
  border-radius: 0 10px 10px 0;
  color: #cfe0f6;
}

main.content blockquote p {
  color: #cfe0f6;
}

main.content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

main.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

main.content th,
main.content td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
}

main.content th {
  background: rgba(0, 212, 255, 0.06);
  color: #eaf4ff;
  font-weight: 600;
}

/* ── Hero (landing page) ──────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 24px 16px 8px;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0, 212, 255, 0.2);
}

.hero-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.4rem);
  margin: 14px 0 4px;
  line-height: 1.05;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tag {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 600;
  color: #eaf2ff;
  margin: 0 auto 4px;
  max-width: 720px;
}

.hero-sub {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 16px;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 16px 0 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-2);
  color: #eaf2ff;
  background: var(--panel-2);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
  color: #fff;
}

.btn-primary {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 28px rgba(118, 75, 162, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(118, 75, 162, 0.55);
  color: #fff;
}

.btn-ghost:hover {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.08);
  color: #fff;
}

/* ── Trust Pill ───────────────────────────────────────────────────────── */
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: #cfe6cf;
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.trust-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* ── Badge Row ────────────────────────────────────────────────────────── */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 12px 0 4px;
}

.pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: #dcebff;
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.section {
  margin: 36px 0 8px;
}

.section > h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  text-align: center;
  margin: 0 0 4px;
  color: var(--text-bright);
  font-weight: 700;
}

.section > .lead {
  text-align: center;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 20px;
  font-size: 0.95rem;
}

/* ── Feature Cards ────────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: transform var(--transition), border-color var(--transition),
    box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.feature-card .ic {
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text-bright);
  margin: 8px 0 6px;
  font-size: 1.02rem;
}

.feature-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.feature-card.star {
  border-color: rgba(0, 255, 136, 0.35);
  background: rgba(0, 255, 136, 0.04);
}

.feature-card.wide {
  grid-column: 1 / -1;
}

/* ── Shot Grid (Why Stego-Lab) ─────────────────────────────────────────── */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.shot {
  margin: 0;
  text-align: center;
}

.shot img {
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.shot figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.shot figcaption strong {
  color: #eaf4ff;
  display: block;
}

/* "Why Stego-Lab" variant */
.shot-grid.why {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  align-items: start;
}

.shot-grid.why .shot img {
  max-width: 100%;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.shot-grid.why .shot img:hover {
  transform: scale(1.03);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.shot-grid.why figcaption {
  margin: 14px auto 0;
  max-width: 300px;
  color: var(--cyan);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ── Free vs Pro ───────────────────────────────────────────────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.compare-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.compare-card.pro {
  border-color: rgba(0, 255, 136, 0.35);
  background: rgba(0, 255, 136, 0.04);
}

.compare-card h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.05rem;
  margin: 0 0 10px;
  color: var(--text-bright);
  font-weight: 700;
}

.compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare-card li {
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.compare-card li:last-child {
  border-bottom: none;
}

.compare-card li::before {
  content: '✓ ';
  color: var(--cyan);
  font-weight: 700;
}

.compare-card.pro li::before {
  color: var(--green);
}

/* ── Note Block ───────────────────────────────────────────────────────── */
.note {
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 8px 0;
}

.note h3 {
  margin-top: 0;
  color: #eaf4ff;
}

.note p {
  color: var(--muted);
}

/* ── QR Section ───────────────────────────────────────────────────────── */
.qr-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.qr-card {
  background: #fff;
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.qr-card img {
  display: block;
}

.qr-card .qr-label {
  margin-top: 6px;
  color: #0a0a0f;
  font-size: 0.76rem;
  font-weight: 600;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
footer.site-footer {
  margin-top: 36px;
  padding: 20px 16px;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.84rem;
  border-top: 1px solid var(--line);
}

footer.site-footer a {
  color: #aac0e3;
  text-decoration: none;
  transition: color var(--transition);
}

footer.site-footer a:hover {
  color: #fff;
}

footer.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  margin-top: 4px;
}

footer.site-footer .footer-meta {
  opacity: 0.65;
  margin-top: 4px;
}

/* ── Download Card ────────────────────────────────────────────────────── */
.dl-card {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(84, 192, 255, 0.04);
}

.dl-card p {
  margin-top: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  main.content {
    padding: 24px 18px;
  }

  nav.site-nav {
    border-radius: var(--radius);
    padding: 8px 10px;
    gap: 4px;
  }

  nav.site-nav a:not(.nav-brand):not(.nav-lang a) {
    padding: 4px 10px;
    font-size: 0.8rem;
  }

  .hero-icon {
    width: 96px;
    height: 96px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card {
    padding: 16px 14px;
  }

  .shot-grid.why {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Reduced Motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}