/* Flow Capture — landing
   Style: "Frosted glass cathedral at midnight" (AuthKit reference) */

:root {
  /* Colors */
  --canvas: #05060f;
  --steel: #2f343e;
  --fog: #9da7ba;
  --mist: #c7d3ea;
  --frost: #d1e4fa;
  --ice: #d8ecf8;
  --white: #ffffff;
  --violet: #663af3;
  --violet-hover: #7350f5;
  --gridline: rgba(186, 215, 247, 0.06);
  --edge: rgba(186, 215, 247, 0.12);
  --edge-strong: rgba(186, 215, 247, 0.24);
  --glass: rgba(186, 214, 247, 0.03);
  --glass-fill: rgba(186, 214, 247, 0.06);
  --glass-fill-hover: rgba(186, 214, 247, 0.12);
  --luminous: rgba(199, 211, 234, 0.12);
  --deep-glass: rgba(5, 6, 15, 0.97);

  --skywash: linear-gradient(0deg, #98c0ef 0%, #d8ecf8 100%);

  /* Elevation */
  --shadow-card: inset 0 1px 1px rgba(199, 211, 234, 0.12), inset 0 24px 48px rgba(199, 211, 234, 0.05), 0 24px 32px rgba(6, 6, 14, 0.7);
  --shadow-modal: inset 0 1px 1px rgba(216, 236, 248, 0.2), inset 0 24px 48px rgba(168, 216, 245, 0.06), 0 16px 32px rgba(0, 0, 0, 0.3);
  --shadow-edge: inset 0 0 0 1px var(--edge);
  --shadow-edge-strong: inset 0 0 0 1px var(--edge-strong);
  --shadow-badge: inset 0 1px 1px rgba(216, 236, 248, 0.2), inset 0 0 0 1px rgba(199, 211, 234, 0.08);
  --glow: 0 0 6px rgba(186, 207, 247, 0.32), 0 0 12px rgba(238, 186, 247, 0.24);

  /* Type */
  --sans: "Inter", "Untitled Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "aeonikPro", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "dotDigital", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii */
  --r-card: 16px;
  --r-badge: 6px;
  --r-pill: 999px;

  --pad-x: 120px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--frost);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Blueprint grid + spotlight halo — ambient atmosphere behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--gridline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--gridline) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
}
body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1100px;
  z-index: 0;
  pointer-events: none;
  background:
    conic-gradient(at 50% -5%, transparent 45%, rgba(124, 145, 182, 0.3) 49%, rgba(124, 145, 182, 0.5) 50%, rgba(124, 145, 182, 0.3) 51%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(124, 145, 182, 0.22), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}

.header, main { position: relative; z-index: 1; }

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- layout ---------- */

.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--r-pill);
  color: var(--white);
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn img { width: 18px; height: 18px; flex: 0 0 auto; }

/* Ghost pill — header and secondary actions */
.btn-sm {
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  background: var(--glass-fill);
  box-shadow: var(--shadow-edge);
}
.btn-sm:hover { background: var(--glass-fill-hover); }
.btn-sm img { width: 14px; height: 14px; }

/* Violet CTA — the single chromatic accent */
.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
  background: var(--violet);
  box-shadow: inset 0 1px 1px rgba(216, 236, 248, 0.24), 0 0 0 1px rgba(102, 58, 243, 0.35), 0 12px 32px rgba(102, 58, 243, 0.35);
}
.btn-lg:hover {
  background: var(--violet-hover);
  box-shadow: inset 0 1px 1px rgba(216, 236, 248, 0.32), 0 0 0 1px rgba(102, 58, 243, 0.5), 0 16px 40px rgba(102, 58, 243, 0.45);
}
.btn-pill { border-radius: var(--r-pill); }

/* ---------- header ---------- */

.header {
  padding: 20px 80px;
  box-shadow: inset 0 -1px 0 var(--edge);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.logo-group { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--glass-fill);
  box-shadow: var(--shadow-edge);
}
.logo-mark img { width: 16px; height: 16px; }
.logo-text { font-size: 16px; font-weight: 500; color: var(--frost); white-space: nowrap; letter-spacing: 0; }

.nav-and-cta { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--mist); transition: color .15s ease; }
.nav-link:hover { color: var(--ice); }

/* ---------- eyebrow labels (dotDigital style) ---------- */

.eyebrow,
.final-eyebrow,
.feat-label,
.top-status {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-feature-settings: "tnum" on;
  color: var(--mist);
}

.eyebrow,
.final-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 560px;
  font-size: 15px;
  text-align: center;
  white-space: nowrap;
}
.eyebrow::before, .eyebrow::after,
.final-eyebrow::before, .final-eyebrow::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--edge));
}
.eyebrow::after, .final-eyebrow::after {
  background: linear-gradient(90deg, var(--edge), transparent);
}

/* ---------- hero ---------- */

.hero { padding: 120px var(--pad-x) 100px; }
.hero .container { align-items: center; gap: 48px; }

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.headline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  font-family: var(--display);
  font-weight: 500;
  font-size: 72px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.headline-line {
  display: block;
  color: var(--ice);
  background: var(--skywash);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(186, 207, 247, 0.18));
}
.headline-line.accent {
  background: none;
  -webkit-text-fill-color: var(--fog);
  color: var(--fog);
  filter: none;
}

.hero-sub {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--mist);
}

.cta-and-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  width: 100%;
}

.mockup-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
}

/* Phone frames as floating glass plates */
.phone-frame {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 280px;
  height: 520px;
  margin: 0;
  padding: 12px 12px 10px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--deep-glass);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-modal);
  transition: transform .3s ease, box-shadow .3s ease;
}
.phone-frame:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 1px rgba(216, 236, 248, 0.28), inset 0 24px 48px rgba(168, 216, 245, 0.08), 0 24px 48px rgba(0, 0, 0, 0.4);
}
.screen-content {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-edge);
}
.screen-content img { width: 100%; height: 100%; object-fit: cover; }

.top-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 2px;
  font-size: 11px;
  color: var(--fog);
  white-space: nowrap;
}
.dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--frost);
  box-shadow: var(--glow);
}

/* ---------- sections common ---------- */

.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.16;
  letter-spacing: 0;
  color: var(--ice);
}
.section-sub { font-size: 18px; line-height: 1.5; color: var(--mist); max-width: 640px; }

/* Shared glass card */
.step, .feat, .aud, .privacy-point {
  background: var(--glass);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  transition: background .2s ease;
}
.step:hover, .feat:hover, .aud:hover, .privacy-point:hover { background: var(--glass-fill); }

/* ---------- how it works ---------- */

.how-it-works {
  padding: var(--pad-x);
  box-shadow: inset 0 1px 0 var(--edge), inset 0 -1px 0 var(--edge);
}
.how-it-works .container { gap: 64px; }

.steps-timeline { display: flex; gap: 24px; width: 100%; }

.step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
}
.step-num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.1;
  color: var(--ice);
  background: var(--skywash);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step-text { display: flex; flex-direction: column; gap: 8px; }
.step-text h3 { font-size: 18px; font-weight: 500; line-height: 1.33; color: var(--frost); }
.step-text p { font-size: 14px; line-height: 1.43; color: var(--fog); }

/* ---------- capabilities ---------- */

.capabilities { padding: var(--pad-x); }
.capabilities .container { gap: 64px; }
.cap-header { display: flex; flex-direction: column; gap: 16px; }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.feat {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
}
.feat-label {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: var(--r-badge);
  background: var(--luminous);
  box-shadow: var(--shadow-badge);
  font-size: 12px;
  color: var(--frost);
  white-space: nowrap;
}
.feat-text { display: flex; flex-direction: column; gap: 8px; }
.feat-text h3 { font-size: 24px; font-weight: 500; line-height: 1.17; letter-spacing: -0.01em; color: var(--ice); }
.feat-text p { font-size: 16px; line-height: 1.5; color: var(--fog); }

/* ---------- privacy ---------- */

.privacy {
  padding: 100px var(--pad-x);
  box-shadow: inset 0 1px 0 var(--edge), inset 0 -1px 0 var(--edge);
}
.privacy .container { align-items: center; gap: 48px; }

.privacy-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 700px;
  text-align: center;
}
.shield-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: var(--glass-fill);
  box-shadow: var(--shadow-edge), var(--glow);
}
.privacy-heading h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.16;
  color: var(--ice);
}
.privacy-heading p { font-size: 16px; line-height: 1.5; color: var(--mist); }

.privacy-cards { display: flex; gap: 16px; width: 100%; }
.privacy-point {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--frost);
}
.privacy-point img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* ---------- audience ---------- */

.audience { padding: var(--pad-x); }
.audience .container { gap: 64px; }
.audience-cards { display: flex; gap: 24px; width: 100%; }
.aud {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}
.aud h3 { font-size: 18px; font-weight: 500; line-height: 1.33; color: var(--frost); }
.aud p { font-size: 14px; line-height: 1.43; color: var(--fog); }

/* ---------- final cta ---------- */

.final-cta {
  position: relative;
  padding: 140px var(--pad-x);
  box-shadow: inset 0 1px 0 var(--edge);
  text-align: center;
  overflow: hidden;
}
.final-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/final-cta-bg.webp") center / cover no-repeat;
  filter: saturate(0.35) hue-rotate(20deg);
  opacity: 0.55;
}
.final-cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 15, 0.92) 0%, rgba(5, 6, 15, 0.8) 50%, rgba(5, 6, 15, 0.95) 100%);
}
.final-cta .container { position: relative; z-index: 1; align-items: center; gap: 32px; }

.final-cta h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.17;
  color: var(--ice);
  background: var(--skywash);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.final-sub { max-width: 580px; font-size: 16px; line-height: 1.5; color: var(--mist); }
.final-note { font-size: 12px; line-height: 1.33; color: var(--fog); white-space: pre; }

/* ---------- responsive ---------- */

@media (max-width: 1200px) {
  :root { --pad-x: 72px; }
  .header { padding: 16px 40px; }
  .headline { font-size: 60px; }
  .section-title, .privacy-heading h2 { font-size: 40px; }
  .final-cta h2 { font-size: 44px; }
  .mockup-row { gap: 24px; }
  .phone-frame { width: 240px; height: 446px; }
}

@media (max-width: 900px) {
  :root { --pad-x: 40px; }
  .hero { padding-top: 80px; padding-bottom: 72px; }
  .headline { font-size: 48px; }
  .section-title, .privacy-heading h2, .final-cta h2 { font-size: 36px; }
  .steps-timeline, .audience-cards, .privacy-cards { flex-direction: column; }
  .cap-grid { grid-template-columns: 1fr; }
  .mockup-row { flex-wrap: wrap; }
  .phone-frame { width: 280px; height: 520px; }
}

@media (max-width: 640px) {
  :root { --pad-x: 20px; }
  .header { padding: 12px 20px; }
  .nav-link { display: none; }
  .btn-sm span { display: none; }
  .btn-sm { padding: 8px 12px; }
  .hero { padding-top: 64px; }
  .hero .container { gap: 40px; }
  .headline { font-size: 38px; }
  .hero-sub { font-size: 16px; }
  .eyebrow, .final-eyebrow { font-size: 12px; white-space: normal; }
  .cta-and-mockup { gap: 48px; }
  .btn-lg { width: 100%; justify-content: center; }
  .section-title, .privacy-heading h2, .final-cta h2 { font-size: 30px; }
  .how-it-works, .capabilities, .audience { padding-top: 72px; padding-bottom: 72px; }
  .how-it-works .container, .capabilities .container, .audience .container { gap: 40px; }
  .privacy { padding-top: 72px; padding-bottom: 72px; }
  .privacy .container { gap: 32px; }
  .final-cta { padding-top: 96px; padding-bottom: 96px; }
  .final-cta .container { gap: 24px; }
  .feat { padding: 24px; }
  .feat-text h3 { font-size: 20px; }
  .phone-frame { width: min(280px, 100%); height: auto; aspect-ratio: 280 / 520; }
  .final-note { white-space: normal; }
  body::before { background-size: 48px 48px; }
}
