:root {
  --bg:        #0a0e16;
  --bg-soft:   #111726;
  --card:      #141b2c;
  --border:    #243049;
  --text:      #eef2fb;
  --muted:     #9aa7c2;
  --blue:      #2f93ff;
  --blue-deep: #1463c9;
  --radius:    16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 48px);
  background: rgba(10, 14, 22, 0.72);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 18px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px; /* rounded "app icon" corners */
  background: #0b0f1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.brand-icon img { display: block; width: 84%; height: 84%; object-fit: contain; }

.header-cta {
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
}
.header-cta:hover { background: var(--blue-deep); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(56px, 11vw, 120px) 24px clamp(48px, 8vw, 88px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  max-width: 130vw;
  height: 760px;
  background: radial-gradient(circle, rgba(47, 147, 255, 0.28) 0%, rgba(47, 147, 255, 0) 62%);
  pointer-events: none;
  z-index: 0;
}

.hero > *:not(.hero-glow) { position: relative; z-index: 1; }

.app-icon {
  width: clamp(128px, 21vw, 176px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 22.5%; /* iOS "squircle" app-icon corner ratio */
  overflow: hidden;
  background: #0b0f1a; /* fills any transparent edge of the source PNG */
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.6),
    0 4px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04); /* nudge to cover the PNG's own rounded edge */
}

.hero h1 {
  margin: 26px auto 0;
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.08;
  max-width: 16ch;
}

.lead {
  margin: 18px auto 0;
  max-width: 46ch;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
}

.download { margin-top: 34px; }

.app-store-link {
  display: inline-block;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.app-store-link:hover { transform: translateY(-2px); filter: brightness(1.08); }
.app-store-link img { display: block; height: 56px; width: auto; }

.store-note {
  margin: 16px auto 0;
  font-size: 13px;
  color: var(--muted);
  opacity: 0.85;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(24px, 6vw, 64px) clamp(20px, 5vw, 48px);
}

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

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--blue); }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--blue), var(--blue-deep));
  font-size: 22px;
  margin-bottom: 16px;
}

.feature h2 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  max-width: 1040px;
  margin: 0 auto clamp(40px, 8vw, 88px);
  padding: clamp(36px, 6vw, 56px) 24px;
  background: linear-gradient(160deg, var(--bg-soft), #0c1322);
  border: 1px solid var(--border);
  border-radius: 24px;
}
.cta-band h2 {
  margin: 0 auto 14px;
  max-width: 18ch;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.cta-band .cta-sub {
  max-width: 52ch;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px 36px;
  text-align: center;
}

.footer-links {
  font-size: 14px;
  color: var(--muted);
}
.footer-links a { transition: color 0.15s ease; }
.footer-links a:hover { color: var(--text); }
.footer-links .dot { margin: 0 10px; opacity: 0.5; }

.copyright {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  opacity: 0.8;
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 72px) clamp(20px, 5vw, 32px) 64px;
}
.legal a.back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.legal a.back:hover { color: var(--text); }
.legal h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; }
.legal a:not(.back) { color: var(--blue); }
.legal a:not(.back):hover { text-decoration: underline; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }

/* Contact button (overrides generic .legal link styling) */
.legal a.contact-btn,
.legal a.contact-btn:hover {
  display: inline-block;
  margin: 6px 0 8px;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.legal a.contact-btn:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}
