:root {
  --void: #1C1D1F;
  --panel: #242527;
  --panel-2: #2B2C2F;
  --line: #3E3F41;       /* brand Charcoal as hairlines */
  --sun: #EE862B;
  --ember: #FFB067;
  --sand: #FBF3EA;
  --stone: #8A8B8D;
  --dim: #B9B4AE;
  --wrap: 1200px;
  --sans: "Inter", system-ui, sans-serif;
  --num: "Poppins", "Inter", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--void); color: var(--sand); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--sans); color: var(--sand); }
h2 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 650; line-height: 1.06; letter-spacing: -.035em; max-width: 22ch; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sand); color: var(--void); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 10px;
  font: 600 15.5px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s, border-color .2s, box-shadow .2s; }
.btn-sun { background: linear-gradient(180deg, var(--ember), var(--sun)); color: #241A10; box-shadow: 0 0 0 0 rgba(238,134,43,0); }
.btn-sun:hover { box-shadow: 0 6px 28px -6px rgba(238,134,43,.65); }
.btn-quiet { border-color: var(--line); color: var(--sand); background: rgba(255,255,255,.02); }
.btn-quiet:hover { border-color: var(--stone); }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(28,29,31,.78); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid rgba(62,63,65,.7); }
.top-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--dim); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--sand); }
.top .btn { min-height: 38px; padding: 0 16px; font-size: 14.5px; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: min(860px, 100svh); display: flex; flex-direction: column; justify-content: center; padding: 96px 0 40px;
  background: radial-gradient(80% 60% at 72% 70%, rgba(238,134,43,.10), transparent 60%), var(--void); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(62,63,65,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(62,63,65,.28) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 60% 50%, #000 20%, transparent 75%); }
#field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-inner { position: relative; z-index: 2; pointer-events: none; }
.hero-inner a { pointer-events: auto; }
.hero h1 { font-size: clamp(42px, 6.4vw, 92px); font-weight: 700; line-height: .98; letter-spacing: -.05em; max-width: 12.5ch; }
.lede { margin-top: 26px; max-width: 50ch; color: var(--dim); font-size: clamp(17px, 1.45vw, 19.5px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stack { position: relative; z-index: 2; margin-top: clamp(56px, 9vw, 120px); display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 22px; }
.stack p { color: var(--stone); font-size: 14px; }
.stack ul { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; margin: 0; padding: 0; }
.stack li { color: var(--dim); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }

/* Sections */
.sect { padding: clamp(80px, 11vw, 140px) 0; }
.intro { margin-top: 16px; max-width: 58ch; color: var(--dim); font-size: 18px; }

/* Switchboard */
.board { display: grid; grid-template-columns: 340px 1fr; gap: 28px; margin-top: 56px; align-items: start; }
.board-tabs { display: grid; gap: 6px; }
.board-tabs button { text-align: left; background: none; border: 1px solid transparent; border-radius: 14px; padding: 16px 18px; cursor: pointer; color: var(--dim);
  font: inherit; display: grid; gap: 4px; position: relative; transition: background .25s, border-color .25s; }
.board-tabs button:hover { background: rgba(255,255,255,.025); }
.board-tabs button[aria-selected="true"] { background: var(--panel); border-color: var(--line); color: var(--sand); }
.board-tabs button[aria-selected="true"]::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--sun); box-shadow: 0 0 14px var(--sun); }
.t-name { font-weight: 600; font-size: 17px; color: var(--sand); }
.t-desc { font-size: 14.5px; line-height: 1.45; }
.window { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; min-height: 440px; display: flex; flex-direction: column;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.02) inset; }
.win-bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #45464A; }
.win-title { margin-left: 12px; font-size: 13px; color: var(--stone); }
.panel { flex: 1; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; justify-content: center; }
.panel[hidden] { display: none; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 12px; max-width: 520px; margin-inline: auto; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 16px; font-size: 15.5px; line-height: 1.45; animation: pop .35s ease-out both; }
.msg.them { align-self: flex-end; background: var(--panel-2); border: 1px solid var(--line); border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: rgba(238,134,43,.12); border: 1px solid rgba(238,134,43,.35); border-bottom-left-radius: 4px; }
.msg .who { display: block; font-size: 12px; color: var(--stone); margin-bottom: 2px; }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; border-radius: 16px; background: rgba(238,134,43,.08); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.chip { align-self: center; margin-top: 6px; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,176,103,.5); color: var(--ember); animation: pop .35s ease-out both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* Pipeline */
.pipe { display: grid; gap: 40px; padding-top: 24px; }
.pipe-row { display: flex; align-items: stretch; }
.pipe-node { flex: 1 1 0; min-width: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.pipe-node b { display: block; font-size: 15px; }
.pipe-node span { display: block; font-size: 13px; color: var(--stone); margin-top: 4px; line-height: 1.35; }
.pipe-end { border-color: rgba(238,134,43,.55); }
.pipe-link { flex: 0 0 34px; position: relative; align-self: center; height: 2px; background: var(--line); overflow: visible; }
.pipe-link i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--sun); animation: flow 1.6s linear infinite; }
.pipe-link:nth-of-type(4) i { animation-delay: .53s; } .pipe-link:nth-of-type(6) i { animation-delay: 1.06s; }
@keyframes flow { from { left: -4px; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } to { left: calc(100% - 4px); opacity: 0; } }
.pipe-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.pipe-stats .n { display: block; font: 700 40px/1 var(--num); color: var(--sand); font-variant-numeric: tabular-nums; }
.pipe-stats .l { display: block; font-size: 13.5px; color: var(--stone); margin-top: 6px; }

/* Integrations hub */
.hub { width: 100%; height: auto; max-height: 380px; margin: auto; }
.hub-lines line { stroke: var(--line); stroke-width: 1.5; }
.hub-nodes .sat rect { fill: var(--panel-2); stroke: var(--line); }
.hub-nodes text { fill: var(--sand); font: 600 13px var(--sans); text-anchor: middle; dominant-baseline: middle; }
.hub-nodes .core circle { fill: rgba(238,134,43,.14); stroke: var(--sun); stroke-width: 2; }
.hub-nodes .core text { fill: var(--ember); font-size: 15px; }
.hub-packets circle { fill: var(--ember); filter: drop-shadow(0 0 4px var(--sun)); }

/* Harness */
.harness { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; }
.ring text { fill: var(--dim); font: 600 12.5px var(--sans); text-anchor: middle; }
.ring-orbit { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 6; animation: spin 40s linear infinite; transform-origin: 130px 130px; }
.ring-part circle { fill: var(--panel-2); stroke: var(--line); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.ring-part.lit circle { fill: rgba(238,134,43,.18); stroke: var(--sun); }
.ring-part.lit text { fill: var(--sand); }
.ring-core circle { fill: rgba(238,134,43,.12); stroke: var(--sun); stroke-width: 2; }
.ring-core text { fill: var(--ember); font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.log { list-style: none; margin: 0; padding: 16px; border-radius: 12px; background: #17181A; border: 1px solid var(--line); min-height: 300px;
  font: 400 13px/1.7 var(--mono); color: var(--dim); overflow: hidden; }
.log li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; animation: pop .3s ease-out both; }
.log .k { color: var(--stone); }
.log .k-task { color: var(--sand); } .log .k-tool { color: var(--ember); } .log .k-rule { color: #E8C07A; }
.log .k-ask { color: #F2A0A0; } .log .k-ok { color: #9FD6A6; } .log .k-done { color: #9FD6A6; }
.log .ok { color: #9FD6A6; }

/* Dashboard */
.dash { display: grid; gap: 18px; position: relative; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kpi { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.kl { font-size: 13px; color: var(--stone); }
.kn { font: 700 34px/1.1 var(--num); font-variant-numeric: tabular-nums; }
.kd { font-size: 12.5px; color: #9FD6A6; }
.charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.chart { margin: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.chart figcaption { font-size: 13px; color: var(--stone); margin-bottom: 10px; }
.line { width: 100%; height: auto; overflow: visible; }
.line .stroke { fill: none; stroke: var(--sun); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.line .area { fill: rgba(238,134,43,.12); opacity: 0; transition: opacity .8s .9s; }
.dash.go .line .area { opacity: 1; }
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); }
.bar i { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--sun), var(--ember)); transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.3,.7,.2,1); width: calc(var(--w) * 100%); }
.dash.go .bar i { transform: scaleX(1); }
.dash.go .bar:nth-child(2) i { transition-delay: .1s; } .dash.go .bar:nth-child(3) i { transition-delay: .2s; } .dash.go .bar:nth-child(4) i { transition-delay: .3s; }
.sample { position: absolute; right: 0; bottom: -24px; font-size: 12px; color: var(--stone); }

/* Calculator */
.sect-calc { background: linear-gradient(180deg, var(--void), #202123 50%, var(--void)); border-block: 1px solid var(--line); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.calc { margin-top: 40px; display: grid; gap: 28px; }
.r-label { display: flex; justify-content: space-between; font-weight: 500; color: var(--dim); }
.r-label output { font: 600 18px var(--num); color: var(--sand); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin-top: 6px; background: none; cursor: pointer; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--sun) var(--fill), var(--line) var(--fill)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--sun); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--sand); border: 0; box-shadow: 0 0 0 5px rgba(238,134,43,.35); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--sand); border: 0; box-shadow: 0 0 0 5px rgba(238,134,43,.35); }
.readout { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(26px, 4vw, 44px); }
.ro-n { display: block; font: 700 clamp(64px, 8vw, 104px)/1 var(--num); letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--ember), var(--sun)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ro-l { display: block; font-size: 14px; color: var(--stone); margin-top: 6px; }
.ro-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.ro-s { display: block; font: 600 28px var(--num); font-variant-numeric: tabular-nums; }
.ro-week { position: relative; height: 10px; margin-top: 28px; border-radius: 5px; background: var(--line); overflow: hidden; }
.week-rep, .week-auto { position: absolute; inset: 0 auto 0 0; transition: width .6s cubic-bezier(.4,0,.2,1); }
.week-rep { background: rgba(238,134,43,.35); } .week-auto { background: var(--sun); }
.ro-key { margin-top: 8px; font-size: 13px; color: var(--stone); }
.readout .btn { margin-top: 28px; }

/* Process: a real sequence */
.process { list-style: none; counter-reset: s; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.process li { counter-increment: s; padding: 28px 24px 0 0; position: relative; }
.process li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 14px var(--num); color: var(--sun); margin-bottom: 14px; }
.process li::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px var(--sun); }
.process p { margin-top: 10px; color: var(--dim); font-size: 15.5px; }

/* About */
.about { display: grid; grid-template-columns: 200px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about p { margin-top: 18px; max-width: 62ch; color: var(--dim); font-size: 18px; }

/* Contact */
.sect-contact { border-top: 1px solid var(--line); background: radial-gradient(60% 80% at 15% 100%, rgba(238,134,43,.10), transparent 60%), var(--void); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact > div p { margin-top: 18px; color: var(--dim); max-width: 44ch; font-size: 18px; }
.contact .btn { margin-top: 30px; }
.contact .alt { font-size: 15px; color: var(--stone); }
.form { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--dim); }
.opt { font-weight: 400; color: var(--stone); }
.form input, .form textarea { font: 400 16px/1.5 var(--sans); padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #1A1B1D; color: var(--sand); resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(238,134,43,.22); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; font-size: 15px; }
.form-status.ok { color: #9FD6A6; } .form-status.err { color: #F2A0A0; }

.foot { border-top: 1px solid var(--line); padding: 36px 0; font-size: 14px; color: var(--stone); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; }
.foot-row img { height: 22px; width: auto; margin-right: auto; }

/* Responsive */
@media (max-width: 1000px) {
  .nav { display: none; }
  .top-row { justify-content: space-between; }
  .board { grid-template-columns: 1fr; }
  .board-tabs { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; }
  .board-tabs button { flex: 0 0 auto; padding: 10px 14px; border-color: var(--line); border-radius: 999px; }
  .board-tabs button::before { display: none; }
  .board-tabs .t-desc { display: none; }
  .t-name { font-size: 15px; white-space: nowrap; }
  .calc-grid, .contact { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .about { grid-template-columns: 1fr; }
  .about img { width: 120px; height: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: auto; padding-top: 64px; }
  .top .btn { padding: 0 12px; font-size: 14px; }
  .brand img { height: 20px; }
  .window { min-height: 0; }
  .pipe-row { flex-direction: column; }
  .pipe-link { flex-basis: 26px; width: 2px; height: 26px; align-self: center; }
  .pipe-link i { left: -3px; animation-name: flowv; }
  @keyframes flowv { from { top: -4px; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } to { top: calc(100% - 4px); opacity: 0; } }
  .pipe-stats .n { font-size: 30px; }
  .harness { grid-template-columns: 1fr; }
  .ring { width: 190px; margin: 0 auto; }
  .log { font-size: 12px; min-height: 0; }
  .log li { grid-template-columns: 44px 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:last-child { grid-column: span 2; }
  .charts { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.contact .alt a, .foot a[href^="tel:"] { color: var(--sand); }
a[href^="tel:"] { white-space: nowrap; }
