/* ===== CSS VARIABLES ===== */
:root {
    /* Brand Colors — pulled from the app icon's neon-on-navy palette */
    --primary: #4a9fd9;
    --primary-dark: #2e6b9e;
    --primary-light: #7ec4f0;
    --primary-soft: rgba(74, 159, 217, 0.1);

    --accent-teal: #45b7d1;
    --accent-pink: #d466a8;
    --accent-purple: #9b6bc5;

    /* Background Colors — matching the app icon's deep navy */
    --bg-body: #0b1120;
    --bg-surface: #111827;
    --bg-surface-2: #1a2540;

    /* Text Colors */
    --text-main: #e8edf5;
    --text-muted: #8b9fc0;
    --text-light: #5a6f8e;

    /* Category Colors — from the app's dimension categories */
    --cat-blue: #4a90d9;
    --cat-red: #e74c3c;
    --cat-green: #2ecc71;
    --cat-orange: #f39c12;
    --cat-cyan: #00bcd4;
    --cat-purple: #9b59b6;
    --cat-pink: #d466a8;
    --cat-yellow: #f1c40f;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Borders & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
}

main {
    max-width: 860px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding-bottom: var(--space-2xl);
}

.hero__icon {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    box-shadow:
        0 0 60px rgba(74, 159, 217, 0.15),
        0 0 120px rgba(74, 159, 217, 0.05);
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__tagline {
    font-size: 1.35rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: var(--space-md);
}

.hero__description {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto var(--space-xl);
}

.hero__badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-soft);
    border: 1px solid rgba(74, 159, 217, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-light);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    margin-bottom: var(--space-lg);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    margin-bottom: var(--space-2xl);
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.step {
    padding: var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid rgba(74, 159, 217, 0.06);
    border-radius: var(--radius-md);
    text-align: center;
}

.step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-soft);
    border: 1px solid rgba(74, 159, 217, 0.2);
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.step__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.step__text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== FEATURES ===== */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.feature {
    padding: var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid rgba(74, 159, 217, 0.06);
    border-radius: var(--radius-md);
    transition: border-color 0.3s ease;
}

.feature:hover {
    border-color: rgba(74, 159, 217, 0.15);
}

.feature__icon {
    width: 36px;
    height: 36px;
    margin-bottom: var(--space-sm);
    color: var(--primary);
}

.feature__icon svg {
    width: 100%;
    height: 100%;
}

.feature__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feature__text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.feature__text em {
    font-style: italic;
    color: var(--primary-light);
}

/* ===== EXAMPLE INSIGHTS ===== */
.insights {
    margin-bottom: var(--space-2xl);
}

.insights__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.insight-card {
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid rgba(74, 159, 217, 0.06);
    border-radius: var(--radius-md);
    display: flex;
    align-items: stretch;
    gap: var(--space-md);
    transition: border-color 0.3s ease;
}

.insight-card:hover {
    border-color: rgba(74, 159, 217, 0.15);
}

.insight-card__bar {
    width: 3px;
    flex-shrink: 0;
    border-radius: 2px;
}

.insight-card__bar--blue { background: var(--cat-blue); }
.insight-card__bar--orange { background: var(--cat-orange); }
.insight-card__bar--cyan { background: var(--cat-cyan); }
.insight-card__bar--green { background: var(--cat-green); }

.insight-card__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.fade-in--delay-7b { animation-delay: 1.15s; }

/* ===== DIMENSIONS SECTION ===== */
.dimensions {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.dimensions__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.dimensions__category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-surface);
    border: 1px solid rgba(74, 159, 217, 0.06);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.dimensions__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dimensions__dot--blue { background-color: var(--cat-blue); }
.dimensions__dot--red { background-color: var(--cat-red); }
.dimensions__dot--green { background-color: var(--cat-green); }
.dimensions__dot--orange { background-color: var(--cat-orange); }
.dimensions__dot--cyan { background-color: var(--cat-cyan); }
.dimensions__dot--purple { background-color: var(--cat-purple); }
.dimensions__dot--pink { background-color: var(--cat-pink); }
.dimensions__dot--yellow { background-color: var(--cat-yellow); }

/* ===== PRIVACY SECTION ===== */
.privacy {
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg-surface);
    border: 1px solid rgba(74, 159, 217, 0.06);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2xl);
}

.privacy__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto var(--space-sm);
    color: var(--primary);
}

.privacy__icon svg {
    width: 100%;
    height: 100%;
}

.privacy__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.privacy__text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(74, 159, 217, 0.08);
}

.footer__company {
    font-size: 0.8rem;
    color: var(--text-light);
}

.footer__link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ===== SUBTLE GLOW BACKGROUND ===== */
.glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.glow__orb--1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(100px);
    opacity: 0.08;
    animation: glow-drift 14s ease-in-out infinite alternate;
}

.glow__orb--2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    filter: blur(100px);
    opacity: 0.06;
    animation: glow-drift 10s ease-in-out infinite alternate-reverse;
}

@keyframes glow-drift {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(20px); }
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    animation: fade-in 0.7s ease-out forwards;
}

.fade-in--delay-1 { animation-delay: 0.05s; }
.fade-in--delay-2 { animation-delay: 0.15s; }
.fade-in--delay-3 { animation-delay: 0.3s; }
.fade-in--delay-4 { animation-delay: 0.45s; }
.fade-in--delay-5 { animation-delay: 0.6s; }
.fade-in--delay-6 { animation-delay: 0.8s; }
.fade-in--delay-7 { animation-delay: 1.0s; }
.fade-in--delay-8 { animation-delay: 1.2s; }
.fade-in--delay-9 { animation-delay: 1.4s; }

@keyframes fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 639px) {
    .insights__grid {
        grid-template-columns: 1fr;
    }

    main {
        padding: var(--space-xl) var(--space-sm);
    }

    .hero__icon {
        width: 96px;
        height: 96px;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__tagline {
        font-size: 1.15rem;
    }

    .hero__description {
        font-size: 0.95rem;
    }

    .stats {
        gap: var(--space-sm);
    }

    .stats__number {
        font-size: 1.35rem;
    }

    .stats__label {
        font-size: 0.65rem;
    }

    .dimensions__grid {
        gap: var(--space-xs);
    }

    .dimensions__category {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
