/* AI Humanizer — marketing landing page styles
   Self-contained, no external deps. Dark premium brand palette. */

:root {
  --bg: #000000;
  --surface: #0a0a0c;
  --surface-elevated: #121214;
  --accent: #3a7af2;
  --accent-soft: #5b94f6;
  --text: #ffffff;
  --text-secondary: #8e8e93;
  --success: #34c759;
  --error: #ff453a;
  --border: #252528;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.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;
}

/* ---------- Site chrome ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
  transition: background 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

/* ---------- Scenes (shared) ---------- */

.scene {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px clamp(20px, 6vw, 72px) 80px;
}

.scene-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.scene-bg {
  position: absolute;
  inset: -10% -10%;
  z-index: 0;
  will-change: transform;
}

.scene-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.scene-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--scene-scrim, radial-gradient(120% 90% at 50% 0%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 55%, #000 100%));
}

/* film-grain / paper texture overlay, very low opacity, CSS-only */
.grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1.is-visible { transition-delay: 0.08s; }
.reveal-delay-2.is-visible { transition-delay: 0.16s; }
.reveal-delay-3.is-visible { transition-delay: 0.24s; }

/* ---------- Hero ---------- */

.hero {
  padding-top: 140px;
  text-align: left;
}

.hero .scene-bg img {
  opacity: 0.75;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  font-weight: 700;
}

.hero h1 .accent-text {
  background: linear-gradient(100deg, var(--accent-soft), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 46ch;
  line-height: 1.55;
  margin: 0 0 34px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: #000;
  padding: 12px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(58, 122, 242, 0.18);
}

.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(58, 122, 242, 0.32);
}

.store-badge svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.store-badge .badge-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-badge .badge-copy small {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.7;
}

.store-badge .badge-copy strong {
  font-size: 15px;
}

.free-note {
  font-size: 13px;
  color: var(--text-secondary);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  z-index: 2;
}

.scroll-hint .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
  animation: scrollhint 1.8s ease-in-out infinite;
}

@keyframes scrollhint {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* floating ambient particles, CSS only */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particles span {
  position: absolute;
  width: var(--size, 3px);
  height: var(--size, 3px);
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0.5;
  filter: blur(0.5px);
  animation: floaty var(--dur, 12s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  top: var(--top, 50%);
  left: var(--left, 50%);
}

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.25; }
  50% { transform: translate3d(0, -34px, 0); opacity: 0.7; }
}

/* ---------- Phone mockup (CSS/HTML illustration, not a real screenshot) ---------- */

.phone-wrap {
  display: flex;
  justify-content: center;
  will-change: transform;
}

.phone {
  width: 268px;
  height: 546px;
  background: #000;
  border-radius: 44px;
  border: 2px solid #2c2c2e;
  padding: 12px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(58, 122, 242, 0.08),
    0 0 90px rgba(58, 122, 242, 0.16);
  position: relative;
}

.phone__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 14px;
  z-index: 3;
}

.phone__screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--surface) 0%, #000 100%);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 16px 18px;
  font-size: 11px;
}

.phone__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 10px;
}

.phone__title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  margin: 0 0 10px;
}

.phone__card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone__line {
  height: 8px;
  border-radius: 4px;
  background: #2c2c2e;
}

.phone__line.w-90 { width: 90%; }
.phone__line.w-80 { width: 80%; }
.phone__line.w-60 { width: 60%; }
.phone__line.w-40 { width: 40%; }

.phone__line.accent-line {
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  opacity: 0.85;
}

.phone__btn {
  margin-top: 12px;
  background: linear-gradient(100deg, var(--accent-soft), var(--accent));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 11px;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  letter-spacing: -0.01em;
}

.phone__chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(52, 199, 89, 0.12);
  color: var(--success);
  border: 1px solid rgba(52, 199, 89, 0.3);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  margin-top: 10px;
}

.phone__chip .chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.phone__toast {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
}

/* gauge (human score) */
.gauge {
  width: 132px;
  height: 132px;
  margin: 10px auto 6px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0deg, var(--accent-soft) var(--gauge-deg, 320deg), var(--border) var(--gauge-deg, 320deg) 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gauge::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--surface-elevated);
}

.gauge-value {
  position: relative;
  z-index: 1;
  text-align: center;
}

.gauge-value strong {
  display: block;
  font-size: 26px;
  color: var(--text);
  line-height: 1;
}

.gauge-value span {
  font-size: 9px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.phone__pills {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.phone__pill {
  flex: 1;
  text-align: center;
  padding: 7px 4px;
  border-radius: 10px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  font-size: 9px;
  color: var(--text-secondary);
  font-weight: 600;
}

.phone__pill.active {
  background: rgba(58, 122, 242, 0.16);
  border-color: var(--accent);
  color: var(--accent-soft);
}

/* ---------- Feature scenes ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature.reverse .feature-copy {
  order: 2;
}

.feature.reverse .feature-visual {
  order: 1;
}

.feature h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  font-weight: 700;
}

.feature p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 44ch;
  margin: 0 0 22px;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 0.98rem;
}

.feature-list .tick {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(58, 122, 242, 0.16);
  color: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: 2px;
}

/* ---------- Personas (scene 4) ---------- */

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.persona-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 20px;
}

.persona-card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--text);
}

.persona-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Social proof + FAQ ---------- */

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 0 56px;
}

.trust-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  background: var(--surface);
}

.trust-item strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.trust-item span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.faq h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin: 0 0 28px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.faq-item {
  background: var(--surface);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent-soft);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 70ch;
}

.final-cta {
  text-align: center;
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.final-cta h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin: 0 0 16px;
}

.final-cta p {
  color: var(--text-secondary);
  margin: 0 0 28px;
}

.final-cta .hero-cta {
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px clamp(20px, 6vw, 72px) 48px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 13px;
}

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

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* ---------- Responsive ---------- */

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

  .feature.reverse .feature-copy,
  .feature.reverse .feature-visual {
    order: initial;
  }

  .feature-visual {
    order: -1;
  }

  .persona-grid,
  .trust-row {
    grid-template-columns: 1fr;
  }

  .scene {
    padding: 100px 20px 64px;
  }

  .phone {
    width: 230px;
    height: 470px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .scene-bg,
  .phone-wrap {
    transform: none !important;
  }
}
