/* ============================================
   SplitJam - Official Website
   Dark theme, purple brand (#6A4CFF)
   ============================================ */

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

:root {
    --bg-primary: #05070D;
    --bg-card: #0D1117;
    --bg-card-hover: #131822;
    --primary: #6A4CFF;
    --primary-light: #8B6CFF;
    --accent: #7354FF;
    --text-primary: #FFFFFF;
    --text-secondary: #8F94A1;
    --text-body: rgba(255, 255, 255, 0.85);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Track colors */
    --vocal: #805CFF;
    --drums: #FF7A2D;
    --bass: #28C3AE;
    --other: #F0BC32;
    --guitar: #E85D8F;
    --piano: #2F9BFF;

    /* Layout */
    --container: 1200px;
    --nav-height: 64px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-primary);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

::selection { background: rgba(106, 76, 255, 0.3); color: #fff; }

/* --- Typography --- */
h1, h2, h3, h4 { color: var(--text-primary); font-weight: 700; line-height: 1.2; }
a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #a88cff; }
img { max-width: 100%; height: auto; }

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(106, 76, 255, 0.35);
}
.btn-primary:hover {
    background: #7b5fff;
    color: #fff;
    box-shadow: 0 6px 28px rgba(106, 76, 255, 0.5);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-hover);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(106, 76, 255, 0.08);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-subtle);
}
.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.04);
}

.btn-sm { padding: 10px 20px; font-size: 14px; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn .btn-lg { padding: 18px 36px; }

/* --- Section --- */
.section {
    padding: 100px 0;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-light);
    background: rgba(106, 76, 255, 0.1);
    border: 1px solid rgba(106, 76, 255, 0.2);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(5, 7, 13, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s;
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.25s;
}

.nav-link:hover {
    color: var(--text-primary);
}
.nav-link:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language toggle button */
.lang-toggle {
    min-width: 64px;
    justify-content: center;
    font-size: 13px !important;
    padding: 8px 14px !important;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Background video: full cover, extra dark, slow zoom */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.12) saturate(0.6);
    transition: filter 0.8s ease;
    will-change: transform;
    animation: heroVideoZoom 20s ease-in-out infinite alternate;
}

@keyframes heroVideoZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* Static image fallback (when video hasn't loaded yet) */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: -40px;
    background-image: url('../images/topbg.jpg');
    background-size: cover;
    background-position: 50% 20%;
    transform: scale(1.18);
    filter: brightness(0.14) saturate(0.5);
    z-index: 0;
    transition: filter 0.8s ease;
}

/* Spotlight glow that follows mouse */
.hero-spotlight {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(
        700px circle at center,
        rgba(160, 140, 255, 0.22) 0%,
        rgba(106, 76, 255, 0.14) 20%,
        rgba(90, 60, 220, 0.06) 40%,
        transparent 60%
    );
}

/* Opacity is controlled by JS (mouseenter/mouseleave) for smoother response */
.hero:hover .hero-spotlight {
    opacity: 1;
}

/* Atmospheric gradient overlays (above video, below spotlight) */
.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        /* Deep vignette from edges */
        radial-gradient(ellipse 80% 70% at 50% 50%, transparent 30%, rgba(5,7,13,0.35) 100%),
        /* Top-to-bottom mood */
        linear-gradient(180deg,
            rgba(5,7,13,0.25) 0%,
            transparent 30%,
            transparent 65%,
            rgba(5,7,13,0.55) 100%
        ),
        /* Purple ambience glow */
        radial-gradient(ellipse 70% 50% at 50% 35%, rgba(106, 76, 255, 0.07), transparent),
        radial-gradient(ellipse 50% 40% at 25% 20%, rgba(128, 92, 255, 0.05), transparent);
    animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(5, 7, 13, 0.35);
    border: 1px solid rgba(106, 76, 255, 0.25);
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
}

.hero-title-line-1 {
    background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-line-2 {
    background: linear-gradient(135deg, var(--primary-light), var(--primary), #805CFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.78);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-btn {
    padding: 18px 36px;
    font-size: 17px;
    border-radius: var(--radius-lg);
}

.hero-btn-secondary {
    padding: 18px 28px;
    font-size: 15px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

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

.hero-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

.hero-waveform {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    z-index: 0;
    pointer-events: none;
}

.hero-wave-svg {
    width: 100%;
    height: 100%;
}

.wave-path {
    animation: waveMove 8s ease-in-out infinite alternate;
    opacity: 0.04;
}

.wave-path-1 { animation-duration: 8s; fill: var(--primary); }
.wave-path-2 { animation-duration: 6s; fill: var(--primary-light); opacity: 0.03; }
.wave-path-3 { animation-duration: 10s; fill: #805CFF; opacity: 0.02; }

@keyframes waveMove {
    0% { transform: translateY(0) scaleY(1); }
    100% { transform: translateY(-15px) scaleY(1.15); }
}

/* ============================================
   Features
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    position: relative;
    background: linear-gradient(135deg, var(--bg-card), rgba(255,255,255,0.02));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color, var(--primary));
    opacity: 0.6;
    transition: opacity 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-color, var(--primary));
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-card-icon {
    transform: scale(1.08);
}

.feature-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.feature-tag {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================
   App Preview / Showcase
   ============================================ */
.section-preview {
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(106, 76, 255, 0.03), transparent);
    overflow: hidden;
}

/* ---- Screenshot Showcase (stacked) ---- */
.screenshot-showcase {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transition: transform 0.4s ease;
}

.screenshot-showcase:hover {
    transform: scale(1.008);
}

/* Purple glow behind desktop screenshot */
.screenshot-showcase::before {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(106, 76, 255, 0.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Desktop: full width, large */
.showcase-desktop {
    width: 100%;
    max-width: 820px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.45),
        0 0 60px rgba(106, 76, 255, 0.04);
    background: var(--bg-card);
    position: relative;
    z-index: 1;
}

.showcase-desktop-img {
    width: 100%;
    display: block;
}

/* iOS: overlays bottom-right of desktop */
.showcase-ios {
    position: absolute;
    z-index: 2;
    right: -24px;
    bottom: -24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

.showcase-ios .mockup-frame {
    position: relative;
    width: 200px;
    height: 420px;
    background: linear-gradient(145deg, #1e1e32, #14142a);
    border-radius: 32px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.showcase-ios .mockup-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: #05070D;
    border-radius: 0 0 12px 12px;
    z-index: 10;
}

.showcase-ios .mockup-notch::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: rgba(106, 76, 255, 0.15);
    border-radius: 50%;
    border: 1px solid rgba(106, 76, 255, 0.2);
}

.showcase-ios .mockup-screen {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: #05070D;
}

.showcase-ios .mockup-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-ios .mockup-reflection {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 36%;
    height: 22%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
    border-radius: 16px;
    pointer-events: none;
}

.showcase-ios-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Feature items below showcase */
.preview-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 56px auto 0;
}

.preview-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 20px 20px;
    background: linear-gradient(135deg, var(--bg-card), rgba(255,255,255,0.015));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.preview-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--dot-color, var(--primary));
    opacity: 0.5;
    transition: opacity 0.3s;
}

.preview-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.preview-item:hover::before {
    opacity: 1;
}

.preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}

.preview-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.preview-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.preview-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---- Responsive: Showcase ---- */
@media (max-width: 900px) {
    .showcase-desktop {
        max-width: 600px;
    }
    .showcase-ios .mockup-frame {
        width: 160px;
        height: 340px;
        border-radius: 26px;
        padding: 8px;
    }
    .showcase-ios .mockup-screen {
        border-radius: 18px;
    }
    .showcase-ios .mockup-notch {
        width: 64px;
        height: 16px;
    }
}

@media (max-width: 700px) {
    .showcase-ios {
        right: -10px;
        bottom: -10px;
    }
    .showcase-ios .mockup-frame {
        width: 130px;
        height: 280px;
        border-radius: 20px;
        padding: 6px;
    }
    .showcase-ios .mockup-screen {
        border-radius: 14px;
    }
    .showcase-ios .mockup-notch {
        width: 52px;
        height: 14px;
        border-radius: 0 0 8px 8px;
    }
}

@media (max-width: 500px) {
    .showcase-desktop {
        max-width: 100%;
        border-radius: var(--radius-sm);
    }
    .showcase-ios .mockup-frame {
        width: 100px;
        height: 210px;
        border-radius: 16px;
        padding: 5px;
        border-width: 2px;
    }
    .showcase-ios .mockup-screen {
        border-radius: 11px;
    }
    .showcase-ios .mockup-notch {
        width: 40px;
        height: 11px;
        top: 8px;
    }
    .showcase-ios .mockup-reflection {
        display: none;
    }
}

/* ---- Responsive: Features grid ---- */
@media (max-width: 800px) {
    .preview-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .preview-features {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Stem Colors
   ============================================ */
.section-stems {
    background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(106, 76, 255, 0.04), transparent);
}

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

.stem-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.stem-item:hover {
    border-color: var(--stem-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.stem-visual {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid;
    margin-bottom: 4px;
}

.stem-wave {
    width: 100%;
    height: 40px;
}

.stem-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--stem-color);
}

.stem-key {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stems-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ============================================
   How It Works
   ============================================ */
.section-steps {
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(106, 76, 255, 0.03), transparent);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.step:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 260px;
}

.step-arrow {
    display: flex;
    align-items: center;
    padding: 32px 16px 0;
    flex-shrink: 0;
    color: var(--text-secondary);
    opacity: 0.4;
}

/* ============================================
   Why SplitJam
   ============================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-card {
    position: relative;
    background: linear-gradient(135deg, var(--bg-card), rgba(255,255,255,0.02));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.why-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.why-card:hover .why-card-bg {
    opacity: 0.6;
}

.why-card-icon {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.why-card:hover .why-card-icon {
    transform: scale(1.08);
}

.why-card-title {
    position: relative;
    z-index: 1;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.why-card-desc {
    position: relative;
    z-index: 1;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Pricing
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: linear-gradient(135deg, var(--bg-card), rgba(255,255,255,0.02));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: relative;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.pricing-pro {
    border-color: rgba(106, 76, 255, 0.3);
    background: linear-gradient(135deg, rgba(106,76,255,0.04), var(--bg-card));
    box-shadow:
        0 0 40px rgba(106, 76, 255, 0.08),
        0 0 80px rgba(106, 76, 255, 0.04);
}

.pricing-pro:hover {
    border-color: rgba(106, 76, 255, 0.5);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.25),
        0 0 60px rgba(106, 76, 255, 0.12);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--primary), #9370FF);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(106, 76, 255, 0.35);
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    opacity: 0.7;
}

.pricing-pro .pricing-name {
    opacity: 1;
    color: var(--primary-light);
}

.pricing-price {
    margin-bottom: 12px;
}

.pricing-amount {
    font-size: 42px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.pricing-period {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 4px;
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.5;
}

.pricing-feature svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-feature-disabled {
    color: rgba(143, 148, 161, 0.5);
}

.pricing-btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 16px;
    border-radius: var(--radius-md);
}


/* Free pricing block */
.pricing-free-block {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.pricing-perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.pricing-perk {
    background: linear-gradient(135deg, var(--bg-card), rgba(255,255,255,0.02));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-perk:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.pricing-perk-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(106,76,255,0.15), rgba(106,76,255,0.05));
    color: var(--primary-light);
    box-shadow: 0 0 24px rgba(106, 76, 255, 0.12);
}

.pricing-perk-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.pricing-perk-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pricing-cta {
    justify-content: center;
}

/* ============================================
   FAQ
   ============================================ */
.section-faq {
    background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(106, 76, 255, 0.03), transparent);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: linear-gradient(135deg, var(--bg-card), rgba(255,255,255,0.015));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-item.active {
    border-color: rgba(106, 76, 255, 0.25);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-item.active .faq-question {
    color: var(--primary-light);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   CTA
   ============================================ */
.section-cta {
    padding: 80px 0;
}

.cta-card {
    position: relative;
    background: linear-gradient(135deg, rgba(106, 76, 255, 0.1), rgba(128, 92, 255, 0.04));
    border: 1px solid rgba(106, 76, 255, 0.2);
    border-radius: 28px;
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s ease;
}

.cta-card:hover {
    border-color: rgba(106, 76, 255, 0.35);
    box-shadow: 0 0 60px rgba(106, 76, 255, 0.06);
}

.cta-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(106, 76, 255, 0.10), transparent 60%);
    border-radius: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    animation: ctaGlow 6s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
    0% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

.cta-title {
    position: relative;
    z-index: 1;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-desc {
    position: relative;
    z-index: 1;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-note {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-logo-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-link {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================
   Scroll Animation (Intersection Observer)
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
    .step { max-width: 240px; padding: 24px 16px; }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .section-header { margin-bottom: 40px; }

    /* Nav */
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(5, 7, 13, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border-subtle);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .nav-link { font-size: 16px; }

    /* Hero */
    .hero { min-height: 90vh; padding: 100px 20px 60px; }
    .hero-stats { gap: 20px; }
    .hero-stat-number { font-size: 22px; }

    /* Features */
    .features-grid { grid-template-columns: 1fr; }

    /* Stems */
    .stems-grid { grid-template-columns: repeat(2, 1fr); }

    /* Steps */
    .steps {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    .step {
        max-width: 360px;
        width: 100%;
        padding: 28px 24px;
    }
    .step-arrow {
        transform: rotate(90deg);
        padding: 0;
    }
    .step-desc { max-width: 100%; }

    /* Why */
    .why-grid { grid-template-columns: 1fr; }

    /* Pricing */
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .pricing-perks { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto 40px; }
    .pricing-perk { padding: 28px 20px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .stems-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    .hero-btn, .hero-btn-secondary { width: 100%; justify-content: center; }
    .cta-card { padding: 40px 24px; border-radius: 20px; }
    .pricing-card { padding: 32px 20px; }
    .pricing-perk { padding: 24px 16px; }
}

/* ============================================
   Smooth Reveal for sections
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
