/* ===== TAWK SPEED TEST FUNNEL ===== */
/* Shared styles for /speed-test, /speed-test/go, /speed-test/result, /speed-test/pitch */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'JetBrains Mono', monospace;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

/* Main content wrapper */
.page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header .logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: #fff;
    text-decoration: none;
}
.header .progress {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.header .progress .step {
    width: 24px;
    height: 2px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}
.header .progress .step.active { background: #fff; }
.header .progress .step.done { background: rgba(255,255,255,0.6); }

/* ===== LAYOUT ===== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
}
.container.narrow { max-width: 640px; }
.container.wide { max-width: 1000px; }

/* ===== TYPOGRAPHY ===== */
.eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.5rem;
}
h1.hero {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 9vw, 6.5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
h1.hero .accent {
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
h2.section {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}
.lead {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 2.5rem;
}

/* ===== CTA BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem 2.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn.primary {
    background: #fff;
    color: #000;
}
.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.18);
}
.btn.ghost {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.15);
}
.btn.ghost:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.btn.large { padding: 1.3rem 2.75rem; font-size: 0.95rem; }
.btn.block { display: flex; width: 100%; }

/* ===== CARDS / MODULES ===== */
.card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1.5rem;
}

/* ===== FORM ===== */
.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.field label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}
.field input[type="email"],
.field input[type="text"] {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: #fff;
    transition: border-color 0.2s, background 0.2s;
}
.field input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.07);
}
.field input::placeholder { color: rgba(255,255,255,0.25); }

.form-note {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
    margin-top: 0.5rem;
}

/* ===== STATS / WPM DISPLAY ===== */
.stat-big {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(6rem, 18vw, 12rem);
    line-height: 1;
    color: #fff;
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-top: 0.5rem;
}

/* ===== UTIL ===== */
.center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

.text-muted { color: rgba(255,255,255,0.5); }
.text-dim { color: rgba(255,255,255,0.35); }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .container { padding: 6rem 1.25rem 3rem; }
    .header { padding: 1rem 1.25rem; }
    .btn { padding: 1rem 1.5rem; font-size: 0.8rem; }
}

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.pulse { animation: pulse 2s infinite; }
