:root {
    --cream: #fbf3ea;
    --ivory: #fffaf4;
    --ink: #241813;
    --muted: #66544c;
    --rose: #c41649;
    --pink: #e97896;
    --blush: #f5ded6;
    --gold: #d4a13f;
    --leaf: #2f594e;

    --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
    --font-display: "Fraunces", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: rgba(36, 24, 19, 0.06);
    padding: 0.15em 0.5em;
    border-radius: 999px;
    font-size: 0.85em;
    white-space: nowrap;
}

.eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rose);
    margin: 0 0 1rem;
}

.eyebrow-light {
    color: rgba(255, 255, 255, 0.8);
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.6rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    border: 1px solid transparent;
    transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.btn:hover {
    filter: brightness(0.92);
}

.btn-dark {
    background: var(--ink);
    color: #fff;
}

.btn-dark:hover {
    background: var(--rose);
}

.btn-light {
    background: #fff;
    color: var(--rose);
    box-shadow: 0 12px 30px rgba(36, 24, 19, 0.18);
}

.btn-light:hover {
    background: var(--blush);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Navbar */

.navbar {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--ink);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 1rem 0.4rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(36, 24, 19, 0.1);
    backdrop-filter: blur(20px);
    min-width: 0;
}

.brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    background: var(--ink);
}

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

.brand-text {
    min-width: 0;
    line-height: 1.1;
}

.brand-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
}

.brand-sub {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 14rem;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(36, 24, 19, 0.1);
    backdrop-filter: blur(20px);
    font-size: 0.88rem;
    font-weight: 800;
}

.nav-links a {
    padding: 0.55rem 1rem;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
    background: var(--blush);
    color: var(--rose);
}

.nav-actions {
    display: none;
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(36, 24, 19, 0.1);
    backdrop-filter: blur(20px);
    cursor: pointer;
}

.nav-toggle .bar {
    width: 1.1rem;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
}

@media (min-width: 992px) {
    .nav-links {
        display: flex;
    }
    .nav-actions {
        display: flex;
        gap: 0.5rem;
    }
    .nav-toggle {
        display: none;
    }
}

/* Mobile menu */

.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(36, 24, 19, 0.65);
    backdrop-filter: blur(4px);
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.mobile-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 70;
    height: 100dvh;
    width: min(20rem, calc(100vw - 1.5rem));
    background: var(--ivory);
    color: var(--ink);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -20px 0 60px rgba(36, 24, 19, 0.25);
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.mobile-close {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: none;
    background: var(--ink);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.mobile-link {
    padding: 1.1rem 1.25rem;
    border-radius: 1.5rem;
    background: #fff;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(36, 24, 19, 0.06);
}

.mobile-link-dark {
    background: var(--ink);
    color: #fff;
    margin-top: auto;
}

.mobile-link-accent {
    background: var(--rose);
    color: #fff;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: var(--ink);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 6rem 1.5rem 3rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 18%;
}

@media (max-width: 640px) {
    .hero-bg {
        object-position: 66% 15%;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(36, 24, 19, 0.2) 0%, transparent 40%, rgba(36, 24, 19, 0.75) 100%),
        linear-gradient(to right, rgba(36, 24, 19, 0.92) 0%, rgba(36, 24, 19, 0.6) 45%, rgba(36, 24, 19, 0.15) 100%);
}

.hero-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 75% 25%, rgba(196, 22, 73, 0.3), transparent 55%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 60rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 8vw, 5.5rem);
    line-height: 0.95;
    font-weight: 700;
    margin: 0 0 1.5rem;
}

.hero-title .italic {
    font-style: italic;
    color: var(--blush);
}

.hero-text {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    max-width: 38rem;
    margin: 0 0 2rem;
}

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

.hero-stats {
    position: relative;
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.6rem;
    max-width: 44rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    border-radius: 1.4rem;
    padding: 1rem 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-card small {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 0.35rem;
}

.stat-card b {
    font-size: 0.95rem;
    line-height: 1.3;
}

.stat-card-alt {
    background: var(--blush);
}

.stat-card-accent {
    background: var(--rose);
    color: #fff;
}

.stat-card-accent small {
    color: rgba(255, 255, 255, 0.75);
}

/* Sections */

.section {
    padding: 4.5rem 1.5rem;
}

.section-ivory {
    background: var(--ivory);
}

.section-dark {
    background: var(--leaf);
    color: #fff;
}

.section-ink {
    background: var(--ink);
    color: #fff;
    overflow: hidden;
}

.section-grid {
    display: grid;
    gap: 2rem;
    max-width: 68rem;
    margin: 0 auto;
}

.section-head {
    max-width: 44rem;
    margin: 0 auto 3rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
    font-weight: 700;
    margin: 0;
}

.section-title-light {
    color: #fff;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--muted);
    margin: 1.5rem 0 0;
    max-width: 42rem;
}

.section-text-light {
    color: rgba(255, 255, 255, 0.75);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

.tag {
    background: #fff;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(36, 24, 19, 0.06);
}

/* Steps */

.steps {
    max-width: 74rem;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
}

.step-card {
    background: var(--cream);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: inset 0 0 0 1px rgba(36, 24, 19, 0.08);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: var(--rose);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.step-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin: 0 0 0.75rem;
}

.step-card p {
    margin: 0;
    line-height: 1.6;
    color: var(--muted);
}

.step-arrow {
    display: none;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--rose);
}

@media (min-width: 992px) {
    .steps {
        grid-template-columns: 1fr auto 1fr auto 1fr;
        align-items: center;
    }
    .step-arrow {
        display: block;
    }
    .step-card-mid {
        margin-top: 2rem;
    }
}

/* Power grid */

.power-grid {
    max-width: 74rem;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.power-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.75rem;
    padding: 1.75rem;
}

.power-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    margin-bottom: 1.25rem;
}

.power-icon .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.power-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0 0 0.6rem;
}

.power-card p {
    margin: 0 0 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.power-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cmd-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.power-card code {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* Split / preview */

.split {
    max-width: 74rem;
    margin: 0 auto;
    display: grid;
    gap: 2.5rem;
}

.preview-card {
    background: #fff;
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(36, 24, 19, 0.12);
}

.preview-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.4rem;
    background: var(--ink);
    color: #fff;
}

.preview-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: var(--rose);
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
}

.preview-head b {
    display: block;
    font-size: 0.9rem;
}

.preview-tag {
    display: inline-block;
    margin-top: 0.2rem;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: var(--rose);
    color: #fff;
    padding: 0.1rem 0.4rem;
    border-radius: 0.3rem;
}

.preview-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.preview-line {
    margin: 0.6rem 0 0;
    font-size: 0.92rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.6rem;
}

.preview-cmd {
    background: var(--blush);
    color: var(--rose);
    font-weight: 800;
    padding: 0.15em 0.5em;
    border-radius: 999px;
    font-size: 0.85em;
}

.preview-param {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35em;
    background: var(--cream);
    padding: 0.2em 0.6em;
    border-radius: 999px;
}

.param-name {
    font-size: 0.72em;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.param-name::after {
    content: ":";
    color: var(--muted);
}

.param-value {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.92em;
}

.param-mention {
    background: rgba(88, 101, 242, 0.14);
    color: #5865f2;
    padding: 0.05em 0.5em;
    border-radius: 0.4em;
}

.preview-reply {
    margin: 0.2rem 0 0.6rem;
    padding: 0.7rem 1rem;
    background: var(--cream);
    border-radius: 1rem;
    font-size: 0.88rem;
    color: var(--muted);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.preview-reply span {
    min-width: 0;
}

.icon-reply {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    color: var(--rose);
}

@media (min-width: 992px) {
    .split {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
    }
}

/* CTA */

.cta {
    max-width: 74rem;
    margin: 0 auto;
    display: grid;
    gap: 2.5rem;
    align-items: center;
    position: relative;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.cta-avatar {
    width: 100%;
    max-width: 20rem;
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 999px;
    object-fit: cover;
    object-position: top center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

@media (min-width: 992px) {
    .cta {
        grid-template-columns: 1.3fr 0.7fr;
    }
    .cta-avatar {
        max-width: 26rem;
    }
}

/* Footer */

.footer {
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    background: var(--cream);
}

.footer a {
    font-weight: 800;
    color: var(--rose);
}

.footer-disclaimer {
    max-width: 40rem;
    margin: 0.9rem auto 0;
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgba(102, 84, 76, 0.8);
}

.footer-disclaimer a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Inner page header (credits, etc.) */

.page-header {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
    padding: 9rem 1.5rem 4rem;
}

.page-header::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 75% 20%, rgba(196, 22, 73, 0.32), transparent 55%);
    pointer-events: none;
}

.page-header-content {
    position: relative;
    max-width: 44rem;
    margin: 0 auto;
    text-align: center;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1;
    font-weight: 700;
    margin: 0 0 1.1rem;
}

.page-lede {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

/* Credits */

.credits-grid {
    max-width: 74rem;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.credit-card {
    background: #fff;
    border-radius: 1.75rem;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(36, 24, 19, 0.06);
}

.credit-card h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin: 0.3rem 0 0.9rem;
}

.credit-card p {
    margin: 0;
    line-height: 1.65;
    color: var(--muted);
}

.credit-card a {
    color: var(--rose);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.credit-card b {
    color: var(--ink);
}

/* Error pages */

.error-page {
    justify-content: center;
    padding-top: 8rem;
}

.error-code {
    font-family: var(--font-display);
    font-size: clamp(6rem, 22vw, 13rem);
    font-weight: 800;
    line-height: 0.85;
    margin: 0 0 1.25rem;
    color: transparent;
    -webkit-text-stroke: 2px rgba(245, 222, 214, 0.55);
    text-shadow: 0 0 60px rgba(196, 22, 73, 0.45);
}

.error-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
}
