:root {
  --bg-0: #05060d;
  --bg-1: #0b0d1a;
  --bg-2: #11142a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f5fb;
  --text-muted: rgba(244, 245, 251, 0.62);
  --text-dim: rgba(244, 245, 251, 0.42);
  --accent: #7c5cff;
  --accent-2: #4cc9ff;
  --accent-glow: rgba(124, 92, 255, 0.45);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --max-width: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Inter, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 92, 255, 0.22), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(76, 201, 255, 0.18), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(124, 92, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #05060d 0%, #0a0c1c 60%, #05060d 100%);
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.85), transparent 60%),
    radial-gradient(1px 1px at 22% 72%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 38% 32%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.2px 1.2px at 54% 12%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1px 1px at 67% 48%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 78% 78%, rgba(255, 255, 255, 0.65), transparent 60%),
    radial-gradient(1.4px 1.4px at 86% 22%, rgba(255, 255, 255, 0.95), transparent 60%),
    radial-gradient(1px 1px at 92% 60%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 8% 88%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1px 1px at 44% 92%, rgba(255, 255, 255, 0.6), transparent 60%);
}

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

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

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  position: relative;
  z-index: 5;
  padding: 22px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 6px 20px rgba(0, 0, 0, 0.4);
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 60px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  margin-bottom: 32px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 60px -20px rgba(124, 92, 255, 0.5),
    0 20px 40px rgba(0, 0, 0, 0.55);
}
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 0%, #cfd1ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 520px;
}

.app-store-button {
  display: inline-block;
  background: #ffffff;
  border-radius: 12px;
  padding: 2px;
  line-height: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 12px 30px -10px rgba(255, 255, 255, 0.25);
}
.app-store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(255, 255, 255, 0.35);
}
.app-store-button img {
  display: block;
  height: 56px;
  width: auto;
  border-radius: 10px;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.55), transparent 65%);
  filter: blur(40px);
  z-index: 0;
}
.hero-screen {
  position: relative;
  z-index: 1;
  max-width: 360px;
  border-radius: 36px;
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Sections */
section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .eyebrow {
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  font-weight: 800;
}
.section-head p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  background: var(--surface-strong);
  border-color: rgba(124, 92, 255, 0.35);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(76, 201, 255, 0.18));
  border: 1px solid rgba(124, 92, 255, 0.35);
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}
.feature-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 700;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Screenshots */
.screenshots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.screenshot {
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}
.screenshot:hover {
  transform: translateY(-6px);
}
.screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* CTA */
.cta {
  text-align: center;
  padding: 100px 0 80px;
}
.cta-card {
  position: relative;
  padding: 64px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(76, 201, 255, 0.12));
  border: 1px solid rgba(124, 92, 255, 0.3);
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(124, 92, 255, 0.3), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(76, 201, 255, 0.25), transparent 50%);
  pointer-events: none;
}
.cta-card h2 {
  position: relative;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.cta-card p {
  position: relative;
  color: var(--text-muted);
  margin: 0 0 32px;
  font-size: 17px;
}
.cta-card .app-store-button {
  position: relative;
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  padding: 48px 0 36px;
  border-top: 1px solid var(--border);
  background: rgba(5, 6, 13, 0.6);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--text);
}
.copyright {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 28px;
}

/* Legal pages */
.legal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.legal-main {
  flex: 1;
  padding: 56px 0 96px;
}

.legal-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 44px 56px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.back-link:hover {
  color: var(--text);
  transform: translateX(-2px);
}
.back-link svg {
  width: 14px;
  height: 14px;
}
.legal-article h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.legal-article h2 {
  font-size: 19px;
  margin: 40px 0 14px;
  font-weight: 700;
  color: #fff;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.2px;
}
.legal-article h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.legal-article h3 {
  font-size: 16px;
  margin: 24px 0 10px;
  font-weight: 700;
  color: var(--text);
}
.legal-article p {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 15.5px;
  margin: 0 0 16px;
}
.legal-article strong {
  color: var(--text);
  font-weight: 700;
}
.legal-article a {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-color: rgba(76, 201, 255, 0.4);
  text-underline-offset: 3px;
  word-break: break-word;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
.legal-article a:hover {
  color: #7cd6ff;
  text-decoration-color: var(--accent-2);
}
.legal-article ul,
.legal-article ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15.5px;
}
.legal-article ul li,
.legal-article ol li {
  margin-bottom: 6px;
}
.legal-article .toc {
  margin: 0 0 32px;
  padding: 22px 26px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.legal-article .toc-title {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 12px;
}
.legal-article .toc ol {
  margin: 0;
  padding-left: 22px;
  font-size: 14.5px;
}
.legal-article .toc ol li {
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .legal-article { padding: 32px 22px 40px; }
  .legal-main { padding: 32px 0 64px; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero { padding: 40px 0 30px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-icon { margin-left: auto; margin-right: auto; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-visual { min-height: auto; }
  .hero-visual::before { width: 320px; height: 320px; }
  .hero-screen { max-width: 280px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .screenshots { grid-template-columns: repeat(2, 1fr); }
  section { padding: 60px 0; }
}

@media (max-width: 560px) {
  .nav-links { display: none; }
  .features { grid-template-columns: 1fr; }
  .screenshots { grid-template-columns: 1fr; gap: 14px; }
  .cta-card { padding: 48px 20px; }
  .legal-card { padding: 40px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
