/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #0A0712;
  color: #e0e0e0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* ── Variables ── */
:root {
  --purple: #8B6FD4;
  --purple-deep: #5B3E96;
  --cyan: #5BEAC4;
  --mint: #7EECD8;
  --surface: #13101E;
  --surface-2: #1A1429;
  --text-secondary: #8a8a9a;
}

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(10, 7, 18, 0.8);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; color: #fff;
}
.logo-img { height: 28px; width: auto; }
.nav-cta {
  font-size: 14px; font-weight: 600;
  padding: 10px 24px; border-radius: 100px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #0A0712;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(91, 234, 196, 0.25);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center; gap: 60px;
  padding: 120px 32px 80px;
  max-width: 1200px; margin: 0 auto;
  position: relative;
}
.hero-glow {
  position: absolute; top: 10%; left: 15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139, 111, 212, 0.12) 0%, transparent 70%);
  filter: blur(60px); pointer-events: none;
}
.hero-glow-2 {
  position: absolute; bottom: 10%; right: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(91, 234, 196, 0.08) 0%, transparent 70%);
  filter: blur(60px); pointer-events: none;
}
.hero-content { flex: 1; max-width: 560px; }
.badge {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(139, 111, 212, 0.12);
  border: 1px solid rgba(139, 111, 212, 0.25);
  color: var(--purple);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 900; line-height: 1.1;
  color: #fff; margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px; line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 14px;
  font-size: 15px; font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: #fff; color: #0A0712;
  box-shadow: 0 4px 20px rgba(255,255,255,0.1);
}
.btn-primary:hover { box-shadow: 0 8px 40px rgba(255,255,255,0.15); }
.btn-secondary {
  background: var(--surface-2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.15); }
.btn svg { flex-shrink: 0; }

/* ── Phone Mockup ── */
.hero-phone { flex-shrink: 0; }
.phone-frame {
  width: 280px; height: 580px;
  background: #1A1429;
  border-radius: 40px;
  border: 3px solid rgba(255,255,255,0.08);
  padding: 12px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.03),
    inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.phone-screen {
  width: 100%; height: 100%;
  background: #0A0712;
  border-radius: 30px;
  overflow: hidden;
}
.mock-feed { height: 100%; display: flex; flex-direction: column; }
.mock-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 18px 12px;
}
.mock-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
}
.mock-dot.small { width: 6px; height: 6px; background: rgba(255,255,255,0.2); }
.mock-title {
  font-size: 14px; font-weight: 700; color: #fff;
}
.mock-video {
  flex: 1; position: relative;
  background: linear-gradient(160deg, #1a1035, #0d1a2a);
  margin: 0 10px 10px;
  border-radius: 20px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.mock-climber { font-size: 80px; opacity: 0.7; }
.mock-overlay {
  position: absolute; bottom: 16px; left: 14px;
  display: flex; flex-direction: column; gap: 5px;
}
.mock-user { font-size: 13px; font-weight: 700; color: #fff; }
.mock-gym { font-size: 11px; color: rgba(255,255,255,0.6); }
.mock-grade {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.8);
}
.mock-color {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
}
.mock-color.blue { background: #2196F3; }
.mock-tags { font-size: 11px; font-weight: 700; color: var(--cyan); }
.mock-actions {
  position: absolute; right: 12px; bottom: 16px;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.mock-action {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 18px; color: #fff;
}
.mock-action span { font-size: 10px; font-weight: 600; }

/* ── Features ── */
.features {
  max-width: 1100px; margin: 0 auto;
  padding: 80px 32px 100px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform 0.3s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.08);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon.cyan { background: rgba(91, 234, 196, 0.1); color: var(--cyan); }
.feature-icon.purple { background: rgba(139, 111, 212, 0.1); color: var(--purple); }
.feature-icon.mint { background: rgba(126, 236, 216, 0.1); color: var(--mint); }
.feature-icon.orange { background: rgba(255, 170, 80, 0.1); color: #ffaa50; }
.feature-card h3 {
  font-size: 18px; font-weight: 700; color: #fff;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px; line-height: 1.7;
  color: var(--text-secondary);
}

/* ── Steps ── */
.steps {
  max-width: 1100px; margin: 0 auto;
  padding: 60px 32px 100px;
  text-align: center;
}
.steps h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; color: #fff;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}
.steps-grid {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 20px; flex-wrap: wrap;
}
.step {
  flex: 1; min-width: 200px; max-width: 280px;
  text-align: center;
}
.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #0A0712;
  font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.step h4 {
  font-size: 17px; font-weight: 700; color: #fff;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px; line-height: 1.6;
  color: var(--text-secondary);
}
.step-arrow {
  font-size: 24px; color: rgba(255,255,255,0.15);
  margin-top: 12px; font-weight: 300;
}

/* ── CTA ── */
.cta {
  position: relative;
  text-align: center;
  padding: 100px 32px 120px;
}
.cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(circle, rgba(139, 111, 212, 0.1) 0%, transparent 70%);
  filter: blur(80px); pointer-events: none;
}
.cta-content { position: relative; }
.cta h2 {
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 900; color: #fff;
  margin-bottom: 16px; line-height: 1.15;
  letter-spacing: -0.03em;
}
.cta p {
  font-size: 18px; color: var(--text-secondary);
  margin-bottom: 40px;
}
.cta .hero-actions { justify-content: center; }

/* ── Footer ── */
.footer {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 40px 32px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-brand {
  font-size: 16px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px; color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.2); }

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
    gap: 50px;
  }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-sub { font-size: 16px; }
  .phone-frame { width: 240px; height: 500px; }
  .mock-climber { font-size: 60px; }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
}
@media (max-width: 500px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .phone-frame { width: 220px; height: 460px; }
}
