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

:root {
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    --violet-500: #8b5cf6;
    --violet-900: #1e1b4b;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gray-950: #030712;
    --green: #22c55e;
    --yellow: #eab308;
    --radius: 12px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #d1d5db;
    background: var(--gray-950);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(3,7,18,.82);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav-inner {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
    height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.15rem; color: #fff;
}
.logo-icon { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    font-size: .875rem; font-weight: 500; color: var(--gray-400);
    transition: color .2s;
}
.nav-links a:hover { color: #fff; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center;
    padding: 12px 28px; border-radius: 10px;
    font-size: .93rem; font-weight: 600; transition: all .2s; cursor: pointer;
}
.btn-primary { background: var(--indigo-600); color: #fff; }
.btn-primary:hover { background: var(--indigo-500); box-shadow: 0 0 28px rgba(99,102,241,.3); }
.btn-secondary {
    background: rgba(255,255,255,.05); color: #e5e7eb;
    border: 1px solid rgba(255,255,255,.08);
}
.btn-secondary:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }

/* ── Section headers ─────────────────────────────── */
.section-header { text-align: center; max-width: 580px; margin: 0 auto 56px; }
.section-header h2 {
    font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800;
    color: #fff; letter-spacing: -.02em; margin-bottom: 10px;
}
.section-header p { color: var(--gray-400); font-size: 1.02rem; }

/* ── Hero ────────────────────────────────────────── */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 110px 24px 80px; overflow: hidden;
    background:
        radial-gradient(ellipse 70% 55% at 62% 38%, rgba(99,102,241,.10) 0%, transparent 72%),
        radial-gradient(ellipse 50% 50% at 25% 75%, rgba(139,92,246,.06) 0%, transparent 70%),
        var(--gray-950);
}
.hero-inner {
    max-width: 1120px; width: 100%; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.hero-text { max-width: 500px; }
.hero-badge {
    display: inline-block; padding: 5px 14px; border-radius: 100px;
    font-size: .78rem; font-weight: 600; color: var(--indigo-500);
    background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.16);
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2.2rem, 4.8vw, 3.3rem); font-weight: 800;
    line-height: 1.08; color: #fff; letter-spacing: -.03em; margin-bottom: 18px;
}
.hero-sub {
    font-size: 1.02rem; color: var(--gray-400); line-height: 1.72; margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Hero device mockup ──────────────────────────── */
.hero-visual {
    display: flex; align-items: center; justify-content: center;
}
.hero-device {
    position: relative; width: 100%; max-width: 520px;
}
.device-frame {
    position: relative; width: 240px; margin: 0 auto;
    background: #08080f;
    border: 2px solid rgba(255,255,255,.06);
    border-radius: 32px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.03),
        0 24px 80px rgba(0,0,0,.55),
        0 0 60px rgba(99,102,241,.08);
    overflow: hidden;
}
.device-notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 72px; height: 22px; background: #08080f;
    border-radius: 0 0 14px 14px; z-index: 2;
}
.device-screen {
    position: relative; padding: 28px 0 12px;
    background: linear-gradient(180deg, #0c0b1a 0%, #080814 100%);
    min-height: 420px;
}
.screen-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 16px 6px; margin-bottom: 4px;
}
.screen-label {
    font-size: 11px; font-weight: 600; color: rgba(255,255,255,.65);
}
.screen-phase {
    font-size: 9px; font-weight: 600; color: var(--indigo-500);
    background: rgba(99,102,241,.12); padding: 2px 8px; border-radius: 6px;
}
.skeleton-svg { width: 100%; height: auto; display: block; }
.screen-legend {
    display: flex; gap: 14px; justify-content: center;
    padding: 6px 0 4px;
}
.legend-item {
    display: flex; align-items: center; gap: 5px;
    font-size: 8px; color: var(--gray-500);
}
.legend-line {
    display: inline-block; width: 14px; height: 2px; border-radius: 1px;
}
.legend-line.solid { background: #a78bfa; }
.legend-line.dashed {
    background: repeating-linear-gradient(90deg, #22d3ee 0 4px, transparent 4px 7px);
    opacity: .5;
}

/* Angle badges inside phone screen */
.angle-badge {
    position: absolute; padding: 2px 6px; border-radius: 4px;
    font-size: 9px; font-weight: 700; color: var(--c);
    background: rgba(0,0,0,.5); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
    backdrop-filter: blur(4px); line-height: 1;
}

/* ── Floating glass cards ────────────────────────── */
.float-card {
    position: absolute;
    background: rgba(15,15,30,.78);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px; padding: 14px 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.float-card-title {
    font-size: 10px; font-weight: 700; color: rgba(255,255,255,.8);
    margin-bottom: 10px; letter-spacing: .02em;
}
.card-coach {
    top: 20%; right: -40%; width: 168px;
    animation: float-right 5s ease-in-out infinite;
}
.card-angles {
    bottom: 18%; left: -36%; width: 156px;
    animation: float-left 5.5s ease-in-out infinite;
}

/* Coach card items */
.coach-item {
    display: flex; align-items: flex-start; gap: 7px;
    font-size: 9.5px; color: var(--gray-400); line-height: 1.35;
    margin-bottom: 7px;
}
.coach-item:last-child { margin-bottom: 0; }
.coach-dot {
    flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; margin-top: 3px;
}
.coach-item.good .coach-dot { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,.4); }
.coach-item.warn .coach-dot { background: var(--yellow); box-shadow: 0 0 6px rgba(234,179,8,.4); }

/* Angle card rows */
.angle-row {
    display: grid; grid-template-columns: 42px 1fr 28px; gap: 6px; align-items: center;
    margin-bottom: 8px;
}
.angle-row:last-child { margin-bottom: 0; }
.angle-label { font-size: 9px; color: var(--gray-400); }
.angle-bar {
    height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden;
}
.angle-fill { height: 100%; border-radius: 2px; opacity: .65; }
.angle-val { font-size: 9px; font-weight: 700; text-align: right; }

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

/* ── Features ────────────────────────────────────── */
.features { padding: 100px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: var(--radius); padding: 30px 26px;
    transition: all .25s;
}
.feature-card:hover {
    background: rgba(255,255,255,.04);
    border-color: rgba(99,102,241,.18);
    transform: translateY(-2px);
}
.feature-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: rgba(99,102,241,.08);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; padding: 9px;
}
.feature-icon svg { width: 100%; height: 100%; color: var(--indigo-500); }
.feature-card h3 {
    font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 6px;
}
.feature-card p { font-size: .88rem; color: var(--gray-400); line-height: 1.6; }

/* ── How It Works ────────────────────────────────── */
.how-it-works {
    padding: 100px 0;
    background:
        radial-gradient(ellipse 55% 40% at 50% 100%, rgba(99,102,241,.06) 0%, transparent 70%),
        var(--gray-950);
}
.steps { max-width: 580px; margin: 0 auto; }
.step {
    display: flex; gap: 22px; align-items: flex-start;
    position: relative; padding-bottom: 40px;
}
.step:last-child { padding-bottom: 0; }
/* Connector line */
.step:not(:last-child)::after {
    content: ''; position: absolute; left: 19px; top: 44px;
    width: 1.5px; bottom: 0;
    background: linear-gradient(to bottom, rgba(99,102,241,.3), rgba(99,102,241,.06));
}
.step-marker {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--indigo-600), var(--violet-500));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(99,102,241,.22);
    position: relative; z-index: 1;
}
.step-num { font-size: .9rem; font-weight: 800; color: #fff; }
.step-content { padding-top: 2px; }
.step-content h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 5px; }
.step-content p { font-size: .92rem; color: var(--gray-400); line-height: 1.7; }

/* ── Lifts ───────────────────────────────────────── */
.lifts { padding: 100px 0; }
.lift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lift-card {
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: var(--radius); padding: 26px 22px;
    transition: all .25s;
}
.lift-card:hover { border-color: rgba(99,102,241,.18); transform: translateY(-2px); }
.lift-icon { width: 48px; height: 48px; margin-bottom: 12px; border-radius: 12px; }
.lift-card h3 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 5px; }
.lift-card p { font-size: .84rem; color: var(--gray-400); line-height: 1.55; }

/* ── Tech ────────────────────────────────────────── */
.tech { padding: 72px 0; border-top: 1px solid rgba(255,255,255,.05); }
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 52px; }
.tech-item h3 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.tech-item p { font-size: .88rem; color: var(--gray-400); line-height: 1.6; }

/* ── Footer ──────────────────────────────────────── */
.footer { padding: 36px 0; border-top: 1px solid rgba(255,255,255,.05); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-note { font-size: .8rem; color: var(--gray-500); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-text { max-width: 560px; margin: 0 auto; }
    .hero-cta { justify-content: center; }
    .hero-visual { margin-top: 32px; }
    .card-coach { right: -10%; }
    .card-angles { left: -10%; }
}

@media (max-width: 768px) {
    .feature-grid { grid-template-columns: 1fr; }
    .lift-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: 1fr; gap: 28px; }
    .nav-links { display: none; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
    .hero { padding: 96px 24px 56px; }
    .card-coach { display: none; }
    .card-angles { display: none; }
}

@media (max-width: 480px) {
    .lift-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
}
