@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,700;0,6..96,900;1,6..96,400;1,6..96,700&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');
:root {
    --ink: #0C0B09;
    --paper: #F5F0E8;
    --gold: #B8962E;
    --gold-bright: #D4AF45;
    --ember: #C44B2B;
    --violet: #4A3060;
    --violet-light: #7B5EA0;
    --warm-gray: #8A8070;
    --border: rgba(184, 150, 46, 0.22);
    --content-max: 1100px;
    --nav-h: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: 'DM Mono', monospace;
    min-height: 100vh;
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

section,
.pricing-hero {
    padding-top: 36px !important;
    padding-bottom: 24px !important;
}

.pricing-body {
    padding-top: 24px !important;
    padding-bottom: 28px !important;
}

.engine-hero {
    padding-top: 36px !important;
    padding-bottom: 20px !important;
}

.engine-body {
    padding-top: 24px !important;
    padding-bottom: 28px !important;
}

.about-hero,
.about-body,
.contact-hero,
.contact-body,
.engine-shell {
    margin: 0 !important;
}

div {
    min-width: 0;
}


/* reduce giant gaps between numbered sections */

.emotion-section,
.intensity-section,
.generate-section,
.outputs-section,
.values-section,
.artists-section,
.compare-section,
.faq-section {
    margin-bottom: 24px !important;
}

.rule,
.section-rule {
    margin: 24px 0 !important;
}


/* tighten step headings */

.step-hd {
    margin-bottom: 12px !important;
}

.step-n {
    font-size: 44px !important;
}

.step-title {
    font-size: 16px !important;
}

.step-sub {
    font-size: 8px !important;
}


/* tighten cards and output areas */

.card,
.tier-card,
.value-card,
.ap-block,
.social-card,
.expect-step,
.email-compose,
.preview-card {
    padding: 18px !important;
}

.card-body,
.out-text,
.out-mono,
.out-gold {
    min-height: 0 !important;
}


/* pricing page compaction */

.tier-features {
    margin-bottom: 12px !important;
}

.tier-features li {
    padding: 3px 0 !important;
    line-height: 1.35 !important;
}

.tier-price {
    font-size: 40px !important;
    margin-bottom: 2px !important;
}

.tier-price-note {
    margin-bottom: 10px !important;
}

.compare-title,
.faq-title,
.values-title,
.artists-section-title,
.selector-title,
.expect-title,
.social-title {
    margin-bottom: 14px !important;
}

.compare-table th,
.compare-table td {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.faq-item {
    padding: 10px 0 !important;
}

.faq-q {
    margin-bottom: 6px !important;
}

.faq-a {
    line-height: 1.5 !important;
}


/* footer tighter */

footer {
    padding-top: 18px !important;
    padding-bottom: 20px !important;
}

.footer-inner {
    gap: 12px !important;
}


/* smaller mobile spacing too */

@media (max-width: 768px) {
    .pricing-hero,
    .engine-hero,
    .about-hero,
    .contact-hero {
        padding-top: 24px !important;
        padding-bottom: 16px !important;
    }
    .pricing-body,
    .engine-body,
    .about-body,
    .contact-body,
    .engine-shell {
        padding-top: 16px !important;
        padding-bottom: 20px !important;
    }
    .emotion-section,
    .intensity-section,
    .generate-section,
    .outputs-section,
    .compare-section,
    .faq-section,
    .values-section,
    .artists-section {
        margin-bottom: 18px !important;
    }
    .rule,
    .section-rule {
        margin: 18px 0 !important;
    }
}


/* background grain overlay */

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
    opacity: 0.7;
}


/* ambient gradient */

.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse 60% 40% at 15% 20%, rgba(184, 150, 46, 0.07) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 85% 70%, rgba(74, 48, 96, 0.10) 0%, transparent 55%), radial-gradient(ellipse 40% 30% at 50% 90%, rgba(196, 75, 43, 0.05) 0%, transparent 50%);
}

nav,
main,
footer,
header {
    position: relative;
    z-index: 10;
}


/* NAVBAR */

nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--nav-h);
    padding: 16px clamp(18px, 4vw, 40px);
    border-bottom: 1px solid var(--border);
    background: rgba(12, 11, 9, 0.92);
    backdrop-filter: blur(12px);
}

.nav-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.nav-logo span {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--warm-gray);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--paper);
    transition: 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
    border-color: rgba(255, 252, 245, 0.14);
    background: rgba(255, 252, 245, 0.04);
}

.nav-links .nav-cta {
    background: linear-gradient(135deg, rgba(184, 150, 46, 0.18), rgba(74, 48, 96, 0.16));
    border-color: rgba(184, 150, 46, 0.32);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta.active {
    background: linear-gradient(135deg, rgba(184, 150, 46, 0.28), rgba(74, 48, 96, 0.24));
    border-color: var(--gold);
}


/* HAMBURGER */

.nav-hamburger {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 252, 245, 0.14);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
    background: rgba(255, 252, 245, 0.02);
}

.nav-hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--paper);
}


/* BUTTONS */

.btn,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: 0.18s ease;
}

.btn {
    background: var(--gold);
    color: var(--ink);
    border: 1px solid var(--gold);
}

.btn:hover {
    background: var(--gold-bright);
    transform: translateY(-1px);
}

.btn-ghost {
    border: 1px solid rgba(255, 252, 245, 0.14);
    background: rgba(255, 252, 245, 0.02);
    color: var(--paper);
}

.btn-ghost:hover {
    border-color: rgba(255, 252, 245, 0.3);
    background: rgba(255, 252, 245, 0.05);
}


/* FOOTER */

footer {
    border-top: 1px solid var(--border);
    padding: 28px 20px 36px;
    background: rgba(12, 11, 9, 0.72);
}

.footer-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr auto auto;
    gap: 24px;
    align-items: start;
}

.footer-brand {
    font-family: 'Bodoni Moda', serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.footer-brand-sub {
    margin-top: 10px;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--warm-gray);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.footer-links a {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.86;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    color: var(--warm-gray);
    margin-bottom: 10px;
}

.footer-right small {
    color: rgba(245, 240, 232, 0.72);
    font-size: 11px;
}