:root {
  --bg-app: #eef2f6;
  --bg-card: rgba(255, 255, 255, 0.82);
  --surface-muted: rgba(248, 250, 252, 0.76);
  --border: rgba(216, 224, 232, 0.88);
  --text-primary: #1c2733;
  --text-secondary: #5f6c7a;
  --primary: #1f3a5f;
  --primary-soft: rgba(229, 236, 245, 0.9);
  --accent: #4c78a8;
  --success: #2e7d5a;
  --warning: #b27a1a;
  --danger: #b4524d;
  --shadow: 0 24px 80px rgba(18, 35, 54, 0.12);
  --shadow-soft: 0 12px 40px rgba(18, 35, 54, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 10% 20%, rgba(76, 120, 168, 0.16), transparent 26%),
    radial-gradient(circle at 90% 18%, rgba(31, 58, 95, 0.12), transparent 24%),
    linear-gradient(180deg, #f7f9fb 0%, #eef2f6 40%, #e9eef3 100%);
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(238, 242, 246, 0.72);
  border-bottom: 1px solid rgba(216, 224, 232, 0.65);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
}
.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f7f9fb;
  border: 1px solid rgba(216, 224, 232, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.brand-mark-chevron {
  position: absolute;
  width: 13px;
  height: 13px;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
  border-radius: 2px;
}
.brand-mark-chevron-left {
  color: #142033;
  transform: rotate(-135deg);
  left: 11px;
}
.brand-mark-chevron-right {
  color: #5a7faf;
  transform: rotate(45deg);
  right: 11px;
}
.brand-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.brand-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand-tagline {
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text-secondary);
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.nav a:hover { color: var(--primary); background: rgba(229, 236, 245, 0.7); }
.nav a.is-active {
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px rgba(200, 213, 228, 0.95);
}

.story-shell {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(0, 1fr);
  gap: 24px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 80px;
}

.story-stage {
  position: sticky;
  top: 78px;
  align-self: start;
  height: calc(100vh - 96px);
  display: flex;
  align-items: center;
}
.device-frame {
  width: 100%;
  height: min(88vh, 860px);
  border-radius: 36px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(31, 58, 95, 0.12), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(216, 224, 232, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.device-topbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.device-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(200, 213, 228, 0.95);
}
.device-pill-secondary {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.75);
}
.device-screen-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 224, 232, 0.85);
}
.device-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 320ms ease;
}
.device-screen.is-transitioning {
  opacity: 0.6;
  transform: scale(0.965) translateY(12px);
}
.device-caption {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.story-panels {
  position: relative;
  display: flex;
  flex-direction: column;
}
.story-panel {
  min-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  opacity: 0.38;
  transform: translateY(120px) scale(0.92);
  transition: opacity 540ms ease, transform 760ms cubic-bezier(0.16, 0.9, 0.18, 1);
}
.story-panel.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.story-panel.is-prev {
  opacity: 0.22;
  transform: translateY(-72px) scale(0.96);
}
.story-panel-short { min-height: calc(82vh - 64px); }
#story-hero .panel-inner {
  transform: translateY(-38px);
}
.panel-inner {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 40px;
  transform: translateY(-22px);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(216, 224, 232, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}
.story-panel-dark .panel-inner {
  background: linear-gradient(180deg, rgba(31, 58, 95, 0.96), rgba(24, 44, 72, 0.94));
  border-color: rgba(76, 120, 168, 0.28);
  color: #eef4fb;
}
.story-panel-dark p,
.story-panel-dark .mini-card span,
.story-panel-dark .benefit-row p,
.story-panel-dark .stat-strip span {
  color: rgba(238, 244, 251, 0.82);
}
.story-panel-dark .mini-card,
.story-panel-dark .stat-strip div,
.story-panel-dark .faq-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.eyebrow-dark {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(238, 244, 251, 0.95);
}

h1, h2, h3 {
  margin: 0 0 16px;
  letter-spacing: -0.05em;
}
h1 { font-size: clamp(3.1rem, 5vw, 5.4rem); line-height: 0.92; }
h2 { font-size: clamp(2.2rem, 3.4vw, 3.4rem); line-height: 0.98; }
h3 { font-size: 1.18rem; }
p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1.02rem;
}
.lead {
  font-size: 1.15rem;
  max-width: 58ch;
}
.hero-actions,
.final-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 800;
}
.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #274a79);
  box-shadow: 0 18px 34px rgba(31, 58, 95, 0.24);
}
.button-secondary {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(216, 224, 232, 0.9);
}
.panel-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.panel-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mini-card,
.faq-card,
.stat-strip div {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(216, 224, 232, 0.85);
  background: rgba(255, 255, 255, 0.68);
}
.mini-card strong,
.stat-strip strong { display: block; margin-bottom: 8px; }
.mini-card span,
.stat-strip span { color: var(--text-secondary); line-height: 1.6; }
.emphasis {
  background: linear-gradient(180deg, rgba(229, 236, 245, 0.72), rgba(255, 255, 255, 0.78));
}
.benefit-stack {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.benefit-stack.compact { gap: 12px; }
.benefit-row {
  display: grid;
  grid-template-columns: 14px minmax(140px, 180px) 1fr;
  gap: 12px;
  align-items: start;
}
.dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  box-shadow: 0 0 0 6px rgba(76, 120, 168, 0.12);
}
.benefit-row strong { padding-top: 1px; }
.benefit-row p { margin: 0; }
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.faq-list-single {
  display: grid;
  gap: 14px;
}
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(216, 224, 232, 0.88);
}

@media (max-width: 1100px) {
  .story-shell {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .story-stage {
    position: relative;
    top: 0;
    height: auto;
    justify-content: center;
    padding-bottom: 10px;
  }
  .device-frame {
    height: auto;
    min-height: 560px;
  }
  .story-panel,
  .story-panel-short {
    min-height: auto;
    padding: 28px 0 42px;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .panel-inner {
    width: 100%;
    margin: 0;
    transform: none;
    transition: none;
  }
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .brand-tagline {
    display: none;
  }
  .nav {
    gap: 12px;
  }
  .panel-grid-three,
  .panel-grid-two,
  .stat-strip {
    grid-template-columns: 1fr;
  }
  .benefit-row {
    grid-template-columns: 14px 1fr;
  }
  .benefit-row p {
    grid-column: 2 / -1;
  }
}

@media (max-width: 640px) {
  html { scroll-behavior: auto; }
  .container { width: min(100% - 24px, 1120px); }
  .story-shell { width: min(100% - 16px, 1280px); }
  .site-header { position: static; }
  .topbar {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 12px 0;
    overflow: hidden;
  }
  .brand {
    flex: 0 0 auto;
    min-width: 0;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .brand-text {
    font-size: 1.1rem;
  }
  .nav {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav a {
    flex: 0 0 auto;
    padding: 8px 10px;
    white-space: nowrap;
  }
  .story-stage { display: none; }
  .story-shell { grid-template-columns: 1fr; }
  .panel-inner {
    padding: 24px;
    border-radius: 24px;
  }
  .hero-actions,
  .final-actions {
    flex-direction: column;
  }
  .button { width: 100%; }
}


.legal-page h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
}

.legal-page h2 {
  font-size: clamp(1.2rem, 2.1vw, 1.7rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 36px 0 14px;
}

.legal-page p,
.legal-page li {
  font-size: 1rem;
  line-height: 1.8;
}

.legal-page .legal-updated {
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .legal-page h1 {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }

  .legal-page h2 {
    font-size: clamp(1.1rem, 5vw, 1.45rem);
  }
}
