/* ===== CSS Variables: Light Theme (default) ===== */
:root {
    --pink: #FF375F;
    --pink-light: #FF6B8A;
    --pink-glow: rgba(255, 55, 95, 0.15);
    --bg-dark: #FFFFFF;
    --bg-section: #F5F5FA;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-fallback: #FFFFFF;
    --text-primary: #1a1a2e;
    --text-secondary: rgba(26, 26, 46, 0.7);
    --text-muted: rgba(26, 26, 46, 0.5);
    --border-glass: rgba(0, 0, 0, 0.08);
    --phone-frame: #1a1a1a;
    --shadow-card-hover: rgba(0, 0, 0, 0.1);
    --shadow-phone: rgba(0, 0, 0, 0.15);
    --container-max: 1200px;
    --section-padding: 100px 0;
    --font-stack: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ===== CSS Variables: Dark Theme (auto from device) ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --pink-glow: rgba(255, 55, 95, 0.3);
        --bg-dark: #0D0D2B;
        --bg-section: #111133;
        --bg-card: rgba(255, 255, 255, 0.05);
        --bg-card-fallback: #1a1a4a;
        --text-primary: #ffffff;
        --text-secondary: rgba(255, 255, 255, 0.7);
        --text-muted: rgba(255, 255, 255, 0.5);
        --border-glass: rgba(255, 255, 255, 0.1);
        --phone-frame: #1a1a1a;
        --shadow-card-hover: rgba(0, 0, 0, 0.3);
        --shadow-phone: rgba(0, 0, 0, 0.5);
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Theme Icon Toggle ===== */
.hero__icon .icon-dark { display: none; }

@media (prefers-color-scheme: dark) {
    .hero__icon .icon-light { display: none; }
    .hero__icon .icon-dark { display: block; }
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* ===== Section Title ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

/* ===== Glass Card ===== */
.glass-card {
    background: var(--bg-card-fallback);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 40px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px var(--shadow-card-hover);
}

.glass-card__icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 55, 95, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 0 30px var(--pink-glow);
}

.glass-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.glass-card__text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.glass-card--small {
    padding: 28px 24px;
    text-align: center;
}

.glass-card--small .glass-card__icon {
    margin: 0 auto 16px;
    width: 56px;
    height: 56px;
}

.glass-card--small h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.glass-card--small p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ===== App Store Badge ===== */
.app-store-badge {
    display: inline-block;
    transition: transform 0.2s ease;
}

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

.app-store-badge img {
    height: 60px;
    width: auto;
}

.app-store-badge--large img {
    height: 70px;
}

.app-store-badge svg rect {
    stroke: var(--border-glass);
    stroke-width: 1;
}

/* ===== Phone Mockup (iPhone 16/17 Pro Max style) ===== */
.phone-mockup {
    width: 340px;
    height: 739px;
    border-radius: 52px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 4px var(--phone-frame),
        0 0 0 5px rgba(0, 0, 0, 0.1),
        0 20px 60px var(--shadow-phone);
}

.phone-mockup__screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.phone-mockup__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-mockup--small {
    width: 300px;
    height: 652px;
    border-radius: 46px;
}


/* ===== Section 1: Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-dark);
    overflow: hidden;
    padding: 60px 0 40px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--pink-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero__content {
    display: flex;
    align-items: center;
    max-width: var(--container-max);
    padding: 0 24px;
    position: relative;
    z-index: 2;
    gap: 80px;
}

.hero__text {
    flex: 1;
    max-width: 500px;
}

.hero__icon {
    margin-bottom: 20px;
}

.hero__icon img {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(255, 55, 95, 0.25);
}

.hero__title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 400;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero__mockup {
    flex-shrink: 0;
}

.hero__scroll-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.2s ease;
    position: relative;
    z-index: 2;
    margin-top: 32px;
}

.hero__scroll-btn:hover {
    color: var(--pink);
}

/* ===== Section 2: Features ===== */
.features {
    padding: var(--section-padding);
    background: var(--bg-section);
}

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

/* ===== Section 3: How It Works ===== */
.how-it-works {
    padding: var(--section-padding);
    background: var(--bg-dark);
}

.timeline {
    display: flex;
    justify-content: center;
    gap: 40px;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline__line {
    position: absolute;
    top: 28px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pink), transparent);
    z-index: 0;
}

.timeline__step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.timeline__number {
    width: 56px;
    height: 56px;
    background: var(--pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 0 30px var(--pink-glow);
}

.timeline__card {
    text-align: center;
    width: 100%;
}

.timeline__card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline__card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== Sections 4-6: Deep Dive ===== */
.deep-dive {
    padding: var(--section-padding);
}

.deep-dive:nth-child(odd) {
    background: var(--bg-section);
}

.deep-dive:nth-child(even) {
    background: var(--bg-dark);
}

.deep-dive__content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.deep-dive--right .deep-dive__content {
    flex-direction: row;
}

.deep-dive--left .deep-dive__content {
    flex-direction: row;
}

.deep-dive--center .deep-dive__content {
    flex-direction: column;
    align-items: center;
}

.deep-dive__text {
    flex: 1;
}

.deep-dive__text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.deep-dive__description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.deep-dive__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deep-dive__list li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-left: 24px;
    position: relative;
}

.deep-dive__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    background: var(--pink);
    border-radius: 50%;
}

.deep-dive__mockup {
    flex-shrink: 0;
    position: relative;
}

.deep-dive__dual-mockup {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: center;
}

.deep-dive__connection-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--pink), var(--pink-light));
    position: relative;
}

.deep-dive__connection-line::before,
.deep-dive__connection-line::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--pink);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.deep-dive__connection-line::before {
    left: -4px;
}

.deep-dive__connection-line::after {
    right: -4px;
}

/* Radar pulse for nearby section */
.radar-pulse {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgba(255, 55, 95, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: radarPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes radarPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

/* ===== Features Subtitle (And so much more) ===== */
.features__subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.secondary-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== Section 7: Brand Statement ===== */
.brand-statement {
    padding: 120px 0;
    background: var(--bg-section);
    text-align: center;
}

.brand-statement__text {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-light) 50%, #FFB6C8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.2;
}

/* ===== Section 8: CTA ===== */
.cta {
    padding: var(--section-padding);
    background: var(--bg-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--pink-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cta__content {
    position: relative;
    z-index: 2;
}

.cta__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta__subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* ===== Footer ===== */
.footer {
    padding: 32px 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-glass);
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: var(--pink);
}

/* ===== Focus States ===== */
.app-store-badge:focus-visible,
.glass-card:focus-visible,
.hero__scroll-btn:focus-visible,
.footer__links a:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 4px;
    border-radius: 8px;
}

.deep-dive__text--centered {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero__content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero__text {
        max-width: 100%;
    }

    .hero__icon img {
        margin: 0 auto;
    }

    .hero__actions {
        align-items: center;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__tagline {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .hero__mockup .phone-mockup {
        width: 260px;
        height: 565px;
        border-radius: 42px;
    }

    .deep-dive__mockup .phone-mockup--small,
    .deep-dive__dual-mockup .phone-mockup--small {
        width: 240px;
        height: 522px;
        border-radius: 38px;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .timeline {
        flex-direction: column;
        gap: 32px;
    }

    .timeline__line {
        display: none;
    }

    .deep-dive__content {
        flex-direction: column !important;
        gap: 40px;
        text-align: center;
    }

    .deep-dive__text h2 {
        font-size: 1.75rem;
    }

    .deep-dive__list {
        text-align: left;
    }

    .deep-dive__dual-mockup {
        flex-direction: column;
        gap: 24px;
    }

    .deep-dive__connection-line {
        width: 2px;
        height: 40px;
    }

    .deep-dive__connection-line::before {
        left: 50%;
        top: -4px;
        transform: translateX(-50%);
    }

    .deep-dive__connection-line::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -4px;
        transform: translateX(-50%);
    }

    .features__subtitle {
        font-size: 1.5rem;
        margin-top: 48px;
        margin-bottom: 32px;
    }

    .secondary-features__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .brand-statement__text {
        font-size: 2.25rem;
    }

    .cta__title {
        font-size: 2rem;
    }

    .footer__content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ===== Responsive: Small Mobile ===== */
@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__tagline {
        font-size: 1rem;
    }

    .hero__mockup .phone-mockup {
        width: 220px;
        height: 478px;
        border-radius: 34px;
    }

    .glass-card {
        padding: 28px 20px;
    }

    .deep-dive__text h2 {
        font-size: 1.5rem;
    }

    .deep-dive__dual-mockup .phone-mockup--small {
        width: 180px;
        height: 391px;
        border-radius: 24px;
    }

    .features__subtitle {
        font-size: 1.35rem;
        margin-top: 40px;
        margin-bottom: 28px;
    }

    .secondary-features__grid {
        grid-template-columns: 1fr;
    }

    .brand-statement__text {
        font-size: 1.75rem;
    }

    .brand-statement {
        padding: 80px 0;
    }
}
