/* ARaura — shared styles. Tokens first; everything else uses them. */
:root{
  --bg:#0D0B15;
  --surface:#15122A;
  --surface-2:#1C1836;
  --text:#EDEAF5;
  --muted:#A9A3C2;
  --faint:#6E6889;
  --violet:#6B3DF5;
  --violet-light:#A88BFF;
  --line:rgba(237,234,245,0.12);
  --head:"Space Grotesk", system-ui, sans-serif;
  --body:"Inter", system-ui, sans-serif;
  --mono:"Space Mono", ui-monospace, monospace;
  --wrap:1200px;
  --gutter:clamp(16px,4vw,40px);
  --bg-raised:#110E1F;
  --violet-light-40:rgba(168,139,255,0.4);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{background:var(--bg); color:var(--text); font-family:var(--body); font-size:17px; line-height:1.65; -webkit-font-smoothing:antialiased;}
img{max-width:100%; display:block;}
a{color:var(--violet-light); text-decoration:none;}
a:hover{color:var(--text);}
:focus-visible{outline:2px solid var(--violet-light); outline-offset:3px;}

.wrap{max-width:var(--wrap); margin:0 auto; padding:0 var(--gutter);}
.narrow{max-width:720px;}

/* Nav */
.nav{position:sticky; top:0; z-index:10; background:rgba(13,11,21,0.82); backdrop-filter:blur(10px);}
.nav .wrap{display:flex; align-items:center; justify-content:space-between; height:76px;}
.nav .brand img{height:30px; width:auto;}
.nav nav{display:flex; gap:28px;}
.nav nav a{font-family:var(--mono); font-size:12px; letter-spacing:0.14em; text-transform:uppercase; color:var(--muted);}
.nav nav a:hover, .nav nav a[aria-current]{color:var(--text);}

/* Type */
.eyebrow{font-family:var(--mono); font-size:12px; letter-spacing:0.18em; text-transform:uppercase; color:var(--violet-light);}
h1,h2,h3{font-family:var(--head); font-weight:600; letter-spacing:-0.01em; line-height:1.12;}
h1{font-size:clamp(44px,6.6vw,92px); line-height:1.02; letter-spacing:-0.025em; text-wrap:balance; margin-top:18px;}
p{text-wrap:pretty;}
h2{font-size:clamp(28px,3.4vw,40px); margin-top:14px;}
h3{font-size:20px;}
.h1-sub{font-family:var(--head); font-weight:500; font-size:clamp(22px,2.6vw,30px); color:var(--violet-light); margin-top:18px;}
.promises{margin-top:28px; display:grid; gap:16px;}
.promises div{border-left:2px solid var(--violet); padding-left:16px;}
.promises dt{font-family:var(--head); font-weight:600; font-size:18px; color:var(--text);}
.promises dd{color:var(--muted); font-size:16px; margin-top:2px;}
.lede{font-size:clamp(18px,1.8vw,21px); color:var(--muted); margin-top:24px; max-width:640px;}
p + p{margin-top:16px;}
.muted{color:var(--muted);}

/* Sections */
section{padding:96px 0; border-top:1px solid var(--line);}
section:first-of-type{border-top:0;}
.hero{position:relative; padding:140px 0 120px; overflow:hidden;}
.hero::before{content:""; position:absolute; inset:0; background:url(/assets/texture.jpg) center/cover no-repeat; opacity:0.22; mask-image:linear-gradient(180deg,#000 0%,transparent 95%); -webkit-mask-image:linear-gradient(180deg,#000 0%,transparent 95%);}
.hero .wrap{position:relative;}
.page-head{padding:120px 0 64px;}

.split{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:64px; align-items:center;}
@media (max-width:860px){.split{grid-template-columns:1fr; gap:40px;}}

/* Buttons */
.btn{display:inline-block; padding:13px 22px; border-radius:999px; font-family:var(--mono); font-size:12px; letter-spacing:0.14em; text-transform:uppercase; border:1px solid var(--violet); background:var(--violet); color:#fff;}
.btn:hover{background:transparent; color:var(--text);}
.btn.ghost{background:transparent; border-color:var(--line); color:var(--text);}
.btn.ghost:hover{border-color:var(--violet-light);}
.actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:36px;}

/* Cards */
.cards{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:48px;}
@media (max-width:860px){.cards{grid-template-columns:1fr;}}
.card{background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:28px; display:flex; flex-direction:column; gap:12px;}
.card .status{font-family:var(--mono); font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:var(--faint);}
.card .status.live{color:var(--violet-light);}
.card p{color:var(--muted); font-size:16px;}
.card a{margin-top:auto; font-family:var(--mono); font-size:12px; letter-spacing:0.12em; text-transform:uppercase;}

/* Rules engine diagram */
.engine{width:100%; height:auto;}
.engine .node rect{fill:var(--surface); stroke:var(--line);}
.engine .node text{fill:var(--text); font-family:var(--head); font-size:15px;}
.engine .node .sub{fill:var(--muted); font-family:var(--body); font-size:12px;}
.engine .core rect{fill:var(--violet);}
.engine .core text{fill:#fff; font-family:var(--head); font-size:16px;}
.engine .core .sub{fill:rgba(255,255,255,0.8); font-family:var(--body); font-size:12px;}
.engine path{stroke:var(--violet-light); stroke-width:1.5; fill:none; opacity:0.7;}

/* Team */
.team{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; margin-top:48px;}
@media (max-width:760px){.team{grid-template-columns:1fr;}}
.person{display:grid; grid-template-columns:112px minmax(0,1fr); gap:20px; align-items:start;}
.person img{width:112px; height:112px; border-radius:50%; object-fit:cover; object-position:center 30%;}
.person .role{font-family:var(--mono); font-size:11px; letter-spacing:0.14em; text-transform:uppercase; color:var(--violet-light); margin-top:4px;}
.person p{color:var(--muted); font-size:15px; margin-top:10px;}

/* Lists */
.vision{list-style:none; margin-top:40px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 48px;}
@media (max-width:760px){.vision{grid-template-columns:1fr;}}
.vision b{display:block; font-family:var(--head); font-weight:600; font-size:19px; color:var(--text); margin-bottom:6px;}
.vision li{color:var(--muted);}

table{width:100%; border-collapse:collapse; margin-top:32px; font-size:15px;}
th,td{text-align:left; padding:14px 12px 14px 0; border-bottom:1px solid var(--line); vertical-align:top;}
th{font-family:var(--mono); font-size:11px; letter-spacing:0.14em; text-transform:uppercase; color:var(--faint); font-weight:400;}
td{color:var(--muted);}
td:first-child{color:var(--text);}
@media (max-width:640px){table, tbody, tr, td{display:block;} thead{display:none;} tr{padding:12px 0; border-bottom:1px solid var(--line);} td{border:0; padding:2px 0;}}

.quote{font-family:var(--head); font-size:clamp(26px,3vw,36px); line-height:1.25; color:var(--text); border-left:3px solid var(--violet); padding-left:24px; margin:40px 0;}
.support{font-size:14px; color:var(--faint); margin-top:40px;}

/* Footer */
footer{border-top:1px solid var(--line); padding:48px 0 56px; font-size:14px; color:var(--faint);}
footer .wrap{display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap;}
footer nav{display:flex; gap:20px; flex-wrap:wrap;}
footer a{color:var(--muted);}

@media (max-width:640px){
  :root{--gutter:16px;}
  section{padding:72px 0;}
  .hero{padding:96px 0 80px;}
  .nav nav{gap:18px;}
  .nav .brand img{height:24px;}
  .hero h1 br{display:none;}
}

/* Rules engine: keep the diagram beside the four promises */
#engine .split{align-items:start;}
#engine .engine{position:sticky; top:120px; margin-top:96px;}
@media (max-width:860px){#engine .engine{position:static; margin-top:0;}}

/* Legal pages */
.legal h2{font-size:22px; margin:44px 0 12px;}
.legal h2:first-child{margin-top:0;}
.legal h3{font-size:17px; margin:24px 0 8px;}
.legal p, .legal li{font-size:16px; color:var(--muted);}
.legal ul{margin:10px 0 14px 22px;}
.legal li + li{margin-top:6px;}
.legal p + h2, .legal ul + h2{margin-top:44px;}

/* Ecosystem direction line under the product cards */
.direction{margin-top:28px; padding:20px 24px; border:1px dashed var(--line); border-radius:16px; color:var(--muted); font-size:16px; max-width:820px;}
.direction .status{display:block; font-family:var(--mono); font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:var(--faint); margin-bottom:6px;}

@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto;} }

/* "More" links and the Imagine section */
.more{font-family:var(--mono); font-size:12px; letter-spacing:0.12em; text-transform:uppercase;}
.imagine .lede{color:var(--text);}

/* Nav fits four items at phone width without squeezing the wordmark */
.nav .brand{flex-shrink:0;}
@media (max-width:640px){
  .nav nav{gap:12px;}
  .nav nav a{font-size:10px; letter-spacing:0.08em;}
}
@media (max-width:360px){
  .nav .brand img{height:20px;}
  .nav nav{gap:9px;}
}

.nav .brand .mark{display:none;}
@media (max-width:640px){
  .nav .brand .wordmark{display:none;}
  .nav .brand .mark{display:block; height:28px; width:auto;}
}


/* ---------- Home: spacious layout ---------- */
.home h2{font-size:clamp(32px,4.6vw,60px); line-height:1.08; letter-spacing:-0.02em; max-width:18ch; text-wrap:balance; margin-top:24px;}
.home main section{padding:clamp(120px,18vh,200px) 0; border-top:0;}
.home main #contact{padding:clamp(120px,20vh,220px) 0; border-top:1px solid var(--line);}

/* Hero (Centered) */
.home .hero{min-height:calc(100vh - 76px); display:flex; align-items:center; padding:72px 0 96px; text-align:center;}
.home .hero::before{opacity:0.5; mask-image:none; -webkit-mask-image:none;}
.home .hero::after{content:""; position:absolute; inset:0; background:radial-gradient(ellipse 60% 55% at 50% 50%, rgba(13,11,21,0.85) 0%, rgba(13,11,21,0.4) 60%, rgba(13,11,21,0) 100%), linear-gradient(180deg, rgba(13,11,21,0) 70%, var(--bg) 100%);}
.home .hero .wrap{position:relative; z-index:1; width:100%; display:flex; flex-direction:column; align-items:center;}
.home .hero h1{max-width:15ch; margin-top:28px;}
.home .hero .h1-sub{font-size:clamp(20px,2vw,24px); line-height:1.3; margin-top:32px;}
.home .hero .h1-answer{font-family:var(--head); font-weight:500; font-size:clamp(24px,2.8vw,36px); line-height:1.2; color:var(--text); margin-top:20px;}
.home .hero .lede{font-size:17px; max-width:44ch; margin-top:14px;}
.home .hero .actions{margin-top:40px; justify-content:center;}
.home .hero .btn{padding:15px 26px;}

/* 01 · The problem */
.home main section.problem{padding-top:clamp(88px,13vh,144px);}
.problem-cols{display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); gap:clamp(32px,6vw,96px); margin-top:clamp(48px,7vh,72px); max-width:1040px;}
.problem-cols p{margin:0;}
.problem-cols p + p{margin-top:1em;}
.problem-lede{margin-top:28px; max-width:60ch; font-size:clamp(18px,1.6vw,20px); line-height:1.6;}
.problem-cols h3{font-size:clamp(20px,1.8vw,24px); line-height:1.25; color:var(--text); text-wrap:balance;}
.problem-cols h3 + p{margin-top:14px; font-size:17px; line-height:1.65; color:var(--muted);}
.problem-close{margin-top:clamp(48px,7vh,72px); padding-top:32px; border-top:1px solid var(--line); max-width:52ch; font-family:var(--head); font-size:clamp(20px,2vw,26px); line-height:1.35; color:var(--violet-light);}
.problem-close strong{font-weight:500;}

/* 02 · Our approach */
.home #engine{background:var(--bg-raised);}
.home #engine .lede{font-size:clamp(18px,1.6vw,20px); margin-top:28px; max-width:52ch;}
.pillars{display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); margin-top:clamp(64px,10vh,112px); border-top:1px solid var(--line);}
.pillars > div{padding:32px 32px 32px 0;}
.pillar-key{display:block; font-family:var(--mono); font-size:11px; letter-spacing:0.16em; color:var(--faint);}
.pillars h3{font-size:24px; margin-top:40px;}
.pillars p{color:var(--muted); font-size:16px; margin-top:8px;}
.home .diagram{max-width:820px; margin:clamp(64px,10vh,112px) auto 0;}
.approach{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:clamp(48px,6vw,96px); align-items:center;}
.approach .diagram{margin:0; max-width:none;}
.home .approach h2{font-size:clamp(32px,4vw,52px);}
.approach .note-row{display:block; margin-top:40px;}
.approach .note-row .more{display:inline-block; margin-top:16px;}
@media (max-width:960px){.approach{grid-template-columns:1fr;} .approach .diagram{max-width:640px;}}
.home #engine .engine{position:static; margin-top:0;}
.note-row{display:flex; justify-content:space-between; align-items:baseline; gap:24px; flex-wrap:wrap; margin-top:clamp(48px,7vh,80px);}
.note-row p{color:var(--faint); font-size:15px; max-width:56ch;}

/* 03 · What we're building */
.build{display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr)); gap:clamp(48px,8vw,120px); align-items:start;}
.home .build h2{font-size:clamp(30px,3.4vw,44px); max-width:none;}
.products.grid .product{align-content:start; padding:22px 0 26px; gap:6px;}
.products.grid .product h3{font-size:17px;}
.products.grid .product p{font-size:15px; line-height:1.6; max-width:42ch;}
.products.grid .product .status{font-size:10px;}
.products.grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr)); column-gap:clamp(48px,8vw,120px); row-gap:8px; margin-top:clamp(56px,8vh,88px);}
.building .more{display:inline-block; margin-top:32px;}
.build .intro{font-size:17px; color:var(--muted); margin-top:28px; max-width:44ch;}
.build .more{display:inline-block; margin-top:32px;}
.products{display:flex; flex-direction:column;}
.product{padding:28px 0; border-top:1px solid var(--line); display:grid; gap:8px;}
.product-head{display:flex; justify-content:space-between; align-items:baseline; gap:16px; flex-wrap:wrap;}
.product h3{font-size:20px;}
.product h3 a{color:var(--text);}
.product h3 a:hover{color:var(--violet-light);}
.product .status{font-family:var(--mono); font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:var(--faint);}
.product .status.live{color:var(--violet-light);}
.product p{color:var(--muted); font-size:16px; max-width:48ch; margin-top:0;}

/* 04 · Contact */
.home #contact .lede{font-size:17px; margin-top:28px; max-width:52ch;}
.email-display{display:inline-block; margin-top:48px; font-family:var(--head); font-weight:500; font-size:clamp(28px,4vw,48px); letter-spacing:-0.01em; color:var(--violet-light); border-bottom:1px solid var(--violet-light-40); padding-bottom:4px;}
.email-display:hover{color:var(--text);}
/* Keep the whole hero, buttons included, in the first screen on short laptop screens */
.home .hero{padding:clamp(40px,7vh,72px) 0 clamp(56px,9vh,96px);}
.home .hero h1{font-size:clamp(36px, min(5.1vw, 8.2vh), 72px); margin-top:0;}

/* ---------- Technology: steps, flow figures ---------- */
.pillars{list-style:none;}
.pillars.steps{margin-top:56px;}
.pillars.steps li{padding:28px 28px 28px 0;}
.pillars.steps h3{font-size:20px; margin-top:28px;}
.pillars.steps .render .pillar-key{color:var(--violet-light);}
.pillars.steps .render h3{color:var(--violet-light);}
.pillars.two{margin-top:40px;}
.pillars.two > div{padding:28px 28px 28px 0;}
.pillars.two h3{font-size:20px; margin-top:0;}
.order-note{margin-top:32px; color:var(--muted); max-width:60ch;}
.order-note em{font-style:normal; color:var(--text);}

.flow{display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr); gap:20px; align-items:center; margin-top:64px;}
.flow-col{min-width:0;}
.flow-stack{display:grid; gap:12px;}
.flow-box{background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:20px 22px;}
.flow-box.slim{padding:14px 18px;}
.flow-box.core{background:var(--violet); border-color:var(--violet);}
.flow-box.core h4, .flow-box.core p, .flow-box.core .flow-label{color:#fff;}
.flow-box.core p{opacity:0.85;}
.flow-label{display:block; font-family:var(--mono); font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:var(--faint); margin-bottom:8px;}
.flow-box h4{font-family:var(--head); font-weight:600; font-size:16px; line-height:1.3; color:var(--text);}
.flow-box p{font-size:14px; line-height:1.5; color:var(--muted); margin-top:4px;}
.flow-box .glyph{display:block; width:34px; height:41px; margin:4px 0 10px;}
.glyph circle, .glyph path{fill:var(--faint);}
.glyph .asset{fill:none; stroke:var(--violet-light); stroke-width:2.5; stroke-linejoin:round;}
.flow-arrow{font-family:var(--mono); font-size:18px; color:var(--violet-light); text-align:center;}
.flow figcaption{grid-column:1 / -1; margin-top:8px; font-size:14px; color:var(--faint); max-width:72ch;}
@media (max-width:860px){
  .flow{grid-template-columns:minmax(0,1fr); gap:12px;}
  .flow-arrow{transform:rotate(90deg);}
}

/* Technology 03: status sits under each headline, the same on every row */
.products.stacked .product-head{flex-direction:column; align-items:flex-start; gap:6px;}
.pillars.two .status{display:block; margin-top:6px; font-family:var(--mono); font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:var(--faint);}
.pillars.two .status.live{color:var(--violet-light);}
.pillars.two p{margin-top:12px;}

/* ---------- Products: the flywheel ---------- */
.flywheel{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:auto auto auto; gap:12px; align-items:center; margin-top:64px;}
.fw-1{grid-area:1 / 2 / 2 / 3;}
.fw-a1{grid-area:1 / 3 / 2 / 4;}
.fw-2{grid-area:2 / 3 / 3 / 4;}
.fw-a2{grid-area:3 / 3 / 4 / 4;}
.fw-3{grid-area:3 / 2 / 4 / 3;}
.fw-a3{grid-area:3 / 1 / 4 / 2;}
.fw-4{grid-area:2 / 1 / 3 / 2;}
.fw-a4{grid-area:1 / 1 / 2 / 2;}
.fw-core{grid-area:2 / 2 / 3 / 3;}
.fw-card{background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:20px; display:grid; grid-template-columns:64px minmax(0,1fr); gap:16px; align-items:start;}
.fw-card.start{border-color:var(--violet);}
.fw-card img{width:64px; height:64px; border-radius:12px; object-fit:cover;}
.fw-num{display:block; font-family:var(--mono); font-size:11px; letter-spacing:0.14em; text-transform:uppercase; color:var(--faint);}
.fw-card.start .fw-num{color:var(--violet-light);}
.fw-card h3{font-size:18px; margin-top:6px;}
.fw-card h3 .status{display:block; margin-top:4px; font-family:var(--mono); font-weight:400; font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:var(--faint);}
.fw-card h3 .status.live{color:var(--violet-light);}
.fw-card p{font-size:14px; line-height:1.5; color:var(--muted); margin-top:8px;}
.fw-core{background:var(--violet); border-radius:999px; aspect-ratio:1 / 1; max-width:260px; justify-self:center; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; padding:28px;}
.fw-core .fw-num{color:rgba(255,255,255,0.75);}
.fw-core h3{color:#fff; font-size:20px; margin-top:8px;}
.fw-core p{color:rgba(255,255,255,0.85); font-size:13px; line-height:1.45; margin-top:8px;}
.fw-arc{align-self:stretch; display:flex; align-items:center; justify-content:center; min-height:96px;}
.fw-arc svg{width:140px; height:140px; overflow:visible;}
.fw-arc path{fill:none; stroke:var(--violet-light); stroke-width:1.5; opacity:0.8; vector-effect:non-scaling-stroke;}
.fw-a2 svg{transform:rotate(90deg);}
.fw-a3 svg{transform:rotate(180deg);}
.fw-a4 svg{transform:rotate(270deg);}
.fw-return{display:none; text-align:center; padding:12px 0 0; font-family:var(--mono); font-size:12px; letter-spacing:0.14em; text-transform:uppercase; color:var(--violet-light);}
.flywheel figcaption{grid-column:1 / -1; margin-top:28px; font-size:14px; color:var(--faint); max-width:80ch;}
@media (max-width:960px){
  .flywheel{grid-template-columns:minmax(0,1fr); grid-template-rows:none; gap:0;}
  .flywheel > *{grid-area:auto;}
  .fw-1{order:1;} .fw-a1{order:2;} .fw-2{order:3;} .fw-a2{order:4;} .fw-3{order:5;} .fw-a3{order:6;} .fw-4{order:7;} .fw-a4{order:8;} .fw-core{order:9;} .fw-return{order:10; display:block;} .flywheel figcaption{order:11;}
  .fw-arc{min-height:0; padding:6px 0;}
  .fw-arc svg{width:28px; height:28px; transform:none;}
  .fw-arc path{display:none;}
  .fw-arc::before{content:"↓"; font-family:var(--mono); font-size:18px; color:var(--violet-light);}
  .fw-arc svg{display:none;}
  .fw-core{border-radius:16px; aspect-ratio:auto; max-width:none; width:100%; justify-self:stretch;}
}

/* Page heads that sit above full-width content (Products): align with the content and the nav, and give the h1 room */
.page-head.wide h1{max-width:18ch;}
.page-head.wide .lede{max-width:640px;}

/* Technology 01: make each viewer's outcome the first thing you read */
.flow-box h4.result{font-size:17px;}
.flow-box h4.result.yes{color:var(--violet-light);}
.flow-box:has(.result.yes){border-color:var(--violet-light);}

/* Raised bands: the home 02 treatment, alternating on inner pages */
section.band{background:var(--bg-raised); border-top-color:transparent;}
section.band + section{border-top-color:transparent;}
