/* ----- Theme variables ----- */
:root {
    --color-primary-400: #ffd400;
    --color-primary-500: #ffc300;
    --color-primary-600: #ff8c00;

    --bg-base: #fcfbf6;
    --bg-elevated: #ffffff;
    --border-subtle: #ebe8df;
    --text-base: #0f172a;
    --text-muted: #475569;
    --grid-line: rgba(0, 0, 0, 0.04);

    /* code window header bg */
    --code-header-bg: #f8fafc;
    --code-tab-bg: #ffffff;

    /* syntax */
    --syn-kw: #cf222e;
    --syn-fn: #8250df;
    --syn-ctl: #0550ae;
    --syn-str: #0a3069;
    --syn-cmt: #6e7781;
    --syn-num: #0a7c2f;
    --syn-ty: #953800;

    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
    --font-display: "Space Grotesk", "Inter", sans-serif;
}

.dark {
    --bg-base: #0a0a0b;
    --bg-elevated: #161618;
    --border-subtle: #2a2a2e;
    --text-base: #f4f4f5;
    --text-muted: #a1a1aa;
    --grid-line: rgba(255, 255, 255, 0.05);

    --code-header-bg: #1c1c20;
    --code-tab-bg: #26262b;

    --syn-kw: #ff7b72;
    --syn-fn: #d2a8ff;
    --syn-ctl: #79c0ff;
    --syn-str: #a5d6ff;
    --syn-cmt: #8b949e;
    --syn-num: #7ee787;
    --syn-ty: #ffa657;
}

/* ----- Reset & base ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html,
body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}
body {
    background-color: var(--bg-base);
    color: var(--text-base);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.5;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
}
::selection {
    background: rgba(255, 195, 0, 0.3);
}

/* ----- Utility ----- */
.bg-grid {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
}
.text-gradient-primary {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-image: linear-gradient(135deg, var(--color-primary-400) 0%, var(--color-primary-600) 100%);
    display: inline-block;
}

/* ----- Navbar ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg-base) 80%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    height: 4rem;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
}
.nav-inner > .brand {
    grid-column: 1;
    justify-self: start;
}
.nav-inner > .nav-links {
    grid-column: 2;
}
.nav-inner > .nav-actions {
    grid-column: 3;
    justify-self: end;
}
@media (min-width: 640px) {
    .nav-inner {
        padding: 0 1.5rem;
        gap: 1rem;
    }
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.brand-logo {
    display: flex;
    align-items: center;
}
.brand-logo img {
    height: 1.5rem;
    width: auto;
}
.brand-logo-sm {
    width: 1.5rem;
    height: 1.5rem;
}
.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    margin-left: 0.25rem;
}
.brand-name-sm {
    font-size: 1rem;
}
.nav-links {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    justify-self: center;
}
.nav-links a {
    transition: color 0.15s;
}
.nav-links a:hover {
    color: var(--text-base);
}
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Icon button */
.icon-btn {
    color: var(--text-muted);
    padding: 0.375rem;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}
.icon-btn:hover {
    color: var(--text-base);
    background: var(--border-subtle);
}

/* Theme icons: show moon in light mode, sun in dark mode */
.icon-sun {
    display: none;
}
.dark .icon-moon {
    display: none;
}
.dark .icon-sun {
    display: inline;
}

/* Copy button: show clipboard by default, check when .copied is set */
.copy-btn .icon-check {
    display: none;
}
.copy-btn.copied .icon-copy {
    display: none;
}
.copy-btn.copied .icon-check {
    display: inline;
    color: #22c55e;
}

/* GitHub star button */
.gh-star {
    display: inline-flex;
    align-items: center;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border-color 0.3s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    height: 2.125rem;
}
.gh-star:hover {
    border-color: var(--text-muted);
}
.gh-star-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.75rem;
    height: 100%;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-base);
    transition: background 0.15s;
}
.gh-star:hover .gh-star-left {
    background: var(--bg-elevated);
}
.gh-star-count {
    padding: 0 0.75rem;
    height: 100%;
    display: inline-flex;
    align-items: center;
    border-left: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: color 0.15s;
}
.gh-star:hover .gh-star-count {
    color: var(--text-base);
}
.hide-sm {
    display: none;
}
@media (min-width: 768px) {
    .hide-sm {
        display: inline;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.btn-primary {
    background: var(--color-primary-500);
    color: #422a04;
    padding: 0.625rem 1.125rem;
    font-size: 0.9375rem;
}
.btn-primary:hover {
    background: var(--color-primary-400);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(255, 140, 0, 0.45);
}
.btn-primary svg {
    color: #5a3a06;
}
.btn-secondary {
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    color: var(--text-base);
    padding: 0.625rem 1.125rem;
    font-size: 0.9375rem;
}
.dark .btn-secondary {
    background: var(--bg-elevated);
}
.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}
.dark .btn-secondary:hover {
    background: #1f1f23;
}
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}
@media (min-width: 640px) {
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
    .btn-lg {
        padding: 0.9rem 1.75rem;
        font-size: 1.0625rem;
    }
}

/* ----- Hero ----- */
.hero {
    position: relative;
    /* Top padding must clear the 4rem fixed navbar; keep the extra tight on
       small phones so the hero content lands above the fold. */
    padding: 5rem 1rem 2.5rem;
    overflow: hidden;
}
@media (min-width: 640px) {
    .hero {
        padding: 7rem 1.5rem 4rem;
    }
}
@media (min-width: 768px) {
    .hero {
        padding: 9rem 1.5rem 5rem;
    }
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 110%);
    mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 110%);
    pointer-events: none;
}

/* Animated glow orbs */
.orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(100px);
    pointer-events: none;
    mix-blend-mode: multiply;
    will-change: transform;
}
.dark .orb {
    mix-blend-mode: screen;
}
.orb-1 {
    top: 20%;
    left: 30%;
    width: 420px;
    height: 420px;
    background: rgba(255, 195, 0, 0.12);
    animation: orb1 24s ease-in-out infinite;
}
.dark .orb-1 {
    background: rgba(255, 195, 0, 0.07);
}
@media (min-width: 768px) {
    .orb-1 {
        width: 560px;
        height: 560px;
        top: 28%;
    }
}

@keyframes orb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
}

.hero-inner {
    position: relative;
    z-index: 10;
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}
@media (min-width: 640px) {
    .hero-inner {
        gap: 2.5rem;
    }
}
@media (min-width: 1024px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 3rem;
        align-items: start;
        padding-top: 0.5rem;
    }
}
.hero-text {
    min-width: 0;
}

/* Entry animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.fade-in-up {
    animation: fadeInUp 0.5s ease-out both;
}
.fade-in-scale {
    animation: fadeInScale 0.5s ease-out 0.2s both;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 195, 0, 0.35);
    background: rgba(255, 195, 0, 0.08);
    color: #92400e;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}
.dark .badge {
    color: var(--color-primary-400);
    background: rgba(255, 195, 0, 0.06);
    border-color: rgba(255, 195, 0, 0.25);
}
.badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: var(--color-primary-500);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.2vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0 0 1.25rem;
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: anywhere;
}
@media (min-width: 768px) {
    .hero-title {
        line-height: 1.08;
        margin-bottom: 1.5rem;
    }
}
.hero-title .text-gradient-primary {
    line-height: 1.15;
    padding-bottom: 0.15rem;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: anywhere;
}

.hero-sub {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin: 0 0 1.75rem;
    max-width: 36rem;
    line-height: 1.55;
    word-break: normal;
    overflow-wrap: anywhere;
}
.hero-tagline {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-base);
    letter-spacing: -0.01em;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.cta-row .btn {
    flex: 1 1 auto;
    min-width: 0;
}
@media (min-width: 640px) {
    .cta-row .btn {
        flex: 0 0 auto;
    }
}

.install-cmd {
    margin-top: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--bg-elevated);
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-muted);
    width: 100%;
    max-width: 100%;
    transition: border-color 0.2s;
}
.install-cmd:hover {
    border-color: var(--text-muted);
}
@media (min-width: 1024px) {
    .install-cmd {
        width: fit-content;
        max-width: fit-content;
    }
}
.install-text {
    overflow-x: auto;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    scrollbar-width: none;
}
.install-text::-webkit-scrollbar {
    display: none;
}

/* Code window */
.code-window-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 32rem;
    min-width: 0;
}
@media (min-width: 1024px) {
    .code-window-wrap {
        margin-left: auto;
    }
}
.code-glow {
    position: absolute;
    inset: -1px;
    background: linear-gradient(
        to top right,
        rgba(255, 195, 0, 0.25),
        rgba(252, 211, 77, 0.1)
    );
    border-radius: 0.75rem;
    filter: blur(6px);
    opacity: 0.25;
    transition: opacity 0.5s;
}
.code-window-wrap:hover .code-glow {
    opacity: 0.35;
}

/* Ryduck mascot inside the closing CTA */
.cta-inner.cta-inner--mascot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 64rem;
    text-align: center;
}
@media (min-width: 768px) {
    .cta-inner.cta-inner--mascot {
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
        text-align: left;
    }
}
.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 38rem;
}
@media (min-width: 768px) {
    .cta-content {
        align-items: flex-start;
    }
    /* Beat the original .cta-inner rules that auto-center paragraphs and
       the button via margin auto. In the mascot variant we want everything
       flush-left next to Ryduck. */
    .cta-inner--mascot .cta-content h2,
    .cta-inner--mascot .cta-content p {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }
    .cta-inner--mascot .cta-content p {
        max-width: 32rem;
    }
    .cta-inner--mascot .cta-content .btn {
        margin-left: 0;
        margin-right: 0;
        align-self: flex-start;
    }
}
.cta-inner .cta-greeting {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.cta-greeting strong {
    color: var(--text-base);
    font-weight: 600;
}
.ryduck-mascot {
    width: 15rem;
    height: auto;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.18));
    animation: ryduck-bob 4.5s ease-in-out infinite;
    transition: transform 0.4s ease;
}
.dark .ryduck-mascot {
    filter: drop-shadow(0 14px 28px rgba(255, 195, 0, 0.22));
}
.ryduck-mascot:hover {
    transform: translateY(-6px) scale(1.04);
}
@keyframes ryduck-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@media (max-width: 640px) {
    .ryduck-mascot {
        width: 11rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ryduck-mascot,
    .orb-1,
    .fade-in-up,
    .fade-in-scale {
        animation: none;
    }
    .fade-in-up,
    .fade-in-scale {
        opacity: 1;
        transform: none;
    }
}
.code-window {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    box-shadow: 0 20px 25px -5px rgba(148, 163, 184, 0.25), 0 8px 10px -6px rgba(148, 163, 184, 0.25);
    transition: background 0.3s;
}
.dark .code-window {
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--code-header-bg);
}
.code-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.dots {
    display: flex;
    gap: 0.5rem;
}
.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    border: 1px solid;
}
.dot-r {
    background: #f87171;
    border-color: rgba(239, 68, 68, 0.5);
}
.dot-y {
    background: #facc15;
    border-color: rgba(234, 179, 8, 0.5);
}
.dot-g {
    background: #4ade80;
    border-color: rgba(34, 197, 94, 0.5);
}
.dark .dot-r {
    background: #f87171;
    border-color: rgba(239, 68, 68, 0.35);
    opacity: 0.7;
}
.dark .dot-y {
    background: #facc15;
    border-color: rgba(234, 179, 8, 0.35);
    opacity: 0.7;
}
.dark .dot-g {
    background: #4ade80;
    border-color: rgba(34, 197, 94, 0.35);
    opacity: 0.7;
}
.filename {
    margin-left: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    background: var(--code-tab-bg);
    color: var(--text-base);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.code-body {
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    min-height: 240px;
    overflow: auto;
    line-height: 1.625;
}
.code-body pre {
    margin: 0;
    color: var(--text-base);
    tab-size: 4;
    -moz-tab-size: 4;
    white-space: pre;
}
.code-body .kw {
    color: var(--syn-kw);
}
.code-body .ty {
    color: var(--syn-ty);
}
.code-body .num {
    color: var(--syn-num);
}
.code-body .fn {
    color: var(--syn-fn);
}
.code-body .ctl {
    color: var(--syn-ctl);
}
.code-body .str {
    color: var(--syn-str);
}
.code-body .cmt {
    color: var(--syn-cmt);
}
.code-footer {
    padding: 1rem 1.25rem;
    background: var(--code-header-bg);
    border-top: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.code-footer::-webkit-scrollbar {
    display: none;
}
.code-footer-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}
.prompt {
    color: #eab308;
    font-weight: 700;
    flex-shrink: 0;
}
.dim {
    opacity: 0.5;
}

/* ----- Inspirations ----- */
.inspirations {
    position: relative;
    padding: 3.5rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
}
.inspirations-inner {
    max-width: 64rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}
.inspirations-label {
    margin: 0;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 600;
}
.chip-row {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    color: var(--text-base);
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.2s, transform 0.2s;
}
.chip:hover {
    border-color: rgba(255, 195, 0, 0.45);
    transform: translateY(-1px);
}
.chip-emoji {
    font-size: 0.95rem;
    line-height: 1;
}

/* ----- Features ----- */
.features {
    position: relative;
    padding: 5.5rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
}
.features-inner {
    max-width: 80rem;
    margin: 0 auto;
}
.section-head {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 3.5rem;
}
.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: var(--text-base);
}
.section-head p {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.feature-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    padding: 1.75rem;
    transition: border-color 0.3s, transform 0.3s;
    overflow: hidden;
}
.feature-card:hover {
    border-color: rgba(255, 195, 0, 0.45);
    transform: translateY(-2px);
}
.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: rgba(255, 195, 0, 0.1);
    border: 1px solid rgba(255, 195, 0, 0.2);
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.3s, border-color 0.3s;
}
.dark .feature-icon {
    color: var(--color-primary-400);
}
.feature-card:hover .feature-icon {
    transform: scale(1.06);
    border-color: rgba(255, 195, 0, 0.4);
}
.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
    color: var(--text-base);
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0;
}

/* ----- CTA ----- */
.cta {
    position: relative;
    padding: 6.5rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-base);
    overflow: hidden;
}
.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 720px;
    height: 420px;
    background: rgba(255, 195, 0, 0.06);
    filter: blur(110px);
    border-radius: 100%;
    pointer-events: none;
}
.dark .cta-glow {
    background: rgba(255, 195, 0, 0.05);
}
.cta-inner {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}
.cta-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0 0 1.25rem;
    color: var(--text-base);
}
.cta-inner p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 38rem;
    line-height: 1.55;
    margin: 0 auto 2.25rem;
}
.cta-inner .btn {
    margin: 0 auto;
    width: 100%;
}
@media (min-width: 640px) {
    .cta-inner .btn {
        width: fit-content;
    }
}

/* ----- Footer ----- */
.footer {
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-base);
    padding: 2.5rem 1.5rem;
}
.footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .footer-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 1rem;
    }
    .footer-inner > .brand {
        justify-self: start;
    }
    .footer-inner > .footer-links {
        justify-self: center;
    }
    .footer-inner > .footer-meta {
        justify-self: end;
    }
}
.footer-meta {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}
.footer-links a {
    transition: color 0.15s;
}
.footer-links a:hover {
    color: var(--text-base);
}
