:root {
  color-scheme: light;
  --ink: #111827;
  --primary: #1687ff;
  --primary-dark: #076de0;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --muted: #657083;
  --line: #e6eaf0;
  --success: #28a96b;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--paper); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 36%, rgba(22, 135, 255, .1), transparent 28rem),
    linear-gradient(180deg, #fff 0, var(--paper) 72%);
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(4px);
}

body::before { width: 360px; height: 360px; top: 120px; right: -150px; background: rgba(22, 135, 255, .07); }
body::after { width: 280px; height: 280px; bottom: -170px; left: -100px; background: rgba(91, 86, 255, .05); }

.site-header,
footer {
  position: relative;
  z-index: 5;
  width: min(1130px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header { height: 86px; border-bottom: 1px solid var(--line); }

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #171d2b;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.055em;
  text-decoration: none;
}

.brand-mark { width: 42px; height: 42px; object-fit: contain; }
.header-note { color: #687486; font-size: 11px; font-weight: 700; letter-spacing: .14em; }

.hero {
  position: relative;
  z-index: 1;
  width: min(1130px, calc(100% - 48px));
  min-height: calc(100vh - 158px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, .92fr);
  align-items: center;
  gap: clamp(50px, 7vw, 104px);
  padding: 64px 0 76px;
}

.hero-copy { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 22px;
  padding: 0 16px;
  border: 1px solid rgba(22, 135, 255, .12);
  border-radius: 999px;
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 8px 24px rgba(38, 90, 145, .08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.hero h1,
.legal-content h1 {
  margin: 0;
  max-width: 690px;
  font-size: clamp(52px, 5.8vw, 82px);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -.055em;
}

.hero h1 span { color: var(--primary); }
.hero h1 .headline-tail { color: inherit; }

.lead {
  max-width: 590px;
  margin: 26px 0 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.download-panel {
  max-width: 600px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 48px rgba(43, 73, 112, .1);
  backdrop-filter: blur(16px);
}

.panel-status,
.privacy-note { margin: 0 0 15px; color: #596579; font-size: 13px; }
.privacy-note { margin: 12px 0 0; font-size: 12px; }
.store-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.store-button {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 18px;
  border: 1px solid #111827;
  border-radius: 999px;
  color: white;
  background: #111827;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(17, 24, 39, .13);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.store-button:hover { transform: translateY(-2px); background: #202a3b; box-shadow: 0 12px 26px rgba(17, 24, 39, .2); }
.store-button small { display: block; margin-bottom: 2px; color: #c7ced8; font-size: 9px; letter-spacing: .1em; }
.store-icon { width: 23px; height: 23px; flex: 0 0 auto; }
.store-icon.apple { color: white; }

.device-stage { position: relative; min-height: 650px; display: grid; place-items: center; }
.app-glow { position: absolute; width: 430px; height: 430px; border-radius: 50%; background: rgba(22, 135, 255, .18); filter: blur(70px); }

.app-card {
  position: relative;
  z-index: 2;
  width: 274px;
  overflow: hidden;
  border: 1px solid rgba(220, 226, 235, .95);
  border-radius: 27px;
  background: #fff;
  box-shadow: 0 38px 70px rgba(41, 75, 116, .25), 0 10px 24px rgba(17, 24, 39, .18);
  transform: rotate(3deg);
}

.app-card-header { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); }
.app-card-header strong { color: var(--primary); font-size: 16px; }
.app-card-dots { display: flex; gap: 6px; }
.app-card-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ff6258; }
.app-card-dots i:nth-child(2) { background: #ffc04a; }
.app-card-dots i:nth-child(3) { background: #2ec66d; }
.app-card-image { overflow: hidden; background: #286bf2; }
.app-screenshot { display: block; width: 100%; height: auto; }

.feature-chip {
  position: absolute;
  z-index: 3;
  min-width: 218px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(224, 230, 239, .9);
  border-radius: 17px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 34px rgba(48, 79, 115, .14);
  backdrop-filter: blur(14px);
}

.feature-chip strong,
.feature-chip small { display: block; }
.feature-chip strong { font-size: 13px; }
.feature-chip small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; font-size: 22px; font-weight: 800; }
.feature-icon-blue { color: var(--primary); background: #e9f3ff; }
.feature-icon-green { color: var(--success); background: #e8f7ef; font-size: 13px; }
.feature-chip-top { top: 88px; right: -44px; }
.feature-chip-bottom { bottom: 86px; left: -24px; }

footer { min-height: 72px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer a,
.legal-page .site-header a { color: var(--ink); text-decoration: none; }

.footer-actions { display: flex; align-items: center; gap: 18px; }
.footer-actions button { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; text-decoration: underline; }
.footer-actions button:disabled { color: var(--muted); cursor: default; text-decoration: none; }

.legal-content { position: relative; z-index: 1; width: min(760px, calc(100% - 40px)); margin: 90px auto; }
.legal-content h1 { margin-bottom: 40px; font-size: clamp(46px, 7vw, 76px); }
.legal-content > p:not(.eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.8; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 54px; }
  .hero-copy { text-align: center; }
  .hero h1,
  .lead,
  .download-panel { margin-right: auto; margin-left: auto; }
  .device-stage { min-height: 630px; margin-top: 12px; }
  .header-note { display: none; }
}

@media (max-width: 560px) {
  html,
  body { max-width: 100%; overflow-x: hidden; }
  .site-header,
  footer,
  .hero { width: min(100% - 28px, 1130px); }
  .site-header { height: 74px; }
  .brand { font-size: 21px; }
  .brand-mark { width: 36px; height: 36px; }
  .hero { min-width: 0; min-height: auto; padding: 38px 0 48px; }
  .hero h1 { font-size: clamp(43px, 12.5vw, 59px); line-height: 1.09; }
  .hero h1 span { white-space: nowrap; }
  .hero h1 .headline-tail { display: block; }
  .lead { max-width: 100%; margin-top: 22px; font-size: 16px; }
  .download-panel { padding: 14px; border-radius: 18px; }
  .store-actions { grid-template-columns: 1fr; }
  .store-button { justify-content: center; }
  .device-stage { width: 100%; min-width: 0; min-height: 540px; margin: -18px 0 -85px; transform: scale(.82); }
  .feature-chip-top { right: -52px; }
  .feature-chip-bottom { left: -52px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { scroll-behavior: auto !important; transition: none !important; }
}
