:root {
    color-scheme: dark;
    --bg: #080d1a;
    --panel: #10192b;
    --panel-deep: #0b1323;
    --line: #253451;
    --text: #f4f7ff;
    --muted: #aab8d1;
    --blue: #3568f8;
    --light-blue: #9bb8ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: Manrope, system-ui, sans-serif;
    min-height: 100vh;
    margin: 0;
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2px solid #94b6ff; outline-offset: 4px; }
[x-cloak] { display: none !important; }
.shell { width: min(100% - 2.5rem, 74rem); margin-inline: auto; }
.muted { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 1.25rem; }
.site-nav {
    border-bottom: 1px solid #1b2941;
    background: #080d1a;
}
.site-footer { border-top: 1px solid #1b2941; margin-top: 2rem; color: var(--muted); font-size: .875rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; letter-spacing: -.025em; white-space: nowrap; color: var(--text); }
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .7rem;
    background: var(--blue);
    color: white;
    font-size: 1.45rem;
    font-weight: 800;
    box-shadow: 0 6px 18px #244edd44;
}
.small-mark { width: 1.7rem; height: 1.7rem; font-size: 1.12rem; }
.nav-link { color: #c2cee3; }
.nav-link:hover { color: white; }
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    border: 1px solid transparent;
    border-radius: .75rem;
    padding: .84rem 1.1rem;
    font-weight: 800;
    font-size: .9375rem;
    line-height: 1.25;
    text-align: center;
    transition: background-color .16s, border-color .16s;
}
.button.hidden { display: none; }
@media (min-width: 640px) { .button.hidden { display: inline-flex; } }
.button-small { padding: .55rem .75rem; font-size: .875rem; }
.button-primary { background: #2859e6; color: #fff; }
.button-primary:hover:not(:disabled) { background: #2a52c8; }
.button-secondary { border-color: #364867; background: #111b2d; color: #e7eeff; }
.button-secondary:hover:not(:disabled) { background: #1b2a45; border-color: #6c86bb; }
.skip-link { position: absolute; top: -4rem; left: 1rem; z-index: 5; background: #fff; color: #080d1a; padding: .5rem; }
.skip-link:focus { top: 1rem; }
.hero {
    background:
        radial-gradient(ellipse at 86% 40%, #17356d82, transparent 48%),
        linear-gradient(180deg, #10192e, var(--bg));
    padding-block: clamp(3.5rem, 8vw, 7.5rem) clamp(3.5rem, 6vw, 6rem);
}
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.eyebrow {
    color: var(--light-blue);
    font-weight: 800;
    font-size: .875rem;
    letter-spacing: .065em;
    margin-bottom: .75rem;
}
.eyebrow span { margin-right: .35rem; }
.hero h1, .studio-heading h1, h2, h3 { font-weight: 800; letter-spacing: -.035em; }
.hero h1 { font-size: clamp(2.25rem, 4.7vw, 4.2rem); line-height: 1.08; letter-spacing: -.057em; }
.hero h1 em { color: var(--light-blue); font-style: normal; }
.hero-description { color: #becbe2; font-size: clamp(1rem, 2vw, 1.2rem); max-width: 36rem; margin-top: 1.25rem; }
.demo-window { overflow: hidden; box-shadow: 0 1.8rem 5rem #0007; background: var(--panel-deep); }
.demo-toolbar { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.15rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.window-controls { display: flex; gap: 5px; }
.window-controls i { width: 7px; height: 7px; background: #5b78a9; border-radius: 50%; }
.demo-content { display: grid; padding: clamp(.8rem, 3vw, 1.25rem); gap: .75rem; }
.demo-main {
    background: radial-gradient(ellipse at top right, #264ca0, transparent 68%), #121e39;
    border: 1px solid #36568d;
    border-radius: .9rem;
    padding: clamp(1.15rem, 3vw, 1.8rem);
}
.demo-quote { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; }
.demo-caption { display: inline-block; margin-top: 1rem; color: #ccd9f9; font-size: .875rem; }
.demo-row { display: grid; gap: .25rem; border: 1px solid var(--line); background: #111b2e; border-radius: .8rem; padding: .85rem 1rem; }
.demo-row span { color: var(--muted); font-size: .875rem; }
.section-block { padding-block: clamp(1.75rem, 5vw, 3.75rem); scroll-margin-top: 1rem; }
.calculator { display: grid; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(1.2rem, 4vw, 2.75rem); }
.section-block h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.2; }
.budget-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 1.5rem; font-weight: 800; }
.budget-label output { color: var(--light-blue); }
input[type="range"] { width: 100%; cursor: pointer; accent-color: #6894ff; margin-top: .75rem; }
.metric { display: grid; gap: .26rem; padding: 1rem; background: var(--panel-deep); border: 1px solid var(--line); border-radius: .85rem; }
.metric p, .metric span { color: var(--muted); font-size: .875rem; }
.metric strong { font-size: clamp(1.4rem, 2.7vw, 1.95rem); letter-spacing: -.035em; color: var(--light-blue); }
.price-card { padding: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; }
.price-card h3 { font-size: 1.1rem; }
.price { font-size: clamp(1.55rem, 3vw, 2rem); font-weight: 800; margin: .5rem 0 .75rem; letter-spacing: -.04em; }
.price span { font-size: .9rem; color: var(--muted); letter-spacing: 0; }
.featured { border-color: #436cbf; background: linear-gradient(155deg, #172b56, var(--panel) 70%); }
.account-page { min-height: 73vh; display: grid; align-items: center; padding-block: 3rem; }
.account-card { width: min(100%, 29rem); margin-inline: auto; padding: clamp(1.3rem, 5vw, 2.4rem); }
form label { display: block; color: #e7eeff; font-size: .9375rem; font-weight: 700; }
form input:not([type="hidden"]), form select, form textarea {
    display: block;
    width: 100%;
    margin-top: .45rem;
    padding: .75rem .8rem;
    border-radius: .65rem;
    border: 1px solid #364867;
    background: var(--panel-deep);
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
}
form select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #aac0eb 50%), linear-gradient(135deg, #aac0eb 50%, transparent 50%);
    background-position: right 1.15rem center, right .84rem center;
    background-size: .32rem .32rem;
    background-repeat: no-repeat;
    padding-right: 2rem;
}
form textarea { resize: vertical; min-height: 6rem; }
form input::placeholder, form textarea::placeholder { color: #8493af; }
.alert { color: #ffd3d4; background: #422332; border: 1px solid #714052; border-radius: .7rem; padding: .75rem .9rem; }
.dashboard { padding-block: 2.65rem 3rem; min-height: 74vh; }
.studio-heading { margin-bottom: 1.5rem; }
.studio-heading h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.2; overflow-wrap: anywhere; }
.credit-chip { display: flex; align-items: center; gap: .45rem; background: var(--panel); padding: .6rem .8rem; border: 1px solid var(--line); border-radius: .8rem; }
.credit-chip > span:first-child { color: var(--light-blue); font-size: 1.15rem; }
.plan-name { border-left: 1px solid var(--line); margin-left: .25rem; padding-left: .65rem; color: var(--muted); font-size: .875rem; }
.demo-notice { color: #cadaff; background: #142548; border: 1px solid #2a4777; border-radius: .7rem; padding: .65rem .85rem; margin-bottom: 1.25rem; font-size: .9rem; }
.studio-grid { display: grid; align-items: start; gap: 1.35rem; }
.studio-form, .result-card { padding: clamp(1.15rem, 3vw, 1.5rem); }
.studio-form h2, .studio-grid h2, .history h2 { font-size: 1.45rem; }
.result-card h3 { font-size: 1.05rem; }
.result-icon { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; flex: none; border-radius: .65rem; background: #1b3160; color: #b7cdff; font-weight: 800; }
.empty-state { display: grid; place-content: center; justify-items: center; gap: .85rem; min-height: 15rem; padding: 1rem; color: var(--muted); text-align: center; }
.result-list { margin: 1rem 0 0 1.35rem; list-style: decimal; padding: 0; }
.result-list li { padding: .35rem 0 .35rem .3rem; overflow-wrap: anywhere; }
.result-list li::marker { color: var(--light-blue); font-weight: 800; }
.result-body { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 1rem; }
.cta-line { color: #b7cdff; font-weight: 800; margin-top: .8rem; }
.history { margin-top: 2.1rem; }
.history-row { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; gap: .8rem; }
.history-row + .history-row { border-top: 1px solid var(--line); }
.history-empty { padding: 1rem; }
.clipboard-buffer { position: fixed; inset: 0 auto auto 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (min-width: 850px) {
    .hero-grid { grid-template-columns: 1.18fr 1fr; }
    .calculator { grid-template-columns: .9fr 1.1fr; }
    .studio-grid { grid-template-columns: minmax(18rem, .78fr) minmax(0, 1.22fr); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after { transition: none !important; }
}
