/* =========================================================================
   FORWARD DEPLOYED CPA — design system  ·  PURPLE + YELLOW
   Accounting, shipped where the work happens.
   Bright Cyber Grape fields · Acid Lime pop · Ink for contrast · white type.
   ========================================================================= */

:root {
  --grape:        #6D28D9;   /* primary field */
  --grape-bright: #7C3AED;
  --grape-hi:     #8B5CF6;
  --grape-deep:   #4C1D95;
  --grape-abyss:  #35146e;
  --lime:         #D7FF00;   /* the yellow pop */
  --lime-hi:      #e6ff4d;
  --lime-deep:    #b6d800;
  --ink:          #0f0a1c;   /* near-black, purple-tinted */
  --ink-panel:    #17102b;   /* lifted card */
  --ink-panel-2:  #1e1636;
  --paper:        #ffffff;
  --paper-dim:    #ded3ff;   /* body text on grape */
  --mute:         #c3b6ee;
  --mute-dim:     #a394d8;
  --line:         rgba(255,255,255,.16);
  --line-soft:    rgba(255,255,255,.10);

  --maxw: 1160px;
  --gut: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --radius-sm: 10px;

  --f-head: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-body: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--f-body);
  color: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 78% -8%, var(--grape-hi), transparent 55%),
    radial-gradient(900px 600px at 0% 100%, var(--grape-deep), transparent 55%),
    var(--grape);
  background-attachment: fixed;
}

/* faint monospace grid texture */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 85%);
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--lime); color: var(--ink); }

/* ---- layout ------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { position: relative; z-index: 1; padding-block: clamp(60px, 8vw, 112px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.stack > * + * { margin-top: 1.1em; }

/* full-bleed colour bands for pop */
.band-lime { background: var(--lime); color: var(--ink); position: relative; z-index: 1; }
.band-lime a { color: var(--ink); }
.band-ink  { background: var(--ink); position: relative; z-index: 1; }

/* ---- type -------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 900; line-height: .96; letter-spacing: -.02em; text-transform: uppercase; }
h1 { font-size: clamp(2.9rem, 8vw, 6rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); }
p  { color: var(--paper-dim); }
strong { color: #fff; font-weight: 700; }

.eyebrow {
  font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .2em;
  font-size: .72rem; color: var(--lime); display: inline-flex; align-items: center; gap: .55em;
}
.eyebrow::before { content: "❯"; color: #fff; font-weight: 700; }
.band-lime .eyebrow { color: var(--grape-deep); }
.band-lime .eyebrow::before { color: var(--grape); }
.lime { color: var(--lime); }
.mono { font-family: var(--f-mono); }
.lead { font-size: clamp(1.12rem, 2vw, 1.45rem); color: #efe9ff; line-height: 1.5; }
.muted { color: var(--mute); }

/* ---- buttons ----------------------------------------------------------- */
.btn {
  --_bg: var(--lime); --_fg: var(--ink);
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-mono); font-size: .82rem; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .95em 1.6em; background: var(--_bg); color: var(--_fg);
  border: 2px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(215,255,0,.55); background: var(--lime-hi); }
.btn:active { transform: translateY(0); }
.btn .arw { transition: transform .16s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn--lime { --_bg: var(--lime); --_fg: var(--ink); }
.btn--ghost { --_bg: transparent; --_fg: #fff; border-color: var(--line); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); background: transparent; box-shadow: none; }
.band-lime .btn--ghost { --_fg: var(--ink); border-color: rgba(15,10,28,.3); }
.band-lime .btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ---- header ------------------------------------------------------------ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(37,16,90,.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .62rem; }
.brand__mark { height: 30px; width: auto; flex: none; }
.brand__wm { display: flex; flex-direction: column; font-family: var(--f-head); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .9; font-size: 1.12rem; }
.brand__word { color: #fff; transition: color .16s var(--ease); }
.brand__cpa { color: var(--lime); }
.brand:hover .brand__word { color: var(--lime); }

.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a { font-family: var(--f-mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); transition: color .16s var(--ease); position: relative; padding-block: 4px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--lime); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 42px; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .brand__mark { height: 26px; }
  .brand__wm { font-size: 1rem; }
  .nav {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--grape-abyss); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.2rem;
    clip-path: inset(0 0 100% 0); transition: clip-path .25s var(--ease);
  }
  .nav[data-open="true"] { clip-path: inset(0 0 0 0); }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--line-soft); font-size: .98rem; }
}

/* ---- hero -------------------------------------------------------------- */
.hero { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 110px) clamp(52px, 8vw, 96px); overflow: hidden; }
.hero .grid--split { align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.hero h1 { max-width: 15ch; color: #fff; }
.hero h1 .lime { -webkit-text-stroke: 0; }
.hero .lead { max-width: 44ch; margin-top: 1.5rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }
.hero__ticker { margin-top: 1.5rem; font-family: var(--f-mono); font-size: .9rem; color: var(--mute); }
.hero__ticker .lime { color: var(--lime); }

/* featured logo */
.logo-frame {
  border: 3px solid var(--lime);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.6), 0 0 0 6px rgba(215,255,0,.08);
  background: var(--grape);
  max-width: 380px; margin-inline: auto;
}
.logo-frame img { width: 100%; display: block; }

.termline {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--f-mono); font-size: .8rem;
  padding: .55em .9em; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(0,0,0,.18); color: var(--mute); margin-bottom: 1.5rem;
}
.termline .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.cursor { display: inline-block; width: .6em; height: 1.05em; background: var(--lime); translate: 0 .12em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- terminal card ----------------------------------------------------- */
.term {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-panel), var(--ink));
  overflow: hidden; box-shadow: 0 40px 80px -50px rgba(0,0,0,.9);
}
.term__bar { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,.02); }
.term__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-panel-2); }
.term__dot:nth-child(1) { background: #ff5f57; }
.term__dot:nth-child(2) { background: #febc2e; }
.term__dot:nth-child(3) { background: var(--lime); }
.term__title { margin-left: .6rem; font-family: var(--f-mono); font-size: .74rem; color: var(--mute-dim); }
.term__body { padding: 1.4rem 1.5rem; font-family: var(--f-mono); font-size: .9rem; line-height: 1.85; color: #d7ccff; }
.term__body .c { color: var(--mute-dim); }
.term__body .ok { color: var(--lime); }
.term__body .k { color: var(--grape-hi); }
.term__body .pr { color: var(--lime); }

/* ---- grid -------------------------------------------------------------- */
.grid { display: grid; gap: 1.1rem; }
.grid--split { grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 900px) { .grid--split { grid-template-columns: 1fr; } }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.4rem; flex-wrap: wrap; }
.sec-head h2 { color: #fff; }
.sec-head p { max-width: 46ch; margin-top: .8rem; }

/* ---- build cards ------------------------------------------------------- */
.builds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .builds { grid-template-columns: 1fr; } }
.build { display: flex; flex-direction: column; background: var(--ink-panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.build:hover { border-color: var(--lime); transform: translateY(-5px); box-shadow: 0 24px 50px -30px rgba(0,0,0,.8); }
.build__top { position: relative; height: 132px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.build__top svg { width: 100%; height: 100%; display: block; }
.build__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.build__kind { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.build__body h3 { text-transform: none; letter-spacing: -.01em; font-size: 1.32rem; margin: .6rem 0 .5rem; color: #fff; }
.build__body p { font-size: .95rem; color: var(--mute); flex: 1; }
.build__meta { font-family: var(--f-mono); font-size: .72rem; color: var(--mute-dim); margin-top: 1rem; letter-spacing: .03em; }
.build__go { font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #fff; margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .5em; }
.build:hover .build__go { color: var(--lime); }
.build__go .arw { transition: transform .18s var(--ease); }
.build:hover .build__go .arw { transform: translateX(4px); }

/* ---- big statement ----------------------------------------------------- */
.statement { text-align: left; }
.statement h2 { color: var(--ink); max-width: 20ch; }
.statement p { color: rgba(15,10,28,.72); max-width: 48ch; margin-top: 1.1rem; font-size: 1.1rem; }

/* ---- footer ------------------------------------------------------------ */
.site-foot { position: relative; z-index: 1; border-top: 2px solid var(--lime); background: var(--grape-abyss); padding-block: clamp(40px, 6vw, 64px) 1.8rem; }
.foot-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-links a { color: var(--mute); font-family: var(--f-mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; transition: color .16s var(--ease); }
.foot-links a:hover { color: var(--lime); }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); font-family: var(--f-mono); font-size: .74rem; color: var(--mute-dim); }

/* ---- interior page head ------------------------------------------------ */
.phead { position: relative; z-index: 1; padding-block: clamp(52px, 8vw, 92px) clamp(24px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.phead h1 { color: #fff; }
.phead .lead { max-width: 54ch; margin-top: 1.3rem; }

/* ---- architecture figure ---------------------------------------------- */
.arch-figure { border: 3px solid var(--lime); border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: 0 40px 90px -50px rgba(0,0,0,.9); max-width: 760px; margin-inline: auto; }
.arch-figure img { width: 100%; display: block; }
.arch-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: 1.8rem; }

/* layer list (architecture) */
.layer-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.layer { background: var(--ink-panel); padding: 1.4rem 1.5rem; display: grid; grid-template-columns: 150px 1fr; gap: 1.1rem; align-items: start; }
@media (max-width: 620px) { .layer { grid-template-columns: 1fr; gap: .4rem; } }
.layer__tag { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); padding-top: .2rem; }
.layer h3 { text-transform: none; letter-spacing: -.01em; font-size: 1.2rem; margin-bottom: .35rem; color: #fff; }
.layer p { font-size: .96rem; color: var(--mute); }

/* ---- prose (long-form) ------------------------------------------------- */
.prose { max-width: 720px; margin: 0 auto; font-size: 1.1rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.4rem; }
.prose p { color: #e9e2ff; }
.prose a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

/* ---- reveal ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---- utilities --------------------------------------------------------- */
.skip { position: absolute; left: -999px; top: 0; background: var(--lime); color: var(--ink); padding: .6em 1em; z-index: 100; font-family: var(--f-mono); font-size: .82rem; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
.divider { height: 1px; background: var(--line); border: none; }
