/* ===========================================
   Variante B — Sections
   =========================================== */

/* --- S0: Header --- */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: background-color .4s ease, border-color .4s ease,
              backdrop-filter .4s ease;
}

header.scrolled {
  background: var(--header-bg-scroll);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.logo:hover { opacity: 0.8; }

.logo-icon {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(var(--primary-rgb), 0.2));
  transition: filter .5s ease;
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .3s ease;
}
.control-btn:hover {
  background: var(--surface-high);
  color: var(--text);
}

.mode-icon { font-size: 20px; }

.scheme-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--scheme-dot);
  box-shadow: 0 0 0 2px var(--scheme-dot-ring);
  transition: all .4s ease;
}

.lang-btn {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* --- S1: Hero --- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 48px 100px;
  position: relative;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 2; }

.hero-logo-main {
  height: 200px;
  width: auto;
  display: block;
  margin: 0 auto 40px;
  filter: drop-shadow(0 2px 12px rgba(var(--primary-rgb), 0.15));
  transition: filter .5s ease;
}

#hero h1 {
  font-family: 'Instrument Serif', 'Georgia', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--text);
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-body {
  font-size: 1.0625rem;
  max-width: 640px;
  margin: 0 auto 44px;
  color: var(--text-muted);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- S2: Stats Strip --- */
#stats {
  padding: 56px 0;
}

.stats-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
}

.stat {
  text-align: center;
  padding: 0 48px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }

.stat-value {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--text);
}

.stat-value--accent { color: var(--primary); }

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* --- S3/S4: Vault & Decoder --- */
#vault, #decoder {
  padding: 100px 0;
}

/* --- S5/S6: Detectors & Generators --- */
#detectors, #generators { padding: 100px 0; }

.pill-section-header {
  text-align: center;
  margin-bottom: 48px;
}

/* --- S7: How it works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- S8: Security --- */
#security { padding: 100px 0; }

.security-header {
  text-align: center;
  margin-bottom: 56px;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  max-width: 960px;
  margin: 0 auto;
}

/* --- S9: Comparison --- */
#comparison { padding: 100px 0; }

.compare-header {
  text-align: center;
  margin-bottom: 48px;
}

/* --- S10: Screenshots --- */
#screenshots { padding: 100px 0; }

.screenshots-header {
  text-align: center;
  margin-bottom: 48px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1060px;
  margin: 0 auto;
}

.screenshot-item { text-align: center; }

.screenshot-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
  transition: box-shadow .4s ease;
}

.screenshot-frame:hover {
  box-shadow: var(--shadow-hover);
}

.screenshot-frame img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  display: block;
}

.screenshot-caption {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- S11: CTA --- */
#cta {
  padding: 160px 0;
  text-align: center;
}

.cta-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.1;
}

.cta-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.cta-platforms {
  font-size: 0.875rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.cta-platforms span { margin: 0 8px; }

/* --- S12: Footer --- */
footer {
  padding: 48px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

.footer-logo {
  height: 28px;
  width: auto;
  display: block;
  margin: 0 auto 12px;
  opacity: 0.4;
  filter: grayscale(1);
}

footer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .3s;
}
footer a:hover { color: var(--primary); }

.footer-sep { margin: 0 10px; opacity: 0.3; }
.footer-links { margin-top: 8px; }
