:root {
  --bg: #f5f7fb;
  --surface: rgba(255,255,255,.82);
  --surface-solid: #ffffff;
  --text: #111827;
  --muted: #5b6475;
  --line: rgba(17,24,39,.09);
  --primary: #1463ff;
  --primary-2: #6d4aff;
  --shadow: 0 20px 70px rgba(25, 38, 78, .12);
  --radius: 26px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% -5%, rgba(69, 217, 255, .22), transparent 32%),
    radial-gradient(circle at 95% 2%, rgba(109, 74, 255, .18), transparent 34%),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: rgba(245,247,251,.76);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #34c9f5, var(--primary) 55%, var(--primary-2));
  box-shadow: 0 10px 24px rgba(20,99,255,.25);
}

.brand-mark svg { width: 22px; height: 22px; }
.brand-mark-image { padding: 0; overflow: hidden; background: transparent; box-shadow: 0 10px 24px rgba(20,99,255,.18); }
.brand-mark-image img { width: 100%; height: 100%; display: block; object-fit: cover; }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 11px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.72); }

.hero { padding: 92px 0 58px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); align-items: center; gap: 70px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(20,99,255,.13);
  border-radius: 999px;
  color: #1856c9;
  background: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dot { width: 7px; height: 7px; border-radius: 99px; background: #28c76f; box-shadow: 0 0 0 5px rgba(40,199,111,.12); }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.045em; }
h1 { margin-top: 22px; font-size: clamp(44px, 7vw, 82px); max-width: 850px; }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 21px; letter-spacing: -.025em; }
.lead { margin: 24px 0 0; max-width: 720px; color: var(--muted); font-size: clamp(18px, 2vw, 21px); }

.actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 13px 30px rgba(42,85,230,.25); }
.btn-secondary { background: rgba(255,255,255,.72); border-color: var(--line); box-shadow: 0 10px 30px rgba(28,42,82,.07); }
.btn svg { width: 17px; height: 17px; }

.app-showcase { min-height: 480px; position: relative; display: grid; place-items: center; }
.app-card { width: min(100%, 360px); padding: 28px; border-radius: 34px; border: 1px solid rgba(255,255,255,.9); background: linear-gradient(155deg, rgba(255,255,255,.91), rgba(239,245,255,.82)); box-shadow: var(--shadow); text-align: center; position: relative; overflow: hidden; }
.app-card::before, .app-card::after { content: ""; position: absolute; border-radius: 999px; }
.app-card::before { width: 210px; height: 210px; right: -90px; top: -60px; background: rgba(86,201,255,.20); }
.app-card::after { width: 180px; height: 180px; left: -80px; bottom: -85px; background: rgba(108,72,255,.18); }
.app-icon-large { width: 160px; height: 160px; border-radius: 35px; display: block; margin: 0 auto 18px; object-fit: cover; box-shadow: 0 25px 55px rgba(17,35,79,.28); position: relative; z-index: 1; }
.app-meta { position: relative; z-index: 1; }
.app-name { font-size: 21px; font-weight: 800; line-height: 1.18; letter-spacing: -.03em; }
.app-sub { margin-top: 8px; color: var(--muted); font-size: 15px; }
.store-link { margin-top: 18px; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 12px; text-decoration: none; font-size: 14px; font-weight: 760; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 13px 30px rgba(42,85,230,.2); position: relative; z-index: 1; }

.section { padding: 70px 0; }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head p { color: var(--muted); margin: 15px 0 0; font-size: 17px; }

.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.card {
  padding: 25px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 16px 50px rgba(30,44,85,.07);
}
.icon-box { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, rgba(52,201,245,.18), rgba(109,74,255,.14)); color: var(--primary); }
.icon-box svg { width: 22px; height: 22px; }
.card h3 { margin-top: 22px; }
.card p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.platform { padding: 11px 14px; border-radius: 999px; background: rgba(255,255,255,.74); border: 1px solid var(--line); font-size: 13px; font-weight: 720; color: #343d50; }

.legal-hero { padding: 70px 0 38px; }
.legal-hero h1 { font-size: clamp(40px, 7vw, 66px); }
.meta { margin-top: 16px; color: var(--muted); font-size: 14px; }

.legal-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 34px; align-items: start; padding: 20px 0 88px; }
.toc { position: sticky; top: 100px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.65); }
.toc-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #7a8495; margin-bottom: 10px; }
.toc a { display: block; padding: 7px 8px; color: var(--muted); text-decoration: none; font-size: 13px; border-radius: 9px; }
.toc a:hover { color: var(--text); background: rgba(255,255,255,.86); }

.legal-content { min-width: 0; }
.legal-card { padding: clamp(24px, 5vw, 54px); border-radius: 30px; border: 1px solid var(--line); background: rgba(255,255,255,.83); box-shadow: var(--shadow); }
.legal-card section { scroll-margin-top: 106px; }
.legal-card section + section { margin-top: 42px; padding-top: 42px; border-top: 1px solid var(--line); }
.legal-card h2 { font-size: 27px; margin-bottom: 14px; }
.legal-card h3 { margin-top: 24px; font-size: 18px; }
.legal-card p, .legal-card li { color: #454f61; }
.legal-card ul { padding-left: 21px; }
.legal-card li + li { margin-top: 8px; }
.notice { margin: 22px 0; padding: 18px 19px; border-radius: 17px; background: #f1f6ff; border: 1px solid #dce9ff; color: #25476f; }
.notice strong { color: #173d70; }
.inline-link { color: #185bd8; font-weight: 650; text-underline-offset: 3px; }

.contact-band { padding: 64px 0 80px; }
.contact-box { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px; border-radius: 28px; color: #fff; background: linear-gradient(135deg,#1463ff,#6846e8); box-shadow: 0 28px 70px rgba(42,76,209,.28); }
.contact-box p { margin: 8px 0 0; opacity: .8; }
.contact-box .btn { color: #17213a; background: #fff; }

footer { border-top: 1px solid var(--line); padding: 26px 0 38px; color: var(--muted); font-size: 13px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; gap: 17px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

.mobile-menu { display: none; }

@media (max-width: 900px) {
  .hero { padding-top: 65px; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .app-showcase { min-height: 420px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; gap: 4px; overflow-x: auto; white-space: nowrap; }
  .toc-title { display: none; }
  .toc a { flex: 0 0 auto; }
}

@media (max-width: 640px) {
  .wrap { width: min(calc(100% - 24px), var(--max)); }
  .nav { min-height: 66px; }
  .brand span:last-child { display: none; }
  .nav-links a:not(.contact-nav) { display: none; }
  h1 { font-size: 44px; }
  .hero { padding-top: 50px; }
  .lead { font-size: 17px; }
  .feature-grid { grid-template-columns: 1fr; }
  .app-showcase { min-height: 360px; }
  .app-card { width: 100%; border-radius: 28px; padding: 24px; }
  .app-icon-large { width: 132px; height: 132px; border-radius: 30px; }
  .legal-hero { padding-top: 48px; }
  .legal-card { border-radius: 24px; }
  .contact-box, .footer-row { align-items: flex-start; flex-direction: column; }
  .contact-box .btn { width: 100%; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: rgba(17,24,42,.78);
    --surface-solid: #11182a;
    --text: #f3f6fb;
    --muted: #a4aec0;
    --line: rgba(255,255,255,.09);
    --shadow: 0 24px 75px rgba(0,0,0,.34);
  }
  body { background: radial-gradient(circle at 5% -5%,rgba(0,162,255,.16),transparent 30%), radial-gradient(circle at 95% 0,rgba(99,72,255,.15),transparent 32%),var(--bg); }
  .site-header { background: rgba(11,16,32,.73); }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(255,255,255,.06); }
  .eyebrow { color: #8bc1ff; background: rgba(255,255,255,.05); border-color: rgba(110,171,255,.2); }
  .btn-secondary, .platform, .toc { background: rgba(255,255,255,.05); }
  .app-card { background: linear-gradient(155deg, rgba(27,36,59,.93), rgba(11,17,34,.9)); border-color: rgba(255,255,255,.08); }
  .app-sub { color: #a4aec0; }
  .card, .legal-card { background: rgba(17,24,42,.82); }
  .card p, .legal-card p, .legal-card li { color: #b2bbca; }
  .platform { color: #d7ddeb; }
  .notice { background: rgba(20,99,255,.13); border-color: rgba(82,143,255,.22); color: #bad4ff; }
  .notice strong { color: #e7f0ff; }
  .toc a:hover { background: rgba(255,255,255,.05); }
}
