/* ---------- Base / tokens ---------- */

:root {
  --bg: #f5f5f7;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --surface-border: rgba(0, 0, 0, 0.08);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent-1: #0a84ff;
  --accent-2: #bf5af2;
  --accent-3: #30d158;
  --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.08);
  --header-bg: rgba(245, 245, 247, 0.7);
  --radius-lg: 24px;
  --radius-md: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --bg-elevated: rgba(28, 28, 30, 0.6);
    --surface-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --accent-1: #0a84ff;
    --accent-2: #bf5af2;
    --accent-3: #30d158;
    --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.45);
    --header-bg: rgba(10, 10, 10, 0.6);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.gradient-text {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--surface-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

.brand-emoji {
  font-size: 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: var(--text-secondary);
}

.nav a:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--text-primary);
  color: var(--bg);
  font-weight: 600;
}

.nav-cta:hover {
  opacity: 0.85;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 120px 0 96px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(10, 132, 255, 0.25),
    rgba(191, 90, 242, 0.12) 45%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-emoji {
  font-size: 88px;
  line-height: 1;
  margin-bottom: 24px;
  display: inline-block;
  animation: float 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-emoji {
    animation: none;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 24px;
}

.hero-subtitle {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-secondary);
  min-height: 18px;
  margin: 0;
}

.hero-requirements {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 100px;
  font-size: 17px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-1), #5e5ce6);
  color: #fff;
  box-shadow: 0 10px 30px rgba(10, 132, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(10, 132, 255, 0.45);
}

.btn-large {
  padding: 16px 36px;
  font-size: 18px;
}

/* ---------- Section shared ---------- */

.section-title {
  text-align: center;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  margin: 0 0 56px;
}

.features,
.how,
.download {
  padding: 96px 0;
}

/* ---------- Feature grid ---------- */

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

.feature-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 21px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 15px;
}

/* ---------- How it works ---------- */

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

.step {
  text-align: center;
  padding: 32px 24px;
}

.step-number {
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

.step h3 {
  font-size: 19px;
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Download ---------- */

.download-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-card);
}

.download-emoji {
  font-size: 56px;
  margin-bottom: 16px;
}

.download-card h2 {
  font-size: 32px;
  margin: 0 0 8px;
}

.download-card > p:not(.hero-meta):not(.download-hash) {
  color: var(--text-secondary);
  margin: 0 0 28px;
}

.download-hash {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: var(--text-secondary);
  word-break: break-all;
  margin: 10px 0 0;
  opacity: 0.7;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 32px 0 48px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  border-top: 1px solid var(--surface-border);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 88px 0 72px;
  }
  .nav {
    gap: 16px;
  }
  .features,
  .how,
  .download {
    padding: 64px 0;
  }
  .download-card {
    padding: 48px 24px;
  }
}
