/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-top:       #0f2027;
  --bg-mid:       #203a43;
  --bg-bot:       #2c5364;
  --ice:          #5ac8fa;
  --green:        #30d158;
  --yellow:       #ffd60a;
  --card-bg:      rgba(255,255,255,0.07);
  --card-border:  rgba(255,255,255,0.10);
  --text:         #ffffff;
  --text-dim:     rgba(255,255,255,0.55);
  --text-dimmer:  rgba(255,255,255,0.30);
  --radius-card:  20px;
  --radius-pill:  100px;
  --nav-height:   64px;
}

html { scroll-behavior: smooth; }

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

a { color: var(--ice); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Nav ───────────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(15,32,39,0.80);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--card-border);
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.nav-app-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 48px) 24px 80px;
  background: linear-gradient(160deg, var(--bg-top) 0%, var(--bg-mid) 50%, var(--bg-bot) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(90,200,250,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(90,200,250,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 640px;
  position: relative;
}

.hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  background: linear-gradient(145deg, #1a3a4a, #0f2535);
  border: 1px solid rgba(90,200,250,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 3.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(90,200,250,0.15);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 40%, var(--ice));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-dim);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: #000;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.btn-appstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  text-decoration: none;
}

.btn-appstore svg { flex-shrink: 0; }

.hero-sub {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-dimmer);
}

/* ─── Screenshot ────────────────────────────────────────────────────────────── */
.screenshot-section {
  background: linear-gradient(180deg, var(--bg-bot) 0%, #1a2f38 100%);
  padding: 80px 24px;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.phone-frame {
  width: 280px;
  height: 608px;
  border-radius: 44px;
  border: 2px solid rgba(255,255,255,0.15);
  background: #0a1a22;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.05),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-frame .screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.85rem;
  background: linear-gradient(160deg, #0f2027, #203a43, #2c5364);
}

.phone-frame .screenshot-placeholder .ph-icon {
  font-size: 2.5rem;
  color: var(--ice);
  opacity: 0.5;
}

/* ─── Features ──────────────────────────────────────────────────────────────── */
.features-section {
  background: #131e24;
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

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

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(90,200,250,0.25);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ─── How It Works ──────────────────────────────────────────────────────────── */
.how-section {
  background: linear-gradient(180deg, #131e24 0%, var(--bg-top) 100%);
  padding: 100px 24px;
}

.steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(90,200,250,0.15);
  border: 1px solid rgba(90,200,250,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ice);
  margin-top: 2px;
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
footer {
  background: var(--bg-top);
  border-top: 1px solid var(--card-border);
  padding: 48px 32px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dimmer);
}

/* ─── Legal pages ───────────────────────────────────────────────────────────── */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 60px) 24px 80px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal-page .effective {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 36px 0 10px;
  color: var(--ice);
}

.legal-page p, .legal-page li {
  font-size: 0.925rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 20px;
}

.legal-page li { margin-bottom: 6px; }

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 18px; }
  .features-grid { grid-template-columns: 1fr; }
  footer { padding: 40px 20px; }
  .footer-links { gap: 16px; }
}
