/* ===== 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: 'Outfit', -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: 1000px;
    /* Widened for z-pattern */
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

/* ===== SITE HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(74, 159, 217, 0.08);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.site-header--visible {
    opacity: 1;
    transform: translateY(0);
}

.site-header__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.75rem var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.site-header__logo-img {
    border-radius: 6px;
}

.site-header__logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.site-header__cta {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
}

.site-header__cta:hover {
    background: var(--primary-dark);
}

/* ===== 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: flex;
    flex-direction: column;
    gap: var(--space-3xl);
    /* Much more breathing room between features */
    margin-bottom: var(--space-3xl);
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-2xl) var(--space-lg);
    background: rgba(17, 24, 39, 0.4);
    /* Translucent surface */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(74, 159, 217, 0.08);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.feature:hover {
    border-color: rgba(74, 159, 217, 0.25);
    background: rgba(17, 24, 39, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Base feature icon styles (Mobile First) */
.feature__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-md);
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Default color (Blue) */
    color: var(--primary-light);
    background: rgba(74, 159, 217, 0.05);
    border: 1px solid rgba(74, 159, 217, 0.1);
}

/* Colored Icon Modifiers */
.feature__icon--purple {
    color: var(--accent-purple);
    background: rgba(155, 107, 197, 0.05);
    /* --accent-purple faint */
    border-color: rgba(155, 107, 197, 0.1);
}

.feature__icon--pink {
    color: var(--accent-pink);
    background: rgba(212, 102, 168, 0.05);
    /* --accent-pink faint */
    border-color: rgba(212, 102, 168, 0.1);
}

.feature__icon--teal {
    color: var(--accent-teal);
    background: rgba(69, 183, 209, 0.05);
    /* --accent-teal faint */
    border-color: rgba(69, 183, 209, 0.1);
}

.feature__icon--orange {
    color: var(--cat-orange);
    background: rgba(243, 156, 18, 0.05);
    /* --cat-orange faint */
    border-color: rgba(243, 156, 18, 0.1);
}

/* Hover effect targets the current modifier's transparent bg and darkens it */
.feature:hover .feature__icon {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.feature:hover .feature__icon:not([class*="--"]) {
    background: rgba(74, 159, 217, 0.15);
    border-color: rgba(74, 159, 217, 0.3);
}

.feature:hover .feature__icon--purple {
    background: rgba(155, 107, 197, 0.15);
    border-color: rgba(155, 107, 197, 0.3);
}

.feature:hover .feature__icon--pink {
    background: rgba(212, 102, 168, 0.15);
    border-color: rgba(212, 102, 168, 0.3);
}

.feature:hover .feature__icon--teal {
    background: rgba(69, 183, 209, 0.15);
    border-color: rgba(69, 183, 209, 0.3);
}

.feature:hover .feature__icon--orange {
    background: rgba(243, 156, 18, 0.15);
    border-color: rgba(243, 156, 18, 0.3);
}

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

@media (min-width: 768px) {
    .feature {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: var(--space-2xl);
    }

    /* Alternating Z-Pattern */
    .feature:nth-child(even) {
        flex-direction: row-reverse;
    }

    .feature__content {
        flex: 1;
    }

    .feature__visual {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .feature__icon {
        width: 120px;
        height: 120px;
        margin-bottom: 0;
        padding: 2.25rem;
    }
}

.feature__title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.feature__text {
    font-size: 1.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: rgba(17, 24, 39, 0.5);
    /* Glassmorphism */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(74, 159, 217, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: stretch;
    gap: var(--space-md);
    transition: all 0.3s ease;
}

.insight-card:hover {
    border-color: rgba(74, 159, 217, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 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;
}

/* ===== ROADMAP / WHAT'S COMING ===== */
.roadmap {
    margin-bottom: var(--space-2xl);
}

.roadmap__subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.insight-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.insight-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

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

/* ===== DIMENSIONS MARQUEE ===== */
.dimensions {
    text-align: center;
    margin-bottom: var(--space-3xl);
    overflow: hidden;
    position: relative;
    padding: var(--space-md) 0;
}

.dimensions::before,
.dimensions::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.dimensions::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-body), transparent);
}

.dimensions::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-body), transparent);
}

.dimensions__track {
    display: flex;
    width: max-content;
    gap: var(--space-md);
    animation: scroll-marquee 30s linear infinite;
}

.dimensions__track:hover {
    animation-play-state: paused;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Scrolls half the duplicated width */
}

.dimensions__category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(74, 159, 217, 0.1);
    border-radius: 100px;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.dimensions__category:hover {
    background: rgba(74, 159, 217, 0.1);
    border-color: rgba(74, 159, 217, 0.3);
    transform: scale(1.05);
}

.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;
}

/* ===== WAITLIST FORM ===== */
.waitlist {
    display: flex;
    gap: 0.5rem;
    max-width: 440px;
    margin: 0 auto;
}

.waitlist__input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid rgba(74, 159, 217, 0.15);
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease;
}

.waitlist__input::placeholder {
    color: var(--text-light);
}

.waitlist__input:focus {
    border-color: var(--primary);
}

.waitlist__button {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    border: none;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.waitlist__button:hover {
    background: var(--primary-dark);
}

.waitlist__subtext {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.75rem;
}

.waitlist__success {
    font-size: 1rem;
    color: var(--cat-green);
    font-weight: 500;
    text-align: center;
    padding: 0.75rem 0;
}

@media (max-width: 639px) {
    .waitlist {
        flex-direction: column;
    }

    .waitlist__button {
        width: 100%;
    }
}

/* ===== BOTTOM CTA ===== */
.bottom-cta {
    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-lg);
}

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

.bottom-cta__text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

/* ===== ENGINE CALLOUT ===== */
.engine-callout {
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg-surface-2);
    border: 1px solid rgba(126, 196, 240, 0.12);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
}

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

.engine-callout__icon svg {
    width: 100%;
    height: 100%;
}

.engine-callout__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

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

.engine-callout__link {
    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;
    text-decoration: none;
    transition: all 0.2s ease;
}

.engine-callout__link:hover {
    background: rgba(74, 159, 217, 0.15);
    border-color: rgba(74, 159, 217, 0.4);
}

/* ===== 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);
    }
}

@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;
    }
}

/* ===== MOSAIC PAGE SPECIFIC ===== */
.header-nav {
    padding: var(--space-md) 0;
    display: flex;
    align-items: center;
}

.header-nav__link {
    color: var(--primary-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.header-nav__link:hover {
    color: var(--text-main);
}

.engine-hero {
    text-align: center;
    padding: var(--space-xl) 0 var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.engine-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(155, 107, 197, 0.15);
    border: 1px solid rgba(155, 107, 197, 0.4);
    border-radius: 100px;
    color: var(--accent-purple);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}