/* ═══════════ XColdPro Release Candidate — Frost Edition Stylesheet ═══════════ */

:root {
    /* Frost Edition Palette */
    --frost: #B8E6FF;
    --frost-light: #D4F1FF;
    --glacier: #AED2FE;
    --ice-blue: #8BB9F7;
    --cyan: #7DD3E8;
    --cyan-dim: rgba(125, 211, 232, 0.15);
    --frost-glow: rgba(184, 230, 255, 0.08);
    --frost-glow-strong: rgba(184, 230, 255, 0.15);

    /* Dark Foundation */
    --xdrip-black: #0A0A0A;
    --dark-bg: #141414;
    --card-bg: #1A1A1A;
    --card-bg-hover: #1E1E1E;
    --surface: #111111;

    /* Text */
    --text-primary: #F9F9F9;
    --text-secondary: #B8E6FF;
    --text-muted: #6B7A8D;
    --text-dim: rgba(184, 230, 255, 0.5);

    /* Borders */
    --border: rgba(174, 210, 254, 0.12);
    --border-hover: rgba(174, 210, 254, 0.25);

    /* Status */
    --success: #218479;
    --error: #DC2626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--xdrip-black);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ═══════════ NOISE TEXTURE ═══════════ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ═══════════ NAV ═══════════ */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 3rem;
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.logo-mark {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 28px;
    width: auto;
    display: block;
}

.edition-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--frost);
    background: rgba(184, 230, 255, 0.08);
    border: 1px solid rgba(184, 230, 255, 0.2);
    padding: 0.25rem 0.65rem;
    margin-left: 0.75rem;
    vertical-align: middle;
    border-radius: 2px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--frost);
}

.nav-cta {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: transparent;
    color: var(--frost);
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--cyan);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: rgba(125, 211, 232, 0.1);
    box-shadow: 0 0 20px rgba(125, 211, 232, 0.15);
}

/* ═══════════ HERO ═══════════ */
.hero-wrapper {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg,
            rgba(10, 10, 10, 0.92) 0%,
            rgba(10, 10, 10, 0.7) 30%,
            rgba(10, 10, 10, 0.55) 50%,
            rgba(10, 10, 10, 0.7) 75%,
            rgba(10, 10, 10, 0.95) 100%),
        linear-gradient(135deg,
            rgba(139, 185, 247, 0.08) 0%,
            transparent 50%);
    z-index: 1;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 3rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    left: 0;
    top: 28%;
    height: 160px;
    width: 2px;
    background: linear-gradient(180deg, var(--frost), rgba(184, 230, 255, 0.05));
    opacity: 0;
    animation: fadeIn 1.5s ease 1.5s forwards;
}

.hero::after {
    content: '';
    position: absolute;
    top: 15%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 185, 247, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--frost);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.2s forwards;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--frost);
}

.hero-headline {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.8rem, 6.5vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1.5px;
    max-width: 820px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
    color: var(--text-primary);
}

.hero-headline .light {
    font-weight: 300;
    color: var(--cyan);
}

.hero-headline .frost-em {
    font-weight: 300;
    background: linear-gradient(135deg, var(--frost), var(--ice-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-body {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 3.5rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.8s forwards;
}

.hero-body strong {
    color: var(--text-primary);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    animation: fadeUp 1s ease 1.1s forwards;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--glacier), var(--ice-blue));
    color: var(--xdrip-black);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(174, 210, 254, 0.25);
}

.btn-secondary {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--text-muted);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    color: var(--frost);
    border-color: var(--frost);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ═══════════ DIVIDER ═══════════ */
.divider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.divider-line {
    height: 1px;
    background: linear-gradient(90deg, var(--cyan), rgba(125, 211, 232, 0.08), transparent);
}

/* ═══════════ SECTION EYEBROW ═══════════ */
.section-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--frost);
    margin-bottom: 1.5rem;
}

/* ═══════════ CONTEXT SECTION ═══════════ */
.context-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 3rem;
    position: relative;
}

.context-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.context-left h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.context-left h2 .light {
    font-weight: 300;
    color: var(--cyan);
}

.context-left p {
    font-size: 0.92rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 300;
}

.context-left p+p {
    margin-top: 1.25rem;
}

.context-left p strong {
    color: var(--text-primary);
    font-weight: 500;
}

.data-point {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.data-point:first-child {
    padding-top: 0;
}

.data-point:last-child {
    border-bottom: none;
}

.data-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--frost-light), var(--glacier));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.data-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.5;
}

/* ═══════════ PLATFORM SECTION ═══════════ */
.platform-section {
    background: var(--dark-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 7rem 3rem;
    position: relative;
}

.platform-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(174, 210, 254, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.platform-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.platform-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.platform-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.platform-header h2 .light {
    font-weight: 300;
    color: var(--cyan);
}

.platform-header p {
    font-size: 0.92rem;
    line-height: 1.9;
    color: var(--text-muted);
    font-weight: 300;
    padding-top: 2rem;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}

.capability {
    padding: 2.5rem 2rem;
    background: var(--dark-bg);
    transition: all 0.4s ease;
    position: relative;
}

.capability::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--frost), var(--ice-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.capability:hover::before {
    transform: scaleX(1);
}

.capability:hover {
    background: var(--card-bg);
}

.capability-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    color: var(--frost);
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
    opacity: 0.7;
}

.capability h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.capability p {
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
}

.detail-note {
    display: inline-block;
    margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--frost);
    opacity: 0.5;
}

/* ── Logo card (positions 11–12) ── */
.capability-logo {
    grid-column: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 230, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(174, 210, 254, 0.10);
    box-shadow:
        inset 0 1px 0 rgba(184, 230, 255, 0.06),
        0 4px 40px rgba(0, 0, 0, 0.25);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.capability-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(184, 230, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.capability-logo:hover {
    background: rgba(184, 230, 255, 0.07);
    border-color: rgba(174, 210, 254, 0.18);
}

.capability-logo-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    opacity: 0.85;
    filter: drop-shadow(0 0 30px rgba(184, 230, 255, 0.10));
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.capability-logo:hover .capability-logo-img {
    opacity: 1;
    filter: drop-shadow(0 0 40px rgba(184, 230, 255, 0.18));
}

/* ═══════════ COMPARISON ═══════════ */
.comparison-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 3rem;
}

.comparison-header {
    text-align: center;
    margin-bottom: 4rem;
}

.comparison-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
}

.comparison-header h2 .light {
    font-weight: 300;
    color: var(--cyan);
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
}

.comp-table thead th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--cyan);
}

.comp-table thead th:last-child {
    color: var(--frost);
    font-weight: 700;
}

.comp-table td {
    padding: 1rem 1.5rem;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.55;
    font-weight: 300;
    color: var(--text-secondary);
}

.comp-table td:first-child {
    font-weight: 500;
    width: 26%;
    color: var(--text-primary);
}

.comp-table td:nth-child(2) {
    color: var(--text-muted);
    width: 37%;
}

.comp-table td:last-child {
    font-weight: 400;
    width: 37%;
    background: var(--frost-glow);
    color: var(--frost-light);
}

.comp-table tbody tr {
    transition: background 0.2s ease;
}

.comp-table tbody tr:hover {
    background: rgba(174, 210, 254, 0.03);
}

/* ═══════════ EXEC QUOTE ═══════════ */
.exec-strip {
    background: var(--dark-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 5rem 3rem;
    position: relative;
}

.exec-quote {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding-top: 2.5rem;
    color: var(--text-secondary);
}

.exec-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--frost), var(--ice-blue));
}

.exec-quote strong {
    font-weight: 700;
    font-style: normal;
    color: var(--frost);
}

.exec-attr {
    text-align: center;
    margin-top: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ═══════════ EARLY ACCESS / BETA FORM ═══════════ */
.early-access {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 3rem;
    text-align: center;
    position: relative;
}

.early-access::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(184, 230, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.ea-headline {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.ea-headline .light {
    font-weight: 300;
    color: var(--cyan);
}

.ea-headline .frost-em {
    font-weight: 300;
    background: linear-gradient(135deg, var(--frost), var(--ice-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ea-body {
    font-size: 0.98rem;
    line-height: 1.9;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 620px;
    margin: 0 auto 3rem;
}

.ea-body strong {
    color: var(--frost);
    font-weight: 500;
}

.ea-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.ea-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--border);
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.ea-benefit:hover {
    border-color: var(--border-hover);
    background: var(--card-bg-hover);
}

.ea-benefit .dot {
    width: 5px;
    height: 5px;
    background: var(--frost);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(184, 230, 255, 0.4);
}

.ea-note {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 1.75rem;
}

/* ═══════════ FOUNDING PANEL ═══════════ */
.founding-panel {
    position: relative;
    max-width: 360px;
    margin: 0 auto 3.5rem;
    border-radius: 16px;
    background: rgba(184, 230, 255, 0.03);
    border: 1px solid rgba(174, 210, 254, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

.founding-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(ellipse at 50% 0%, rgba(184, 230, 255, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.founding-panel img,
.founding-panel video {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.4s ease;
}

.founding-panel img {
    position: relative;
    opacity: 0.7;
}

.founding-panel:hover img {
    opacity: 0.9;
}

.founding-panel-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
}

.founding-panel:hover .founding-panel-video {
    opacity: 1;
}

@media (max-width: 900px) {
    .founding-panel {
        max-width: 260px;
    }
}

/* ═══════════ BETA FORM ═══════════ */
.beta-form-container {
    max-width: 520px;
    margin: 0 auto 2rem;
    text-align: left;
    position: relative;
}

.beta-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--frost);
    opacity: 0.7;
}

.form-group label .required {
    color: var(--error);
}

.form-input {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    outline: none;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: var(--text-dim);
}

.form-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 1px rgba(125, 211, 232, 0.15);
}

.form-input.error {
    border-color: var(--error);
}

.form-input-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-error {
    font-size: 0.72rem;
    color: var(--error);
    font-weight: 400;
    display: none;
}

.form-error.visible {
    display: block;
}

.form-submit {
    margin-top: 0.5rem;
}

.form-submit .btn-primary {
    width: 100%;
    text-align: center;
    padding: 1.1rem 2rem;
    font-size: 0.72rem;
}

.form-submit .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form message states */
.form-message {
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 400;
    display: none;
    text-align: center;
}

.form-message.success {
    display: block;
    background: rgba(33, 132, 121, 0.1);
    border: 1px solid rgba(33, 132, 121, 0.3);
    color: #7DD3E8;
}

.form-message.error {
    display: block;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #FCA5A5;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(10, 10, 10, 0.2);
    border-top-color: var(--xdrip-black);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ═══════════ METRICS ═══════════ */
.metrics-strip {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.metric {
    text-align: center;
}

.metric-val {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--frost-light), var(--glacier));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ═══════════ FOOTER ═══════════ */
footer {
    background: var(--dark-bg);
    border-top: 1px solid var(--border);
    padding: 4rem 3rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-brand {
    margin-bottom: 0.75rem;
}

.footer-logo {
    height: 26px;
    width: auto;
    display: block;
}

.footer-left p,
.footer-right p {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.8;
}

.footer-right {
    text-align: right;
}

.footer-right a {
    color: var(--frost);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: var(--frost-light);
}

.footer-edition {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--frost);
    opacity: 0.4;
    margin-top: 1rem;
}

.footer-edition::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--frost);
    border-radius: 50%;
    opacity: 0.6;
}

/* ═══════════ FOOTER LEGAL LINKS ═══════════ */
.footer-legal-links {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-legal-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-legal-sep {
    color: var(--text-dim);
    font-size: 0.55rem;
    opacity: 0.4;
}

/* ═══════════ LEGAL MODAL — SLIDE-IN PANEL ═══════════ */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
}

.legal-modal.open {
    pointer-events: auto;
    visibility: visible;
}

/* Backdrop */
.legal-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.legal-modal.open .legal-modal-backdrop {
    opacity: 1;
}

/* Panel — slides from right */
.legal-modal-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 580px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--dark-bg);
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-modal.open .legal-modal-panel {
    transform: translateX(0);
}

/* Header */
.legal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    gap: 1rem;
}

.legal-modal-tabs {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    flex: 1;
}

.legal-tab {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.legal-tab:hover {
    color: var(--frost);
    border-color: var(--border-hover);
    background: var(--frost-glow);
}

.legal-tab.active {
    color: var(--frost);
    border-color: var(--cyan);
    background: var(--cyan-dim);
}

.legal-modal-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.legal-modal-close:hover {
    color: var(--frost);
    border-color: var(--border-hover);
    background: var(--frost-glow);
}

/* Scrollable body */
.legal-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem 2rem 4rem;
    -webkit-overflow-scrolling: touch;
}

/* Body scrollbar */
.legal-modal-body::-webkit-scrollbar {
    width: 4px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 2px;
}

/* ── Legal content typography ── */
.legal-modal-body h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--frost);
    margin: 0 0 0.5rem;
}

.legal-modal-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 0.5rem;
}

.legal-modal-body h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cyan);
    margin: 1.5rem 0 0.35rem;
}

.legal-modal-body p {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.legal-modal-body .legal-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}

.legal-modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.legal-modal-body ul li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-modal-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);
    opacity: 0.5;
}

.legal-modal-body a {
    color: var(--frost);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-modal-body a:hover {
    color: var(--frost-light);
}

/* Info boxes (Impressum) */
.legal-info-box {
    padding: 1.25rem 1.5rem;
    background: var(--frost-glow);
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

.legal-info-box p {
    margin-bottom: 0.25rem;
}

.legal-info-box .legal-info-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.legal-info-box .legal-label {
    color: var(--text-muted);
}

/* ═══════════ SCROLL REVEAL ═══════════ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

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

/* ═══════════ RESPONSIVE ═══════════ */

/* ── Tablets & small laptops (≤ 900px) ── */
@media (max-width: 900px) {
    .top-bar {
        padding: 1rem 1.5rem;
    }

    .nav-link {
        display: none;
    }

    .edition-tag {
        display: none;
    }

    .hero {
        padding: 7rem 1.5rem 4rem;
    }

    .hero::before {
        display: none;
    }

    .hero::after {
        display: none;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg,
                rgba(10, 10, 10, 0.95) 0%,
                rgba(10, 10, 10, 0.8) 30%,
                rgba(10, 10, 10, 0.7) 50%,
                rgba(10, 10, 10, 0.8) 75%,
                rgba(10, 10, 10, 0.97) 100%);
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .context-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .context-section,
    .comparison-section,
    .early-access {
        padding: 5rem 1.5rem;
    }

    .early-access::before {
        display: none;
    }

    .platform-section {
        padding: 5rem 1.5rem;
    }

    .platform-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .capability-logo {
        grid-column: span 1;
    }

    /* Scrollable table with visual fade hint */
    .comparison-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }

    .comparison-section::after {
        content: '';
        position: sticky;
        right: 0;
        top: 0;
        display: block;
        width: 40px;
        height: 100%;
        pointer-events: none;
        background: linear-gradient(90deg, transparent, var(--xdrip-black));
        float: right;
        margin-top: -100%;
    }

    .comp-table {
        min-width: 620px;
    }

    .exec-strip {
        padding: 4rem 1.5rem;
    }

    .ea-benefits {
        flex-direction: column;
        align-items: center;
    }

    /* Grid layout for metrics — 2 cols avoids awkward 5-item flex wrap */
    .metrics-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }

    .metrics-strip .metric:last-child {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .footer-right {
        text-align: left;
    }

    .footer-legal-links {
        justify-content: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Legal modal full-width on mobile */
    .legal-modal-panel {
        width: 100%;
    }

    .legal-modal-header {
        padding: 1rem 1.25rem;
    }

    .legal-modal-body {
        padding: 1.5rem 1.25rem 3rem;
    }

    .legal-tab {
        font-size: 0.5rem;
        padding: 0.4rem 0.6rem;
    }
}

/* ── Small phones (≤ 480px) ── */
@media (max-width: 480px) {
    .top-bar {
        padding: 0.85rem 1rem;
    }

    .nav-cta {
        padding: 0.5rem 1rem;
        font-size: 0.6rem;
    }

    .hero {
        padding: 5.5rem 1rem 3rem;
        min-height: auto;
    }

    .hero-eyebrow {
        font-size: 0.55rem;
        letter-spacing: 2.5px;
    }

    .hero-body {
        font-size: 0.92rem;
        margin-bottom: 2.5rem;
    }

    .hero-actions .btn-primary {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        min-height: 48px;
    }

    .hero-actions .btn-secondary {
        align-self: center;
    }

    .context-section,
    .comparison-section,
    .early-access {
        padding: 3.5rem 1rem;
    }

    .platform-section {
        padding: 3.5rem 1rem;
    }

    .capability {
        padding: 2rem 1.25rem;
    }

    .data-number {
        font-size: 2.2rem;
    }

    .exec-strip {
        padding: 3rem 1rem;
    }

    .ea-headline {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }

    .ea-body {
        font-size: 0.88rem;
    }

    .ea-benefit {
        font-size: 0.72rem;
        padding: 0.55rem 1rem;
        width: 100%;
        justify-content: flex-start;
    }

    /* Improve readability of small labels */
    .metric-label {
        font-size: 0.58rem;
    }

    .metric-val {
        font-size: 1.8rem;
    }

    .metrics-strip {
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .detail-note {
        font-size: 0.58rem;
    }

    .capability-number {
        font-size: 0.6rem;
    }

    .section-eyebrow {
        font-size: 0.55rem;
        letter-spacing: 3px;
    }

    .ea-note {
        font-size: 0.58rem;
    }

    /* Form touch targets — min 48px height */
    .form-input {
        padding: 0.95rem 1rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .form-submit .btn-primary {
        padding: 1rem 1.5rem;
        font-size: 0.75rem;
        min-height: 52px;
    }

    .form-group label {
        font-size: 0.62rem;
    }

    .beta-form-container {
        margin: 0 auto 1.5rem;
    }

    .founding-panel {
        max-width: 220px;
    }

    /* Footer */
    footer {
        padding: 3rem 1rem;
    }

    .footer-left p,
    .footer-right p {
        font-size: 0.68rem;
    }

    .footer-edition {
        font-size: 0.5rem;
    }

    .footer-legal-links a {
        font-size: 0.52rem;
    }

    /* Legal modal padding */
    .legal-modal-body {
        padding: 1.25rem 1rem 2.5rem;
    }

    .legal-modal-header {
        padding: 0.85rem 1rem;
    }
}

/* ── Reduce motion for battery/bandwidth ── */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-eyebrow,
    .hero-headline,
    .hero-body,
    .hero-actions {
        opacity: 1;
        animation: none;
    }
}