:root {
  --midnight: #030b18;
  --deep: #061426;
  --panel: #071b31;
  --panel-2: #08203b;
  --gold: #d9a441;
  --light-gold: #f4c765;
  --cream: #f8f1e4;
  --muted: #cbd5df;
  --line: rgba(136, 171, 202, 0.22);
  --line-strong: rgba(244, 199, 101, 0.46);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--cream);
  background:
    radial-gradient(circle at 78% 8%, rgba(34, 90, 133, .34), transparent 30rem),
    radial-gradient(circle at 12% 42%, rgba(217, 164, 65, .08), transparent 24rem),
    linear-gradient(180deg, var(--midnight), #041226 48%, var(--midnight));
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(118,185,230,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118,185,230,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--light-gold); outline-offset: 4px; }
img, svg { max-width: 100%; display: block; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section-pad { padding: 132px 0 42px; }
.section-gap { margin-top: 34px; }
.skip-link { position: absolute; left: -999px; top: 16px; z-index: 1000; background: var(--cream); color: var(--midnight); padding: .75rem 1rem; border-radius: 999px; }
.skip-link:focus { left: 16px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease; }
.site-header.is-scrolled { background: rgba(3, 11, 24, .78); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 700; letter-spacing: .12em; white-space: nowrap; text-shadow: 0 0 18px rgba(244, 199, 101, .16); }
.nav-menu { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); font-weight: 600; color: rgba(248,241,228,.9); }
.nav-menu a:not(.btn) { position: relative; }
.nav-menu a:not(.btn)::after { content:""; position:absolute; left:0; right:0; bottom:-8px; height:1px; background: var(--gold); transform: scaleX(0); transform-origin:left; transition: transform .2s ease; }
.nav-menu a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: rgba(7, 27, 49, .7); color: var(--cream); }
.nav-toggle span:not(.sr-only) { width: 20px; height: 2px; background: var(--cream); margin: 4px auto; display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 34px; border-radius: 10px; font-weight: 800; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { color: #130d04; background: linear-gradient(180deg, #f7cf6d 0%, #d9a441 70%, #bd812b 100%); box-shadow: 0 18px 40px rgba(217, 164, 65, .22), inset 0 1px 0 rgba(255,255,255,.42); }
.btn-outline { color: var(--cream); border-color: var(--line-strong); background: rgba(3, 11, 24, .35); box-shadow: inset 0 0 0 1px rgba(244,199,101,.13); }
.btn-small { min-height: 48px; padding-inline: 23px; }
.btn-wide { min-width: 330px; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr); gap: 36px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-kicker { color: var(--light-gold); letter-spacing: .16em; font-weight: 800; font-size: .82rem; margin: 0 0 18px; }
h1, h2, h3 { margin: 0; line-height: .98; }
h1 { font-family: var(--font-head); font-size: clamp(3.15rem, 7.2vw, 5.95rem); max-width: 720px; letter-spacing: -.045em; text-wrap: balance; text-shadow: 0 2px 0 rgba(0,0,0,.2); }
.hero-subhead { max-width: 620px; margin: 34px 0 0; color: var(--cream); font-size: clamp(1.08rem, 2vw, 1.45rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 48px; }
.hero-art { min-height: 620px; display: grid; place-items: center; position: relative; }
.hero-art::before { content:""; position:absolute; width: 82%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(244,199,101,.14), rgba(37,103,153,.13) 35%, transparent 68%); filter: blur(16px); }
.machine-svg { width: min(100%, 760px); height: auto; overflow: visible; animation: heroFloat 8s ease-in-out infinite; }
.grid-lines path { fill:none; stroke: rgba(118,185,230,.22); stroke-width: 1; }
.circuit path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 8 14; animation: dashDrift 14s linear infinite; }
.circuit-blue path { stroke: rgba(118,185,230,.62); filter: url(#softGlow); }
.circuit-gold path { stroke: rgba(244,199,101,.76); filter: url(#softGlow); animation-duration: 18s; }
.nodes circle { fill: var(--light-gold); filter: url(#hardGlow); animation: pulseNode 2.8s ease-in-out infinite; }
.nodes circle:nth-child(2n) { fill: #76b9e6; animation-delay: .7s; }
.nodes circle:nth-child(3n) { animation-delay: 1.2s; }
.central-cube { transform-origin: 384px 370px; animation: cubeFloat 6.5s ease-in-out infinite; }
.cube-shadow ellipse { fill: rgba(0,0,0,.34); filter: blur(8px); }
.cube-top { fill: rgba(9, 37, 66, .86); stroke: url(#goldStroke); stroke-width: 3; }
.cube-left { fill: rgba(6, 24, 44, .95); stroke: url(#goldStroke); stroke-width: 3; }
.cube-right { fill: rgba(8, 31, 57, .95); stroke: url(#goldStroke); stroke-width: 3; }
.cube-edge, .cube-core-line { fill: none; stroke: rgba(244,199,101,.92); stroke-width: 2; stroke-linejoin: round; filter: url(#softGlow); }
.cube-core { fill: rgba(248,241,228,.95); stroke: #76b9e6; stroke-width: 2; filter: url(#hardGlow); animation: corePulse 3s ease-in-out infinite; }
.cube-icons path, .cube-icons circle { fill:none; stroke: rgba(244,199,101,.72); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.panel-card polygon { fill: rgba(7, 27, 49, .84); stroke: rgba(244,199,101,.75); stroke-width: 2; filter: url(#softGlow); }
.panel-card path, .panel-card circle { fill:none; stroke: rgba(244,199,101,.75); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.panel-a { animation: panelFloat 7s ease-in-out infinite; }
.panel-b { animation: panelFloat 8.2s ease-in-out infinite .6s; }
.panel-c { animation: panelFloat 7.4s ease-in-out infinite 1s; }
.symbols text { fill: rgba(244,199,101,.9); font: 700 29px Georgia, serif; filter: url(#softGlow); animation: symbolPulse 4s ease-in-out infinite; }
.symbols text:nth-child(even) { fill: rgba(118,185,230,.9); animation-delay: 1s; }
.line-icons path, .line-icons circle { fill:none; stroke: rgba(244,199,101,.76); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; filter: url(#softGlow); }
.line-icons g:nth-child(even) path, .line-icons g:nth-child(even) circle { stroke: rgba(118,185,230,.76); }


/* Updated hero illustration: taller, denser, and closer to the supplied vertical isometric reference. */
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr); gap: clamp(18px, 3.5vw, 52px); }
.hero-art { min-height: 650px; justify-items: end; }
.hero-art::before { width: min(92%, 520px); background: radial-gradient(circle, rgba(244,199,101,.15), rgba(37,103,153,.14) 38%, transparent 70%); }
.machine-svg { width: min(100%, 560px); max-height: 720px; }
.blueprint-field path { fill:none; stroke: rgba(118,185,230,.16); stroke-width: 1; }
.board-traces path { fill:none; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 7 13; animation: dashDrift 16s linear infinite; }
.trace-blue path { stroke: rgba(118,185,230,.55); filter: url(#softGlow); }
.trace-gold path { stroke: rgba(244,199,101,.82); filter: url(#softGlow); animation-duration: 21s; }
.vertical-connectors path { fill:none; stroke: rgba(244,199,101,.46); stroke-width: 1.4; stroke-dasharray: 2 7; filter: url(#softGlow); }
.upper-towers { transform-origin: 260px 230px; animation: panelFloat 7.8s ease-in-out infinite .2s; }
.tower-front { animation: panelFloat 8.6s ease-in-out infinite .45s; }
.tower-back { animation: panelFloat 9.4s ease-in-out infinite 1.1s; }
.tower-top { fill: rgba(9,37,66,.88); stroke: url(#goldStroke); stroke-width: 2.2; }
.tower-left { fill: rgba(5,20,39,.9); stroke: rgba(244,199,101,.72); stroke-width: 2; }
.tower-right { fill: rgba(7,28,53,.92); stroke: rgba(244,199,101,.72); stroke-width: 2; }
.tower-edge, .tower-markings path, .tower-markings circle { fill:none; stroke: rgba(244,199,101,.78); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: url(#softGlow); }
.central-cube { transform-origin: 260px 462px; animation: cubeFloat 6.5s ease-in-out infinite; }
.cube-shadow { fill: rgba(0,0,0,.34); filter: blur(9px); }
.cube-face-icons path, .cube-face-icons circle { fill:none; stroke: rgba(244,199,101,.7); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-medallions circle { fill: rgba(7,27,49,.4); stroke: rgba(244,199,101,.64); stroke-width: 1.5; filter: url(#softGlow); }
.icon-medallions path { fill:none; stroke: rgba(244,199,101,.74); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-medallions g:nth-child(even) circle, .icon-medallions g:nth-child(even) path { stroke: rgba(118,185,230,.65); }
.logic-symbols text { fill: rgba(244,199,101,.9); font: 700 23px Georgia, serif; filter: url(#softGlow); animation: symbolPulse 4.5s ease-in-out infinite; }
.logic-symbols text:nth-child(even) { fill: rgba(118,185,230,.84); animation-delay: 1s; }
.spark-lines path { fill:none; stroke: rgba(244,199,101,.62); stroke-width: 1.5; stroke-linecap: round; filter: url(#hardGlow); animation: corePulse 3.4s ease-in-out infinite; }
@media (max-width: 1080px) {
  .hero-art { justify-items: center; min-height: auto; }
  .machine-svg { max-width: 540px; }
}
@media (max-width: 780px) {
  .machine-svg { max-width: min(100%, 430px); }
}

.panel-glow { background: linear-gradient(180deg, rgba(8, 32, 59, .76), rgba(5, 18, 34, .84)); border: 1px solid var(--line); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.04); position: relative; overflow: hidden; }
.panel-glow::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 12% 0%, rgba(244,199,101,.12), transparent 22rem), radial-gradient(circle at 88% 100%, rgba(118,185,230,.12), transparent 22rem); pointer-events:none; }
.workflow-panel { border-radius: var(--radius); padding: 28px 44px 42px; }
.workflow-panel h2 { text-align: center; position: relative; }
.workflow-list { position: relative; z-index: 1; margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 26px; }
.workflow-list li { display: grid; justify-items: center; gap: 16px; color: var(--cream); font-weight: 600; text-align: center; position: relative; min-width: 0; }
.workflow-list li:not(:last-child)::after { content:"→"; position:absolute; right: -22px; top: 26px; color: var(--light-gold); font-size: 2rem; line-height: 1; }
.step-icon { width: 76px; height: 76px; border: 1px solid var(--line-strong); border-radius: 15px; display: grid; place-items: center; background: rgba(3, 11, 24, .3); box-shadow: inset 0 0 0 1px rgba(244,199,101,.08); }
.step-icon svg { width: 42px; height: 42px; }
.step-icon path, .step-icon circle { fill: none; stroke: var(--light-gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.card-grid { display: grid; gap: 16px; }
.value-grid { grid-template-columns: repeat(4, 1fr); }
.value-card { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(8,32,59,.82), rgba(6,20,38,.9)); border-radius: 17px; padding: 34px 26px 36px; min-height: 220px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.value-card h3 { font-family: var(--font-body); line-height: 1.22; font-size: 1.2rem; margin-top: 22px; }
.value-card p { color: var(--muted); margin: 20px 0 0; }
.mini-icon svg { width: 48px; height: 48px; }
.mini-icon path, .mini-icon circle { fill: none; stroke: var(--light-gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.split-panel, .resource-strip, .cta-panel { border-radius: var(--radius); padding: clamp(28px, 5vw, 54px); }
.split-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
h2 { font-family: var(--font-head); font-size: clamp(2.35rem, 4.6vw, 4.2rem); letter-spacing: -.035em; text-wrap: balance; }
.split-panel p:last-child, .section-heading p, .resource-points p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-heading { max-width: 770px; margin-bottom: 24px; }
.section-heading p:last-child { margin-top: 20px; }
.dashboard-panel { border-radius: var(--radius); padding: 22px; }
.dashboard-topbar { height: 46px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); margin: -22px -22px 22px; padding: 0 22px; }
.dashboard-topbar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(244,199,101,.78); box-shadow: 0 0 18px rgba(244,199,101,.45); }
.dashboard-topbar span:nth-child(2) { background: rgba(118,185,230,.75); }
.dashboard-topbar span:nth-child(3) { background: rgba(248,241,228,.58); }
.function-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; z-index: 1; }
.function-grid article { background: rgba(3, 11, 24, .42); border: 1px solid rgba(136, 171, 202, .18); border-radius: 15px; padding: 23px; min-height: 156px; }
.function-grid strong { color: var(--cream); font-size: 1.05rem; }
.function-grid p { color: var(--muted); margin: 14px 0 0; }
.resource-strip { display: grid; grid-template-columns: .78fr 1.22fr; gap: 40px; align-items: start; }
.resource-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; position: relative; z-index: 1; }
.resource-points p { padding: 18px; border: 1px solid rgba(136,171,202,.16); border-radius: 14px; background: rgba(3,11,24,.28); }
.resource-points strong { color: var(--light-gold); }
.cta-panel { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cta-panel h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.site-footer { padding: 38px 0 52px; color: rgba(203,213,223,.72); font-size: .95rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes cubeFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes panelFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
@keyframes pulseNode { 0%,100% { opacity: .45; r: 4; } 50% { opacity: 1; r: 7; } }
@keyframes dashDrift { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -180; } }
@keyframes corePulse { 0%,100% { opacity: .78; } 50% { opacity: 1; } }
@keyframes symbolPulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: auto; margin-top: 4px; }
  .machine-svg { max-width: 720px; margin-inline: auto; }
  .workflow-list { grid-template-columns: repeat(4, 1fr); row-gap: 34px; }
  .workflow-list li::after { display: none; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .function-grid { grid-template-columns: repeat(2, 1fr); }
  .split-panel, .resource-strip { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .shell { width: min(100% - 32px, 1180px); }
  .section-pad { padding-top: 112px; }
  .nav { min-height: 72px; }
  .nav-toggle { display: block; position: relative; z-index: 102; }
  .nav-menu { position: fixed; top: 72px; left: 16px; right: 16px; display: grid; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(3, 11, 24, .96); box-shadow: var(--shadow); transform: translateY(-18px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  .nav-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-menu a { padding: 14px; border-radius: 12px; }
  .nav-menu .btn { margin-top: 8px; }
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero-subhead { font-size: 1.1rem; }
  .hero-actions { gap: 14px; margin-top: 34px; }
  .btn { width: 100%; min-height: 54px; padding-inline: 18px; }
  .workflow-panel { padding: 26px 18px 30px; }
  .workflow-list { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .step-icon { width: 66px; height: 66px; }
  .value-grid, .function-grid, .resource-points { grid-template-columns: 1fr; }
  .value-card { min-height: auto; }
  .split-panel, .resource-strip, .cta-panel { padding: 28px 20px; }
  .cta-panel { display: grid; }
  .btn-wide { min-width: 0; }
}

@media (max-width: 460px) {
  .wordmark { letter-spacing: .08em; font-size: 1rem; }
  .hero-art { margin-inline: -28px; }
  .workflow-list { grid-template-columns: 1fr; }
}

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