:root {
  color-scheme: light;
  --font-display: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;

  --bg: #f3f7ff;
  --bg-soft: #e7efff;
  --text: #0b1730;
  --muted: #4a5a78;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-strong: rgba(255, 255, 255, 0.75);
  --stroke: rgba(62, 92, 156, 0.22);
  --shadow: 0 20px 42px rgba(22, 45, 95, 0.18);
  --brand: #1434de;
  --brand-strong: #0c29be;
  --ok: #38b86d;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080e1f;
  --bg-soft: #111a31;
  --text: #f0f4ff;
  --muted: #b9c6e8;
  --surface: rgba(14, 22, 42, 0.54);
  --surface-strong: rgba(12, 20, 36, 0.74);
  --stroke: rgba(175, 196, 255, 0.26);
  --shadow: 0 24px 52px rgba(2, 6, 17, 0.55);
  --brand: #6f89ff;
  --brand-strong: #86a0ff;
  --ok: #60d496;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #080e1f;
    --bg-soft: #111a31;
    --text: #f0f4ff;
    --muted: #b9c6e8;
    --surface: rgba(14, 22, 42, 0.54);
    --surface-strong: rgba(12, 20, 36, 0.74);
    --stroke: rgba(175, 196, 255, 0.26);
    --shadow: 0 24px 52px rgba(2, 6, 17, 0.55);
    --brand: #6f89ff;
    --brand-strong: #86a0ff;
    --ok: #60d496;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1100px 620px at -8% -12%, rgba(143, 194, 255, 0.26), transparent 56%),
    radial-gradient(900px 560px at 110% 8%, rgba(18, 79, 255, 0.2), transparent 58%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-soft) 56%, var(--bg) 100%);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.site-wrap {
  width: min(1140px, calc(100% - 2.2rem));
  margin: 0 auto;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.header-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
}

.site-header {
  margin-top: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.93rem;
  padding: 9px 12px;
  border-radius: 999px;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--surface-strong);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.button {
  border: 1px solid var(--stroke);
  background: var(--surface-strong);
  color: var(--text);
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #f7f9ff;
  border-color: transparent;
}

.button:hover,
.theme-toggle:hover {
  transform: translateY(-1px);
}

main {
  padding: 38px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.hero-panel,
.hero-phone {
  padding: clamp(22px, 3vw, 34px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.14;
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 5.2vw, 4rem);
  max-width: 15ch;
}

.lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.1vw, 1.22rem);
  max-width: 54ch;
}

.hero-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-list li {
  color: var(--muted);
  position: relative;
  padding-left: 24px;
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ok);
}

.hero-cta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.phone-stack {
  position: relative;
  min-height: min(62vw, 530px);
}

.phone-stack img {
  position: absolute;
  width: clamp(190px, 36vw, 280px);
  border-radius: 34px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.phone-a {
  top: 8%;
  left: 6%;
  transform: rotate(-11deg);
}

.phone-b {
  top: 16%;
  right: 1%;
  transform: rotate(7deg);
}

.phone-c {
  bottom: -4%;
  left: 29%;
  transform: rotate(-2deg);
}

.section {
  margin-top: 34px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

.section-head p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 68ch;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  overflow: hidden;
}

.feature-media {
  border-bottom: 1px solid var(--stroke);
}

.feature-media img {
  aspect-ratio: 390 / 844;
  object-fit: cover;
  width: 100%;
}

.feature-copy {
  padding: 16px 16px 20px;
}

.feature-copy h3 {
  font-size: 1.07rem;
  margin-bottom: 7px;
}

.feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  padding: 16px;
}

.stat strong {
  font-family: var(--font-display);
  display: block;
  font-size: 1.55rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.93rem;
}

.cta {
  margin-top: 34px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta h2 {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.cta p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 58ch;
}

.site-footer {
  margin-top: 30px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.legal {
  max-width: 880px;
  margin: 26px auto 0;
  display: grid;
  gap: 16px;
}

.legal-card {
  padding: 24px;
}

.legal-card h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.legal-card li::marker {
  color: var(--brand);
}

.legal-back {
  margin-top: 12px;
}

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

  .phone-stack {
    min-height: min(72vw, 460px);
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-wrap {
    width: min(1140px, calc(100% - 1.1rem));
  }

  .site-header {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero h1 {
    max-width: 100%;
  }

  .phone-stack {
    min-height: min(88vw, 420px);
  }

  .phone-stack img {
    width: clamp(160px, 45vw, 230px);
    border-radius: 28px;
  }

  .features-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
