/* ============================================================
   Runway — Campaign Landing Page
   Aesthetic: Editorial dark / high-contrast typography
   Fonts: Bebas Neue (display) + DM Sans (body)
   ============================================================ */

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

:root {
    --accent:      #22d3ee;
    --bg:          #0b0c10;
    --text:        #f0f0ed;
    --muted:       rgba(240,240,237,0.42);
    --border:      rgba(240,240,237,0.08);
    --surface:     rgba(255,255,255,0.04);
    --font-display:'Bebas Neue', sans-serif;
    --font-body:   'DM Sans', sans-serif;
    --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

html { height: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    min-height: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- GRAIN TEXTURE — CSS SVG noise ---- */
.rwy-grain {
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    animation: grain 0.4s steps(1) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10%  { transform: translate(-2%, -3%); }
    20%  { transform: translate(3%, 2%); }
    30%  { transform: translate(-1%, 3%); }
    40%  { transform: translate(3%, -1%); }
    50%  { transform: translate(-3%, 2%); }
    60%  { transform: translate(2%, -3%); }
    70%  { transform: translate(-2%, 3%); }
    80%  { transform: translate(3%, 1%); }
    90%  { transform: translate(-1%, -2%); }
}

/* ---- PAGE WRAP ---- */
.rwy-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 48px 24px 56px;
    position: relative;
    text-align: center;
}

/* ---- STAGGERED REVEAL ANIMATION ---- */
.rwy-reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: rwy-in 0.7s var(--ease) forwards;
}

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

/* ---- LOGO ---- */
.rwy-site-header {
    position: fixed;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.rwy-logo {
    display: block;
    width: auto;
    object-fit: contain;
    filter: brightness(1);
}

/* ---- HERO ---- */
.rwy-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 680px;
    position: relative;
    z-index: 1;
}

/* ---- BADGE ---- */
.rwy-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border: 1px solid rgba(34,211,238,0.25);
    border-radius: 99px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(34,211,238,0.06);
    margin-bottom: 28px;
}

.rwy-badge__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ---- HEADLINE STACK ---- */
.rwy-headline-stack {
    margin-bottom: 20px;
}

.rwy-h1 {
    font-family: var(--font-display);
    font-size: clamp(72px, 12vw, 120px);
    font-weight: 400; /* Bebas Neue is always bold */
    letter-spacing: 0.02em;
    line-height: 0.92;
    color: var(--text);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.rwy-subheadline {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 44px);
    letter-spacing: 0.08em;
    line-height: 1;
    color: rgba(240,240,237,0.5);
    text-transform: uppercase;
    font-weight: 400;
    margin: 0;
}

/* ---- DESCRIPTION ---- */
.rwy-description {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--muted);
    max-width: 440px;
    margin: 0 auto 36px;
}

/* ---- COUNTER ---- */
.rwy-counter {
    width: 100%;
    max-width: 480px;
    margin-bottom: 32px;
}

.rwy-counter__numbers {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.rwy-counter__total {
    font-family: var(--font-display);
    font-size: clamp(42px, 7vw, 64px);
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--accent);
    font-weight: 400;
    transition: transform 0.3s var(--ease);
}

.rwy-counter__total.rwy-bump {
    transform: scale(1.08);
}

.rwy-counter__sep {
    font-size: 24px;
    color: rgba(240,240,237,0.2);
    font-family: var(--font-body);
    font-weight: 300;
}

.rwy-counter__goal {
    font-size: 20px;
    font-weight: 500;
    color: rgba(240,240,237,0.35);
}

.rwy-counter__clabel {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240,240,237,0.3);
    align-self: center;
    margin-left: 4px;
}

.rwy-counter__bar-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rwy-counter__bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
}

.rwy-counter__fill {
    height: 100%;
    background: var(--accent);
    border-radius: 99px;
    transition: width 0.8s var(--ease);
}

.rwy-counter__left {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.rwy-counter__left strong {
    color: var(--text);
    font-weight: 600;
}

/* ---- FORM ---- */
.rwy-form-wrap {
    width: 100%;
    max-width: 500px;
    margin-bottom: 16px;
}

.rwy-form {
    display: flex;
    align-items: stretch;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rwy-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(34,211,238,0.12);
}

#rwy-email {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    min-width: 0;
}

#rwy-email::placeholder {
    color: rgba(240,240,237,0.25);
}

#rwy-submit {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 20px;
    background: var(--accent);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0b0c10; /* dark text on cyan */
    white-space: nowrap;
    transition: background 0.2s, opacity 0.2s;
    flex-shrink: 0;
    border-radius: 0 8px 8px 0;
    margin: 1px;
}

#rwy-submit:hover { background: hsl(from var(--accent) h s calc(l - 5%)); }
#rwy-submit:disabled { opacity: 0.5; cursor: default; }

.rwy-submit__arrow { flex-shrink: 0; }

/* ---- FORM MESSAGES ---- */
.rwy-form__message {
    min-height: 24px;
    font-size: 13px;
    margin-top: 10px;
    transition: all 0.25s;
}

.rwy-form__message.is-success {
    color: #4ade80;
}

.rwy-form__message.is-error {
    color: #f87171;
}

.rwy-form__message.is-info {
    color: var(--accent);
}

.rwy-form__privacy {
    font-size: 11px;
    color: rgba(240,240,237,0.22);
    margin-top: 8px;
    letter-spacing: 0.02em;
}

/* ---- COUNTDOWN ---- */
.rwy-countdown {
    width: 100%;
    max-width: 480px;
    margin-top: 8px;
}

.rwy-countdown__divider {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0 auto 28px;
}

.rwy-countdown__units {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rwy-cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 72px;
    padding: 16px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.rwy-cd-num {
    font-family: var(--font-display);
    font-size: 38px;
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--text);
    font-weight: 400;
    min-width: 2ch;
    text-align: center;
}

.rwy-cd-label {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.rwy-cd-colon {
    font-family: var(--font-display);
    font-size: 28px;
    color: rgba(240,240,237,0.2);
    line-height: 1;
    margin-bottom: 12px;
    flex-shrink: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    .rwy-page { padding: 96px 20px 48px; justify-content: flex-start; }

    .rwy-h1 { font-size: clamp(60px, 18vw, 80px); }

    .rwy-subheadline { font-size: clamp(22px, 7vw, 32px); }

    .rwy-form {
        flex-direction: column;
        border-radius: 10px;
    }

    #rwy-email {
        padding: 13px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    #rwy-submit {
        justify-content: center;
        padding: 13px 16px;
        border-radius: 0 0 8px 8px;
        margin: 0 1px 1px;
    }

    .rwy-cd-unit { min-width: 58px; padding: 12px 8px; }
    .rwy-cd-num  { font-size: 28px; }
    .rwy-countdown__units { gap: 5px; }
    .rwy-cd-colon { font-size: 20px; margin-bottom: 8px; }
}

@media (max-width: 380px) {
    .rwy-cd-unit { min-width: 48px; padding: 10px 6px; }
    .rwy-cd-num  { font-size: 22px; }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
    .rwy-reveal { animation: none; opacity: 1; transform: none; }
    .rwy-grain  { animation: none; }
    .rwy-badge__dot { animation: none; }
}

/* ============================================================
   COUNTER STYLES — all 6 variants
   ============================================================ */

/* ── BAR ── */
.rwy-cnt-bar { width:100%; max-width:440px; margin:0 auto 24px; }
.rwy-cnt-bar__top { display:flex; justify-content:space-between; font-size:13px; margin-bottom:8px; opacity:.8; }
.rwy-cnt-bar__track { height:6px; background:rgba(128,128,128,.15); border-radius:99px; overflow:hidden; border:1px solid rgba(128,128,128,.12); }
.rwy-cnt-bar__fill { height:100%; background:var(--cnt,var(--accent,#22d3ee)); border-radius:99px; transition:width 1s ease; }

/* ── RING ── */
.rwy-cnt-ring { text-align:center; margin:0 auto 24px; }
.rwy-cnt-ring svg { display:block; margin:0 auto 8px; color:var(--text,#f0f0ed); }
.rwy-cnt-ring__label { font-size:12px; opacity:.5; text-transform:uppercase; letter-spacing:.1em; margin-bottom:4px; }
.rwy-cnt-ring__left { font-size:13px; opacity:.7; }
.rwy-cnt-ring__left strong { color:var(--cnt,var(--accent,#22d3ee)); }

/* ── BIG NUMBER ── */
.rwy-cnt-number { display:flex; align-items:baseline; gap:14px; margin:0 auto 24px; flex-wrap:wrap; }
.rwy-cnt-number__val { font-size:clamp(56px,8vw,96px); font-weight:900; line-height:1; color:var(--cnt,var(--accent,#22d3ee)); font-feature-settings:"tnum"; }
.rwy-cnt-number__meta { display:flex; flex-direction:column; gap:4px; }
.rwy-cnt-number__meta span:first-child { font-size:14px; opacity:.55; }
.rwy-cnt-number__left { font-size:13px; opacity:.7; }
.rwy-cnt-number__left strong { color:var(--text,#f0f0ed); }

/* ── MINIMAL ── */
.rwy-cnt-minimal { font-size:14px; opacity:.65; margin:0 0 20px; letter-spacing:.01em; }
.rwy-cnt-minimal strong { color:var(--cnt,var(--accent,#22d3ee)); opacity:1; }

/* ── SEGMENTS ── */
.rwy-cnt-segs { margin:0 auto 24px; }
.rwy-cnt-segs__dots { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:10px; }
.rwy-cnt-segs__dot { width:14px; height:14px; border-radius:3px; background:rgba(255,255,255,.1); transition:background .3s; }
.rwy-cnt-segs__dot--on { background:var(--cnt,var(--accent,#22d3ee)); }
.rwy-cnt-segs__label { font-size:12px; opacity:.55; }
.rwy-cnt-segs__label strong, .rwy-cnt-segs__label span { color:var(--text,#f0f0ed); }

/* ── PILLS ── */
.rwy-cnt-pills { margin:0 auto 24px; }
.rwy-cnt-pills__row { display:flex; gap:6px; margin-bottom:10px; flex-wrap:wrap; }
.rwy-cnt-pills__pill { height:10px; flex:1; min-width:18px; border-radius:99px; background:rgba(255,255,255,.1); transition:background .3s; }
.rwy-cnt-pills__pill--on { background:var(--cnt,var(--accent,#22d3ee)); }
.rwy-cnt-pills__label { font-size:12px; opacity:.55; }

/* ============================================================
   FEATURE BULLETS
   ============================================================ */
.rwy-features {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 440px;
}
.rwy-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: .85;
}
.rwy-feature__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    flex-shrink: 0;
}

/* On light-bg layouts (clean, editorial) */
.rwy-clean-body .rwy-feature__icon,
.rwy-ed .rwy-feature__icon {
    background: rgba(0,0,0,.06);
    color: var(--accent, #22d3ee);
}
.rwy-clean-body .rwy-feature,
.rwy-ed .rwy-feature {
    color: #374151;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.rwy-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease;
}
.rwy-revealed,
.rwy-reveal.rwy-revealed {
    opacity: 1;
    transform: none;
}
/* Fallback for browsers without IntersectionObserver */
@media (prefers-reduced-motion: reduce) {
    .rwy-reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   FORM MESSAGE STYLES
   ============================================================ */
.rwy-form__message { min-height: 20px; font-size: 13px; margin-top: 6px; }
.rwy-form__message.is-success { color: #059669; }
.rwy-form__message.is-error   { color: #dc2626; }
.rwy-form__message.is-info    { color: #0284c7; }

/* Counter bump animation */
@keyframes rwyBump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}
.rwy-bump { animation: rwyBump .35s ease; }

/* Alias: .rwy-msg is the new class for form messages */
.rwy-msg.is-success { color: #059669; }
.rwy-msg.is-error   { color: #dc2626; }
.rwy-msg.is-info    { color: #2563eb; }
