/* VisualDNA landing — brand-faithful translation of the in-app theme.
   Accent: morning-dew green #3FAE7F. Surfaces: white / soft mist.
   Type: Fraunces (display), Inter (body). */

:root {
  --bg: #ffffff;
  --bg-sunken: #f5f7fa;
  --bg-tint: #fafbfc;
  --bg-inverted: #0f1720;

  --border: rgba(15, 23, 32, 0.08);
  --border-strong: rgba(15, 23, 32, 0.14);

  --text: #0f1720;
  --text-2: #556070;
  --text-3: #8a94a6;
  --text-on-dark: #ffffff;

  --accent: #3fae7f;
  --accent-soft: rgba(63, 174, 127, 0.1);
  --accent-line: rgba(63, 174, 127, 0.24);
  --accent-deep: #2f8c64;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 4px 10px rgba(24, 37, 32, 0.06);
  --shadow-card: 0 10px 22px rgba(24, 37, 32, 0.08);
  --shadow-elevated: 0 14px 30px rgba(24, 37, 32, 0.14);

  --content: min(1160px, 100% - 48px);

  --serif: "Fraunces", Georgia, "Iowan Old Style", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 0;
}
h1 em, h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-deep);
}
p { margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  padding: 8px 12px; background: var(--text);
  color: var(--text-on-dark); border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 6px 10px;
  border-radius: var(--r-pill);
}
.eyebrow--light {
  color: #b6f0d2;
  background: rgba(63, 174, 127, 0.18);
}

/* Nav ---------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px max(20px, 4vw);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__mark { width: 28px; height: 28px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.nav__wordmark { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: 24px; font-size: 14.5px; color: var(--text-2); }
.nav__links a { transition: color 0.18s ease; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  background: var(--text);
  color: var(--text-on-dark) !important;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 13.5px;
}
.nav__cta:hover { background: var(--accent-deep); color: #fff !important; }

@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 15.5px;
  font-family: var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--text); color: var(--text-on-dark); box-shadow: var(--shadow-card); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-elevated); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { color: var(--text); background: transparent; border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--bg-sunken); }
.btn--lg { padding: 18px 28px; font-size: 17px; }

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

.hero {
  position: relative;
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  padding: 88px 0 56px;
  overflow: visible;
}
.hero__atmosphere {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(60% 60% at 18% 30%, rgba(63, 174, 127, 0.14) 0%, transparent 70%),
    radial-gradient(50% 60% at 82% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 70%),
    radial-gradient(70% 50% at 60% 100%, rgba(63, 174, 127, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, #f7faf8 0%, #ffffff 65%);
  z-index: -1;
  border-radius: 0 0 48px 48px;
}
.hero__content > * + * { margin-top: 22px; }
.hero__title { font-size: clamp(40px, 5.8vw, 64px); line-height: 1.04; letter-spacing: -0.02em; }
.hero__sub { font-size: 18px; color: var(--text-2); max-width: 540px; line-height: 1.55; }
.hero__sub-quiet { display: block; margin-top: 10px; font-size: 14px; color: var(--text-3); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__trust { font-size: 13.5px; color: var(--text-3); }

.hero__device { display: flex; justify-content: center; align-items: center; perspective: 1400px; }
.device {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 9 / 19;
  background: #0f1720;
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-elevated), 0 30px 60px rgba(0, 0, 0, 0.18);
  transform: rotate(-3deg);
}
.device__notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #000; border-radius: 14px; z-index: 2;
}
.device__screen {
  width: 100%; height: 100%; background: #fff;
  border-radius: 32px; overflow: hidden;
  padding: 56px 22px 22px; position: relative;
}

.mock-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep); }
.mock-title { margin-top: 8px; font-family: var(--serif); font-size: 26px; line-height: 1.1; font-style: italic; }
.mock-subtitle { margin-top: 6px; font-size: 12.5px; color: var(--text-2); line-height: 1.4; }

.mock-donut { position: relative; margin: 18px auto 12px; width: 160px; height: 160px; display: grid; place-items: center; }
.mock-donut__center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.mock-donut__num { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.mock-donut__label { font-size: 10px; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }

.mock-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.mock-row:first-of-type { border-top: 0; }
.mock-row__label { flex: 1; }
.mock-row__pct { font-variant-numeric: tabular-nums; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
  .hero__device { order: -1; }
  .device { transform: rotate(-2deg) scale(0.9); }
}

/* Strip -------------------------------------------------------------- */

.strip { width: var(--content); margin: 16px auto 32px; }
.strip__wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center; gap: 12px;
  padding: 26px 32px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.strip__stat { text-align: center; }
.strip__num { font-family: var(--serif); font-size: 36px; font-weight: 500; color: var(--text); line-height: 1; }
.strip__label { margin-top: 6px; font-size: 12.5px; color: var(--text-2); line-height: 1.35; }
.strip__rule { width: 1px; height: 36px; background: var(--border); }
@media (max-width: 780px) {
  .strip__wrap { grid-template-columns: 1fr 1fr; gap: 22px; padding: 22px; }
  .strip__rule { display: none; }
}

/* Sections ----------------------------------------------------------- */

.section { width: var(--content); margin: 0 auto; padding: 96px 0; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head h2 {
  margin-top: 18px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.018em;
}
.section__head--light h2 { color: #ffffff; }
.section__lede { margin-top: 16px; font-size: 17px; color: var(--text-2); }
.section__head--light .section__lede { color: #cbd2db; }

/* Steps -------------------------------------------------------------- */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 920px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.step__num { font-family: var(--serif); font-style: italic; color: var(--accent-deep); font-size: 14px; letter-spacing: 0.04em; }
.step h3 { font-size: 22px; line-height: 1.18; }
.step p { color: var(--text-2); font-size: 15px; }

.step__art {
  margin-top: 8px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  min-height: 180px;
  display: flex; flex-direction: column; gap: 10px;
}

.step__art--form { justify-content: center; }
.form-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
}
.form-row__k { color: var(--text-3); }
.form-row__v { font-weight: 600; }
.form-row--hl { border-color: var(--accent-line); background: var(--accent-soft); }
.form-row--hl .form-row__v { color: var(--accent-deep); }

.step__art--scan { align-items: center; justify-content: center; }
.scan-frame {
  position: relative; width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff 0%, var(--bg-sunken) 70%, #e6edf2 100%);
  border: 1px solid var(--accent-line);
  overflow: hidden;
}
.scan-grid {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(63, 174, 127, 0.06) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, rgba(63, 174, 127, 0.06) 0 1px, transparent 1px 12px);
}
.scan-dot {
  position: absolute; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(63, 174, 127, 0.18);
  transform: translate(-50%, -50%);
}
.scan-line {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { top: 20%; opacity: 0.4; }
  50% { top: 78%; opacity: 1; }
}
.scan-caption { font-size: 12px; color: var(--text-3); text-align: center; font-style: italic; }

.step__art--reveal { justify-content: center; align-items: stretch; gap: 8px; }
.reveal-arch { font-family: var(--serif); font-style: italic; font-size: 22px; text-align: center; color: var(--text); }
.reveal-tile {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  padding: 10px 14px; background: #fff; border: 1px solid var(--accent-line); border-radius: 12px;
}
.reveal-tile__pct { font-family: var(--serif); font-size: 22px; color: var(--accent-deep); }
.reveal-tile__label { font-size: 12px; color: var(--text-2); text-align: center; }
.reveal-pill { font-size: 12.5px; color: var(--text-2); font-style: italic; text-align: center; line-height: 1.4; }

/* Dark section ------------------------------------------------------- */

.section--dark {
  width: 100%;
  margin: 0;
  padding: 110px max(20px, 4vw);
  background:
    radial-gradient(50% 50% at 80% 0%, rgba(63, 174, 127, 0.18) 0%, transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #0c141a 0%, #0f1720 60%, #0a1118 100%);
  color: var(--text-on-dark);
}
.section--dark .section__head {
  margin-left: auto; margin-right: auto;
  text-align: center;
  max-width: 780px;
  width: var(--content);
}

.trait-grid {
  width: var(--content); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
@media (max-width: 820px) { .trait-grid { grid-template-columns: 1fr; } }

.trait {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
  padding: 22px;
  backdrop-filter: blur(12px);
}
.trait__head { font-family: var(--serif); font-style: italic; font-size: 20px; margin-bottom: 16px; color: #ffffff; }
.trait__rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 540px) { .trait__rail { grid-template-columns: repeat(2, 1fr); } }

.trait__rail figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.trait__rail img {
  aspect-ratio: 1 / 1; object-fit: cover; width: 100%;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a232c;
}
.trait__rail figcaption {
  font-size: 12px; color: #c9d1da; line-height: 1.35;
  font-family: var(--sans);
}

.features {
  width: var(--content); margin: 56px auto 0;
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.features li {
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
}
.features h4 { color: #fff; font-family: var(--serif); font-size: 19px; margin-bottom: 8px; }
.features p { color: #c9d1da; font-size: 14.5px; line-height: 1.55; }

/* Disclaimer --------------------------------------------------------- */

.disclaimer { width: var(--content); margin: 0 auto; padding: 64px 0; }
.disclaimer__inner {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 38px;
}
.disclaimer h3 { font-size: 24px; margin-bottom: 10px; }
.disclaimer p { color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.disclaimer p + p { margin-top: 10px; }
.disclaimer__small { font-size: 13.5px !important; color: var(--text-3) !important; }

/* FAQ ---------------------------------------------------------------- */

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 20px;
  background: #fff;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.faq details[open] { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; font-weight: 600;
  font-family: var(--sans); font-size: 16px;
  list-style: none; position: relative; padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  font-size: 22px; color: var(--accent-deep);
  transition: transform 0.2s ease; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 10px; color: var(--text-2); font-size: 15px; }

/* CTA ---------------------------------------------------------------- */

.cta {
  width: 100%; margin: 0;
  padding: 100px max(20px, 4vw);
  background:
    radial-gradient(50% 70% at 50% 0%, rgba(63, 174, 127, 0.22) 0%, transparent 60%),
    linear-gradient(180deg, #0f1720 0%, #0a1118 100%);
  color: var(--text-on-dark);
  text-align: center;
}
.cta__inner { max-width: 720px; margin: 0 auto; }
.cta h2 { margin-top: 14px; color: #fff; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; }
.cta__sub { margin-top: 16px; color: #cbd2db; font-size: 17px; }
.cta .btn { margin-top: 28px; background: #fff; color: var(--text); }
.cta .btn:hover { background: var(--accent); color: #fff; }
.cta__small { margin-top: 14px; font-size: 13px; color: #8a94a6; }

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

.foot { background: #0a1118; color: #cbd2db; padding: 56px max(20px, 4vw) 36px; }
.foot__inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 32px; align-items: start;
}
@media (max-width: 820px) {
  .foot__inner { grid-template-columns: 1fr; gap: 24px; }
}
.foot__brand { display: flex; align-items: center; gap: 12px; }
.foot__mark { width: 36px; height: 36px; border-radius: 10px; }
.foot__wordmark { font-family: var(--serif); font-size: 18px; color: #fff; }
.foot__tag { font-size: 13px; color: #8a94a6; }
.foot__links { display: flex; flex-wrap: wrap; gap: 16px 22px; font-size: 14px; }
.foot__links a { color: #cbd2db; transition: color 0.18s ease; }
.foot__links a:hover { color: #fff; }
.foot__legal { font-size: 13px; color: #8a94a6; line-height: 1.55; }
.foot__hint { margin-top: 6px; font-size: 12px; color: #6b7480; }
