:root {
  --ink: #0b0d12;
  --muted: #626876;
  --line: #d8dbe2;
  --wash: #f4f3f8;
  --accent: #7139b4;
  --accent-dark: #542587;
  --violet-soft: #eee4fb;
  --cyan: #44d4e7;
  --green: #4bd2a0;
  --dark: #11151c;
  --panel: #181e28;
  --panel-raised: #222b39;
  --shadow: 0 24px 70px rgba(18, 14, 28, .16);
  --container: 1240px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, textarea, input { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #7c5ac7; outline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10000; left: 12px; top: -80px; padding: 10px 14px; color: var(--ink); background: #fff; border: 2px solid var(--ink); }
.skip-link:focus { top: 12px; }
.eyebrow { margin: 0 0 17px; color: var(--accent); font-size: 11px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; background: #fff; font-weight: 750; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }
.button-quiet { border-color: transparent; background: transparent; }
.button-light { color: var(--accent); background: #fff; border-color: #fff; }

/* Shared authentication surface */
.auth-dialog { width: min(calc(100% - 32px), 470px); max-height: min(860px, calc(100dvh - 32px)); padding: 34px; overflow: auto; border: 1px solid #cbd0d9; border-radius: 18px; color: var(--ink); background: #fff; box-shadow: 0 34px 100px rgba(7, 8, 12, .3); }
.auth-dialog::backdrop { background: rgba(8, 10, 15, .72); backdrop-filter: blur(8px); }
.auth-dialog h2 { margin: 0; font-size: 34px; line-height: 1.05; letter-spacing: -.04em; }
.auth-dialog > p:not(.eyebrow) { margin: 14px 0 23px; color: var(--muted); }
.auth-dialog > small { display: block; margin-top: 18px; color: var(--muted); line-height: 1.5; }
.auth-close { position: absolute; top: 13px; right: 15px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f0f1f4; font-size: 22px; }
.auth-mark { width: 43px; height: 43px; margin-bottom: 23px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; }
.auth-mark img { width: 24px; }
.auth-dialog form { display: grid; gap: 14px; }
.auth-dialog label { display: grid; gap: 6px; font-size: 12px; font-weight: 750; }
.auth-dialog input { height: 46px; padding: 0 13px; border: 1px solid #cbd0d9; border-radius: 8px; outline: 0; }
.auth-dialog input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(113, 57, 180, .12); }
.auth-dialog form .button { width: 100%; margin-top: 3px; }
.auth-error { min-height: 18px; margin: 0; color: #b73240; font-size: 12px; }
.auth-divider { height: 1px; margin: 24px 0; position: relative; background: var(--line); }
.auth-divider span { position: absolute; left: 50%; top: 50%; padding: 0 10px; transform: translate(-50%, -50%); color: var(--muted); background: #fff; font-size: 11px; }
.auth-sso { width: 100%; }

/* Landing navigation */
.site-header { position: sticky; z-index: 100; top: 0; background: rgba(255, 255, 255, .9); border-bottom: 1px solid rgba(206, 210, 219, .8); backdrop-filter: blur(18px); }
.header-inner { height: 86px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 250px; height: auto; display: block; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: 13px; }
.desktop-nav a { min-height: 40px; padding: 0 2px; display: inline-flex; align-items: center; transition: color .2s ease; }
.desktop-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-button, .mobile-nav { display: none; }

/* Animated creation hero */
.hero { min-height: 800px; padding: 94px 0 100px; position: relative; overflow: hidden; background: #f5f3f9; border-bottom: 1px solid var(--line); }
.hero-grid { position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(53, 45, 69, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(53, 45, 69, .07) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to bottom, #000 20%, transparent 95%); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .52; pointer-events: none; }
.hero-glow-one { width: 560px; height: 560px; right: -190px; top: -220px; background: radial-gradient(circle, rgba(140, 83, 204, .23), transparent 68%); }
.hero-glow-two { width: 420px; height: 420px; left: 35%; bottom: -250px; background: radial-gradient(circle, rgba(68, 212, 231, .14), transparent 70%); }
.hero-layout { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(620px, 1.1fr); gap: 50px; align-items: center; }
.hero-copy { position: relative; z-index: 3; }
.hero h1 { max-width: 680px; margin: 0; font-size: clamp(55px, 5.3vw, 78px); line-height: .98; letter-spacing: -.062em; }
.hero h1 span { color: var(--accent); }
.hero-lead { max-width: 640px; margin: 25px 0 31px; color: #505665; font-size: 18px; line-height: 1.65; }
.idea-composer { max-width: 670px; padding: 16px 17px 13px; background: rgba(255, 255, 255, .94); border: 1px solid #c6cad3; border-radius: 15px; box-shadow: 0 16px 46px rgba(20, 14, 33, .1); text-align: left; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.idea-composer:focus-within { border-color: var(--accent); box-shadow: 0 22px 58px rgba(94, 47, 146, .17); transform: translateY(-2px); }
.idea-composer label { display: block; margin-bottom: 3px; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.idea-composer textarea { width: 100%; min-height: 78px; resize: vertical; padding: 7px 0; border: 0; outline: 0; background: transparent; font-size: 16px; line-height: 1.55; }
.idea-composer textarea::placeholder { color: #979daa; }
.composer-bar { padding-top: 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e3e5e9; }
.attach-control { padding: 7px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.attach-control span { width: 25px; height: 25px; margin-right: 7px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
.idea-examples { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 9px; }
.idea-examples button { min-height: 36px; padding: 8px 14px; border: 1px solid rgba(180, 182, 193, .8); border-radius: 999px; background: rgba(255, 255, 255, .62); font-size: 12px; font-weight: 650; transition: .2s ease; }
.idea-examples button:hover { color: var(--accent); border-color: var(--accent); background: #fff; }

.creation-theatre { min-width: 0; perspective: 1500px; }
.theatre-stage { height: 570px; position: relative; transform-style: preserve-3d; transition: transform .18s ease-out; }
.generated-browser { width: 570px; height: 405px; position: absolute; z-index: 4; right: 0; top: 82px; overflow: hidden; border: 1px solid #303846; border-radius: 17px; color: #fff; background: #11161e; box-shadow: 0 40px 88px rgba(21, 15, 32, .3); transform: rotateY(-6deg) rotateX(3deg) translateZ(26px); transform-origin: center; transition: transform .8s cubic-bezier(.2, .8, .2, 1), box-shadow .8s ease; }
.theatre-stage[data-phase="ready"] .generated-browser { transform: rotateY(-3deg) rotateX(1deg) translateZ(45px) scale(1.035); box-shadow: 0 42px 95px rgba(60, 31, 93, .34); }
.browser-chrome { height: 46px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; color: #aab4c2; background: #151b24; border-bottom: 1px solid #303846; font-size: 10px; }
.browser-chrome div { display: flex; gap: 5px; }
.browser-chrome i { width: 6px; height: 6px; border-radius: 50%; background: #526071; }
.browser-chrome b { color: var(--green); font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.generated-page { height: calc(100% - 46px); padding: 19px; position: relative; overflow: hidden; color: #16231f; background: #f8faf9; transform: scale(.985); transition: background .7s ease, transform .7s ease; }
.theatre-stage[data-phase="ready"] .generated-page { background: #eff7f0; transform: none; }
.generated-result { opacity: 0; filter: grayscale(1) blur(4px); transform: translateY(12px) scale(.96); transition: opacity .65s ease, filter .65s ease, transform .65s ease; }
.theatre-stage[data-phase="compose"] .generated-result { opacity: .08; filter: grayscale(1) blur(3px); }
.theatre-stage[data-phase="style"] .generated-result { opacity: .7; filter: saturate(.55) blur(.35px); transform: translateY(3px) scale(.99); }
.theatre-stage[data-phase="ready"] .generated-result { opacity: 1; filter: none; transform: none; }
.generated-blueprint { position: absolute; z-index: 2; inset: 17px; opacity: 1; transition: opacity .55s ease, transform .55s ease; }
.theatre-stage[data-phase="style"] .generated-blueprint { opacity: .22; transform: scale(1.015); }
.theatre-stage[data-phase="ready"] .generated-blueprint { opacity: 0; pointer-events: none; }
.blueprint-code { position: absolute; inset: 58px 28px auto 28px; display: grid; gap: 9px; }
.blueprint-code i { width: 0; height: 5px; border-radius: 5px; background: #8c72bc; opacity: .72; transition: width .55s ease; }
.blueprint-code i:nth-child(2) { transition-delay: .12s; }.blueprint-code i:nth-child(3) { transition-delay: .24s; }.blueprint-code i:nth-child(4) { transition-delay: .36s; }.blueprint-code i:nth-child(5) { transition-delay: .48s; }
.theatre-stage[data-phase="brief"] .blueprint-code i:nth-child(1) { width: 38%; }
.theatre-stage[data-phase="compose"] .blueprint-code i:nth-child(1), .theatre-stage[data-phase="style"] .blueprint-code i:nth-child(1) { width: 62%; }
.theatre-stage[data-phase="compose"] .blueprint-code i:nth-child(2), .theatre-stage[data-phase="style"] .blueprint-code i:nth-child(2) { width: 48%; }
.theatre-stage[data-phase="compose"] .blueprint-code i:nth-child(3), .theatre-stage[data-phase="style"] .blueprint-code i:nth-child(3) { width: 72%; }
.theatre-stage[data-phase="compose"] .blueprint-code i:nth-child(4), .theatre-stage[data-phase="style"] .blueprint-code i:nth-child(4) { width: 41%; }
.theatre-stage[data-phase="compose"] .blueprint-code i:nth-child(5), .theatre-stage[data-phase="style"] .blueprint-code i:nth-child(5) { width: 57%; }
.blueprint-nav, .blueprint-copy, .blueprint-visual, .blueprint-cards { position: absolute; opacity: 0; border: 1px dashed #9ba4b1; transition: opacity .5s ease, transform .6s ease; transform: translateY(8px); }
.blueprint-nav { inset: 0 0 auto; height: 31px; }
.blueprint-copy { left: 3px; top: 65px; width: 58%; height: 150px; padding: 22px; display: grid; align-content: start; gap: 12px; }
.blueprint-copy i { height: 8px; border-radius: 5px; background: #c8ccd2; }.blueprint-copy i:nth-child(1) { width: 32%; }.blueprint-copy i:nth-child(2) { width: 88%; height: 18px; }.blueprint-copy i:nth-child(3) { width: 72%; }.blueprint-copy i:nth-child(4) { width: 45%; }
.blueprint-visual { right: 3px; top: 65px; width: 34%; height: 150px; border-radius: 50%; }
.blueprint-cards { inset: auto 3px 2px; height: 55px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border: 0; }
.blueprint-cards i { border: 1px dashed #9ba4b1; }
.theatre-stage[data-phase="compose"] .blueprint-code { opacity: .18; }
.theatre-stage[data-phase="compose"] .blueprint-nav, .theatre-stage[data-phase="compose"] .blueprint-copy, .theatre-stage[data-phase="compose"] .blueprint-visual, .theatre-stage[data-phase="compose"] .blueprint-cards,
.theatre-stage[data-phase="style"] .blueprint-nav, .theatre-stage[data-phase="style"] .blueprint-copy, .theatre-stage[data-phase="style"] .blueprint-visual, .theatre-stage[data-phase="style"] .blueprint-cards { opacity: 1; transform: none; }
.generated-nav { height: 31px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(38, 73, 61, .15); font-size: 7px; }
.generated-nav strong { font-size: 8px; letter-spacing: .15em; }
.generated-nav .demo-action, .generated-hero .demo-action { width: max-content; padding: 6px 8px; display: inline-block; border-radius: 4px; color: #f3fbf5; background: #173e31; font-size: 7px; }
.generated-hero { min-height: 184px; padding: 25px 3px 20px; display: grid; grid-template-columns: 1.32fr .68fr; gap: 17px; align-items: center; }
.generated-hero small { color: #4c7164; font-size: 6px; font-weight: 800; letter-spacing: .15em; }
.generated-hero h2 { max-width: 320px; margin: 8px 0 10px; font-family: Georgia, serif; font-size: 32px; font-weight: 500; line-height: .98; letter-spacing: -.04em; }
.generated-hero p { max-width: 305px; margin: 0 0 15px; color: #49695e; font-size: 9px; }
.impact-orb { width: 134px; height: 134px; margin: auto; position: relative; display: grid; place-content: center; border: 1px solid rgba(37, 90, 69, .34); border-radius: 50%; text-align: center; background: radial-gradient(circle at 42% 35%, #d6f7dd, #a4d7b3 60%, #76b88f); box-shadow: inset -14px -14px 25px rgba(14, 81, 54, .17), 0 13px 24px rgba(29, 88, 64, .15); }
.impact-orb span { font-family: Georgia, serif; font-size: 27px; }
.impact-orb small { max-width: 65px; margin: auto; font-size: 6px; letter-spacing: .04em; }
.impact-orb i { position: absolute; border: 1px solid rgba(30, 91, 66, .25); border-radius: 50%; animation: orbit 9s linear infinite; }
.impact-orb i:nth-of-type(1) { inset: -8px; }
.impact-orb i:nth-of-type(2) { inset: -17px; animation-direction: reverse; animation-duration: 13s; }
.impact-orb i:nth-of-type(3) { width: 6px; height: 6px; top: 4px; left: 16px; border: 0; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); }
.generated-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(38, 73, 61, .15); }
.generated-metrics article { padding: 12px 9px; border-left: 1px solid rgba(38, 73, 61, .15); }
.generated-metrics article:first-child { border-left: 0; }
.generated-metrics small, .generated-metrics b { display: block; }
.generated-metrics small { color: #688077; font-size: 5px; letter-spacing: .11em; }
.generated-metrics b { margin-top: 3px; font-family: Georgia, serif; font-size: 16px; font-weight: 500; }

.floating-piece { min-width: 184px; padding: 12px 14px; position: absolute; z-index: 6; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(132, 113, 168, .5); border-radius: 12px; background: rgba(255, 255, 255, .96); box-shadow: 0 16px 38px rgba(34, 25, 49, .16); backdrop-filter: blur(12px); transform-style: preserve-3d; transition: opacity .55s ease, transform .75s cubic-bezier(.2, .8, .2, 1); animation: float-piece 5.5s ease-in-out infinite; }
.floating-piece > span { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 31px; border: 1px solid #c7bdde; border-radius: 8px; color: var(--accent); font-size: 10px; font-weight: 900; }
.floating-piece small, .floating-piece b { display: block; }
.floating-piece small { color: #737887; font-size: 7px; letter-spacing: .15em; }
.floating-piece b { margin-top: 2px; font-size: 11px; }
.piece-brief { left: 8px; top: 24px; animation-delay: -.5s; }
.piece-layout { right: 7px; top: 18px; animation-delay: -2s; }
.piece-type { left: -5px; top: 218px; animation-delay: -3.5s; }
.piece-data { right: -12px; bottom: 82px; animation-delay: -1.2s; }
.piece-motion { left: 22px; bottom: 82px; animation-delay: -4.3s; }
.theatre-stage[data-phase="compose"] .piece-brief, .theatre-stage[data-phase="compose"] .piece-layout, .theatre-stage[data-phase="style"] .piece-type, .theatre-stage[data-phase="style"] .piece-data, .theatre-stage[data-phase="style"] .piece-motion, .theatre-stage[data-phase="ready"] .floating-piece { opacity: .15; transform: translate3d(250px, 80px, -100px) scale(.45); }
.assembly-core { width: 74px; height: 74px; position: absolute; z-index: 7; left: 116px; top: 360px; display: grid; place-items: center; border: 1px solid rgba(113, 57, 180, .36); border-radius: 50%; background: rgba(248, 245, 253, .92); box-shadow: 0 0 0 12px rgba(113, 57, 180, .05), 0 18px 38px rgba(57, 28, 87, .16); }
.assembly-core span { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: core-pulse 1.8s ease-in-out infinite; }
.assembly-core span:nth-child(1) { transform: translate(-13px, -8px); }
.assembly-core span:nth-child(2) { transform: translate(13px, -8px); animation-delay: .2s; }
.assembly-core span:nth-child(3) { transform: translate(0, 14px); animation-delay: .4s; }
.assembly-core i { width: 42px; height: 42px; border: 1px dashed rgba(113, 57, 180, .5); border-radius: 50%; animation: orbit 5s linear infinite; }
.build-signal { position: absolute; z-index: 2; height: 1px; opacity: .4; background: linear-gradient(90deg, transparent, var(--accent), transparent); transform-origin: left; animation: signal-flow 2.8s linear infinite; }
.signal-one { width: 310px; left: 150px; top: 130px; transform: rotate(13deg); }
.signal-two { width: 360px; left: 140px; top: 393px; transform: rotate(-19deg); animation-delay: -.8s; }
.signal-three { width: 280px; left: 246px; top: 290px; transform: rotate(-3deg); animation-delay: -1.6s; }
.build-progress { position: absolute; z-index: 8; left: 190px; right: 18px; bottom: 28px; display: flex; align-items: center; gap: 9px; color: #737987; font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.build-progress span { transition: color .3s ease; }
.build-progress i { height: 1px; flex: 1; background: #cfd0d8; }
.build-progress span.active { color: var(--accent); }
.demo-caption { margin: 0; position: absolute; z-index: 8; left: 190px; right: 18px; bottom: 2px; display: flex; align-items: center; justify-content: flex-start; gap: 9px; color: #565c69; font-size: 11px; }
.demo-caption b { color: var(--ink); }
.demo-caption small { margin-left: 8px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(75, 210, 160, .12); animation: live-pulse 1.8s ease-in-out infinite; }

/* Landing sections */
.assembly-section { padding: 110px 0; background: #fff; }
.section-heading { margin-bottom: 55px; display: grid; grid-template-columns: 1.18fr .82fr; gap: 90px; align-items: end; }
.section-heading h2 { margin: 0; font-size: clamp(40px, 4.4vw, 62px); line-height: 1.03; letter-spacing: -.052em; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 17px; }
.assembly-steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.assembly-steps article { min-height: 360px; padding: 27px; position: relative; border-left: 1px solid var(--line); }
.assembly-steps article:first-child { border-left: 0; }
.assembly-steps article > span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 9px; font-weight: 800; }
.assembly-steps h3 { margin: 27px 0 8px; font-size: 20px; }
.assembly-steps p { margin: 0; color: var(--muted); font-size: 13px; }
.step-visual { height: 135px; margin-top: 26px; position: relative; overflow: hidden; border-radius: 11px; background: #f3f2f6; }
.brief-lines { padding: 26px; display: grid; align-content: center; gap: 10px; }
.brief-lines i { height: 8px; border-radius: 8px; background: #d7d2df; transform-origin: left; animation: line-write 5s ease-in-out infinite; }
.brief-lines i:nth-child(1) { width: 74%; }
.brief-lines i:nth-child(2) { width: 92%; animation-delay: -.4s; }
.brief-lines i:nth-child(3) { width: 61%; animation-delay: -.8s; }
.brief-lines i:nth-child(4) { width: 84%; animation-delay: -1.2s; }
.component-stack i { width: 48%; height: 46%; position: absolute; border: 1px solid #b9afc9; border-radius: 8px; background: #fff; box-shadow: 0 8px 20px rgba(35, 24, 52, .08); animation: component-drift 5s ease-in-out infinite; }
.component-stack i:nth-child(1) { left: 12%; top: 14%; }
.component-stack i:nth-child(2) { right: 10%; top: 15%; animation-delay: -.8s; }
.component-stack i:nth-child(3) { left: 18%; bottom: 10%; animation-delay: -1.7s; }
.component-stack i:nth-child(4) { right: 15%; bottom: 8%; animation-delay: -2.4s; }
.page-miniature { padding: 14px; display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: .45fr 1fr; gap: 7px; }
.page-miniature i { border-radius: 5px; background: #fff; border: 1px solid #d5d1dc; }
.page-miniature i:first-child { grid-column: 1 / -1; background: #20142c; }
.page-miniature i:nth-child(2) { background: linear-gradient(135deg, #e8dbf6, #fff); }
.page-miniature i:nth-child(3) { background: #d8efe5; }
.page-miniature i:nth-child(4) { position: absolute; width: 36px; height: 36px; right: 40px; bottom: 24px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 8px rgba(113, 57, 180, .11); animation: live-pulse 2s ease-in-out infinite; }

.capability-section { padding: 118px 0; overflow: hidden; color: #fff; background: var(--dark); }
.capability-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 80px; align-items: center; }
.capability-copy h2 { margin: 0; max-width: 520px; font-size: clamp(43px, 4.8vw, 66px); line-height: 1; letter-spacing: -.055em; }
.capability-copy > p:not(.eyebrow) { max-width: 520px; margin: 24px 0 0; color: #aeb7c5; font-size: 17px; }
.inline-link { margin-top: 26px; display: inline-flex; gap: 10px; font-weight: 750; }
.capability-cloud { height: 550px; position: relative; perspective: 1100px; transform-style: preserve-3d; transition: transform .18s ease-out; }
.capability-sphere { width: 190px; height: 190px; position: absolute; left: 50%; top: 50%; display: grid; place-items: center; border: 1px solid #74528e; border-radius: 50%; background: radial-gradient(circle at 35% 27%, #9f64d5, #54287b 64%, #23152e); box-shadow: inset -24px -20px 42px rgba(13, 6, 19, .55), 0 36px 70px rgba(0, 0, 0, .35), 0 0 70px rgba(118, 58, 171, .28); transform: translate(-50%, -50%) translateZ(55px); }
.capability-sphere span { font-size: 14px; font-weight: 900; letter-spacing: .22em; }
.capability-sphere i { position: absolute; inset: -20px; border: 1px solid rgba(139, 100, 169, .42); border-radius: 50%; animation: orbit 11s linear infinite; }
.capability-sphere i:nth-child(2) { inset: -45px; transform: rotateX(64deg); animation-direction: reverse; animation-duration: 15s; }
.capability-sphere i:nth-child(3) { inset: -75px; border-style: dashed; animation-duration: 21s; }
.cap-card { width: 235px; min-height: 118px; padding: 18px; position: absolute; z-index: 3; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; border: 1px solid #3b4351; border-radius: 13px; background: rgba(28, 34, 45, .9); box-shadow: 0 18px 48px rgba(0, 0, 0, .27); backdrop-filter: blur(12px); animation: float-piece 6s ease-in-out infinite; }
.cap-card > span { width: 35px; height: 35px; grid-row: 1 / 3; display: grid; place-items: center; border: 1px solid #66507a; border-radius: 8px; color: #d3a8ff; }
.cap-card b { align-self: end; font-size: 13px; }
.cap-card small { color: #9da7b6; font-size: 9px; }
.card-sites { left: 0; top: 44px; }
.card-apps { right: 0; top: 74px; animation-delay: -1.8s; }
.card-stories { left: 12px; bottom: 45px; animation-delay: -3.4s; }
.card-systems { right: 17px; bottom: 33px; animation-delay: -4.7s; }

.handoff-section { padding: 110px 0; background: #fff; }
.handoff-track { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; }
.handoff-track > i { color: #999fab; font-style: normal; }
.handoff-track article { min-height: 148px; padding: 21px; display: flex; gap: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.handoff-track article > span { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 9px; font-size: 9px; font-weight: 900; }
.handoff-track article.active { border-color: var(--accent); background: #faf7fd; box-shadow: 0 15px 34px rgba(84, 43, 126, .08); }
.handoff-track article.future { color: #777e89; background: #f4f5f7; border-style: dashed; }
.handoff-track small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.handoff-track h3 { margin: 4px 0 5px; font-size: 18px; }
.handoff-track p { margin: 0; color: var(--muted); font-size: 11px; }
.final-cta { padding: 88px 0; color: #fff; background: var(--accent); }
.final-cta .container { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.final-cta .eyebrow { color: #eadcf8; }
.final-cta h2 { margin: 0; font-size: 52px; line-height: 1; letter-spacing: -.045em; }
.final-cta p:not(.eyebrow) { margin: 10px 0 0; color: #ecdef8; }
.site-footer { padding: 66px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 60px; }
.footer-grid > div p { max-width: 300px; color: var(--muted); font-size: 12px; }
.footer-grid .brand img { width: 285px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.footer-grid nav strong { margin-bottom: 5px; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.footer-grid nav a { min-height: 30px; display: inline-flex; align-items: center; color: var(--muted); }
.footer-grid nav a:hover { color: var(--accent); }
.footer-bottom { margin-top: 50px; padding-top: 18px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.motion-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .75, .2, 1); }
.motion-ready .reveal.visible { opacity: 1; transform: none; }

/* Workspace shell */
.workspace-page { height: 100vh; overflow: hidden; color: #eef3fa; background: #0d1117; }
.workspace-topbar { height: 72px; padding: 0 18px; display: flex; align-items: center; gap: 17px; border-bottom: 1px solid #303846; background: #11161e; }
.workspace-logo { display: flex; align-items: center; }
.workspace-logo img { width: 210px; height: auto; display: block; }
.not-found-logo { width: 250px; height: auto; margin: 0 auto 28px; display: block; }
.project-switcher { min-width: 180px; padding: 8px 11px; display: flex; align-items: center; gap: 8px; border: 1px solid #333d4c; border-radius: 8px; color: #eef3fa; background: #191f29; font-size: 11px; }
.status-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 7px; border-radius: 50%; background: var(--green); }
.workspace-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.workspace-tool { min-width: 130px; padding: 7px 9px; display: flex; align-items: center; gap: 8px; border: 1px solid #3a4556; border-radius: 8px; color: #f5f7fa; background: #202734; text-align: left; transition: .2s ease; }
.workspace-tool:not(:disabled):hover { border-color: #8b58bb; background: #2a2240; transform: translateY(-1px); }
.workspace-tool:disabled { color: #657080; background: #171c24; border-color: #2b333f; opacity: .72; }
.workspace-tool b, .workspace-tool small { display: block; }
.workspace-tool b { font-size: 11px; }
.workspace-tool small { color: #9da8b8; font-size: 8px; }
.workspace-tool:disabled small { color: #5d6673; }
.tool-icon { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 29px; border: 1px solid #748095; border-radius: 7px; font-size: 8px; font-weight: 900; }
.publish-control { border-style: dashed; }
.blocked-control, .workspace-tool.blocked-control {
  color: #ffe8e8;
  border-color: #d94b57;
  background: #35171c;
  opacity: 1;
}
.workspace-tool.blocked-control:hover, .workspace-tool.blocked-control:focus-visible {
  border-color: #ff7b84;
  background: #481c23;
  box-shadow: 0 0 0 3px rgba(217, 75, 87, .2);
  transform: none;
}
.workspace-tool.blocked-control small { color: #ffadb3; }
.workspace-tool.blocked-control .tool-icon { color: #fff; border-color: #ff7b84; background: #a62634; }
.blocked-inline {
  border: 1px solid #c83f4c !important;
  border-radius: 6px;
  color: #ffb4ba !important;
  background: #32161b !important;
}
.blocked-inline:focus-visible, .blocked-inline:hover { outline: 2px solid #ff7b84; outline-offset: 2px; }
.blocked-status { color: #ff9ca5; }
.blocker-eyebrow { color: #aa1f2c; }
.blocker-dialog [data-blocker-dialog-id] { display: block; margin: 0 0 22px; color: #aa1f2c; }
.project-options { max-height: 280px; margin: 18px 0; display: grid; gap: 8px; overflow: auto; }
.project-options button { padding: 11px 12px; display: grid; gap: 3px; border: 1px solid #cbd0d9; border-radius: 8px; color: var(--ink); background: #fff; text-align: left; }
.project-options button:hover, .project-options button:focus-visible { border-color: var(--accent); outline: 2px solid rgba(113, 57, 180, .16); }
.project-options small { color: var(--muted); }
.exchange-dialog { width: min(calc(100% - 32px), 720px); }
.exchange-results { max-height: 430px; margin: 18px 0; display: grid; gap: 10px; overflow: auto; }
.exchange-listing { padding: 15px; display: grid; grid-template-columns: 1fr auto; gap: 14px; border: 1px solid #cbd0d9; border-radius: 10px; }
.exchange-listing h3 { margin: 0 0 5px; font-size: 16px; }
.exchange-listing p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.exchange-listing small { display: block; margin-top: 7px; color: #6d7480; }
.exchange-listing-actions { display: flex; align-items: center; gap: 7px; }
.exchange-listing-actions button { min-width: 86px; }
.workspace-auth { max-width: 170px; padding: 8px 10px; display: flex; align-items: center; gap: 7px; overflow: hidden; border: 1px solid #343e4c; border-radius: 8px; color: #cbd4df; background: #151b23; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.workspace-help { padding: 8px 10px; border: 1px solid #3a4556; border-radius: 8px; color: #cbd4df; background: #1b222d; font-size: 9px; }
.auth-presence { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #7b8492; }
.auth-action.authenticated .auth-presence, .workspace-auth.authenticated .auth-presence { background: var(--green); box-shadow: 0 0 0 4px rgba(75, 210, 160, .1); }
.forge-workspace { height: calc(100vh - 72px); display: grid; grid-template-columns: 360px minmax(0, 1fr); }
.forge-sidebar { min-height: 0; display: grid; grid-template-rows: auto 1fr auto; border-right: 1px solid #303846; background: #151a22; }
.workspace-panel-head { height: 61px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #303846; }
.workspace-panel-head small, .workspace-panel-head strong { display: block; }
.workspace-panel-head small { color: #8691a1; font-size: 7px; letter-spacing: .14em; }
.workspace-panel-head strong { font-size: 12px; }
.workspace-panel-head button { padding: 5px 8px; border: 0; color: #7f8998; background: transparent; font-size: 10px; }
.conversation { min-height: 0; overflow-y: auto; padding: 18px; }
.workspace-welcome { min-height: 100%; display: grid; place-content: center; justify-items: start; }
.forge-avatar { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #905cbe; border-radius: 9px; color: #d7b6f6; background: #2c1d3c; font-size: 9px; font-weight: 900; }
.workspace-welcome h1 { margin: 18px 0 9px; font-size: 27px; line-height: 1.05; letter-spacing: -.04em; }
.workspace-welcome p { margin: 0; color: #a3adba; font-size: 12px; }
.workspace-welcome > div:last-child { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 7px; }
.workspace-examples > small { width: 100%; color: #8691a1; font-size: 7px; letter-spacing: .13em; }
.workspace-welcome button { padding: 7px 9px; border: 1px solid #3d4756; border-radius: 7px; color: #b7c0cc; background: #1c232d; font-size: 9px; }
.forge-onboarding { margin-top: 18px; padding: 14px; position: relative; border: 1px solid #4c3b60; border-radius: 10px; background: #1e1828; }
.forge-onboarding > button { position: absolute; top: 7px; right: 7px; }
.forge-onboarding small { color: #c6a3e8; font-size: 7px; letter-spacing: .12em; }
.forge-onboarding h2 { margin: 7px 24px 7px 0; font-size: 15px; }
.forge-onboarding p { color: #c4b8cf; }
.forge-onboarding p + p { margin-top: 7px; }
.forge-onboarding ol { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; color: #aeb7c4; font-size: 9px; line-height: 1.45; }
.build-thread { display: grid; gap: 15px; }
.user-message { margin-left: 34px; padding: 13px; border: 1px solid #3c4656; border-radius: 11px 11px 3px 11px; color: #edf2f8; background: #232b38; font-size: 11px; }
.forge-message { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.forge-message p { margin: 4px 0 12px; color: #c5cdd8; font-size: 11px; }
.stream-diagnostics { margin: 0 0 12px; color: #8e99a8; font-size: 8px; }
.stream-diagnostics summary { width: max-content; cursor: pointer; }
.stream-diagnostics pre { max-height: 180px; margin: 7px 0 0; padding: 9px; overflow: auto; border: 1px solid #384352; border-radius: 6px; color: #aeb8c5; background: #10151c; font: 8px/1.5 "Cascadia Code", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.thread-progress { display: grid; gap: 8px; }
.thread-progress span { padding-left: 20px; position: relative; color: #727d8b; font-size: 9px; }
.thread-progress span::before { content: ""; width: 10px; height: 10px; position: absolute; left: 0; top: 2px; border: 1px solid #4d5868; border-radius: 50%; }
.thread-progress span.active { color: #f0e4fb; }
.thread-progress span.active::before { border-color: #9866c6; background: var(--accent); box-shadow: 0 0 0 4px rgba(113, 57, 180, .12); }
.thread-progress span.done { color: #a8e6ce; }
.thread-progress span.done::before { content: "✓"; display: grid; place-items: center; color: var(--green); border-color: #3d8d70; background: transparent; font-size: 7px; }
.artifact-card { padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #454e5e; border-radius: 10px; background: #1d2430; }
.artifact-card > div { display: flex; align-items: center; gap: 9px; }
.artifact-card > div > span { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #78519c; border-radius: 7px; color: #d0a5f5; }
.artifact-card b, .artifact-card small { display: block; }
.artifact-card b { font-size: 9px; }
.artifact-card small { color: #8490a0; font-size: 7px; }
.artifact-evidence { max-width: 220px; margin-top: 4px; color: #aeb7c4; font-size: 7px; }
.artifact-evidence summary { cursor: pointer; }
.artifact-evidence small { margin-top: 4px; overflow-wrap: anywhere; }
.artifact-card button { padding: 6px 8px; border: 1px solid #75519a; border-radius: 6px; color: #fff; background: #5e3190; font-size: 8px; }
.build-error, .approval-panel { padding: 13px; border-radius: 10px; }
.build-error { border: 1px solid #8e3d4b; color: #ffdfe4; background: #2a171d; }
.build-error b, .approval-panel b { display: block; font-size: 11px; }
.build-error p, .approval-panel p { margin: 7px 0; color: #cbd3de; font-size: 9px; line-height: 1.5; white-space: pre-wrap; }
.build-error small { display: block; margin-bottom: 9px; color: #dc9da8; font-size: 8px; overflow-wrap: anywhere; }
.build-error button, .approval-panel button { padding: 7px 9px; border: 1px solid #6e7a8b; border-radius: 6px; color: #eef3fa; background: #222a36; font-size: 9px; }
.approval-panel { border: 1px solid #6a4b88; background: #211a2c; }
.approval-panel > small { display: block; margin-bottom: 5px; color: #c8a5e7; font-size: 7px; letter-spacing: .13em; }
.approval-panel > div { display: flex; justify-content: flex-end; gap: 7px; }
.approval-panel [data-approve-build] { border-color: #8554ad; background: #633493; }
.build-controls { padding: 11px; display: grid; gap: 6px; border: 1px solid #66522f; border-radius: 9px; background: #282217; }
.build-controls button { width: max-content; padding: 7px 9px; border: 1px solid #b88a3e; border-radius: 6px; color: #ffe5b5; background: #3a2b16; font-size: 9px; }
.build-controls small { color: #c5ad82; font-size: 8px; line-height: 1.45; }
.workspace-composer { margin: 14px; padding: 11px; border: 1px solid #465164; border-radius: 11px; background: #181e28; }
.workspace-composer label { display: block; color: #a6b0be; font-size: 9px; }
.workspace-composer textarea { width: 100%; min-height: 76px; padding: 7px 0; resize: none; outline: 0; border: 0; color: #eef3fa; background: transparent; font-size: 11px; }
.workspace-composer > div { display: flex; align-items: center; gap: 8px; }
.workspace-composer > div span { margin-left: auto; color: #6e7988; font-size: 8px; }
.composer-attach { padding: 4px 0; border: 0; color: #8f9aaa; background: transparent; font-size: 9px; }
.send-button { width: 30px; height: 30px; border: 0; border-radius: 7px; color: #fff; background: var(--accent); }
.artifact-stage { min-width: 0; min-height: 0; display: grid; grid-template-rows: 53px 1fr 34px; background: #232a35; }
.artifact-toolbar { padding: 0 12px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #3b4554; background: #171d26; }
.artifact-address { min-width: 220px; display: flex; align-items: center; gap: 7px; color: #8e99a8; font-size: 9px; }
.artifact-address b { color: #ccd5df; }
.viewport-switcher { margin: auto; padding: 3px; display: flex; border: 1px solid #374252; border-radius: 7px; background: #111720; }
.viewport-switcher button { padding: 5px 9px; border: 0; border-radius: 5px; color: #768291; background: transparent; font-size: 8px; }
.viewport-switcher button.active { color: #edf2f8; background: #2a3340; }
.artifact-actions { display: flex; gap: 6px; }
.artifact-actions button { width: 29px; height: 29px; border: 1px solid #3c4655; border-radius: 6px; color: #aab4c1; background: #202733; }
.artifact-actions button:disabled { color: #596270; background: #171c24; }
.artifact-canvas { min-height: 0; padding: 18px; position: relative; display: grid; place-items: center; overflow: auto; perspective: 1200px; }
.empty-canvas { width: min(520px, 90%); text-align: center; color: #c7d0db; }
.empty-canvas h2 { margin: 29px 0 8px; font-size: 27px; letter-spacing: -.04em; }
.empty-canvas p { max-width: 470px; margin: auto; color: #828d9b; font-size: 11px; }
.empty-orbit { width: 250px; height: 250px; margin: auto; position: relative; border: 1px solid #394454; border-radius: 50%; animation: orbit 26s linear infinite; }
.empty-orbit::before, .empty-orbit::after { content: ""; position: absolute; border: 1px dashed #313b48; border-radius: 50%; }
.empty-orbit::before { inset: 34px; }
.empty-orbit::after { inset: 77px; background: radial-gradient(circle, rgba(113, 57, 180, .22), transparent); }
.empty-orbit span { padding: 5px 7px; position: absolute; z-index: 2; border: 1px solid #414c5c; border-radius: 5px; color: #8c97a6; background: #1b222c; font-size: 7px; letter-spacing: .09em; animation: counter-orbit 26s linear infinite; }
.empty-orbit span:nth-child(1) { left: 50%; top: -12px; }
.empty-orbit span:nth-child(2) { right: -12px; top: 50%; }
.empty-orbit span:nth-child(3) { left: 50%; bottom: -12px; }
.empty-orbit span:nth-child(4) { left: -20px; top: 50%; }
.empty-orbit i { width: 13px; height: 13px; position: absolute; left: calc(50% - 6px); top: calc(50% - 6px); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 12px rgba(113, 57, 180, .1), 0 0 35px rgba(144, 86, 199, .6); }
.canvas-build-layer { width: min(900px, 95%); height: min(590px, 86%); position: relative; border: 1px solid #3f4958; border-radius: 14px; background: #161c24; overflow: hidden; }
.build-code { width: 54%; height: 100%; padding: 70px 45px; display: grid; align-content: center; gap: 13px; color: #a67bd0; font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; background: linear-gradient(90deg, #151a22, #1d2430); }
.build-code span { opacity: 0; animation: code-line .55s ease forwards; }
.build-code span:nth-child(2) { animation-delay: .22s; }.build-code span:nth-child(3) { animation-delay: .44s; color: #d7e1ee; }.build-code span:nth-child(4) { animation-delay: .66s; }.build-code span:nth-child(5) { animation-delay: .88s; }
.artifact-window { width: min(1120px, 96%); min-width: 680px; overflow: hidden; border: 1px solid #d7dae0; border-radius: 11px; color: #101217; background: #fff; box-shadow: 0 28px 70px rgba(3, 5, 8, .31); animation: artifact-arrive .8s cubic-bezier(.2, .8, .2, 1) both; }
.artifact-window iframe { width: 100%; height: min(680px, 74vh); display: block; border: 0; background: #fff; }
.artifact-canvas[data-viewport-state="tablet"] .artifact-window { width: 760px; }
.artifact-canvas[data-viewport-state="mobile"] .artifact-window { width: 390px; min-width: 390px; }
.demo-app-nav { min-height: 62px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e1e3e7; font-size: 9px; }
.demo-app-nav > div { display: flex; align-items: center; gap: 10px; }
.demo-mark { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: #111318; font-size: 8px; }
.demo-app-nav button { padding: 7px 10px; border: 0; border-radius: 5px; color: #fff; background: #111318; font-size: 8px; }
.demo-app-main { padding: 27px; }
.demo-title { display: flex; align-items: end; justify-content: space-between; }
.demo-title small, .demo-chart-card small, .attention-card small { color: #757d89; font-size: 7px; letter-spacing: .11em; }
.demo-title h1 { margin: 5px 0 2px; font-size: 28px; letter-spacing: -.045em; }
.demo-title p { margin: 0; color: #747b87; font-size: 9px; }
.date-control { padding: 8px 10px; border: 1px solid #d9dce2; border-radius: 6px; font-size: 8px; }
.demo-metrics { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.demo-metrics article { padding: 15px; border: 1px solid #dfe2e7; border-radius: 8px; }
.demo-metrics small, .demo-metrics b, .demo-metrics em { display: block; }
.demo-metrics small { color: #727a86; font-size: 7px; }
.demo-metrics b { margin: 6px 0 2px; font-size: 24px; }
.demo-metrics em { color: #23805f; font-size: 7px; font-style: normal; }
.demo-grid { margin-top: 10px; display: grid; grid-template-columns: 1.55fr .9fr; gap: 10px; }
.demo-grid > article { padding: 16px; border: 1px solid #dfe2e7; border-radius: 8px; }
.demo-grid header { display: flex; align-items: start; justify-content: space-between; }
.demo-grid header b { display: block; margin-top: 3px; font-size: 10px; }
.demo-grid header > span, .demo-grid header button { border: 0; color: #6f7783; background: transparent; font-size: 7px; }
.large-chart { height: 180px; margin-top: 14px; position: relative; }
.large-chart svg { width: 100%; height: calc(100% - 17px); position: relative; z-index: 2; }
.chart-guides { position: absolute; inset: 0 0 17px; display: grid; align-content: space-between; }
.chart-guides i { height: 1px; background: #eceef1; }
.chart-labels { display: flex; justify-content: space-between; color: #89909a; font-size: 6px; }
.attention-card ul { list-style: none; margin: 12px 0 0; padding: 0; }
.attention-card li { padding: 11px 0; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; border-top: 1px solid #eceef1; }
.attention-card li b, .attention-card li small { display: block; }
.attention-card li b { font-size: 8px; }.attention-card li small { font-size: 6px; }.attention-card li em { font-size: 7px; font-style: normal; }
.attention-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 6px; font-size: 8px; }.critical { color: #b73342; background: #fde9eb; }.warning { color: #996910; background: #fff2d7; }.info { color: #2f5c9d; background: #e8f0ff; }
.workspace-statusbar { padding: 0 13px; display: flex; align-items: center; gap: 24px; border-top: 1px solid #354050; color: #8792a1; background: #151b23; font-size: 8px; }
.workspace-statusbar span { display: flex; align-items: center; gap: 6px; }.workspace-statusbar b { color: #cbd4de; }
.toast { position: fixed; z-index: 5000; right: 24px; bottom: 24px; max-width: 390px; padding: 14px 17px; border: 1px solid #3d4654; border-radius: 10px; color: #fff; background: #131922; box-shadow: var(--shadow); font-size: 11px; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.visible { opacity: 1; transform: none; }

/* Motion */
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes counter-orbit { to { transform: rotate(-360deg); } }
@keyframes live-pulse { 50% { opacity: .55; transform: scale(.8); } }
@keyframes core-pulse { 50% { opacity: .4; transform: scale(.75); } }
@keyframes float-piece { 50% { margin-top: -9px; } }
@keyframes signal-flow { 0% { opacity: 0; transform-origin: left; } 35% { opacity: .65; } 100% { opacity: 0; background-position: 300px 0; } }
@keyframes line-write { 0%, 15% { transform: scaleX(.15); opacity: .4; } 45%, 85% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(.15); opacity: .4; } }
@keyframes component-drift { 50% { transform: translate(6px, -7px) rotate(1.4deg); } }
@keyframes code-line { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes artifact-arrive { from { opacity: 0; transform: rotateX(9deg) translateY(35px) scale(.94); } to { opacity: 1; transform: none; } }

@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .menu-button { margin-left: auto; padding: 8px 11px; display: block; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
  .header-actions { display: none; }
  .mobile-nav { padding: 13px 20px 18px; border-top: 1px solid var(--line); background: #fff; }
  .mobile-nav.open { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
  .mobile-nav button { padding: 0; border: 0; background: transparent; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: 820px; }
  .creation-theatre { max-width: 720px; width: 100%; margin: auto; }
  .capability-layout { grid-template-columns: 1fr; }
  .capability-cloud { max-width: 720px; width: 100%; margin: auto; }
  .handoff-track { grid-template-columns: 1fr 1fr; }
  .handoff-track > i { display: none; }
  .workspace-tools { gap: 5px; }
  .workspace-tool { min-width: 92px; }
  .workspace-tool small { display: none; }
  .forge-workspace { grid-template-columns: 320px minmax(650px, 1fr); overflow: auto; }
}

@media (max-width: 980px) {
  .workspace-page { height: auto; min-height: 100vh; overflow: auto; }
  .workspace-topbar { height: auto; min-height: 72px; flex-wrap: wrap; padding: 10px 12px; }
  .project-switcher { order: 3; width: 100%; }
  .workspace-tools { margin-left: auto; }
  .forge-workspace { height: auto; min-height: calc(100vh - 120px); grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .forge-sidebar { min-height: 620px; border-right: 0; border-bottom: 1px solid #303846; }
  .artifact-stage { min-height: 720px; }
  .artifact-window, .artifact-canvas[data-viewport-state="tablet"] .artifact-window { width: min(100%, 760px); min-width: 0; }
  .artifact-canvas[data-viewport-state="mobile"] .artifact-window { width: min(100%, 390px); min-width: 0; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .hero { padding: 70px 0; }
  .hero h1 { font-size: 48px; }
  .hero-lead { font-size: 16px; }
  .theatre-stage { height: 500px; transform: scale(.82) !important; transform-origin: left top; width: 700px; }
  .creation-theatre { height: 440px; overflow: hidden; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .assembly-steps { grid-template-columns: 1fr; }
  .assembly-steps article { border-left: 0; border-top: 1px solid var(--line); }
  .assembly-steps article:first-child { border-top: 0; }
  .capability-cloud { height: 620px; }
  .cap-card { width: 210px; }
  .capability-sphere { width: 145px; height: 145px; }
  .handoff-track { grid-template-columns: 1fr; }
  .final-cta .container { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-grid > div { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 6px; }
  .workspace-page { overflow: auto; }
  .workspace-topbar { height: auto; min-height: 65px; flex-wrap: wrap; padding: 10px; }
  .project-switcher { order: 3; width: 100%; }
  .workspace-tools { margin-left: auto; }
  .workspace-tool { min-width: 38px; padding: 6px; }
  .workspace-tool > span:last-child { display: none; }
  .workspace-auth { max-width: 40px; }
  .workspace-auth [data-auth-label] { display: none; }
  .forge-workspace { height: auto; min-height: calc(100vh - 110px); grid-template-columns: 1fr; overflow: visible; }
  .forge-sidebar { min-height: 540px; }
  .artifact-stage { min-height: 700px; }
  .artifact-window { width: 100%; min-width: 0; }
  .workspace-statusbar { overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 600px) {
  .theatre-stage { height: 500px; transform: scale(.76) !important; }
  .creation-theatre { height: 390px; }
}

@media (max-width: 520px) {
  .theatre-stage { transform: scale(.66) !important; }
  .creation-theatre { height: 340px; }
}

@media (max-width: 440px) {
  .theatre-stage { transform: scale(.55) !important; }
  .creation-theatre { height: 285px; }
}

@media (max-width: 380px) {
  .theatre-stage { transform: scale(.47) !important; }
  .creation-theatre { height: 245px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
