:root {
    --bg: #0b0f17;
    --panel: #111828;
    --panel-2: #0f1626;
    --text: #e7eefc;
    --muted: #a8b3cf;
    --border: rgba(231, 238, 252, 0.12);
    --shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.35);
    --radius: 1rem;
    --radius-sm: 0.75rem;

    --primary: #7bc4f7;
    --primary-2: #95c0ff;

    --max: 68.75rem;

    /* Reusable surfaces & effects */
    --glass: rgba(11, 15, 23, 0.55);
    --glass-strong: rgba(11, 15, 23, 0.65);
    --panel-subtle: rgba(17, 24, 40, 0.65);
    --ink-06: rgba(231, 238, 252, 0.06);
    --ink-18: rgba(0, 0, 0, 0.18);
    --ink-25: rgba(0, 0, 0, 0.25);
    --logo-grad: linear-gradient(180deg, rgba(110, 168, 255, 0.35), rgba(110, 168, 255, 0.08));
    --card-grad: linear-gradient(180deg, rgba(17, 24, 40, 0.92), rgba(15, 22, 38, 0.92));
    --btn-primary-grad: linear-gradient(180deg, rgba(110, 168, 255, 0.55), rgba(110, 168, 255, 0.22));
    --btn-primary-border: rgba(110, 168, 255, 0.35);
    --callout-border: rgba(110, 168, 255, 0.25);
    --callout-bg: rgba(110, 168, 255, 0.08);
    --focus-border: rgba(110, 168, 255, 0.55);
    --focus-ring: 0 0 0 0.1875rem rgba(110, 168, 255, 0.14);
}

/* =============================
   Base / Reset
   ============================= */

/* sensible root for rem math kept to browser default (16px = 1rem) */
html {
    font-size: 100%;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html,
body {
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    line-height: 1.5;
    font-size: 1rem;
}

/* Visible keyboard focus without distracting mouse users */
:focus-visible {
    outline: 0.1875rem solid var(--focus-border);
    outline-offset: 0.1875rem;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    background: var(--panel);
    color: var(--text);
    border: 0.0625rem solid var(--border);
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform 120ms ease;
    z-index: 9999;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

/* =============================
   Layout
   ============================= */

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(75rem 50rem at 30% -10%, rgba(110, 168, 255, 0.25), transparent 55%),
        radial-gradient(56.25rem 37.5rem at 90% 0%, rgba(149, 192, 255, 0.12), transparent 50%),
        var(--bg);
}

.container {
    width: min(var(--max), calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hero {
    padding: 1.5rem 0 1.5rem;
}

.section {
    padding: 1.5rem 0;
    scroll-margin-top: 5.5rem;
}

.hero-grid {
    margin-top: 1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.125rem;
    align-items: stretch;
    align-content: start;
}

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

@media (max-width: 57.5rem /* ~= 920px */) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

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

    .brand {
        min-width: unset;
    }
}

/* =============================
   Header / Branding
   ============================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    -webkit-backdrop-filter: blur(0.625rem);
    backdrop-filter: blur(0.625rem);
    background: var(--glass-strong);
    border-bottom: 0.0625rem solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 15rem;
}

.logo {
    width: 2.625rem;
    height: 2.625rem;
    border-radius: 0.75rem;
    display: grid;
    place-items: center;
    background: var(--logo-grad);
    border: 0.0625rem solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.logo img {
    width: 2.625rem;
    height: 2.625rem;
    display: block;
}

.brand-name {
    font-weight: 800;
    letter-spacing: 0.0125rem;
    font-size: 1rem;
}

.brand-tag {
    color: var(--muted);
    font-size: 0.8125rem;
}

.brand-banner {
    border-radius: var(--radius);
    border: 0.0625rem solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: var(--ink-18);
    margin-bottom: 1.125rem;
}

.brand-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* =============================
   Typography
   ============================= */

/* headings use rem and clamp for fluid scaling */
h1 {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    line-height: 1.12;
    margin: 0 0 0.875rem;
}

h2 {
    font-size: 1.625rem;
    margin: 0 0 1.125rem;
}

.lead {
    color: var(--muted);
    font-size: 1.125rem;
    margin: 0 0 1.25rem;
}

/* =============================
   Components
   ============================= */

.card {
    background: var(--card-grad);
    border: 0.0625rem solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.card.subtle {
    background: var(--panel-subtle);
    border-radius: var(--radius-sm);
    padding: 0.875rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
}

.card-title {
    font-weight: 800;
    letter-spacing: 0.0125rem;
}

.card-subtitle {
    color: var(--muted);
    font-size: 0.8125rem;
    margin-top: 0.125rem;
}

.mini {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    margin-top: 1.125rem;
}

.mini-title {
    font-weight: 700;
    margin-bottom: 0.625rem;
}

.mini-list {
    margin: 0;
    padding-left: 1.125rem;
    color: var(--muted);
}

.video-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 48rem;
    width: 75%;
}

.video-wrap {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 0.0625rem solid var(--border);
    background: var(--ink-25);
}

video {
    display: block;
    width: 100%;
    height: auto;
}

.layered-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.layered-slot {
    margin-top: auto;
    margin-bottom: auto;
}

.callout {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    border: 0.0625rem solid var(--callout-border);
    background: var(--callout-bg);
    color: var(--text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.875rem;
    text-decoration: none;
    font-weight: 700;
    border: 0.0625rem solid var(--border);
    cursor: pointer;
    transition: transform 120ms ease, opacity 120ms ease;
    -webkit-user-select: none;
    user-select: none;
    font-size: 0.9375rem;
    /* slightly under 1rem for buttons */
}

.btn:hover {
    transform: translateY(-0.0625rem);
}

.btn:active {
    transform: translateY(0);
    opacity: 0.95;
}

.btn-primary {
    background: var(--btn-primary-grad);
    border: 0.0625rem solid var(--btn-primary-border);
    color: var(--text);
}

.btn-secondary {
    background: var(--ink-06);
    color: var(--text);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
}

/* Links */
.link {
    color: var(--text);
    text-decoration: none;
    opacity: 0.9;
}

.link:hover {
    opacity: 1;
    text-decoration: underline;
}

.link.small {
    font-size: 0.8125rem;
    opacity: 0.85;
}

/* =============================
   Forms
   ============================= */

.form {
    padding: 1rem;
}

.field {
    display: grid;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

label {
    font-weight: 700;
    font-size: 0.875rem;
}

input,
select,
textarea {
    width: 100%;
    border-radius: 0.75rem;
    border: 0.0625rem solid var(--border);
    background: var(--glass);
    color: var(--text);
    padding: 0.625rem 0.75rem;
    outline: none;
    font-size: 1rem;
}

textarea {
    resize: vertical;
    min-height: 7.5rem;
    /* ~= 120px */
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--focus-border);
    box-shadow: var(--focus-ring);
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    color: var(--muted);
    margin: 0.625rem 0 0.875rem;
}

.check input {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
}

.form-actions {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    align-items: center;
}

.hint {
    color: var(--muted);
    font-size: 0.8125rem;
    margin-top: 0.625rem;
}

/* =============================
   Lists / Code blocks
   ============================= */

.steps,
.bullets {
    margin: 0;
    padding-left: 1.125rem;
}

.steps li,
.bullets li {
    margin: 0.5rem 0;
}

.bullets {
    color: var(--muted);
}

.codebox {
    border-radius: var(--radius-sm);
    border: 0.0625rem solid var(--border);
    background: var(--glass);
    overflow: auto;
    padding: 0.75rem;
}

pre {
    margin: 0;
    font-size: 0.875rem;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875rem;
}

/* =============================
   Footer
   ============================= */

.site-footer {
    border-top: 0.0625rem solid var(--border);
    padding: 1.375rem 0 2.125rem;
    margin-top: 1.125rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 0.875rem;
    flex-wrap: wrap;
    align-items: center;
}

/* =============================
   Utilities
   ============================= */

.primary-text {
    color: var(--primary);
}

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

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.8125rem;
}

.req {
    color: var(--primary-2);
    font-weight: 700;
}

.hidden {
    display: none;
}

.dot {
    margin: 0 0.5rem;
    opacity: 0.6;
}

/* =============================
   Page-specific
   ============================= */

.cta-row {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    align-items: center;
}

.thanks-title {
    margin-top: 0;
}

.thanks-lead {
    margin-bottom: 0.625rem;
}

.thanks-cta-row {
    margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}