/* ============================================================
   BACKGLANCE — Landing Page Styles
   ============================================================ */

:root {
  --bg:           #020713;
  --bg-2:         #071427;
  --bg-3:         #0a1c3a;
  --text:         #f7faff;
  --muted:        #a8b8d8;
  --muted-blue:   #8dbbff;
  --accent:       #67a9ff;
  --accent-dim:   #3f8cff;
  --border:       rgba(103, 169, 255, 0.22);
  --border-soft:  rgba(103, 169, 255, 0.12);
  --card:         rgba(8, 22, 45, 0.72);
  --card-strong:  rgba(10, 28, 58, 0.84);
  --shadow:       0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-lg:    32px;
  --radius-md:    22px;
  --radius-sm:    14px;
  --radius-xs:    8px;
  --max-width:    1120px;
  --font:         -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Utility ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #020713;
  padding: 14px 28px;
  font-size: 1rem;
}
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--border);
  padding: 13px 28px;
  font-size: 1rem;
}
.btn--ghost:hover { border-color: var(--accent); opacity: 1; }
.btn--sm { padding: 10px 20px; font-size: 0.875rem; }
.btn--lg { padding: 18px 40px; font-size: 1.125rem; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 7, 19, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.header__logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  flex-shrink: 0;
}

.header__nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.header__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.header__nav a:hover { color: var(--text); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(63, 140, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero__headline {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  background: linear-gradient(160deg, #ffffff 30%, #9fc7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  max-width: 760px;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.hero__trust {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 36px;
  opacity: 0.8;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}

/* Hero visual */
.hero__visual {
  width: 100%;
  max-width: 900px;
}

.hero__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, rgba(10, 28, 58, 0.9), rgba(4, 10, 22, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(103, 169, 255, 0.12);
}
.hero__screen::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 200px;
  background: radial-gradient(ellipse at top, rgba(63, 140, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__screen-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(5, 14, 32, 0.6);
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.hero__screen-body {
  padding: 24px;
  opacity: 0.35;
}
.hero__screen-content { display: flex; flex-direction: column; gap: 12px; }
.mock-line {
  height: 10px;
  border-radius: 100px;
  background: rgba(103, 169, 255, 0.3);
}
.mock-line.wide { width: 60%; }
.mock-line.medium { width: 40%; }
.mock-row { display: flex; gap: 12px; margin-top: 8px; }
.mock-block {
  flex: 1;
  height: 56px;
  border-radius: var(--radius-xs);
  background: rgba(103, 169, 255, 0.15);
  border: 1px solid rgba(103, 169, 255, 0.1);
}

/* Mirror pill (menu-bar style) */
.mirror-pill {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}
.mirror-pill__inner {
  background: #080f1e;
  border: 1px solid rgba(103, 169, 255, 0.3);
  border-radius: 100px;
  padding: 5px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 0 16px rgba(63, 140, 255, 0.2);
}
.mirror-glow {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  opacity: 0.9;
}

/* Mirror panel (expanded overlay) */
.mirror-panel {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 42%;
  border-radius: var(--radius-md);
  background: #060e1d;
  border: 1px solid rgba(103, 169, 255, 0.25);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  z-index: 3;
}
.mirror-panel__bar {
  height: 28px;
  background: #050b18;
  border-bottom: 1px solid rgba(103, 169, 255, 0.1);
}
.mirror-panel__view {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #0e2247, #071020);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mirror-panel__figure {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,220,255,0.18), rgba(100,150,220,0.08));
  border: 1px solid rgba(103, 169, 255, 0.2);
}

/* Arrow indicator */
.hero__arrow {
  position: absolute;
  left: 52%;
  top: 100px;
  z-index: 5;
  transform: rotate(-20deg);
  opacity: 0.7;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 108px 0;
  position: relative;
}
.section--alt {
  background: linear-gradient(180deg, rgba(7,20,39,0.4) 0%, transparent 100%);
}

.section__head {
  text-align: center;
  margin-bottom: 64px;
}
.section__head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section__sub {
  color: var(--muted-blue);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   HOW IT WORKS — STEPS
   ============================================================ */
.steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
}

.step-card {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(103, 169, 255, 0.1);
  border: 1.5px solid var(--border);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.step-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.step-connector {
  width: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-connector::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--border));
  background: var(--border);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-block--wide { grid-column: span 1; }

.feature-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.feature-block:hover { transform: translateY(-3px); }

.feature-block__text {
  padding: 32px 32px 24px;
}
.feature-block__text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.feature-block__text p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.feature-block__visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 32px 32px;
  min-height: 160px;
}

/* Feature visuals */
.fv--mirror .fv-screen {
  width: 100%;
  max-width: 300px;
  background: rgba(5, 13, 28, 0.8);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.fv-screen__bar {
  height: 20px;
  background: rgba(5, 10, 22, 0.9);
  border-bottom: 1px solid var(--border-soft);
}
.fv-mirror-panel {
  margin: 12px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: #060e1d;
  border: 1px solid rgba(103,169,255,0.2);
}
.fv-mirror-panel__bar {
  height: 20px;
  background: #050a14;
  border-bottom: 1px solid rgba(103,169,255,0.1);
}
.fv-mirror-panel__cam {
  aspect-ratio: 16/9;
  background: linear-gradient(140deg, #0e2247, #05101e);
  display: flex; align-items: center; justify-content: center;
}
.fv-figure {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180,210,255,0.18), rgba(60,100,180,0.06));
  border: 1px solid rgba(103,169,255,0.2);
}

.fv--alert .fv-alert-panel {
  width: 100%;
  max-width: 280px;
  background: #050a14;
  border: 1px solid rgba(103,169,255,0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.fv-alert-panel__bar {
  height: 22px;
  background: #030710;
  border-bottom: 1px solid rgba(103,169,255,0.1);
}
.fv-alert-dot {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fv-alert-dot::before {
  content: '';
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent), 0 0 48px rgba(103,169,255,0.3);
}

.fv--states {
  display: flex;
  align-items: center;
  gap: 16px;
}
.state-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--card-strong);
}
.state-pill--visible {
  border-color: rgba(103,169,255,0.45);
  background: rgba(103,169,255,0.08);
}
.state-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.state-dot--off { background: rgba(103,169,255,0.25); }
.state-dot--on { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.state-arrow { color: var(--accent); font-size: 1.2rem; opacity: 0.6; }

.fv--menu {
  padding-bottom: 24px;
}
.mock-menu {
  width: 100%;
  max-width: 260px;
  background: rgba(240, 245, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.mock-menu__row {
  padding: 11px 16px;
  font-size: 0.85rem;
  color: #1a1a2e;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock-menu__row--muted { color: #7a8498; font-size: 0.8rem; font-weight: 400; }
.mock-menu__row--arrow { font-weight: 500; }
.mock-menu__divider { height: 1px; background: rgba(0,0,0,0.1); margin: 2px 0; }

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy-card {
  position: relative;
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  overflow: hidden;
}
.privacy-card__glow {
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(63,140,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.privacy-items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.privacy-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.privacy-icon {
  width: 56px; height: 56px;
  background: rgba(103,169,255,0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}
.privacy-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.privacy-item span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.privacy-card__note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}

/* ============================================================
   USE CASES
   ============================================================ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}
.chip {
  padding: 10px 22px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-blue);
  background: rgba(103,169,255,0.04);
  transition: border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--accent); color: var(--text); }

.use-cases__note {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section__inner {
  position: relative;
  z-index: 1;
}
.cta-section__glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(63,140,255,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.cta-section__headline {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.cta-section__sub {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 36px;
}
.cta-section__trust {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--accent);
  opacity: 0.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border-soft);
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.footer__tagline {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.5;
}
.footer__nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.footer__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer__nav a:hover { color: var(--text); }
.footer__legal {
  font-size: 0.78rem;
  color: rgba(168, 184, 216, 0.45);
  line-height: 1.5;
  max-width: 640px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
  }
  .privacy-items {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    flex-direction: column;
  }
  .step-connector {
    width: auto;
    height: 20px;
    align-items: flex-start;
  }
  .step-connector::before {
    width: 1px;
    height: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .container { padding: 0 20px; }

  .section { padding: 72px 0; }

  .header__nav { display: none; }
  .header__inner { gap: 16px; }

  .hero { padding: 72px 0 56px; }
  .hero__actions { flex-direction: column; align-items: center; }

  .privacy-card { padding: 36px 24px; }
  .privacy-items { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .footer__inner { flex-direction: column; gap: 24px; }
  .footer__nav { flex-wrap: wrap; gap: 16px; }

  .hero__arrow { display: none; }
}

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