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

:root {
    --bg: #000;
    --text: #fff;
    --text-dim: rgba(255,255,255,0.75);
    --text-muted: rgba(255,255,255,0.5);
    --accent: #818cf8;
    --accent-2: #a78bfa;
    --border: rgba(255,255,255,0.1);
    --card-bg: rgba(255,255,255,0.04);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

/* Section Labels */
.section-label {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 60px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 32px;
    animation: fadeInDown 0.6s ease;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
    font-size: clamp(42px, 8vw, 80px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-desc {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-desc strong {
    color: var(--text);
    font-weight: 600;
}

/* Replaced Apps */
.replaced-apps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.25s both;
}

.replaced-app {
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: var(--accent);
}

.checkmark {
    color: var(--accent);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text);
    color: var(--bg);
    padding: 18px 36px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
}

.btn-primary.large {
    padding: 24px 48px;
    font-size: 20px;
}

.apple-icon {
    width: 22px;
    height: 22px;
}

.cta-sub {
    font-size: 14px;
    color: var(--text-muted);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
    animation: fadeIn 0.6s ease 0.5s both;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* ========== 3D MACBOOK ========== */
.macbook-section {
    min-height: 300vh;
    position: relative;
}

#macbook-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
}

#macbook-canvas {
    width: 100%;
    height: 100%;
}

.macbook-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

.macbook-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== PROBLEM ========== */
.problem {
    padding: 140px 0 100px;
}

.problem .section-title {
    color: var(--text);
}

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

.problem-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.2);
}

.problem-stat {
    font-size: clamp(48px, 7vw, 72px);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.problem-card p {
    font-size: 16px;
    color: var(--text-dim);
}

.problem-bottom {
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
}

.problem-bottom strong {
    color: var(--text);
}

/* ========== SOLUTION ========== */
.solution {
    padding: 100px 0;
    text-align: center;
}

.solution-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.solution-intro h2 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.solution-intro p {
    font-size: 20px;
    color: var(--text-dim);
    line-height: 1.6;
}

kbd {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    margin: 0 4px;
}

/* ========== MODULES ========== */
.modules {
    padding: 100px 0 140px;
}

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

.module-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 24px;
    transition: all 0.3s ease;
}

.module-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.2);
}

.module-card.featured {
    border-color: rgba(129, 140, 248, 0.3);
    background: rgba(129, 140, 248, 0.05);
}

.module-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.module-emoji {
    font-size: 32px;
}

.module-saves,
.module-replaces-tag {
    font-size: 10px;
    color: var(--accent);
    background: rgba(129, 140, 248, 0.15);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.module-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.module-card ul {
    list-style: none;
}

.module-card li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
}

.module-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
}

/* ========== LAUNCHER ========== */
.launcher {
    padding: 120px 0;
    background: var(--card-bg);
}

.launcher-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.launcher-content h2 {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.launcher-sub {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.launcher-features {
    list-style: none;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.launcher-features li {
    font-size: 16px;
    color: var(--text-dim);
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.launcher-features strong {
    color: var(--text);
    font-weight: 600;
}

/* ========== LIVE ACTIVITIES ========== */
.live-activities {
    padding: 120px 0;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.activity-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.15);
}

.activity-emoji {
    font-size: 40px;
    display: block;
    margin-bottom: 16px;
}

.activity-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.activity-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========== WHY ========== */
.why {
    padding: 140px 0;
    background: var(--card-bg);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.why-card {
    text-align: center;
    padding: 20px;
}

.why-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.why-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.why-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========== FINAL CTA ========== */
.final-cta {
    padding: 140px 0;
    text-align: center;
}

.final-cta h2 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.final-sub {
    font-size: 22px;
    color: var(--text-dim);
    margin-bottom: 48px;
}

.final-value-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 40px;
    max-width: 600px;
    margin: 0 auto 48px;
    text-align: left;
}

.fv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-dim);
    padding: 8px 0;
}

.fv-item .checkmark {
    color: var(--accent);
    font-size: 18px;
}

.final-cta .cta-sub {
    display: block;
    margin-top: 20px;
}

/* ========== FOOTER ========== */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

footer p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll animations */
.problem-card,
.module-card,
.activity-card,
.why-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.problem-card.visible,
.module-card.visible,
.activity-card.visible,
.why-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger */
.problem-card:nth-child(1) { transition-delay: 0s; }
.problem-card:nth-child(2) { transition-delay: 0.1s; }
.problem-card:nth-child(3) { transition-delay: 0.2s; }

.module-card:nth-child(1) { transition-delay: 0s; }
.module-card:nth-child(2) { transition-delay: 0.05s; }
.module-card:nth-child(3) { transition-delay: 0.1s; }
.module-card:nth-child(4) { transition-delay: 0.15s; }
.module-card:nth-child(5) { transition-delay: 0.2s; }
.module-card:nth-child(6) { transition-delay: 0.25s; }
.module-card:nth-child(7) { transition-delay: 0.3s; }
.module-card:nth-child(8) { transition-delay: 0.35s; }
.module-card:nth-child(9) { transition-delay: 0.4s; }
.module-card:nth-child(10) { transition-delay: 0.45s; }
.module-card:nth-child(11) { transition-delay: 0.5s; }

.activity-card:nth-child(1) { transition-delay: 0s; }
.activity-card:nth-child(2) { transition-delay: 0.1s; }
.activity-card:nth-child(3) { transition-delay: 0.2s; }

.why-card:nth-child(1) { transition-delay: 0s; }
.why-card:nth-child(2) { transition-delay: 0.1s; }
.why-card:nth-child(3) { transition-delay: 0.2s; }
.why-card:nth-child(4) { transition-delay: 0.3s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .launcher-features {
        grid-template-columns: 1fr;
    }
    .final-value-stack {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero { padding: 80px 24px 60px; }
    .hero-title { font-size: clamp(36px, 10vw, 56px); }
    .problem-grid { grid-template-columns: 1fr; }
    .modules-grid { grid-template-columns: 1fr; }
    .activities-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; gap: 40px; }
    .scroll-indicator { display: none; }
    .value-stack { flex-direction: column; align-items: center; }
    .total-savings { flex-direction: column; gap: 8px; }
    .total-savings .savings-amount,
    .total-savings .savings-yours { font-size: 28px; }
}
