:root {
    --bg: #020308;
    --bg-alt: #05070d;
    --surface: #0f1622;
    --surface-2: #121a28;
    --border: rgba(255, 255, 255, 0.08);
    --text: #eef2f8;
    --text-dim: #93a0b5;
    --accent: #4fd1ff;
    --accent-2: #ffcf5c;
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --font-display: var(--font-system);
    --font-body: var(--font-system);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.5;
}

.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.bg-canvas canvas {
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 0.75rem;
}

/* Nav */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(2, 3, 8, 0.85), rgba(2, 3, 8, 0));
    backdrop-filter: blur(10px);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 2rem;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}

.brand-accent {
    color: orangered;
}

.nav-cta {
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(79, 209, 255, 0.45);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover {
    background: rgba(79, 209, 255, 0.12);
    border-color: var(--accent);
}

/* Waitlist */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.waitlist-form {
    max-width: 460px;
    margin: 2.25rem auto 0;
}

.waitlist-field {
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(15, 22, 34, 0.75);
    backdrop-filter: blur(8px);
    transition: border-color 0.2s ease;
}

.waitlist-field:focus-within {
    border-color: rgba(79, 209, 255, 0.5);
}

.waitlist-field input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 1rem;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 1rem;
}

.waitlist-field input::placeholder {
    color: #5f6b7e;
}

.waitlist-field input:focus-visible {
    outline: none;
}

.waitlist-field button {
    padding: 0.7rem 1.35rem;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #021018;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    cursor: pointer;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.waitlist-field button:hover {
    filter: brightness(1.1);
}

.waitlist-field button:disabled {
    opacity: 0.6;
    cursor: progress;
}

.waitlist-status {
    min-height: 1.4em;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.waitlist-status[data-state="success"] {
    color: var(--accent);
}

.waitlist-status[data-state="error"] {
    color: #ff8a7a;
}

@media (max-width: 480px) {
    .waitlist-field {
        flex-direction: column;
        border-radius: 16px;
    }
    .waitlist-field input {
        text-align: center;
    }
    .waitlist-field button {
        border-radius: 12px;
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(2, 3, 8, 0.15) 0%, rgba(2, 3, 8, 0.4) 60%, rgba(2, 3, 8, 0.85) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.08;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    margin: 1.5rem auto 0;
    max-width: 560px;
    color: var(--text-dim);
    font-size: 1.05rem;
}

/* Sections */
.section {
    padding: 6.5rem 0;
    background: transparent;
}

.section + .section {
    margin-top: 100px;
}

.section-alt {
    background: transparent;
}

.section-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    margin-bottom: 1rem;
}

.section-inner-narrow {
    max-width: 720px;
}

.section-inner-center {
    text-align: center;
}

.prose p {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-top: 1.25rem;
}

.prose p:first-child {
    margin-top: 0;
}

.pull-quote {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--accent);
    background: rgba(79, 209, 255, 0.06);
    border-radius: 0 12px 12px 0;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text);
}

.section-inner-center .pull-quote {
    text-align: left;
}

.tag-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: inherit;
    margin-top: 1.25rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.85rem;
    color: var(--text-dim);
}

.accent-text {
    color: var(--accent);
    font-weight: 600;
}

/* Team */
.team-grid {
    max-width: 680px;
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.team-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(15, 22, 34, 0.72), rgba(5, 7, 13, 0.72));
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(6px);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.team-card:hover {
    border-color: rgba(79, 209, 255, 0.28);
    transform: translateY(-4px);
}

.team-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    display: block;
    transition: transform 0.6s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.03);
}

/* fade the portrait into the card body */
.team-photo::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 35%;
    background: linear-gradient(to bottom, rgba(10, 14, 22, 0), rgba(10, 14, 22, 0.95));
    pointer-events: none;
}

.team-body {
    padding: 0 1.75rem 2rem;
    margin-top: -1.5rem;
    position: relative;
    text-align: left;
}

.team-role {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.team-name {
    font-size: 1.5rem;
    margin: 0.35rem 0 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.team-body p:not(.team-role) {
    color: var(--text-dim);
    font-size: 0.97rem;
    line-height: 1.65;
    margin-top: 0.85rem;
}

.team-body .team-name + p {
    margin-top: 0;
}

@media (max-width: 720px) {
    .team-grid {
        gap: 0.9rem;
        margin-top: 2.5rem;
        padding: 0 1rem;
    }
    .team-card {
        border-radius: 14px;
    }
    .team-body {
        padding: 0 0.9rem 1.2rem;
        margin-top: -1rem;
    }
    .team-role {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
    }
    .team-name {
        font-size: 1.1rem;
        margin: 0.25rem 0 0.7rem;
        padding-bottom: 0.7rem;
    }
    .team-body p:not(.team-role) {
        font-size: 0.82rem;
        line-height: 1.55;
        margin-top: 0.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-card,
    .team-photo img {
        transition: none;
    }
    .team-card:hover,
    .team-card:hover .team-photo img {
        transform: none;
    }
}

/* Partners */
.partners-grid {
    max-width: 680px;
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.partner-card img {
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

@media (max-width: 720px) {
    .partners-grid {
        gap: 0.9rem;
        margin-top: 2.25rem;
        padding: 0 1rem;
    }
    .partner-card {
        padding: 1.25rem;
        border-radius: 14px;
    }
    .partner-card img {
        max-height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .partner-card {
        transition: none;
    }
    .partner-card:hover {
        transform: none;
    }
}

/* Finale */
.section-finale {
    background: radial-gradient(ellipse at 50% 0%, rgba(79, 209, 255, 0.08), transparent 60%);
}

.closing-line {
    margin-top: 2.5rem;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Footer */
.footer {
    background: transparent;
    border-top: 1px solid var(--border);
    padding: 3.5rem 0 2rem;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
}

.footer-bottom {
    max-width: 1140px;
    margin: 3rem auto 0;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.82rem;
}

@media (max-width: 600px) {
    .section {
        padding: 4rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .bg-canvas {
        display: none;
    }
}
