:root {
    --paper: 229 228 224;
    --paper-soft: 243 243 239;
    --paper-panel: 246 246 241;
    --paper-field: 242 242 238;
    --white: 247 247 243;
    --stone: 216 215 210;
    --line: 191 191 186;
    --line-soft: 202 202 198;
    --ink: 29 29 29;
    --ink-hover: 57 57 57;
    --black: 17 17 17;
    --muted: 91 91 86;
    --yellow: 250 203 14;
    --pink: 240 107 168;
    --blue: 120 186 230;
    --cta: 74 100 128;
    --cta-hover: 61 85 110;
    --header-h: 76px;
    --frame: clamp(20px, 4.2vw, 56px);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    color-scheme: light;
}

[data-theme="dark"] {
    --paper: 22 22 24;
    --paper-soft: 32 32 34;
    --paper-panel: 36 36 38;
    --paper-field: 28 28 30;
    --white: 40 40 42;
    --stone: 48 48 50;
    --line: 72 72 74;
    --line-soft: 58 58 60;
    --ink: 239 239 236;
    --ink-hover: 220 220 216;
    --black: 247 247 243;
    --muted: 168 168 162;
    --cta: 120 150 176;
    --cta-hover: 140 168 192;
    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    background: rgb(var(--paper));
    color: rgb(var(--ink));
}

body.landing-page {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main {
    position: relative;
    z-index: 1;
}

img, svg { display: block; }
button, textarea, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 100;
    padding: 8px 14px;
    background: rgb(var(--ink));
    color: rgb(var(--paper));
    border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.frame {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: var(--frame);
    padding-right: var(--frame);
}

.paper-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 60;
    opacity: 0.22;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.12  0 0 0 0 0.11  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

[data-theme="dark"] .paper-grain {
    mix-blend-mode: overlay;
    opacity: 0.18;
}

/* Header */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    background: rgb(var(--paper) / 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background 0.25s var(--ease);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    border: 1px solid rgb(var(--black));
    background: rgb(var(--black));
    color: rgb(var(--paper));
}

[data-theme="dark"] .brand-mark {
    background: rgb(var(--ink));
    color: rgb(var(--paper));
}

.brand-name {
    font-size: 28px;
    font-weight: 550;
    letter-spacing: -0.045em;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.nav-desktop a,
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

[hidden],
[data-admin-link][hidden] {
    display: none !important;
}

.nav-desktop a:hover,
.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.nav-arrow {
    font-size: 10px;
    opacity: 0.7;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgb(var(--line));
    background: rgb(var(--paper-soft) / 0.7);
    color: rgb(var(--ink));
    transition: background 0.15s var(--ease);
}
.icon-btn:hover { background: rgb(var(--stone)); }

.icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 550;
    letter-spacing: 0.01em;
    color: rgb(var(--ink));
    background:
        linear-gradient(120deg, rgb(var(--blue) / 0.72), rgb(var(--pink) / 0.58)),
        linear-gradient(rgb(var(--white)), rgb(var(--white)));
    transition: transform 0.15s var(--ease), filter 0.15s var(--ease);
}
.btn-action:hover {
    filter: brightness(1.03);
}
.btn-action:hover svg {
    transform: translate(3px, -3px);
}
.btn-action svg {
    transition: transform 0.25s ease;
}

.btn-action-compact,
.theme-mobile,
.menu-toggle {
    display: none;
}

.read-progress {
    height: 1px;
    transform-origin: left;
    background: rgb(var(--ink));
    opacity: 0.45;
    transform: scaleX(var(--reading-progress, 0));
}

.mobile-menu {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px var(--frame);
    background: rgb(var(--paper));
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
    font-size: 22px;
    letter-spacing: -0.04em;
    padding: 10px 0;
    border-bottom: 1px solid rgb(var(--line-soft));
}
.mobile-menu .btn-action {
    margin-top: 12px;
    justify-content: center;
    font-size: 14px;
}

/* World / pearl */

.world {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 112vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.world-pearl {
    position: absolute;
    left: 52%;
    top: 8%;
    width: min(78vw, 780px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, #fff 0%, #f6f3ee 16%, #d7e7f4 38%, #cbb6d6 58%, #b7c6c2 76%, #8fa09c 100%);
    box-shadow:
        inset -48px -56px 90px rgba(40, 50, 60, 0.16),
        inset 28px 18px 54px rgba(255, 255, 255, 0.72),
        0 0 120px 40px rgb(var(--blue) / 0.12),
        0 50px 90px rgba(29, 29, 29, 0.1);
    filter: saturate(0.92);
}

.world-pearl::after {
    content: "";
    position: absolute;
    inset: 14%;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, rgb(255 255 255 / 0.55), transparent 46%);
    pointer-events: none;
}

[data-theme="dark"] .world-pearl {
    background:
        radial-gradient(circle at 32% 28%, #6a7280 0%, #3d4450 22%, #2a3038 48%, #1c2128 78%, #12151a 100%);
    box-shadow:
        inset -40px -50px 80px rgba(0, 0, 0, 0.45),
        inset 20px 16px 40px rgba(160, 190, 220, 0.12),
        0 40px 80px rgba(0, 0, 0, 0.35);
}

.world-orbits {
    position: absolute;
    left: 46%;
    top: 2%;
    width: min(92vw, 920px);
    aspect-ratio: 1;
    overflow: visible;
    animation: orbit-spin 80s linear infinite;
}

.world-orbits-back { z-index: 0; }
.world-pearl { z-index: 1; }
.world-orbits-front { z-index: 2; clip-path: inset(50% 0 0 0); }

.orbit-line {
    fill: none;
    stroke: rgb(var(--ink) / 0.28);
    stroke-width: 1.1;
}

.orbit-line-soft { stroke: rgb(var(--ink) / 0.16); }

.orbit-label {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(var(--ink) / 0.7);
}

.orbit-label i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgb(var(--ink));
    box-shadow: 0 0 0 4px rgb(var(--paper) / 0.7);
}

.orbit-label-form { left: 86%; top: 18%; }
.orbit-label-idea { left: 44%; top: 78%; }

@keyframes orbit-spin {
    to { transform: rotate(360deg); }
}

/* Hero */

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-top: calc(var(--header-h) + 28px);
    padding-bottom: 48px;
    display: grid;
    grid-template-rows: 1fr auto auto;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: clamp(52px, 10.4vw, 128px);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.9;
    color: rgb(var(--ink));
}

.hero-row-2 { margin-left: min(12vw, 160px); }
.hero-dash {
    align-self: center;
    margin: 0.08em 0;
    font-weight: 300;
    opacity: 0.45;
    font-size: 0.72em;
}
.hero-row-3 {
    align-self: flex-end;
    text-align: right;
    margin-right: min(4vw, 40px);
}

.composer {
    position: relative;
    z-index: 2;
    width: min(100%, 720px);
    margin: 28px auto 0;
}

.composer-halo {
    position: absolute;
    inset: -22px -18px;
    border-radius: 56px;
    background:
        linear-gradient(120deg, rgb(var(--blue) / 0.74), rgb(var(--yellow) / 0.7)),
        linear-gradient(#fff, #fff);
    filter: blur(0.2px);
    box-shadow:
        0 12px 18px -10px rgb(var(--ink) / 0.22),
        0 32px 52px -18px rgb(var(--ink) / 0.22),
        0 64px 96px -28px rgb(var(--ink) / 0.14);
}

.composer-panel {
    position: relative;
    border-radius: 28px;
    padding: 22px 22px 16px;
    background: rgb(var(--white));
    box-shadow:
        inset 0 1px 0 rgb(var(--white)),
        inset 0 -2px 3px rgb(var(--ink) / 0.035);
}

.composer-panel textarea {
    width: 100%;
    min-height: 118px;
    resize: none;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: rgb(var(--ink));
}

.composer-panel textarea::placeholder {
    color: rgb(var(--muted));
}

.composer-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.composer-send {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 14px 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 550;
    background: rgb(var(--cta));
    color: rgb(var(--white));
    transition: background 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s;
}
.composer-send:hover:not(:disabled) { background: rgb(var(--cta-hover)); }
.composer-send:hover:not(:disabled) svg { transform: translate(3px, -3px); }
.composer-send svg { transition: transform 0.25s ease; }
.composer-send:disabled { opacity: 0.38; cursor: not-allowed; }

.scroll-hint {
    display: inline-flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 36px;
    font-size: 12px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: rgb(var(--ink) / 0.72);
}
.scroll-hint:hover { opacity: 0.7; }

/* Manifesto */

.manifesto {
    position: relative;
    z-index: 1;
    padding: 18vh  var(--frame) 16vh;
    display: grid;
    gap: 12vh;
}

.manifesto h2,
.process h2,
.works h2,
.hosting h2,
.api h2,
.faq h2,
.finale h2 {
    font-size: clamp(42px, 7.2vw, 92px);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.manifesto p {
    max-width: 420px;
    font-size: 18px;
    line-height: 1.55;
    color: rgb(var(--muted));
}

/* Process */

.process {
    position: relative;
    z-index: 1;
    padding: 8vh 0 14vh;
}

.process h2 span { opacity: 0.35; }

.process-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
    gap: 48px;
    margin-top: 48px;
    align-items: start;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.process-step {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 14px;
    align-items: start;
    text-align: left;
    padding: 18px 8px 18px 0;
    border-top: 1px solid rgb(var(--line-soft));
    color: rgb(var(--muted));
    transition: color 0.2s var(--ease);
}
.process-step:last-of-type { border-bottom: 1px solid rgb(var(--line-soft)); }
.process-step.is-active,
.process-step:hover { color: rgb(var(--ink)); }

.step-num {
    font-size: 12px;
    letter-spacing: 0.08em;
    padding-top: 4px;
}

.process-step strong {
    display: block;
    font-size: 22px;
    font-weight: 550;
    letter-spacing: -0.04em;
    margin-bottom: 6px;
}

.step-desc {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    color: rgb(var(--muted));
}

.step-plus {
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: opacity 0.2s, transform 0.2s;
    padding-top: 6px;
}
.process-step.is-active .step-plus,
.process-step:hover .step-plus {
    opacity: 1;
    transform: none;
}

.process-try {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.02em;
}
.process-try:hover { text-decoration: underline; text-underline-offset: 5px; }
.process-try:hover svg { transform: translate(3px, -3px); }
.process-try svg { transition: transform 0.25s ease; }

.process-panel {
    border: 1px solid rgb(var(--line-soft));
    border-radius: 22px;
    overflow: hidden;
    background: rgb(var(--paper-soft));
    box-shadow: 0 24px 60px -28px rgb(var(--ink) / 0.22);
}

.editor-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgb(var(--line-soft));
    font-size: 12px;
    letter-spacing: -0.01em;
}

.editor-brand span,
.editor-status span { opacity: 0.45; }

.editor-body {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    min-height: 420px;
}

.editor-chat {
    padding: 22px 20px;
    border-right: 1px solid rgb(var(--line-soft));
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgb(var(--paper-panel));
}

.chat-title, .chat-reply {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 14px;
}
.chat-title span, .chat-reply span { opacity: 0.55; }

.chat-request {
    white-space: pre-line;
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: -0.02em;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgb(var(--white));
}

.chat-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: rgb(var(--muted));
}

.chat-note {
    margin-top: auto;
    font-size: 12px;
    color: rgb(var(--muted));
}

.chat-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding-top: 8px;
    border-top: 1px solid rgb(var(--line-soft));
}

.editor-canvas {
    padding: 18px;
    background:
        linear-gradient(180deg, rgb(var(--paper-soft)), rgb(var(--stone) / 0.35));
}

.mini-site {
    height: 100%;
    min-height: 360px;
    border-radius: 16px;
    background: rgb(var(--white));
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 28px -16px rgb(var(--ink) / 0.25);
}

.mini-site header, .mini-site footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: 0.02em;
    color: rgb(var(--muted));
}
.mini-site header strong {
    font-size: 18px;
    color: rgb(var(--ink));
    letter-spacing: -0.04em;
}

.mini-picture {
    flex: 1;
    margin: 14px 0;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 12px;
}

.mini-photo {
    border-radius: 12px;
    background:
        radial-gradient(circle at 30% 20%, #f7e7c8, transparent 42%),
        linear-gradient(160deg, #c9895a 0%, #8a4a2c 48%, #3d2318 100%);
}

.mini-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 6px 2px;
}

.mini-copy p { font-size: 11px; color: rgb(var(--muted)); }
.mini-copy h3 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.05;
}
.mini-copy span { font-size: 12px; }

.editor-caption {
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    border-top: 1px solid rgb(var(--line-soft));
    font-size: 12px;
    color: rgb(var(--muted));
}

/* Works */

.works {
    position: relative;
    z-index: 1;
    padding: 8vh 0 12vh;
}

.works-heading {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 48px;
}

.works-heading p {
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.works-heading span {
    display: block;
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.45;
    color: rgb(var(--muted));
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.work-card, .work-next {
    border-radius: 20px;
    overflow: hidden;
    background: rgb(var(--paper-soft));
    border: 1px solid rgb(var(--line-soft));
}

.work-card { padding: 16px 16px 22px; display: flex; flex-direction: column; color: inherit; }

.work-preview {
    position: relative;
    height: 168px;
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    background: rgb(var(--stone));
}

.work-preview-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 400%;
    height: 400%;
    transform: scale(0.25);
    transform-origin: top left;
    pointer-events: none;
    background: #fff;
}

.work-preview iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.work-preview-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgb(var(--white) / 0.88);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgb(var(--muted));
}

.works-empty {
    grid-column: 1 / -2;
    align-self: end;
    font-size: 15px;
    line-height: 1.5;
    color: rgb(var(--muted));
}

.work-card h3 {
    font-size: 18px;
    font-weight: 550;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.work-card p {
    font-size: 13px;
    line-height: 1.5;
    color: rgb(var(--muted));
}

.work-next {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    padding: 22px;
    background:
        linear-gradient(120deg, rgb(var(--pink) / 0.72), rgb(var(--yellow) / 0.78)),
        linear-gradient(#fff, #fff);
    border: 0;
    color: rgb(var(--ink));
}
.work-next-label { font-size: 12px; opacity: 0.7; }
.work-next-title {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.1;
}
.work-next-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.work-next:hover .work-next-bottom svg { transform: translate(3px, -3px); }
.work-next svg { transition: transform 0.25s ease; }

/* Hosting */

.hosting {
    position: relative;
    z-index: 1;
    padding: 10vh 0 12vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: start;
}

.domain-display {
    padding: 28px 0 36px;
}

.domain-label, .domain-foot {
    display: block;
    font-size: 13px;
    color: rgb(var(--muted));
}

.domain-display p {
    margin: 14px 0 16px;
    font-size: clamp(28px, 4.4vw, 52px);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.domain-suffix {
    font-weight: 450;
}

.domain-cursor {
    display: inline-block;
    width: 2px;
    height: 0.82em;
    margin-left: 2px;
    background: rgb(var(--ink));
    vertical-align: -0.08em;
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hosting-list {
    display: grid;
    gap: 0;
}

.hosting-list > div {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 8px 16px;
    padding: 22px 0;
    border-top: 1px solid rgb(var(--line-soft));
}
.hosting-list > div:last-child { border-bottom: 1px solid rgb(var(--line-soft)); }
.hosting-list span { font-size: 12px; padding-top: 6px; }
.hosting-list h3 {
    font-size: 22px;
    font-weight: 550;
    letter-spacing: -0.03em;
}
.hosting-list p {
    grid-column: 2;
    font-size: 14px;
    line-height: 1.5;
    color: rgb(var(--muted));
}

/* API */

.api {
    position: relative;
    z-index: 1;
    padding: 10vh 0 12vh;
}

.api-intro {
    max-width: 720px;
    margin-bottom: 48px;
}

.api-intro p {
    max-width: 520px;
    margin-top: 22px;
    font-size: 17px;
    line-height: 1.55;
    color: rgb(var(--muted));
}

.api-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

.api-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 26px 24px 22px;
    border-radius: 22px;
    background: rgb(var(--paper-soft));
    border: 1px solid rgb(var(--line-soft));
}

.api-card.is-featured {
    background:
        linear-gradient(160deg, rgb(var(--pink) / 0.22), rgb(var(--yellow) / 0.28)),
        rgb(var(--white));
    border-color: transparent;
}

.api-badge {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgb(var(--ink));
    color: rgb(var(--paper));
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.api-card-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.api-card h3 {
    font-size: 26px;
    font-weight: 550;
    letter-spacing: -0.04em;
}

.api-price {
    font-size: 20px;
    font-weight: 550;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.api-price span {
    font-size: 13px;
    font-weight: 450;
    color: rgb(var(--muted));
}

.api-card-lead {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
    color: rgb(var(--muted));
}

.api-card ul {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.api-card li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.4;
}

.api-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: rgb(var(--ink));
    font-size: 13px;
}

.api-buy {
    margin-top: auto;
    justify-content: center;
    width: 100%;
}

.api-models {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 40px;
    align-items: start;
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid rgb(var(--line-soft));
}

.api-models-copy h3 {
    font-size: 28px;
    font-weight: 550;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 12px;
}

.api-models-copy p {
    max-width: 360px;
    font-size: 15px;
    line-height: 1.55;
    color: rgb(var(--muted));
}

.api-model-groups {
    display: grid;
    gap: 22px;
}

.api-model-groups > div > span {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(var(--muted));
}

.api-model-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.api-model-list li {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgb(var(--paper-soft));
    border: 1px solid rgb(var(--line-soft));
    font-size: 13px;
    letter-spacing: -0.01em;
}

/* FAQ */

.faq {
    position: relative;
    z-index: 1;
    padding: 8vh 0 10vh;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
}

.section-index {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(var(--muted));
    margin-bottom: 18px;
}

.faq-list details {
    border-top: 1px solid rgb(var(--line-soft));
}
.faq-list details:last-child { border-bottom: 1px solid rgb(var(--line-soft)); }

.faq-list summary {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 22px 0;
    cursor: pointer;
    list-style: none;
    font-size: 20px;
    letter-spacing: -0.03em;
}
.faq-list summary:hover { opacity: 0.72; }
.faq-list details[open] summary { color: rgb(var(--ink)); }
.faq-list summary span {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgb(var(--muted));
    min-width: 28px;
}
.faq-list p {
    padding: 0 0 24px 46px;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.6;
    color: rgb(var(--muted));
}

/* Finale */

.finale {
    position: relative;
    z-index: 1;
    padding: 12vh 0 16vh;
}

.finale h2 {
    font-size: clamp(64px, 12vw, 150px);
    display: flex;
    flex-direction: column;
}

.finale-dot { opacity: 0.35; }

.finale-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
}

.btn-ink {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 20px;
    border-radius: 14px;
    background: rgb(var(--ink));
    color: rgb(var(--paper));
    font-size: 15px;
    font-weight: 550;
}
.btn-ink:hover { opacity: 0.88; }
.btn-ink:hover svg { transform: translate(3px, -3px); }
.btn-ink svg { transition: transform 0.25s ease; }

.finale-note {
    font-size: 15px;
    line-height: 1.4;
    color: rgb(var(--muted));
}

/* Footer */

.site-footer {
    position: relative;
    z-index: 1;
    padding: 42px var(--frame) 38px;
    border-top: 1px solid rgb(var(--line));
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr auto;
    gap: 32px;
    align-items: end;
}

.footer-top > p {
    max-width: 280px;
    font-size: 13px;
    line-height: 1.55;
    color: rgb(var(--muted));
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.back-top {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgb(var(--ink));
    transition: background 0.15s, color 0.15s;
}
.back-top:hover {
    background: rgb(var(--ink));
    color: rgb(var(--paper));
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgb(var(--line-soft));
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(var(--muted));
}

.footer-slogan { margin-left: auto; }

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-left: auto;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.footer-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Reveal */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .world-orbits, .domain-cursor { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn-action svg, .composer-send svg, .process-try svg, .work-next svg, .btn-ink svg { transition: none; }
}

/* Breakpoints */

@media (max-width: 1100px) {
    .works-grid { grid-template-columns: 1fr 1fr; }
    .hosting, .faq, .api-models { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 950px) {
    .nav-desktop, .header-actions { display: none; }
    .btn-action-compact, .theme-mobile, .menu-toggle { display: grid; }
    .btn-action-compact { display: inline-flex; margin-left: auto; }
    .brand-name { font-size: 24px; }
    .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
    .process-layout { grid-template-columns: 1fr; }
    .editor-body { grid-template-columns: 1fr; }
    .editor-chat { border-right: 0; border-bottom: 1px solid rgb(var(--line-soft)); }
    .works-heading { grid-template-columns: 1fr; }
    .api-plans { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .orbit-label-form { left: 78%; top: 16%; }
}

@media (max-width: 740px) {
    :root { --header-h: 64px; }
    .hero-title { font-size: clamp(40px, 14vw, 64px); }
    .hero-row-2 { margin-left: 8vw; }
    .hero-row-3 { align-self: flex-start; text-align: left; margin-right: 0; }
    .composer-halo { inset: -14px -10px; border-radius: 40px; }
    .composer-panel { border-radius: 22px; padding: 16px; }
    .composer-panel textarea { font-size: 16px; min-height: 96px; }
    .manifesto { padding: 12vh var(--frame) 10vh; gap: 6vh; }
    .works-grid { grid-template-columns: 1fr; }
    .finale-bottom { flex-direction: column; align-items: flex-start; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-slogan { display: none; }
    .world-pearl { left: 18%; top: 18%; width: 120vw; }
    .orbit-label { display: none; }
    .mini-picture { grid-template-columns: 1fr; }
    .mini-photo { min-height: 110px; }
}

@media (max-width: 480px) {
    .btn-action-compact { display: none; }
    .theme-mobile { margin-left: auto; }
    .faq-list p { padding-left: 0; }
}
