:root {
  --ink: #121411;
  --ink-soft: #1b1e1a;
  --lime: #9cff00;
  --lime-deep: #79d900;
  --cream: #f6f3e8;
  --paper: #fffdf6;
  --muted: #aeb5a9;
  --line: rgba(255,255,255,.11);
  --dark-line: rgba(18,20,17,.12);
  --max: 1240px;
  --radius: 30px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cream);
  background: var(--ink);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--ink); }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.page-glow {
  position: fixed;
  z-index: -1;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  left: calc(var(--mouse-x, 65vw) - 21rem);
  top: calc(var(--mouse-y, 18vh) - 21rem);
  background: radial-gradient(circle, rgba(156,255,0,.08), transparent 66%);
  pointer-events: none;
  transition: left .25s ease-out, top .25s ease-out;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 999; padding: 10px 14px; color: var(--ink); background: var(--lime); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(calc(100% - 36px), var(--max));
  height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 30;
}
.brand { width: 196px; }
.brand img { width: 100%; height: 54px; object-fit: contain; object-position: left center; }
.desktop-nav { justify-self: center; display: flex; align-items: center; gap: 32px; }
.desktop-nav a { color: #c3c8c0; font-size: .88rem; font-weight: 650; transition: color .2s ease; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--lime); }
.header-cta { display: inline-flex; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 12px 15px 12px 18px; font-size: .82rem; font-weight: 800; }
.header-cta span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--lime); }
.menu-button, .mobile-nav { display: none; }

main { width: min(calc(100% - 36px), var(--max)); margin: 0 auto; }
.hero { min-height: calc(100vh - 88px); display: grid; grid-template-columns: minmax(0, .95fr) minmax(430px, 1.05fr); grid-template-rows: 1fr auto; gap: 18px 28px; align-items: center; padding: 52px 0 28px; }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 900; }
.eyebrow { color: #cad0c5; display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 26px; height: 2px; background: var(--lime); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.055em; }
.hero h1 { font-size: clamp(4.2rem, 7vw, 7.8rem); line-height: .83; margin: 26px 0 28px; max-width: 780px; }
h1 em, h2 span { color: var(--lime); font-style: normal; }
.hero-lede { max-width: 650px; color: #b9c0b5; font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 26px; border: 1px solid transparent; border-radius: 999px; padding: 0 22px; font-size: .9rem; font-weight: 850; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--lime); box-shadow: 0 0 42px rgba(156,255,0,.16); }
.button-primary:hover { background: #adff31; }
.button-ghost { border-color: var(--line); color: var(--cream); }
.button-ghost:hover { border-color: rgba(156,255,0,.5); }
.hero-types { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: #828a7f; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.hero-types i { width: 3px; height: 3px; border-radius: 50%; background: var(--lime); }
.hero-stage { min-height: 620px; position: relative; display: grid; place-items: center; isolation: isolate; transform-style: preserve-3d; transition: transform .12s ease-out; }
.hero-stage::before { content: ""; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(156,255,0,.18), rgba(156,255,0,.03) 42%, transparent 68%); filter: blur(14px); z-index: -2; }
.stage-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(156,255,0,.16); z-index: -1; }
.ring-one { width: 82%; aspect-ratio: 1; animation: spin 26s linear infinite; }
.ring-one::after, .ring-two::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 22px var(--lime); top: 10%; left: 22%; }
.ring-two { width: 62%; aspect-ratio: 1; border-style: dashed; animation: spin 18s linear infinite reverse; }
.hero-art { width: min(104%, 680px); position: relative; z-index: 2; filter: drop-shadow(0 26px 35px rgba(0,0,0,.42)); }
.floating-card { position: absolute; z-index: 5; border: 1px solid rgba(255,255,255,.13); background: rgba(25,28,24,.84); box-shadow: 0 18px 50px rgba(0,0,0,.32); backdrop-filter: blur(16px); border-radius: 17px; }
.progress-card { width: 190px; left: 1%; bottom: 13%; padding: 15px; }
.progress-card > div:first-child { display: flex; align-items: end; justify-content: space-between; }
.mini-label { color: #aeb5a9; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }
.progress-card strong { font-size: 1.25rem; color: var(--lime); }
.mini-progress { height: 5px; margin: 10px 0 8px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.mini-progress span { display: block; height: 100%; width: 87%; background: var(--lime); }
.progress-card small { color: #8c9488; }
.matched-card { right: 0; top: 22%; padding: 12px 15px; display: flex; align-items: center; gap: 10px; }
.matched-card strong, .matched-card small { display: block; }
.matched-card strong { font-size: .78rem; }
.matched-card small { color: #8f978b; font-size: .65rem; margin-top: 3px; }
.pulse { width: 11px; height: 11px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(156,255,0,.7); animation: pulse 2s infinite; }
.hero-strip { grid-column: 1 / -1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hero-strip p { margin: 0; color: #949c90; font-size: .88rem; }
.hero-strip p strong { color: var(--cream); }
.strip-metrics { display: flex; gap: clamp(18px, 4vw, 52px); }
.strip-metrics span { color: #c7ccc4; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.strip-metrics b { color: var(--lime); margin-right: 8px; }

.section { padding: 130px 0; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; margin-bottom: 52px; }
.kicker { display: block; color: var(--lime); margin-bottom: 20px; }
.section h2 { font-size: clamp(3.1rem, 6vw, 6.2rem); line-height: .93; margin-bottom: 0; }
.section-heading p { color: #a7aea3; font-size: 1rem; line-height: 1.7; max-width: 520px; margin-bottom: 6px; }
.workflow-shell { border: 1px solid var(--line); border-radius: 34px; background: #171a16; overflow: hidden; }
.workflow-tabs { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--line); }
.workflow-tab { min-height: 84px; display: flex; align-items: center; gap: 12px; padding: 0 24px; border: 0; border-right: 1px solid var(--line); color: #838b80; background: transparent; cursor: pointer; font-size: .98rem; transition: background .2s, color .2s; }
.workflow-tab:last-child { border-right: 0; }
.workflow-tab b { color: #5d645b; font-size: .65rem; }
.workflow-tab.active { background: var(--lime); color: var(--ink); }
.workflow-tab.active b { color: rgba(18,20,17,.55); }
.workflow-panel { min-height: 580px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 52px; align-items: center; padding: 60px; }
.panel-number { color: var(--lime); font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.panel-copy h3 { font-size: clamp(2.1rem, 3.5vw, 4rem); line-height: .98; margin: 20px 0 22px; }
.panel-copy > p { color: #a9b0a5; font-size: 1rem; line-height: 1.7; }
.panel-points { display: grid; margin-top: 30px; border-top: 1px solid var(--line); }
.panel-points span { position: relative; padding: 15px 0 15px 25px; border-bottom: 1px solid var(--line); color: #d5d9d2; font-size: .85rem; }
.panel-points span::before { content: "✓"; position: absolute; left: 0; color: var(--lime); font-weight: 900; }
.product-window { overflow: hidden; border-radius: 24px; background: var(--paper); color: #242721; box-shadow: 0 32px 80px rgba(0,0,0,.35); transform: rotate(-1deg); }
.window-bar { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: #242721; color: white; }
.window-logo { font-size: .82rem; font-weight: 900; }
.window-logo span { width: 26px; height: 26px; display: inline-grid; place-items: center; margin-right: 7px; border-radius: 8px; background: var(--lime); color: var(--ink); }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #5d6259; }
.window-content { padding: 28px; min-height: 426px; transition: opacity .16s ease, transform .16s ease; }
.window-content.changing { opacity: 0; transform: translateY(8px); }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.demo-head small, .demo-head strong { display: block; }
.demo-head small { color: #7f867b; font-size: .62rem; font-weight: 900; letter-spacing: .1em; }
.demo-head strong { font-size: 1.15rem; margin-top: 5px; }
.demo-badge { padding: 7px 10px; border-radius: 999px; color: #3c6206; background: #e6ffc3; font-size: .64rem; font-weight: 850; }
.demo-progress { display: grid; grid-template-columns: 106px 1fr; align-items: center; gap: 22px; margin: 30px 0 24px; padding: 18px; border-radius: 18px; background: #f0eee6; }
.progress-ring { width: 92px; aspect-ratio: 1; display: grid; place-items: center; position: relative; border-radius: 50%; background: conic-gradient(var(--lime-deep) 87%, #d7d9cf 0); }
.progress-ring::after { content: ""; position: absolute; inset: 9px; border-radius: inherit; background: #f0eee6; }
.progress-ring span { position: relative; z-index: 1; font-size: 1.8rem; font-weight: 950; letter-spacing: -.07em; }
.progress-ring sup { font-size: .65rem; }
.demo-progress strong { font-size: 1.1rem; }
.demo-progress p { color: #72786f; font-size: .72rem; line-height: 1.5; margin: 6px 0 0; }
.piece-list { display: grid; gap: 8px; }
.piece-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; border: 1px solid #deddd5; border-radius: 13px; padding: 10px; }
.piece-row b, .piece-row small { display: block; }
.piece-row b { font-size: .77rem; }
.piece-row small { color: #81877c; font-size: .65rem; margin-top: 3px; }
.piece-row button, .piece-row .check { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #d3d3cb; border-radius: 10px; background: white; color: #242721; font-weight: 900; cursor: pointer; }
.piece-row button:hover { background: var(--lime); border-color: var(--lime-deep); }
.piece-row.complete { opacity: .6; }
.piece-row .check { background: #dfffb3; border-color: transparent; }
.piece-shape { width: 42px; height: 25px; display: block; position: relative; border-radius: 6px; background: var(--lime); box-shadow: inset 0 -5px 0 rgba(0,0,0,.1); }
.piece-shape::before, .piece-shape::after { content: ""; position: absolute; width: 10px; height: 5px; top: -5px; border-radius: 4px 4px 0 0; background: inherit; }
.piece-shape::before { left: 7px; }.piece-shape::after { right: 7px; }
.piece-shape.p2 { width: 46px; background: white; border: 1px solid #d8d8d2; }
.piece-shape.p3 { width: 28px; border-radius: 50%; background: #232520; }

.collection { color: var(--ink); position: relative; width: 100vw; left: 50%; transform: translateX(-50%); padding-inline: max(18px, calc((100vw - var(--max)) / 2)); background: var(--cream); }
.collection .kicker { color: #5f8700; }
.collection-intro { display: grid; grid-template-columns: 1.15fr .85fr; column-gap: 70px; align-items: end; margin-bottom: 60px; }
.collection-intro .kicker { grid-column: 1 / -1; }
.collection-intro h2 { grid-column: 1; }
.collection-intro h2 span { color: #66b900; }
.collection-intro p { grid-column: 2; color: #62685f; line-height: 1.75; margin: 0; }
.collection-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.feature { min-width: 0; overflow: hidden; border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 30px; background: var(--paper); }
.feature-large { grid-row: span 2; min-height: 600px; display: flex; flex-direction: column; background: var(--ink-soft); color: white; border-color: transparent; }
.feature-topline { display: flex; justify-content: space-between; align-items: center; color: #70786d; font-size: .65rem; font-weight: 900; letter-spacing: .1em; }
.feature-large .feature-topline { color: #99a293; }
.feature-topline i { color: #4f5d48; font-style: normal; padding: 6px 9px; border-radius: 999px; background: rgba(156,255,0,.12); letter-spacing: 0; text-transform: none; }
.portfolio-number { padding: 64px 0 42px; border-bottom: 1px solid var(--line); }
.portfolio-number small, .portfolio-number strong, .portfolio-number span { display: block; }
.portfolio-number small { color: #98a094; }
.portfolio-number strong { margin: 7px 0 6px; font-size: clamp(3rem, 5vw, 5.2rem); letter-spacing: -.07em; }
.portfolio-number span { color: var(--lime); font-size: .75rem; font-weight: 800; }
.portfolio-bars { display: grid; gap: 20px; margin: 38px 0; }
.portfolio-bars div { display: grid; grid-template-columns: 70px 1fr 68px; align-items: center; gap: 14px; font-size: .75rem; }
.portfolio-bars i { height: 8px; overflow: hidden; border-radius: 99px; background: #30352e; }
.portfolio-bars i::after { content: ""; display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--lime); }
.portfolio-bars b { text-align: right; }
.feature-note { margin: auto 0 0; color: #9da599; font-size: .82rem; line-height: 1.6; }
.feature-projects { min-height: 290px; }
.project-stack { display: grid; gap: 10px; margin: 28px 0 20px; }
.project-card { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 13px; border: 1px solid var(--dark-line); border-radius: 15px; padding: 11px; }
.project-icon { width: 50px; height: 50px; display: grid; place-items: center; color: #345400; font-size: .7rem; font-weight: 950; border-radius: 13px; background: #dfffaa; }
.project-icon.alt { background: #e8e8e0; color: #5e635b; }
.project-card b, .project-card small { display: block; }
.project-card b { font-size: .85rem; }.project-card small { color: #7d8279; margin-top: 4px; font-size: .7rem; }
.feature-projects > p { color: #6e746b; font-size: .8rem; line-height: 1.5; margin-bottom: 0; }
.feature-mobile { min-height: 292px; display: grid; grid-template-columns: 175px 1fr; align-items: center; gap: 28px; background: #ddff9e; }
.phone { height: 260px; overflow: hidden; border: 5px solid #1b1e1a; border-bottom: 0; border-radius: 28px 28px 0 0; padding: 11px; background: #faf8ef; box-shadow: 0 18px 34px rgba(40,55,20,.18); align-self: end; margin-bottom: -31px; }
.phone-bar { display: flex; align-items: center; justify-content: space-between; color: #252822; font-size: .63rem; }
.phone-bar span, .phone-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--lime-deep); }
.phone-value { margin: 25px 0 15px; color: #252822; }
.phone-value small, .phone-value strong, .phone-value span { display: block; }
.phone-value small { font-size: .5rem; font-weight: 900; }.phone-value strong { font-size: 1.4rem; margin: 3px 0; }.phone-value span { color: #747a70; font-size: .55rem; }
.phone-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.phone-cards i {
  height: 72px;
  border: 1px solid #e0ded5;
  border-radius: 8px;
  background-color: #f4f1e8;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 76% auto;
}
.phone-cards i:nth-child(1) { background-image: url("assets/locked-badge.webp"); }
.phone-cards i:nth-child(2) { background-image: url("assets/locked-cap-head.webp"); }
.phone-cards i:nth-child(3) { background-image: url("assets/locked-hat-head.webp"); }
.phone-nav { display: flex; justify-content: space-around; margin-top: 10px; color: #687062; }
.mobile-copy .feature-topline { display: block; }
.mobile-copy h3 { margin: 12px 0; font-size: 1.8rem; line-height: 1.02; }
.mobile-copy p { color: #52623f; font-size: .8rem; line-height: 1.6; margin-bottom: 0; }

.vision { display: grid; grid-template-columns: 1fr .9fr; gap: 80px; align-items: center; min-height: 860px; }
.vision-visual { min-height: 640px; display: grid; place-items: center; position: relative; border: 1px solid var(--line); border-radius: 50% 50% 38% 38%; background: radial-gradient(circle, rgba(156,255,0,.18), rgba(156,255,0,.02) 52%, transparent 70%); overflow: hidden; isolation: isolate; }
.scan-grid { position: absolute; inset: 12%; z-index: -1; background: linear-gradient(rgba(156,255,0,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(156,255,0,.1) 1px, transparent 1px); background-size: 34px 34px; transform: perspective(400px) rotateX(55deg) translateY(25%); mask-image: radial-gradient(circle, black, transparent 67%); }
.vision-visual img { width: min(86%, 560px); max-width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; filter: drop-shadow(0 30px 35px rgba(0,0,0,.5)); animation: float 5s ease-in-out infinite; }
.scan-label { position: absolute; padding: 10px 13px; display: flex; align-items: center; gap: 8px; color: #dfe4dc; font-size: .67rem; font-weight: 800; border: 1px solid var(--line); border-radius: 999px; background: rgba(18,20,17,.78); backdrop-filter: blur(10px); }
.scan-label span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.label-a { top: 17%; left: 7%; }.label-b { right: 3%; top: 42%; }.label-c { left: 12%; bottom: 14%; }
.vision-copy h2 { font-size: clamp(3rem, 5vw, 5.2rem); }
.vision-copy > p { color: #a8afa4; line-height: 1.75; max-width: 560px; }
.truth-stack { display: grid; margin-top: 34px; border-top: 1px solid var(--line); }
.truth-stack > div { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.truth-stack b { color: var(--lime); font-size: .7rem; }
.truth-stack strong, .truth-stack small { display: block; }
.truth-stack strong { font-size: .9rem; }.truth-stack small { margin-top: 4px; color: #7f877c; font-size: .75rem; }

.trader { width: 100vw; left: 50%; transform: translateX(-50%); position: relative; padding-inline: max(18px, calc((100vw - var(--max)) / 2)); color: var(--ink); background: var(--lime); }
.trader .kicker { color: #3e6100; }
.trader-heading { margin-bottom: 55px; }
.trader-heading h2 span { color: var(--ink); opacity: .48; }
.trade-flow { display: grid; grid-template-columns: .85fr 150px 1.15fr; align-items: center; gap: 22px; }
.trade-source, .trade-editor { border-radius: 26px; background: var(--paper); box-shadow: 0 24px 60px rgba(56,83,12,.14); }
.trade-source { min-height: 190px; display: grid; grid-template-columns: 82px 1fr auto; align-items: center; gap: 16px; padding: 24px; }
.trade-thumb { width: 80px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 20px; background: #242721; color: var(--lime); font-weight: 950; }
.trade-source small, .trade-source strong, .trade-source span { display: block; }
.trade-source small { color: #848a80; font-size: .58rem; font-weight: 900; letter-spacing: .1em; }
.trade-source strong { font-size: 1.05rem; margin: 6px 0; }.trade-source span { color: #71776d; font-size: .7rem; }
.trade-source > i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #3f6700; background: #ddff9e; font-style: normal; font-weight: 900; }
.trade-arrow { text-align: center; }
.trade-arrow span { display: block; font-size: .56rem; letter-spacing: .08em; font-weight: 900; }
.trade-arrow b { display: block; margin-top: 8px; font-size: 2.2rem; }
.trade-editor { padding: 25px; }
.editor-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: .78rem; font-weight: 900; }
.editor-head i { padding: 6px 9px; border-radius: 99px; color: #757b71; background: #eceae2; font-size: .6rem; font-style: normal; }
.trade-editor label { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--dark-line); padding: 13px 0; color: #777d73; font-size: .7rem; }
.trade-editor label strong { color: #282b25; }
.editor-checks { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 16px; }
.editor-checks span { padding: 6px 9px; border-radius: 99px; color: #436a04; background: #e5ffc0; font-size: .62rem; font-weight: 800; }
.trade-editor button { width: 100%; min-height: 46px; border: 0; border-radius: 12px; color: white; background: var(--ink); font-weight: 850; cursor: pointer; }
.trade-editor button:hover { background: #2a2e27; }
.trader-note { display: grid; grid-template-columns: .45fr 1fr; gap: 34px; max-width: 850px; margin: 56px auto 0; padding-top: 30px; border-top: 1px solid rgba(18,20,17,.24); }
.trader-note p { color: #425329; line-height: 1.65; margin: 0; }

.principles { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.principles-copy h2 { font-size: clamp(3rem, 5vw, 5.3rem); }
.principle-list { border-top: 1px solid var(--line); }
.principle-list article { display: grid; grid-template-columns: 60px .8fr 1fr; gap: 20px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); }
.principle-list b { color: var(--lime); font-size: .7rem; }
.principle-list h3 { font-size: 1.2rem; margin: 0; }
.principle-list p { color: #8f978c; font-size: .8rem; line-height: 1.6; margin: 0; }

.final-cta { min-height: 700px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden; border-radius: 44px; padding: 70px; color: var(--ink); background: var(--cream); }
.final-cta h2 { font-size: clamp(4.4rem, 8vw, 8.6rem); line-height: .79; }
.final-cta h2 span { color: #6fbd00; }
.final-cta p { max-width: 520px; color: #686e65; font-size: .95rem; line-height: 1.7; margin: 32px 0; }
.button-dark { width: fit-content; color: white; background: var(--ink); }
.cta-art { align-self: stretch; display: grid; place-items: center; position: relative; }
.cta-art img { width: min(90%, 560px); max-width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; position: relative; z-index: 2; filter: drop-shadow(0 30px 36px rgba(77,110,26,.24)); }
.cta-orbit { position: absolute; width: 86%; aspect-ratio: 1; border: 1px solid rgba(99,158,13,.25); border-radius: 50%; animation: spin 22s linear infinite; }
.cta-orbit::before, .cta-orbit::after { content: ""; position: absolute; border-radius: 50%; background: var(--lime-deep); }
.cta-orbit::before { width: 22px; height: 22px; top: 12%; left: 15%; }.cta-orbit::after { width: 11px; height: 11px; right: 4%; bottom: 33%; }

footer { width: min(calc(100% - 36px), var(--max)); min-height: 180px; margin: 0 auto; display: grid; grid-template-columns: 240px 1fr auto; align-items: center; gap: 40px; color: #7f877c; font-size: .7rem; line-height: 1.6; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; }
.footer-brand b, .footer-brand span { display: block; }.footer-brand b { color: white; font-size: 1rem; }.footer-brand span { font-size: .6rem; }
footer p { max-width: 620px; margin: 0; }
footer > a { color: #cbd1c7; font-weight: 800; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 140%); padding: 13px 18px; color: var(--ink); background: var(--lime); border-radius: 999px; box-shadow: 0 18px 50px rgba(0,0,0,.4); font-size: .8rem; font-weight: 850; transition: transform .25s ease; }
.toast.show { transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(156,255,0,0); } 100% { box-shadow: 0 0 0 0 rgba(156,255,0,0); } }

@media (max-width: 1040px) {
  .site-header { grid-template-columns: 180px 1fr auto; }
  .brand { width: 170px; }
  .desktop-nav { gap: 20px; }
  .hero { grid-template-columns: .9fr 1.1fr; }
  .hero-stage { min-height: 550px; }
  .workflow-panel { padding: 42px; gap: 38px; }
  .collection-grid { grid-template-columns: 1fr 1fr; }
  .feature-mobile { grid-template-columns: 140px 1fr; }
  .phone { width: 140px; }
  .vision { gap: 48px; }
  .trade-flow { grid-template-columns: 1fr 80px 1fr; }
}

@media (max-width: 820px) {
  .site-header { height: 76px; grid-template-columns: 1fr auto; }
  .brand { width: 158px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-button { width: 46px; height: 46px; display: grid; place-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
  .menu-button span { width: 18px; height: 2px; background: white; transition: transform .2s; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-nav { position: absolute; top: 68px; left: 0; right: 0; display: grid; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(24,27,23,.98); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s; }
  .mobile-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .mobile-nav a { padding: 13px 12px; border-radius: 10px; font-weight: 750; }
  .mobile-nav a:hover { color: var(--ink); background: var(--lime); }
  .hero { min-height: auto; grid-template-columns: 1fr; grid-template-rows: auto; padding-top: 70px; }
  .hero-copy { text-align: center; }
  .eyebrow, .hero-actions, .hero-types { justify-content: center; }
  .hero-lede { margin-inline: auto; }
  .hero-stage { min-height: 590px; }
  .hero-art { width: min(92%, 650px); }
  .progress-card { left: 7%; }.matched-card { right: 5%; }
  .hero-strip { flex-direction: column; justify-content: center; padding: 22px 0; }
  .section { padding: 96px 0; }
  .section-heading, .collection-intro { grid-template-columns: 1fr; gap: 24px; }
  .collection-intro .kicker, .collection-intro h2, .collection-intro p { grid-column: 1; }
  .workflow-panel { grid-template-columns: 1fr; }
  .panel-copy { max-width: 620px; }
  .product-window { transform: none; }
  .collection-grid { grid-template-columns: 1fr; }
  .feature-large { grid-row: auto; }
  .vision { grid-template-columns: 1fr; min-height: auto; }
  .vision-visual { min-height: 620px; order: 2; }
  .vision-copy { max-width: 650px; }
  .trade-flow { grid-template-columns: 1fr; max-width: 650px; margin: auto; }
  .trade-arrow { display: flex; align-items: center; justify-content: center; gap: 10px; transform: rotate(90deg); min-height: 74px; }
  .trade-arrow b { margin: 0; }
  .principles { grid-template-columns: 1fr; gap: 48px; }
  .final-cta { min-height: 900px; grid-template-columns: 1fr; padding: 54px; text-align: center; }
  .final-cta p, .button-dark { margin-inline: auto; }
  .cta-art img { width: min(75%, 520px); }
  footer { grid-template-columns: 1fr auto; padding: 38px 0; }
  footer p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(calc(100% - 24px), var(--max)); }
  .hero { padding-top: 46px; }
  .hero h1 { font-size: clamp(3.7rem, 18vw, 5.6rem); }
  .hero-lede { font-size: 1rem; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-types { gap: 8px; }
  .hero-stage { min-height: 460px; margin-top: 10px; }
  .matched-card { top: 13%; right: 0; }
  .progress-card { left: 0; bottom: 6%; }
  .floating-card { transform: scale(.86); }
  .hero-strip { margin-top: 12px; }
  .strip-metrics { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .section { padding: 78px 0; }
  .section h2 { font-size: clamp(2.8rem, 15vw, 4rem); }
  .workflow-tabs { overflow-x: auto; grid-template-columns: repeat(4, minmax(105px,1fr)); }
  .workflow-tab { min-height: 72px; padding: 0 15px; }
  .workflow-panel { padding: 28px 18px; gap: 32px; }
  .panel-copy h3 { font-size: 2.3rem; }
  .window-content { padding: 18px 14px; }
  .demo-progress { grid-template-columns: 78px 1fr; gap: 14px; padding: 13px; }
  .progress-ring { width: 70px; }
  .progress-ring span { font-size: 1.35rem; }
  .demo-progress strong { font-size: .9rem; }
  .piece-row { grid-template-columns: 42px 1fr auto; }
  .piece-shape { transform: scale(.82); transform-origin: left center; }
  .collection, .trader { padding-inline: 12px; }
  .feature { padding: 22px 18px; }
  .portfolio-bars div { grid-template-columns: 54px 1fr 55px; gap: 8px; }
  .feature-mobile { grid-template-columns: 112px 1fr; gap: 16px; }
  .phone { width: 112px; height: 240px; }
  .mobile-copy h3 { font-size: 1.45rem; }
  .vision-visual { min-height: 470px; border-radius: 34px; }
  .scan-label { font-size: .58rem; padding: 8px 10px; }
  .label-a { top: 10%; left: 3%; }.label-b { top: 42%; right: 1%; }.label-c { left: 5%; bottom: 9%; }
  .trade-source { grid-template-columns: 62px 1fr auto; padding: 18px 14px; }
  .trade-thumb { width: 60px; }
  .trader-note { grid-template-columns: 1fr; gap: 12px; }
  .principle-list article { grid-template-columns: 36px 1fr; }
  .principle-list p { grid-column: 2; }
  .final-cta { min-height: 740px; border-radius: 28px; padding: 42px 18px; }
  .final-cta h2 { font-size: clamp(4rem, 20vw, 6rem); }
  .cta-art img { width: 92%; }
  footer { grid-template-columns: 1fr; }
  footer p, footer > a { grid-column: 1; grid-row: auto; }
}

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

/* V2 product theatre */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 3px;
  pointer-events: none;
  background: rgba(255,255,255,.04);
}
.scroll-progress span {
  display: block;
  width: var(--scroll-progress, 0%);
  height: 100%;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(156,255,0,.7);
}
.site-header {
  position: sticky;
  top: 0;
  width: min(calc(100% - 36px), var(--max));
  padding-inline: 4px;
  background: linear-gradient(to bottom, rgba(18,20,17,.94), rgba(18,20,17,.78));
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hero {
  min-height: calc(92vh - 88px);
}
.hero-copy {
  position: relative;
  z-index: 4;
}
.hero h1 {
  text-wrap: balance;
}
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 13% 7%;
  z-index: -2;
  border-radius: 44% 56% 52% 48%;
  background: linear-gradient(145deg, rgba(156,255,0,.13), transparent 58%);
  border: 1px solid rgba(156,255,0,.12);
  transform: rotate(-7deg);
}
.hero-art {
  animation: heroFloat 6s ease-in-out infinite;
}

.product-lab {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  padding-inline: max(18px, calc((100vw - var(--max)) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(156,255,0,.095), transparent 34%),
    linear-gradient(180deg, #0d0f0c, #161914 52%, #0d0f0c);
}
.product-lab::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.11) .7px, transparent .7px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 75%, transparent);
  opacity: .42;
}
.lab-heading {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.22fr .78fr;
  align-items: end;
  gap: 72px;
  margin-bottom: 58px;
}
.lab-copy p {
  max-width: 520px;
  margin: 0 0 24px;
  color: #a8b0a4;
  font-size: 1rem;
  line-height: 1.72;
}
.lab-controls {
  width: fit-content;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
}
.device-button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #8f978b;
  background: transparent;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}
.device-button.active {
  color: var(--ink);
  background: var(--lime);
}
.app-theatre {
  position: relative;
  z-index: 2;
  min-height: 850px;
  padding: 58px 44px 40px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 44px;
  background: linear-gradient(155deg, rgba(255,255,255,.07), rgba(255,255,255,.015) 55%, rgba(156,255,0,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 50px 120px rgba(0,0,0,.38);
}
.app-theatre::before {
  content: "";
  position: absolute;
  inset: auto 3% -110px;
  height: 210px;
  border-radius: 50%;
  background: rgba(156,255,0,.15);
  filter: blur(70px);
}
.theatre-glow {
  position: absolute;
  width: 34rem;
  height: 34rem;
  right: -10rem;
  top: -16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156,255,0,.15), transparent 68%);
}
.theatre-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  color: #6f786b;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 850;
}
.theatre-meta span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #cfd5cc;
}
.theatre-meta i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(156,255,0,.75);
}
.app-device {
  position: relative;
  width: 100%;
  max-width: 1120px;
  min-height: 650px;
  margin: 0 auto;
  overflow: hidden;
  border: 8px solid #292d27;
  border-radius: 30px;
  color: #252921;
  background: #f6f3e8;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 36px 90px rgba(0,0,0,.48),
    inset 0 1px 0 rgba(255,255,255,.18);
  transform: perspective(1300px) rotateX(1deg);
  transform-origin: center top;
  transition: width .5s cubic-bezier(.2,.8,.2,1), border-radius .5s, transform .5s;
}
.app-device.is-mobile {
  width: 392px;
  min-height: 720px;
  border-width: 10px;
  border-radius: 38px;
  transform: perspective(1300px) rotateX(0) translateY(10px);
}
.app-chrome {
  height: 42px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 15px;
  color: #b9c0b5;
  background: #1a1d19;
  font-size: .72rem;
}
.chrome-dots {
  display: flex;
  gap: 5px;
}
.chrome-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #454a42;
}
.chrome-dots i:first-child { background: #9cff00; }
.chrome-signal {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chrome-signal i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}
.app-shell {
  min-height: 600px;
  display: grid;
  grid-template-columns: 190px 1fr;
}
.app-rail {
  display: flex;
  flex-direction: column;
  padding: 18px 12px 14px;
  color: #ecf0e9;
  background: #20231f;
  border-right: 1px solid rgba(0,0,0,.18);
}
.app-brand {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 14px;
  font-size: .92rem;
  font-weight: 950;
}
.app-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.app-rail nav {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}
.app-nav {
  min-height: 45px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border: 0;
  border-radius: 11px;
  color: #9ba396;
  background: transparent;
  font-size: .78rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: color .18s, background .18s, transform .18s;
}
.app-nav:hover {
  color: white;
  transform: translateX(2px);
}
.app-nav.active {
  color: #203000;
  background: var(--lime);
}
.app-nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rail-profile {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 11px 8px 0;
  border-top: 1px solid rgba(255,255,255,.09);
}
.rail-profile img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--lime);
}
.rail-profile b,
.rail-profile span { display: block; }
.rail-profile b { font-size: .74rem; }
.rail-profile span { margin-top: 2px; color: #818a7c; font-size: .66rem; }
.app-workspace {
  min-width: 0;
  padding: 28px;
  background:
    radial-gradient(circle at 90% 0, rgba(156,255,0,.12), transparent 28%),
    #f5f2e8;
}
.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.workspace-eyebrow {
  color: #7c8378;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.workspace-header h3 {
  margin: 5px 0 0;
  font-size: 1.8rem;
  letter-spacing: -.055em;
}
.workspace-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-trigger {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #deddd4;
  border-radius: 12px;
  padding: 0 13px;
  color: #697065;
  background: rgba(255,255,255,.76);
  font-size: .72rem;
  cursor: pointer;
}
.search-trigger span { font-size: 1.1rem; }
.avatar-stack {
  display: flex;
  padding-left: 10px;
}
.avatar-stack img {
  width: 34px;
  height: 34px;
  margin-left: -9px;
  object-fit: contain;
  border: 2px solid #f5f2e8;
  border-radius: 50%;
  background: white;
}
.app-view {
  min-height: 490px;
  transition: opacity .16s ease, transform .16s ease;
}
.app-view.switching {
  opacity: 0;
  transform: translateY(7px);
}
.app-home-grid {
  min-height: 490px;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  grid-template-rows: 1fr 1fr;
  gap: 13px;
}
.app-home-grid article,
.view-panel,
.collection-preview-card,
.project-preview-card,
.trader-lane,
.setup-card {
  border: 1px solid #deddd3;
  border-radius: 19px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 26px rgba(26,35,18,.045);
}
.app-hero-card {
  min-height: 236px;
  display: grid;
  grid-template-columns: 1fr 165px;
  align-items: center;
  gap: 14px;
  padding: 26px;
  overflow: hidden;
  color: white;
  background: linear-gradient(145deg,#20231f,#2c3229) !important;
  border-color: #2b3029 !important;
}
.app-hero-card span,
.app-scan-card span,
.app-value-card > span,
.app-card-head > span,
.view-kicker {
  color: #7d857a;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .1em;
}
.app-hero-card span { color: var(--lime); }
.app-hero-card h4 {
  max-width: 230px;
  margin: 9px 0 7px;
  font-size: 1.6rem;
  line-height: .98;
  letter-spacing: -.05em;
}
.app-hero-card p {
  color: #aeb5aa;
  font-size: .72rem;
}
.app-hero-card button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #253200;
  background: var(--lime);
  font-size: .68rem;
  font-weight: 850;
  cursor: pointer;
}
.app-build-orbit {
  width: 138px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(156,255,0,.32);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156,255,0,.16), transparent 67%);
}
.app-build-orbit::before,
.app-build-orbit::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(156,255,0,.2);
  border-radius: 50%;
}
.app-build-orbit::before { inset: 14px; }
.app-build-orbit::after { inset: 30px; border-style: solid; }
.app-build-orbit strong {
  position: relative;
  z-index: 2;
  color: var(--lime);
  font-size: 2.2rem;
  letter-spacing: -.07em;
}
.app-build-orbit small { font-size: .7rem; }
.app-build-orbit i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--lime);
  animation: orbitDot 5s linear infinite;
}
.app-build-orbit i:nth-child(2) { animation-delay: -1.6s; }
.app-build-orbit i:nth-child(3) { animation-delay: -3.2s; }
.app-value-card {
  padding: 23px;
}
.app-value-card strong {
  display: block;
  margin: 13px 0 4px;
  font-size: 2.3rem;
  letter-spacing: -.075em;
}
.app-value-card p {
  color: #7d8379;
  font-size: .7rem;
}
.tiny-chart {
  height: 66px;
  display: flex;
  align-items: end;
  gap: 6px;
  margin-top: 15px;
}
.tiny-chart i {
  flex: 1;
  border-radius: 4px 4px 1px 1px;
  background: #dce2d4;
}
.tiny-chart i:nth-child(1) { height: 24%; }
.tiny-chart i:nth-child(2) { height: 38%; }
.tiny-chart i:nth-child(3) { height: 32%; }
.tiny-chart i:nth-child(4) { height: 52%; }
.tiny-chart i:nth-child(5) { height: 64%; }
.tiny-chart i:nth-child(6) { height: 79%; }
.tiny-chart i:nth-child(7) { height: 96%; background: var(--lime-deep); }
.app-scan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  background: #ddff9e !important;
}
.app-scan-card h4 {
  margin: 7px 0 4px;
  font-size: 1.16rem;
}
.app-scan-card p {
  margin: 0;
  color: #63714f;
  font-size: .7rem;
}
.scan-demo-button {
  width: 92px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: #232720;
  font-size: .68rem;
  font-weight: 850;
  cursor: pointer;
}
.scan-demo-button b { display: block; font-size: 1rem; }
.app-activity-card {
  grid-row: span 2;
  padding: 22px;
}
.app-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.app-card-head button {
  border: 0;
  color: #687063;
  background: transparent;
  font-size: .64rem;
  font-weight: 800;
}
.activity-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  border-top: 1px solid #e4e3da;
}
.activity-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfd3ca;
}
.activity-row i.lime { background: var(--lime-deep); }
.activity-row b,
.activity-row span { display: block; }
.activity-row b { font-size: .72rem; }
.activity-row span { margin-top: 3px; color: #8b9187; font-size: .62rem; }
.activity-row > strong { font-size: .7rem; }
.mobile-app-nav { display: none; }

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 14px;
}
.view-header h4 {
  margin: 5px 0 0;
  font-size: 1.35rem;
  letter-spacing: -.045em;
}
.view-header p {
  margin: 0;
  color: #7a8176;
  font-size: .7rem;
}
.view-chip-row {
  display: flex;
  gap: 6px;
}
.view-chip {
  min-height: 32px;
  border: 1px solid #d8d8ce;
  border-radius: 999px;
  padding: 0 11px;
  color: #6e756a;
  background: white;
  font-size: .64rem;
  font-weight: 800;
  cursor: pointer;
}
.view-chip.active {
  color: #263400;
  border-color: #9cd64a;
  background: #e6ffc2;
}
.build-preview {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 13px;
}
.build-focus {
  min-height: 402px;
  padding: 24px;
  color: white;
  background: #22251f;
  border-radius: 20px;
}
.build-focus h4 {
  margin: 18px 0 8px;
  font-size: 1.7rem;
}
.build-focus > p { color: #a6aea1; font-size: .72rem; line-height: 1.5; }
.big-build-progress {
  margin: 34px 0 20px;
}
.big-build-progress strong {
  display: block;
  color: var(--lime);
  font-size: 3.5rem;
  letter-spacing: -.08em;
}
.big-build-progress i {
  display: block;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: #383d36;
  overflow: hidden;
}
.big-build-progress i::after { content: ""; display: block; width: 87%; height: 100%; background: var(--lime); }
.build-focus button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  color: #243100;
  background: var(--lime);
  font-size: .68rem;
  font-weight: 850;
}
.needed-list {
  display: grid;
  gap: 9px;
}
.needed-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 11px;
  min-height: 70px;
  padding: 11px;
  border: 1px solid #deddd3;
  border-radius: 14px;
  background: white;
}
.needed-part {
  width: 38px;
  height: 24px;
  position: relative;
  border-radius: 5px;
  background: var(--piece, #9cff00);
  box-shadow: inset 0 -4px rgba(0,0,0,.1);
}
.needed-part::before,
.needed-part::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 10px;
  height: 5px;
  border-radius: 3px 3px 0 0;
  background: inherit;
}
.needed-part::before { left: 5px; }
.needed-part::after { right: 5px; }
.needed-row b,
.needed-row span { display: block; }
.needed-row b { font-size: .7rem; }
.needed-row span { margin-top: 3px; color: #858c81; font-size: .62rem; }
.needed-row strong { font-size: .72rem; }
.collection-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.collection-preview-card {
  min-height: 194px;
  padding: 16px;
  transition: transform .18s, box-shadow .18s;
}
.collection-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(31,42,23,.09);
}
.collection-preview-card .item-art {
  height: 94px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #f0eee6;
}
.item-art span {
  width: 58px;
  height: 35px;
  display: block;
  position: relative;
  border-radius: 8px;
  background: var(--item-colour, var(--lime-deep));
  box-shadow: inset 0 -7px rgba(0,0,0,.11);
  transform: rotate(var(--item-angle, -8deg));
}
.item-art span::before,
.item-art span::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 15px;
  height: 8px;
  border-radius: 5px 5px 0 0;
  background: inherit;
}
.item-art span::before { left: 9px; }
.item-art span::after { right: 9px; }
.collection-preview-card h5 { margin: 0; font-size: .78rem; }
.collection-preview-card small { display: block; margin: 4px 0 10px; color: #7d8478; font-size: .62rem; }
.card-value-line { display: flex; align-items: center; justify-content: space-between; font-size: .68rem; }
.card-value-line i { color: #527d0e; font-style: normal; }
.project-preview-list { display: grid; gap: 9px; }
.project-preview-card {
  display: grid;
  grid-template-columns: 56px 1fr 120px;
  align-items: center;
  gap: 13px;
  min-height: 86px;
  padding: 13px;
}
.project-preview-card > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #334f07;
  background: #ddff9e;
  font-size: .68rem;
  font-weight: 900;
}
.project-preview-card b,
.project-preview-card small { display: block; }
.project-preview-card b { font-size: .75rem; }
.project-preview-card small { margin-top: 4px; color: #7e857a; font-size: .62rem; }
.project-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: .64rem;
}
.project-progress i {
  height: 6px;
  border-radius: 99px;
  background: #e1e2d9;
  overflow: hidden;
}
.project-progress i::after {
  content: "";
  display: block;
  width: var(--progress);
  height: 100%;
  background: var(--lime-deep);
}
.trader-preview {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 9px;
}
.trader-lane {
  min-height: 390px;
  padding: 13px;
  background: #f0eee6;
}
.lane-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 11px;
  padding: 0 3px;
  font-size: .66rem;
  font-weight: 850;
}
.lane-head span { color: #8a9186; }
.trade-item {
  margin-bottom: 8px;
  padding: 13px;
  border: 1px solid #deddd4;
  border-radius: 13px;
  background: white;
}
.trade-item i {
  display: block;
  width: 38px;
  height: 25px;
  margin-bottom: 11px;
  border-radius: 6px;
  background: var(--trade-colour, #9cff00);
  box-shadow: inset 0 -4px rgba(0,0,0,.1);
}
.trade-item b,
.trade-item small,
.trade-item strong { display: block; }
.trade-item b { font-size: .68rem; }
.trade-item small { margin: 3px 0 10px; color: #82897e; font-size: .6rem; }
.trade-item strong { font-size: .8rem; }
.setup-preview {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 12px;
}
.setup-card {
  padding: 19px;
}
.setup-card.large { grid-row: span 2; }
.setup-card h4 { margin: 7px 0 6px; font-size: 1.05rem; }
.setup-card > p { color: #7a8176; font-size: .68rem; line-height: 1.5; }
.setup-step {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 13px 0;
  border-top: 1px solid #e2e1d8;
}
.setup-step > b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #365300;
  background: #ddff9e;
  font-size: .62rem;
}
.setup-step span { font-size: .68rem; font-weight: 800; }
.setup-step i { color: #5e8b15; font-size: .64rem; font-style: normal; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 9px;
  border-radius: 999px;
  color: #466b0c;
  background: #e5ffc0;
  font-size: .62rem;
  font-weight: 850;
}
.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6cb800;
}
.scan-overlay {
  position: absolute;
  inset: 42px 0 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 32px;
  padding: 50px;
  color: white;
  background: rgba(14,16,13,.96);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transform: scale(.98);
  transition: opacity .25s, transform .25s;
}
.scan-overlay.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.scan-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: white;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}
.scan-stage {
  text-align: center;
}
.scanner-frame {
  width: 240px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  margin: 0 auto 26px;
  border-radius: 32px;
  background: radial-gradient(circle, rgba(156,255,0,.15), transparent 65%);
}
.scanner-frame > span {
  position: absolute;
  width: 46px;
  height: 46px;
  border-color: var(--lime);
}
.scanner-frame > span:nth-child(1) { top: 0; left: 0; border-top: 3px solid var(--lime); border-left: 3px solid var(--lime); border-radius: 14px 0 0; }
.scanner-frame > span:nth-child(2) { top: 0; right: 0; border-top: 3px solid var(--lime); border-right: 3px solid var(--lime); border-radius: 0 14px 0 0; }
.scanner-frame > span:nth-child(3) { bottom: 0; left: 0; border-bottom: 3px solid var(--lime); border-left: 3px solid var(--lime); border-radius: 0 0 0 14px; }
.scanner-frame > span:nth-child(4) { bottom: 0; right: 0; border-bottom: 3px solid var(--lime); border-right: 3px solid var(--lime); border-radius: 0 0 14px; }
.scanner-frame > i {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 15%;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 0 18px var(--lime), 0 8px 28px rgba(156,255,0,.5);
  animation: scanLine 2.4s ease-in-out infinite;
}
.scan-brick {
  width: 112px;
  height: 68px;
  position: relative;
  border-radius: 16px;
  background: var(--lime);
  box-shadow: inset 0 -12px rgba(0,0,0,.12), 0 22px 40px rgba(156,255,0,.16);
  transform: rotate(-9deg);
}
.scan-brick::before,
.scan-brick::after {
  content: "";
  position: absolute;
  top: -16px;
  width: 30px;
  height: 16px;
  border-radius: 9px 9px 0 0;
  background: inherit;
}
.scan-brick::before { left: 16px; }
.scan-brick::after { right: 16px; }
.scan-stage > strong { font-size: 1rem; }
.scan-stage > p { max-width: 360px; margin: 8px auto 0; color: #8f978b; font-size: .75rem; line-height: 1.5; }
.candidate-panel {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  background: rgba(255,255,255,.055);
}
.candidate-panel > span { color: var(--lime); font-size: .64rem; font-weight: 900; letter-spacing: .1em; }
.candidate-panel h4 { margin: 10px 0 24px; font-size: 1.8rem; line-height: 1; letter-spacing: -.05em; }
.confidence i {
  display: block;
  height: 8px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #31352f;
  overflow: hidden;
}
.confidence i b {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
  transition: width 1.2s .35s ease;
}
.scan-overlay.open .confidence i b { width: 91%; }
.confidence strong { color: #abb2a7; font-size: .7rem; }
.candidate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 26px;
}
.candidate-actions button {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 11px;
  color: #e4e8e0;
  background: transparent;
  font-size: .68rem;
  font-weight: 800;
  cursor: pointer;
}
.candidate-actions .confirm-candidate {
  border-color: var(--lime);
  color: #233000;
  background: var(--lime);
}
.theatre-caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 26px auto 0;
  color: #858e81;
  font-size: .76rem;
}
.theatre-caption span {
  color: var(--lime);
  font-weight: 850;
}
.theatre-caption p {
  max-width: 520px;
  margin: 0;
  text-align: right;
}
.app-device.is-mobile .app-shell { display: block; }
.app-device.is-mobile .app-rail { display: none; }
.app-device.is-mobile .app-workspace { min-height: 668px; padding: 19px 14px 78px; }
.app-device.is-mobile .app-chrome { grid-template-columns: 1fr auto; }
.app-device.is-mobile .chrome-dots,
.app-device.is-mobile .chrome-signal { display: none; }
.app-device.is-mobile .workspace-header { align-items: flex-start; }
.app-device.is-mobile .workspace-header h3 { font-size: 1.5rem; }
.app-device.is-mobile .search-trigger { width: 40px; padding: 0; justify-content: center; font-size: 0; }
.app-device.is-mobile .search-trigger span { font-size: 1.1rem; }
.app-device.is-mobile .avatar-stack img:not(:last-child) { display: none; }
.app-device.is-mobile .app-home-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
.app-device.is-mobile .app-home-grid article { min-height: 0; }
.app-device.is-mobile .app-hero-card { grid-template-columns: 1fr 108px; padding: 18px; }
.app-device.is-mobile .app-build-orbit { width: 98px; }
.app-device.is-mobile .app-hero-card h4 { font-size: 1.2rem; }
.app-device.is-mobile .app-value-card,
.app-device.is-mobile .app-activity-card { display: none; }
.app-device.is-mobile .app-scan-card { padding: 17px; }
.app-device.is-mobile .mobile-app-nav {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  padding: 5px;
  border-radius: 16px;
  background: #20231f;
}
.mobile-app-nav button {
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  color: #91998d;
  background: transparent;
  font-size: .56rem;
  font-weight: 800;
}
.mobile-app-nav button.active {
  color: #263300;
  background: var(--lime);
}
.app-device.is-mobile .view-header { display: block; }
.app-device.is-mobile .view-header p { margin-top: 6px; }
.app-device.is-mobile .view-chip-row { margin-top: 10px; overflow-x: auto; }
.app-device.is-mobile .build-preview,
.app-device.is-mobile .setup-preview { grid-template-columns: 1fr; }
.app-device.is-mobile .build-focus { min-height: 240px; }
.app-device.is-mobile .needed-list { display: none; }
.app-device.is-mobile .collection-preview-grid { grid-template-columns: 1fr 1fr; }
.app-device.is-mobile .collection-preview-card:nth-child(n+5) { display: none; }
.app-device.is-mobile .project-preview-card { grid-template-columns: 52px 1fr; }
.app-device.is-mobile .project-progress { grid-column: 2; }
.app-device.is-mobile .trader-preview { grid-template-columns: 1fr; }
.app-device.is-mobile .trader-lane { min-height: auto; }
.app-device.is-mobile .trader-lane:nth-child(n+2) { display: none; }
.app-device.is-mobile .setup-card.large { grid-row: auto; }
.app-device.is-mobile .scan-overlay { inset: 42px 0 0; grid-template-columns: 1fr; gap: 18px; padding: 54px 18px 18px; overflow-y: auto; }
.app-device.is-mobile .scanner-frame { width: 180px; }
.app-device.is-mobile .candidate-panel { padding: 18px; }

.motion-ribbon {
  width: 100vw;
  height: 70px;
  position: relative;
  left: 50%;
  display: flex;
  transform: translateX(-50%) rotate(-1.1deg);
  overflow: hidden;
  color: var(--ink);
  background: var(--lime);
  border-top: 1px solid #b4ff43;
  border-bottom: 1px solid #76be00;
}
.motion-ribbon > div {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  white-space: nowrap;
  animation: ribbon 24s linear infinite;
}
.motion-ribbon span {
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .12em;
}
.motion-ribbon i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ink);
  transform: rotate(45deg);
}

@keyframes heroFloat {
  0%,100% { transform: translate3d(0,0,0) rotate(-.3deg); }
  50% { transform: translate3d(0,-11px,0) rotate(.4deg); }
}
@keyframes orbitDot {
  from { transform: rotate(0deg) translateX(62px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(62px) rotate(-360deg); }
}
@keyframes scanLine {
  0%,100% { top: 15%; opacity: .55; }
  50% { top: 82%; opacity: 1; }
}
@keyframes ribbon { to { transform: translateX(-25%); } }

@media (max-width: 980px) {
  .lab-heading { grid-template-columns: 1fr; gap: 26px; }
  .app-theatre { min-height: 810px; padding: 42px 22px 32px; }
  .app-shell { grid-template-columns: 76px 1fr; }
  .app-brand span,
  .app-nav span,
  .rail-profile div { display: none; }
  .app-brand { justify-content: center; padding-inline: 0; }
  .app-nav { grid-template-columns: 1fr; justify-items: center; padding: 0; }
  .rail-profile { grid-template-columns: 1fr; justify-items: center; padding-inline: 0; }
  .app-home-grid { grid-template-columns: 1fr .72fr; }
  .app-hero-card { grid-template-columns: 1fr 125px; padding: 20px; }
  .app-build-orbit { width: 116px; }
  .scan-overlay { padding: 38px; }
}

@media (max-width: 740px) {
  .product-lab { padding-inline: 12px; }
  .lab-heading { padding-inline: 6px; }
  .lab-controls { width: 100%; }
  .device-button { flex: 1; }
  .app-theatre { min-height: 780px; padding: 20px 8px 25px; border-radius: 28px; }
  .theatre-meta { padding: 0 8px; }
  .theatre-meta b { display: none; }
  .app-device:not(.is-mobile) { width: 392px; min-height: 720px; border-width: 10px; border-radius: 38px; transform: none; }
  .app-device:not(.is-mobile) .app-shell { display: block; }
  .app-device:not(.is-mobile) .app-rail { display: none; }
  .app-device:not(.is-mobile) .app-workspace { min-height: 668px; padding: 19px 14px 78px; }
  .app-device:not(.is-mobile) .app-home-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .app-device:not(.is-mobile) .app-value-card,
  .app-device:not(.is-mobile) .app-activity-card { display: none; }
  .app-device:not(.is-mobile) .mobile-app-nav { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 5; display: grid; grid-template-columns: repeat(6,1fr); gap: 3px; padding: 5px; border-radius: 16px; background: #20231f; }
  .theatre-caption { display: block; padding: 0 8px; }
  .theatre-caption p { margin-top: 8px; text-align: left; }
}

@media (max-width: 430px) {
  .app-device,
  .app-device.is-mobile,
  .app-device:not(.is-mobile) { width: 100%; border-width: 6px; border-radius: 28px; }
  .app-chrome { border-radius: 20px 20px 0 0; }
  .workspace-actions .avatar-stack { display: none; }
  .app-hero-card,
  .app-device.is-mobile .app-hero-card { grid-template-columns: 1fr 88px; }
  .app-build-orbit,
  .app-device.is-mobile .app-build-orbit { width: 82px; }
  .app-build-orbit strong { font-size: 1.7rem; }
  .app-scan-card h4 { font-size: 1rem; }
  .scan-demo-button { width: 74px; }
  .candidate-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art,
  .motion-ribbon > div,
  .app-build-orbit i,
  .scanner-frame > i { animation: none !important; }
}

/* Interactive rescue mission */
.rescue-lab {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  padding-inline: max(18px, calc((100vw - var(--max)) / 2));
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0, rgba(18,20,17,.09), transparent 28%),
    var(--lime);
}
.rescue-heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 54px;
}
.rescue-heading .kicker {
  grid-column: 1 / -1;
  margin-bottom: -28px;
  color: #405f0a;
}
.rescue-heading h2 { grid-column: 1; }
.rescue-heading h2 span { color: rgba(18,20,17,.48); }
.rescue-heading p {
  grid-column: 2;
  margin: 0 0 7px;
  color: #415328;
  font-size: 1rem;
  line-height: 1.7;
}
.rescue-console {
  min-height: 690px;
  position: relative;
  overflow: hidden;
  border: 8px solid #292d27;
  border-radius: 36px;
  color: #eef1eb;
  background: #171a16;
  box-shadow: 0 45px 90px rgba(57,84,12,.22);
}
.console-topbar {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 150px;
  align-items: center;
  gap: 24px;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: #20231f;
}
.mission-id {
  min-width: 0;
  display: grid;
  grid-template-columns: 9px auto 1fr;
  align-items: center;
  gap: 9px;
}
.mission-id i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(156,255,0,.75);
}
.mission-id span,
.mission-score span,
.tray-head span,
.mission-log > span,
.value-lens > span,
.mission-character span,
.value-result span {
  color: #818a7d;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .1em;
}
.mission-id b {
  overflow: hidden;
  color: white;
  font-size: .85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mode-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: #181b17;
}
.mode-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #828a7e;
  background: transparent;
  font-size: .68rem;
  font-weight: 850;
  cursor: pointer;
}
.mode-switch button.active {
  color: #283500;
  background: var(--lime);
}
.mission-score {
  text-align: right;
}
.mission-score span,
.mission-score b { display: block; }
.mission-score b {
  margin-top: 2px;
  color: var(--lime);
  font-size: 1.7rem;
  letter-spacing: -.06em;
}
.console-body {
  min-height: 604px;
  display: grid;
  grid-template-columns: 1fr 1.12fr 290px;
}
.build-blueprint {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  overflow: hidden;
  padding: 25px;
  border-right: 1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(circle at 50% 38%, rgba(156,255,0,.11), transparent 42%),
    #11130f;
}
.blueprint-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(156,255,0,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156,255,0,.055) 1px, transparent 1px);
  background-size: 27px 27px;
  mask-image: radial-gradient(circle, black, transparent 78%);
}
.ship-map {
  min-height: 400px;
  display: grid;
  place-items: center;
  position: relative;
}
.ship-map > img {
  width: min(94%, 420px);
  filter: saturate(.7) contrast(1.05) drop-shadow(0 24px 30px rgba(0,0,0,.45));
  opacity: .84;
}
.target-slot {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  position: absolute;
  border: 2px dashed var(--lime);
  border-radius: 13px;
  color: #243200;
  background: rgba(156,255,0,.82);
  box-shadow: 0 0 0 7px rgba(156,255,0,.07), 0 0 24px rgba(156,255,0,.22);
  font-size: .7rem;
  font-weight: 950;
  transition: transform .25s, background .25s, border-color .25s;
  animation: slotPulse 2.2s ease-in-out infinite;
}
.target-slot.found {
  color: white;
  border-style: solid;
  border-color: white;
  background: #4c740c;
  transform: scale(.82);
  animation: none;
}
.target-slot.found span { font-size: 0; }
.target-slot.found span::after { content: "✓"; font-size: 1rem; }
.slot-a { left: 18%; top: 32%; }
.slot-b { right: 21%; top: 24%; animation-delay: -.7s; }
.slot-c { right: 28%; bottom: 24%; animation-delay: -1.4s; }
.blueprint-status {
  position: relative;
  z-index: 2;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(26,30,24,.82);
  backdrop-filter: blur(10px);
}
.blueprint-status > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.blueprint-status span {
  color: #7e877a;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .1em;
}
.blueprint-status b { color: var(--lime); font-size: .8rem; }
.blueprint-meter {
  height: 7px;
  margin: 12px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #343831;
}
.blueprint-meter i {
  display: block;
  width: 84%;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(156,255,0,.42);
  transition: width .45s cubic-bezier(.2,.8,.2,1);
}
.blueprint-status p {
  margin: 0;
  color: #a7aea2;
  font-size: .73rem;
}
.piece-tray {
  min-width: 0;
  padding: 26px;
  border-right: 1px solid rgba(255,255,255,.09);
  background: #1b1e1a;
}
.tray-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}
.tray-head span,
.tray-head b { display: block; }
.tray-head b {
  margin-top: 5px;
  font-size: 1rem;
}
.tray-head .match-indicator {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: #9ba397;
  background: rgba(255,255,255,.04);
  letter-spacing: 0;
  text-transform: none;
}
.tray-head .match-indicator.assisted {
  color: #314900;
  border-color: transparent;
  background: var(--lime);
}
.loose-pieces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin: 28px 0;
}
.loose-piece {
  min-width: 0;
  min-height: 128px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 4px 8px;
  position: relative;
  overflow: hidden;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  color: white;
  background: #242823;
  text-align: left;
  cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s;
}
.loose-piece:hover {
  transform: translateY(-3px) rotate(-.6deg);
  border-color: rgba(156,255,0,.5);
  background: #292e27;
}
.loose-piece:focus-visible {
  outline: 3px solid rgba(156,255,0,.35);
  outline-offset: 2px;
}
.loose-piece i {
  grid-column: 1 / -1;
  width: var(--pw, 72px);
  height: var(--ph, 40px);
  align-self: center;
  justify-self: center;
  position: relative;
  border-radius: var(--pr, 8px);
  background: var(--pc, var(--lime));
  box-shadow: inset 0 -8px rgba(0,0,0,.13), 0 13px 20px rgba(0,0,0,.18);
  transform: rotate(var(--rot, -7deg));
}
.loose-piece i::before,
.loose-piece i::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 19px;
  height: 9px;
  border-radius: 6px 6px 0 0;
  background: inherit;
}
.loose-piece i::before { left: 11px; }
.loose-piece i::after { right: 11px; }
.loose-piece span {
  min-width: 0;
  overflow: hidden;
  font-size: .7rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loose-piece b {
  color: #858e81;
  font-size: .62rem;
  font-weight: 750;
}
.piece-decoy-a { --pc:#ff8b3d; --pw:58px; --pr:18px 18px 7px 7px; --rot:9deg; }
.piece-plate { --pc:#f5f5f1; --pw:82px; --ph:30px; --rot:4deg; }
.piece-decoy-b { --pc:#6488ff; --pw:48px; --ph:48px; --pr:50%; --rot:0deg; }
.piece-tile { --pc:#30332f; --pw:49px; --ph:49px; --pr:50%; --rot:0deg; }
.piece-decoy-c { --pc:#aab0b3; --pw:54px; --ph:32px; --rot:-12deg; }
.loose-piece.found {
  pointer-events: none;
  opacity: .36;
  transform: scale(.95);
}
.loose-piece.found::after {
  content: "FOUND ✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(156,255,0,.84);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
}
.loose-piece.wrong { animation: wrongPiece .4s ease; }
.loose-piece.inventory-match {
  border-color: rgba(156,255,0,.55);
  box-shadow: inset 0 0 0 1px rgba(156,255,0,.18);
}
.loose-piece.inventory-match::before {
  content: "OWNED";
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 4px 6px;
  border-radius: 999px;
  color: #2e4500;
  background: var(--lime);
  font-size: .52rem;
  font-weight: 950;
}
.tray-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.console-button {
  min-height: 46px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: #c6ccc2;
  background: transparent;
  font-size: .69rem;
  font-weight: 850;
  cursor: pointer;
}
.console-button:disabled { cursor: not-allowed; opacity: .38; }
.console-button-bright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;
  color: #273500;
  border-color: transparent;
  background: var(--lime);
}
.mission-rail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #20231f;
}
.mission-character {
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.mission-character img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 20px;
  background: var(--lime);
}
.mission-character span,
.mission-character b { display: block; }
.mission-character b {
  margin-top: 4px;
  font-size: .78rem;
}
.mission-log {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.mission-log > div { margin-top: 9px; }
.mission-log p {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 0;
  color: #b0b7ac;
  font-size: .65rem;
}
.mission-log p i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #596057;
}
.mission-log p:first-child i { background: var(--lime); }
.mission-log p b { color: #697167; font-size: .58rem; }
.value-lens { padding: 20px 0; }
.condition-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 10px 0 14px;
  padding: 4px;
  border-radius: 12px;
  background: #161914;
}
.condition-toggle button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  color: #7f887b;
  background: transparent;
  font-size: .62rem;
  font-weight: 850;
  cursor: pointer;
}
.condition-toggle button.active {
  color: #243200;
  background: var(--lime);
}
.value-result {
  padding: 14px;
  border: 1px solid rgba(156,255,0,.22);
  border-radius: 14px;
  background: rgba(156,255,0,.06);
}
.value-result span,
.value-result b,
.value-result small { display: block; }
.value-result b {
  margin: 4px 0;
  color: var(--lime);
  font-size: 1.65rem;
  letter-spacing: -.06em;
  transition: transform .2s, opacity .2s;
}
.value-result b.changing { transform: translateY(4px); opacity: 0; }
.value-result small { color: #7c8578; font-size: .62rem; }
.move-trader-button {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-top: auto;
  padding: 0 16px;
  border: 0;
  border-radius: 15px;
  color: var(--ink);
  background: var(--lime);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.move-trader-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(156,255,0,.12);
}
.move-trader-button span { font-size: .62rem; font-weight: 800; }
.move-trader-button b { margin-top: 4px; font-size: .75rem; }
.rescue-complete {
  position: absolute;
  inset: 78px 0 0;
  z-index: 20;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 44px;
  padding: 50px;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.48), transparent 30%),
    var(--lime);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .35s, transform .35s;
}
.rescue-complete.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.rescue-complete > img {
  width: min(100%, 470px);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 28px 34px rgba(48,70,11,.22));
}
.rescue-complete > div:not(.confetti-field) {
  position: relative;
  z-index: 2;
}
.rescue-complete span {
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .14em;
}
.rescue-complete h3 {
  max-width: 620px;
  margin: 14px 0;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: .88;
}
.rescue-complete p {
  max-width: 560px;
  color: #405126;
  font-size: .88rem;
  line-height: 1.6;
}
.complete-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.complete-actions button {
  min-height: 46px;
  border: 1px solid rgba(18,20,17,.24);
  border-radius: 999px;
  padding: 0 17px;
  color: var(--ink);
  background: transparent;
  font-size: .7rem;
  font-weight: 850;
  cursor: pointer;
}
.complete-actions button:last-child {
  color: white;
  background: var(--ink);
}
.confetti-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti-field i {
  width: 10px;
  height: 16px;
  position: absolute;
  top: -8%;
  left: var(--x);
  border-radius: 2px;
  background: var(--c);
  animation: confettiFall var(--d) var(--delay) linear infinite;
}

.trader-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.trader-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7,9,7,.78);
  backdrop-filter: blur(14px);
}
.trader-modal-card {
  width: min(780px,100%);
  max-height: min(860px, calc(100vh - 44px));
  position: relative;
  z-index: 2;
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  color: #eef1eb;
  background:
    radial-gradient(circle at 100% 0, rgba(156,255,0,.11), transparent 25%),
    #1b1e1a;
  box-shadow: 0 45px 110px rgba(0,0,0,.6);
  transform: translateY(18px) scale(.985);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.trader-modal.open .trader-modal-card { transform: translateY(0) scale(1); }
.modal-close {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 20px;
  right: 20px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  color: white;
  background: transparent;
  font-size: 1.35rem;
  cursor: pointer;
}
.modal-title > span {
  color: var(--lime);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .12em;
}
.modal-title h3 {
  margin: 12px 50px 10px 0;
  font-size: 2.25rem;
}
.modal-title p {
  max-width: 590px;
  margin-bottom: 0;
  color: #8f978b;
  font-size: .78rem;
  line-height: 1.55;
}
.listing-stages {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  margin: 27px 0 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.listing-stages span {
  padding: 13px 0;
  color: #6f776c;
  font-size: .68rem;
  font-weight: 850;
}
.listing-stages span.active { color: white; }
.listing-stages b {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  margin-right: 7px;
  border-radius: 50%;
  color: #263400;
  background: var(--lime);
  font-size: .58rem;
}
.listing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.listing-grid label {
  color: #959d91;
  font-size: .67rem;
  font-weight: 800;
}
.listing-grid input,
.listing-grid select,
.listing-grid textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  padding: 12px;
  color: white;
  background: #11130f;
  font: inherit;
  font-size: .76rem;
  outline: none;
}
.listing-grid input:focus,
.listing-grid select:focus,
.listing-grid textarea:focus { border-color: rgba(156,255,0,.58); }
.listing-grid textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.listing-wide { grid-column: 1 / -1; }
.price-input { position: relative; }
.price-input span {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  color: #7e8779;
}
.price-input input { padding-left: 27px; }
.listing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.listing-footer > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #899185;
  font-size: .65rem;
}
.listing-footer > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}
.listing-footer > div { display: flex; gap: 8px; }
.listing-footer button {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 11px;
  padding: 0 16px;
  color: white;
  background: transparent;
  font-size: .7rem;
  font-weight: 850;
  cursor: pointer;
}
.listing-footer .listing-primary {
  color: #283600;
  border-color: var(--lime);
  background: var(--lime);
}

@keyframes slotPulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 7px rgba(156,255,0,.07), 0 0 20px rgba(156,255,0,.17); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(156,255,0,.03), 0 0 30px rgba(156,255,0,.32); }
}
@keyframes wrongPiece {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px) rotate(-2deg); }
  75% { transform: translateX(6px) rotate(2deg); }
}
@keyframes confettiFall {
  to { transform: translateY(115vh) rotate(720deg); }
}

@media (max-width: 1080px) {
  .console-body { grid-template-columns: 1fr 1fr; }
  .mission-rail { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; align-items: center; }
  .mission-character,
  .mission-log,
  .value-lens { padding: 0; border: 0; }
  .move-trader-button { margin: 0; }
}

@media (max-width: 820px) {
  .rescue-heading { grid-template-columns: 1fr; gap: 24px; }
  .rescue-heading .kicker { grid-column: 1; margin-bottom: -5px; }
  .rescue-heading h2,
  .rescue-heading p { grid-column: 1; }
  .console-topbar { grid-template-columns: 1fr auto; }
  .mode-switch { grid-column: 1 / -1; grid-row: 2; }
  .mission-score { grid-column: 2; grid-row: 1; }
  .console-body { grid-template-columns: 1fr; }
  .build-blueprint,
  .piece-tray { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  .mission-rail { grid-column: 1; grid-template-columns: 1fr 1fr; }
  .rescue-complete { grid-template-columns: 1fr; gap: 10px; padding: 30px; overflow-y: auto; }
  .rescue-complete > img { width: min(55%, 330px); margin: auto; }
}

@media (max-width: 560px) {
  .rescue-lab { padding-inline: 12px; }
  .rescue-heading { padding-inline: 5px; }
  .rescue-console { border-width: 5px; border-radius: 26px; }
  .console-topbar { padding: 13px; }
  .mission-id { grid-template-columns: 9px 1fr; }
  .mission-id b { grid-column: 2; }
  .mission-score { min-width: 75px; }
  .mission-score span { font-size: .52rem; }
  .mode-switch button { flex: 1; padding-inline: 8px; }
  .build-blueprint,
  .piece-tray,
  .mission-rail { padding: 16px; }
  .ship-map { min-height: 310px; }
  .target-slot { width: 38px; height: 38px; }
  .slot-a { left: 10%; }
  .slot-b { right: 13%; }
  .slot-c { right: 20%; bottom: 21%; }
  .loose-pieces { grid-template-columns: 1fr 1fr; gap: 7px; }
  .loose-piece { min-height: 112px; padding: 10px; }
  .tray-actions { grid-template-columns: 1fr; }
  .mission-rail { grid-template-columns: 1fr; }
  .mission-log { display: none; }
  .rescue-complete { inset: 124px 0 0; padding: 24px 16px; text-align: center; }
  .rescue-complete h3 { font-size: 3.2rem; }
  .complete-actions { display: grid; }
  .trader-modal { padding: 10px; }
  .trader-modal-card { max-height: calc(100vh - 20px); padding: 25px 16px; border-radius: 22px; }
  .modal-title h3 { font-size: 1.75rem; }
  .listing-grid { grid-template-columns: 1fr; }
  .listing-wide { grid-column: 1; }
  .listing-footer { align-items: stretch; flex-direction: column; }
  .listing-footer > div { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .target-slot,
  .confetti-field i { animation: none !important; }
}
