:root {
    /* 60-30-10: dominant (bg), secondary (panel), accent (action) */
    --bg: #06131e;
    --bg-alt: #0d2b41;
    --panel: rgba(34, 73, 104, 0.76);
    --panel-solid: #245274;
    --text: #edf5ff;
    --text-dim: #bfd2e6;
    --primary: #3cf7ab;
    --accent: #3cf7ab;
    --ring: rgba(60, 247, 171, 0.42);
    --radius: 16px;
    --shadow: 0 20px 45px rgba(2, 8, 20, 0.38);
}


* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: radial-gradient(circle at 18% 12%, #153a57 0%, var(--bg-alt) 34%, var(--bg) 70%, #030a11 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

main {
    width: min(1120px, 92%);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.topbar {
    width: min(1120px, 92%);
    margin: 1.4rem auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 3;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(155, 184, 214, 0.22);
    box-shadow: 0 10px 24px rgba(3, 10, 18, 0.28);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-main {
    font-family: 'Sora', 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-sub {
    color: var(--text-dim);
    font-size: 0.82rem;
}

.topnav {
    display: flex;
    gap: 1rem;
    color: var(--text-dim);
    font-weight: 500;
}

.topnav a {
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.topnav a:hover {
    color: var(--text);
    background: rgba(155, 184, 214, 0.18);
}

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

.hero-logo-wrap {
    width: fit-content;
    margin-bottom: 0.9rem;
    padding: 0.5rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(155, 184, 214, 0.22);
    box-shadow: var(--shadow);
}

.hero-logo {
    display: block;
    width: clamp(56px, 6vw, 72px);
    height: auto;
    object-fit: contain;
}

.eyebrow {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.76rem;
    font-weight: 700;
}

h1,
h2,
h3 {
    font-family: 'Sora', 'Space Grotesk', sans-serif;
    letter-spacing: 0.01em;
    line-height: 1.2;
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.9rem);
    margin-bottom: 0.85rem;
    max-width: 14ch;
}

h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    margin-bottom: 0.6rem;
}

.lead {
    color: var(--text-dim);
    max-width: 64ch;
    margin-bottom: 2rem;
}

.hero-actions,
.podcast-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(110deg, var(--accent), #8bfdd0);
    color: #062115;
    box-shadow: 0 12px 28px rgba(60, 247, 171, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 18px 30px rgba(60, 247, 171, 0.36);
}

.btn-ghost {
    border-color: rgba(155, 184, 214, 0.45);
    color: var(--text);
    background: rgba(155, 184, 214, 0.06);
}

.section {
    margin: 3rem 0;
    padding: 2.3rem;
    border: 1px solid rgba(155, 184, 214, 0.18);
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--panel), rgba(29, 64, 92, 0.9));
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
}

.section-header p {
    color: var(--text-dim);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    background: rgba(33, 69, 98, 0.8);
    border: 1px solid rgba(155, 184, 214, 0.15);
    border-radius: 14px;
    padding: 1rem;
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-dim);
    margin: 0;
}

.brand-links {
    margin-top: 1.15rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand-links a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.podcast-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.waitlist-form {
    display: grid;
    gap: 0.9rem;
    max-width: 640px;
}

label {
    display: grid;
    gap: 0.35rem;
    color: var(--text-dim);
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(155, 184, 214, 0.26);
    background: var(--panel-solid);
    border-radius: 12px;
    color: var(--text);
    padding: 0.72rem 0.85rem;
    font: inherit;
    font-family: 'Space Grotesk', sans-serif;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--ring);
}

.form-message {
    min-height: 1.3rem;
    color: var(--accent);
    margin: 0;
}

.form-message-error {
    color: #ff9d9d;
}

.api-note {
    margin-top: 1.2rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px dashed rgba(155, 184, 214, 0.35);
    background: rgba(32, 67, 95, 0.62);
}

.api-note code {
    color: var(--primary);
}

.site-footer {
    width: min(1120px, 92%);
    margin: 2rem auto;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0.2rem 0;
}

.admin-narrow {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.admin-tip {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.admin-actions {
    margin-bottom: 1rem;
}

.admin-form-stack {
    display: grid;
    gap: 1rem;
}

.admin-form-stack fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.admin-form-stack fieldset:disabled {
    opacity: 0.62;
}

.admin-group {
    border: 1px solid rgba(155, 184, 214, 0.2);
    border-radius: 14px;
    padding: 1rem;
    display: grid;
    gap: 0.7rem;
    background: rgba(30, 64, 91, 0.62);
}

.admin-group h2 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
}

.admin-card {
    border: 1px dashed rgba(155, 184, 214, 0.28);
    border-radius: 12px;
    padding: 0.8rem;
    display: grid;
    gap: 0.55rem;
}

.admin-card h3 {
    margin: 0;
    font-size: 0.98rem;
}

.admin-user-row {
    border: 1px solid rgba(155, 184, 214, 0.18);
    border-radius: 12px;
    padding: 0.8rem;
    display: grid;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.admin-user-meta {
    color: var(--text-dim);
    margin-left: 0.5rem;
}

.admin-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.admin-inline-form input,
.admin-inline-form select {
    width: auto;
    min-width: 180px;
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(20px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.orb-a {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -100px;
    background: radial-gradient(circle, #3b7cab 0%, transparent 70%);
    animation: floatA 14s ease-in-out infinite;
}

.orb-b {
    width: 380px;
    height: 380px;
    bottom: -100px;
    right: -70px;
    background: radial-gradient(circle, #4d95c8 0%, transparent 72%);
    animation: floatB 18s ease-in-out infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

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

@keyframes floatA {
    0%,
    100% { transform: translateY(0); }
    50% { transform: translateY(18px); }
}

@keyframes floatB {
    0%,
    100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 960px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .topnav {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.45rem 0.5rem;
    }

    .topnav a {
        padding: 0.42rem 0.62rem;
        font-size: 0.92rem;
        background: rgba(155, 184, 214, 0.08);
        border: 1px solid rgba(155, 184, 214, 0.2);
    }

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

    .section {
        padding: 1.35rem;
    }

    .hero {
        padding-top: 4.8rem;
        padding-bottom: 2.2rem;
    }

    .hero-logo-wrap {
        margin-bottom: 0.95rem;
    }

    .hero-actions .btn,
    .podcast-links .btn {
        min-width: 180px;
    }

    .admin-inline-form {
        gap: 0.6rem;
    }

    .admin-inline-form input,
    .admin-inline-form select {
        min-width: 0;
    }
}

@media (max-width: 640px) {
    main,
    .topbar,
    .site-footer {
        width: min(1120px, 94%);
    }

    .topbar {
        margin-top: 0.95rem;
    }

    .brand-main {
        font-size: 1.03rem;
    }

    .brand-sub {
        font-size: 0.74rem;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    h1 {
        font-size: clamp(1.75rem, 9vw, 2.2rem);
        max-width: 100%;
    }

    h2 {
        font-size: clamp(1.35rem, 7vw, 1.8rem);
    }

    .hero {
        padding-top: 3.2rem;
        padding-bottom: 1.5rem;
    }

    .hero-logo-wrap {
        padding: 0.42rem;
        border-radius: 14px;
    }

    .hero-logo {
        width: 52px;
    }

    .section {
        margin: 1.5rem 0;
        padding: 1.05rem;
        border-radius: 14px;
    }

    .hero-actions,
    .podcast-links,
    .brand-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    .hero-actions .btn,
    .podcast-links .btn,
    .waitlist-form .btn {
        width: 100%;
        min-width: 0;
    }

    .waitlist-form {
        gap: 0.75rem;
    }

    .api-note {
        padding: 0.85rem;
    }

    .admin-inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-inline-form input,
    .admin-inline-form select {
        width: 100%;
    }

    .bg-orb {
        opacity: 0.2;
    }

    .orb-a {
        width: 300px;
        height: 300px;
        top: -120px;
        left: -140px;
    }

    .orb-b {
        width: 280px;
        height: 280px;
        right: -130px;
    }
}
