:root {
  --teal: #17c3b2;
  --teal-dark: #0e9c8f;
  --lime: #93d63f;
  --radius: 16px;

  /* dark theme (default fallback for no-JS/no prefers-color-scheme) */
  --bg: #0a0e17;
  --bg-rgb: 10, 14, 23;
  --bg-alt: #0d1320;
  --surface: #131b2c;
  --border: #223154;
  --text: #eaf0f7;
  --text-dim: #9fb0c9;
  --accent-text: var(--teal);
  --shadow-banner: rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fc;
    --bg-rgb: 247, 249, 252;
    --bg-alt: #eef1f6;
    --surface: #ffffff;
    --border: #dde3ee;
    --text: #101828;
    --text-dim: #5b6472;
    --accent-text: var(--teal-dark);
    --shadow-banner: rgba(15, 23, 42, 0.12);
  }
}

:root[data-theme="dark"] {
  --bg: #0a0e17;
  --bg-rgb: 10, 14, 23;
  --bg-alt: #0d1320;
  --surface: #131b2c;
  --border: #223154;
  --text: #eaf0f7;
  --text-dim: #9fb0c9;
  --accent-text: var(--teal);
  --shadow-banner: rgba(0, 0, 0, 0.5);
}

:root[data-theme="light"] {
  --bg: #f7f9fc;
  --bg-rgb: 247, 249, 252;
  --bg-alt: #eef1f6;
  --surface: #ffffff;
  --border: #dde3ee;
  --text: #101828;
  --text-dim: #5b6472;
  --accent-text: var(--teal-dark);
  --shadow-banner: rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--bg-rgb), 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo { width: 34px; height: 34px; }

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.brand-name em {
  font-style: normal;
  color: var(--accent-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover { border-color: var(--teal); color: var(--teal); }

.theme-toggle svg { width: 18px; height: 18px; }

:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: none; }
html:not([data-theme]) .theme-toggle { display: none; }

/* Hero */
.hero { padding: 72px 0 56px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-copy h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0 0 32px;
  max-width: 480px;
}

.store-badges {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.store-btn:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.store-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.btn-eyebrow {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-dim);
}

.btn-title {
  font-size: 1rem;
  font-weight: 700;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.banner-img {
  max-width: 560px;
  width: 100%;
  filter: drop-shadow(0 30px 60px var(--shadow-banner));
}

/* Features */
.features { padding: 72px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 10px;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-asset { background: #10182b; }

.icon-asset img { width: 30px; height: 30px; }

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* Download CTA */
.download-cta { padding: 80px 0; text-align: center; }

.download-inner { display: flex; flex-direction: column; align-items: center; }

.cta-logo { width: 56px; height: 56px; margin-bottom: 20px; }

.download-cta h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.cta-sub {
  color: var(--text-dim);
  margin: 0 0 28px;
}

.footer-note {
  margin: 28px 0 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .store-badges { justify-content: center; display: inline-flex; }
  .hero-media { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hero-copy h1 { font-size: 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .banner-img { max-width: 380px; }
}
