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

:root {
    --accent: #bc82eb;
    --accent-dim: rgba(188, 130, 235, 0.15);
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-2: #1e1e1e;
    --text: #f0f0f0;
    --text-dim: #888;
    --rainbow-1: #ff6b6b;
    --rainbow-2: #ffd93d;
    --rainbow-3: #6bcb77;
    --rainbow-4: #4ecdc4;
    --rainbow-5: #bc82eb;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* === Decorative Route Lines === */
.route-line {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 400px;
    pointer-events: none;
    z-index: 0;
}

.route-line-1 {
    left: -50px;
}

.route-line-2 {
    right: -50px;
}

/* === Hero === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero-content {
    max-width: 600px;
}

.app-icon {
    width: 256px;
    height: 256px;
    border-radius: 28px;
    box-shadow: 0 8px 40px rgba(188, 130, 235, 0.3);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    color: var(--accent);
    margin-top: 0.5rem;
    opacity: 0.8;
}

.app-store-badge {
    display: inline-block;
    margin-top: 2rem;
    text-decoration: none;
}

.badge-placeholder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #000;
    padding: 0.6rem 0.4rem 0.6rem 0rem;
    border-radius: 10px;
    transition: transform 0.2s;
}

.badge-placeholder:hover {
    transform: scale(1.05);
}

.badge-small {
    display: block;
    font-size: 0.6rem;
    line-height: 1;
    text-align: left;
}

.badge-large {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

/* === Pitch === */
.pitch {
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem 1rem;
    max-width: 760px;
    margin: 0 auto;
}

.pitch-center {
    text-align: center;
}

.pitch-card {
    background: linear-gradient(135deg, rgba(188, 130, 235, 0.08), rgba(78, 205, 196, 0.05));
    border: 1px solid var(--surface-2);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
}

.pitch-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.pitch-card p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.65;
}

.pitch-tagline {
    margin-top: 1rem;
    color: var(--accent) !important;
    font-weight: 600;
}

/* === Features === */
.features {
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

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

.feature {
    background: var(--surface);
    border: 1px solid var(--surface-2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: border-color 0.3s;
}

.feature:hover {
    border-color: var(--accent);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* === Device Preview === */
.preview {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
    text-align: center;
}

.preview h2, .how-it-works h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.device-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

/* Watch frame */
.watch-frame {
    position: relative;
}

.watch-bezel {
    width: 210px;
    height: 256px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    border: 2px solid #333;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.watch-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.watch-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watch-crown {
    position: absolute;
    right: -6px;
    top: 35%;
    width: 6px;
    height: 24px;
    background: #333;
    border-radius: 0 3px 3px 0;
}

/* Phone frame */
.phone-frame {
    width: 220px;
    height: 440px;
    background: #1a1a1a;
    border-radius: 32px;
    padding: 8px 8px 8px 8px;
    border: 2px solid #333;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    position: relative;
    display: flex;
    flex-direction: column;
}

.phone-notch {
    width: 60px;
    height: 16px;
    background: #1a1a1a;
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    transform: translateY(2px);
}

.phone-screen {
    flex: 1;
    background: #000;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -16px;
    overflow: hidden;
}

.phone-screen img {
    width: 100%;
    object-fit: contain;
    object-position: top;
}

/* Placeholder content for device screens */
.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.placeholder-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.placeholder-detail {
    font-size: 0.6rem;
    color: var(--text-dim);
    line-height: 1.4;
}

/* === How It Works === */
.how-it-works {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.step {
    background: var(--surface);
    border: 1px solid var(--surface-2);
    border-radius: 16px;
    padding: 1.25rem 1rem;
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
    transition: border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.step:hover {
    border-color: var(--accent);
}

.step-number {
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
    margin: 0 auto 0.75rem;
}

.step h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.step p {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.step-arrow {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    align-self: center;
    border-right: 2px solid var(--text-dim);
    border-top: 2px solid var(--text-dim);
    transform: rotate(45deg);
    opacity: 0.5;
}

/* === Footer === */
footer {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
    border-top: 1px solid var(--surface-2);
    margin-top: 2rem;
    background: var(--surface);
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-note {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-free {
    font-size: 0.8rem;
    color: var(--accent);
    opacity: 0.6;
    margin-top: 0.25rem;
}

/* === Responsive === */
@media (max-width: 860px) {
    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        width: 100%;
        max-width: 320px;
        flex: 0 0 auto;
    }

    .step-arrow {
        /* Rotate the chevron to point down for the vertical flow */
        transform: rotate(135deg);
        margin: 0.25rem 0;
    }
}

@media (max-width: 700px) {
    .hero {
        padding: 1.5rem 1.25rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .app-icon {
        width: 160px;
        height: 160px;
        border-radius: 22px;
        margin-bottom: 1rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .features,
    .preview,
    .how-it-works {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .preview h2, .how-it-works h2 {
        font-size: 1.6rem;
        margin-bottom: 1.75rem;
    }

    .pitch {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .pitch-card {
        padding: 1.5rem 1.25rem;
    }

    .pitch-card h2 {
        font-size: 1.35rem;
    }

    .device-row {
        gap: 1.5rem;
    }

    .watch-bezel {
        width: 170px;
        height: 210px;
        border-radius: 34px;
    }

    .watch-screen {
        border-radius: 24px;
    }

    .phone-frame {
        width: 180px;
        height: 360px;
    }

    .footer-links {
        gap: 1.25rem;
        flex-wrap: wrap;
    }

    .route-line {
        display: none;
    }
}

@media (max-width: 380px) {
    .hero h1 {
        font-size: 2.1rem;
    }

    .device-row {
        flex-direction: column;
    }
}
