/* ==========================================================================
   Romageni Tech Group — design system
   Palette sampled directly from the brand logo.
   ========================================================================== */

:root {
  /* Brand */
  --teal:        #31b9b0;
  --cyan:        #3bc4c8;
  --cyan-bright: #5fe3e6;
  --glow:        #88fdfa;
  --deep-teal:   #206d73;
  --blue:        #367fb7;
  --electric:    #4aa8ff;
  --silver:      #c9cdd2;

  /* Graphite surfaces (logo background) */
  --bg:          #0e1113;
  --bg-2:        #14181b;
  --bg-3:        #1b1f23;
  --surface:     #1e2226;
  --surface-2:   #262b30;
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text:        #f3f6f8;
  --text-2:      #a7b0b8;
  --text-3:      #78828b;

  /* Light theme section */
  --light-bg:    #f3f5f6;
  --light-text:  #1d1f21;
  --light-text-2:#5b636b;
  --light-accent:#14757b;

  --brand-grad: linear-gradient(100deg, var(--teal) 0%, var(--cyan-bright) 45%, var(--electric) 100%);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --nav-h: 52px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1120px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(59, 196, 200, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan-bright); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 44px, var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--cyan); color: #00191a; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-2); margin-bottom: 14px;
}
.eyebrow--teal { color: var(--cyan); }
.gradient-text {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.muted-strong { color: var(--text-3); }
.theme-light .muted-strong { color: #8b939a; }

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 500; cursor: pointer; border: 0;
  text-decoration: none !important;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.btn--pill {
  background: linear-gradient(180deg, #3fcfd2, #2aa6a8);
  color: #02191b;
  padding: 12px 24px; border-radius: 999px; font-size: 17px;
  box-shadow: 0 0 0 1px rgba(136, 253, 250, .25) inset, 0 8px 30px -8px rgba(59, 196, 200, .55);
}
.btn--pill:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(136, 253, 250, .4) inset, 0 12px 40px -8px rgba(59, 196, 200, .75); }
.btn--pill:active { transform: translateY(0) scale(.98); }
.btn--sm { padding: 6px 14px; font-size: 13px; }
.btn--lg { padding: 15px 30px; }

.link-chevron { color: var(--cyan); font-size: 17px; display: inline-flex; align-items: center; gap: 4px; }
.link-chevron::after {
  content: ""; width: 7px; height: 7px; margin-left: 2px;
  border-right: 1.6px solid currentColor; border-top: 1.6px solid currentColor;
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.link-chevron:hover::after { transform: translateX(3px) rotate(45deg); }

/* --------------------------------------------------------------------------
   Global nav: frosted glass
   -------------------------------------------------------------------------- */
.gnav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(14, 17, 19, 0.6);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s;
}
.gnav.is-scrolled { background: rgba(14, 17, 19, 0.78); border-bottom-color: var(--line); }
.gnav__inner {
  height: 100%; width: min(100% - 32px, 1024px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.gnav__brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.monogram { width: 46px; height: 25px; }
.monogram__node { filter: drop-shadow(0 0 3px var(--glow)); animation: pulse 3.2s ease-in-out infinite; }
.gnav__wordmark { font-weight: 600; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
.gnav__wordmark span { color: var(--text-2); font-weight: 400; letter-spacing: 0.02em; text-transform: none; }

.gnav__menu { display: flex; align-items: center; gap: 26px; }
.gnav__menu a:not(.btn) {
  color: rgba(243, 246, 248, .78); font-size: 13px; letter-spacing: 0; transition: color .25s;
}
.gnav__menu a:not(.btn):hover, .gnav__menu a.is-active { color: #fff; text-decoration: none; }
.gnav__menu a.is-active { color: var(--cyan-bright); }

.gnav__toggle { display: none; }

@media (max-width: 900px) {
  .gnav__toggle {
    display: grid; place-items: center; gap: 6px;
    width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 0;
  }
  .gnav__toggle span {
    display: block; width: 18px; height: 1.6px; background: var(--text);
    transition: transform .35s var(--ease);
  }
  .gnav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
  .gnav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.8px) rotate(-45deg); }

  .gnav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 28px 28px;
    background: rgba(14, 17, 19, .96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .gnav.is-open .gnav__menu {
    transform: none; opacity: 1; visibility: visible;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .gnav__menu li { border-bottom: 1px solid var(--line); }
  .gnav__menu a:not(.btn) { display: block; padding: 14px 0; font-size: 22px; font-weight: 600; color: var(--text); }
  .gnav__cta { border: 0 !important; padding-top: 20px; }
  .gnav__cta .btn { width: 100%; padding: 12px; font-size: 16px; }
  .gnav__wordmark span { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 3vh) 22px 80px;
  text-align: center; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1000px 600px at 50% 72%, rgba(74, 168, 255, .10), transparent 60%),
    radial-gradient(900px 520px at 50% 70%, #2a2f34 0%, transparent 70%),
    linear-gradient(180deg, #0e1113 0%, #15191c 60%, #0e1113 100%);
}
.hero__network { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.hero__content { max-width: 900px; }
.hero__title {
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.02;
}
.hero__lede {
  margin: 22px auto 0; max-width: 640px;
  font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--text-2);
}
.hero__ctas { margin-top: 34px; display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* Emblem: the RG mark above the headline (final hero layout) */
.hero__emblem { margin: 0 0 6px; width: min(440px, 78vw); }
.hero__emblem img {
  width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 30%, transparent 100%);
  filter: saturate(1.08) contrast(1.04);
  animation: float 9s ease-in-out infinite;
}

/* Intro: full logo opens the page, wordmark dissolves, mark glides into the emblem.
   html.intro is set pre-paint by boot.js; main.js drives the vars and removes it. */
.hero__intro-logo {
  position: absolute; left: 0; top: 0; margin: 0; z-index: 2; pointer-events: none;
  transform-origin: 0 0; will-change: transform, opacity; display: none; opacity: 0;
}
.hero__intro-logo img {
  width: 100%; height: auto; filter: saturate(1.08) contrast(1.04);
  -webkit-mask-image:
    radial-gradient(ellipse 56% 50% at 50% 50%, #000 58%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, #000 calc(46% + var(--wm, 1) * 54%), transparent calc(58% + var(--wm, 1) * 62%));
  -webkit-mask-composite: source-in;
          mask-image:
    radial-gradient(ellipse 56% 50% at 50% 50%, #000 58%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, #000 calc(46% + var(--wm, 1) * 54%), transparent calc(58% + var(--wm, 1) * 62%));
          mask-composite: intersect;
}
.hero__tag {
  position: absolute; left: 0; right: 0; bottom: 12svh; z-index: 2; margin: 0;
  text-align: center; font-size: 19px; color: var(--text-2); opacity: 0; pointer-events: none;
}
.intro .hero__intro-logo { display: block; }
.intro .hero__emblem { opacity: var(--e, 0); }
.intro .hero__emblem img { animation: none; }
.intro .hero__content, .intro .hero__scroll { opacity: var(--c, 0); transform: translateY(calc((1 - var(--c, 0)) * 24px)); }
.intro .hero__tag { opacity: var(--t, 0); }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.3);
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--cyan-bright); animation: scrollcue 2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Statement: words light up with scroll
   -------------------------------------------------------------------------- */
.statement {
  padding: 22vh 22px;
  background: var(--bg);
}
.statement__text {
  max-width: 980px; margin-inline: auto;
  font-size: clamp(30px, 4.6vw, 58px); font-weight: 600; line-height: 1.14; letter-spacing: -0.03em;
}
.statement__text .w { color: rgba(243, 246, 248, .16); transition: color .25s linear; }
.statement__text .w.is-lit { color: var(--text); }
.statement__text .w.is-accent.is-lit {
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --------------------------------------------------------------------------
   Section heads & generic sections
   -------------------------------------------------------------------------- */
section { position: relative; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 64px; }
.section-head--wide { max-width: 1120px; }
.section-head h2, .hero__title, .contact__head h2 { text-wrap: balance; }
.section-lede { text-wrap: pretty; }
.section-head h2 { font-size: clamp(38px, 5.6vw, 72px); font-weight: 700; letter-spacing: -0.035em; }
.section-lede {
  margin: 22px auto 0; max-width: 700px;
  font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--text-2);
}

/* Pillars */
.pillars { padding: 140px 0 120px; background: var(--bg); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  padding: 40px 34px 34px; min-height: 420px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  color: var(--text); text-decoration: none !important;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.tile::before {
  content: ""; position: absolute; inset: auto -30% -50% -30%; height: 70%;
  background: radial-gradient(closest-side, var(--tile-glow, rgba(59,196,200,.28)), transparent);
  opacity: .55; transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.tile:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.tile:hover::before { opacity: 1; transform: translateY(-10%); }
.tile--ai { --tile-glow: rgba(74, 168, 255, .30); }
.tile--software { --tile-glow: rgba(201, 205, 210, .18); }
.tile h3 { font-size: 30px; font-weight: 700; }
.tile p { color: var(--text-2); font-size: 17px; flex: 1; }
.tile__icon { width: 56px; height: 56px; margin-bottom: 18px; }
.tile__icon svg { width: 100%; height: 100%; fill: none; stroke: var(--cyan-bright); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile--ai .tile__icon svg { stroke: var(--electric); }
.tile--software .tile__icon svg { stroke: var(--silver); }

/* --------------------------------------------------------------------------
   Feature sections
   -------------------------------------------------------------------------- */
.feature { padding: 140px 0; }
.feature--security {
  background:
    radial-gradient(900px 500px at 15% 30%, rgba(49, 185, 176, .08), transparent 60%),
    var(--bg-2);
  padding-bottom: 0;
}
.feature--software {
  background:
    radial-gradient(900px 600px at 85% 20%, rgba(74, 168, 255, .07), transparent 60%),
    var(--bg-2);
}

/* Sticky split */
.sticky-split { display: grid; grid-template-columns: 1.08fr 1fr; gap: 64px; align-items: start; }
.sticky-split__visual { position: sticky; top: calc(var(--nav-h) + 40px); }
.sticky-split__list { display: flex; flex-direction: column; gap: 18px; padding-bottom: 40px; }

.feat {
  padding: 30px 30px 32px; border-radius: var(--radius-md);
  background: rgba(255,255,255,.02); border: 1px solid var(--line);
  transition: background-color .4s, border-color .4s;
}
.feat:hover { background: rgba(255,255,255,.04); border-color: var(--line-strong); }
.feat__num { font-family: var(--mono); font-size: 13px; color: var(--cyan); letter-spacing: .08em; }
.feat h3 { font-size: 24px; margin: 10px 0 10px; }
.feat p { color: var(--text-2); }
.feat--tool {
  background: linear-gradient(160deg, rgba(59,196,200,.10), rgba(59,196,200,.02) 60%);
  border-color: rgba(95,227,230,.28);
}
.feat--tool:hover { background: linear-gradient(160deg, rgba(59,196,200,.14), rgba(59,196,200,.04) 60%); border-color: rgba(95,227,230,.45); }
.feat__cta { margin-top: 18px; }

/* Console */
.codewin { display: flex; flex-direction: column; }
.codewin__status {
  margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 18px;
  padding: 12px 18px; border-top: 1px solid var(--line); background: rgba(255,255,255,.02);
  font-family: var(--mono); font-size: 11.5px; color: var(--text-3);
}
.codewin__status .ok { color: #5fe39a; }
.console, .codewin {
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #13171a, #0b0e10);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(59,196,200,.06), 0 0 80px -20px rgba(59,196,200,.18);
}
.console__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.console__title { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.console__badge {
  margin-left: auto; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-3); border: 1px solid var(--line-strong); padding: 2px 7px; border-radius: 6px;
}
.console__body {
  margin: 0; padding: 18px 18px 8px; height: 340px; overflow: hidden;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: #c6d0d6;
  white-space: pre-wrap; word-break: break-word;
}
.console__body .t-dim  { color: #5f6b73; }
.console__body .t-info { color: var(--electric); }
.console__body .t-hit  { color: #ff7a6b; font-weight: 600; }
.console__body .t-ai   { color: var(--glow); }
.console__body .t-ok   { color: #5fe39a; }
.console__body .t-tech { color: #febc2e; }
.console__body .caret {
  display: inline-block; width: 7px; height: 14px; vertical-align: -2px;
  background: var(--cyan-bright); animation: blink 1s steps(1) infinite;
}
.console__meter { padding: 14px 18px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.console__meter > div { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; }
.console__meter .label { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar__fill {
  display: block; height: 100%; width: 100%; border-radius: inherit;
  background: var(--brand-grad);
  transform-origin: left; transform: scaleX(0);
  transition: transform 1.6s var(--ease);
}

/* Marquee */
.marquee {
  margin-top: 100px; padding: 30px 0; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 56px; padding-right: 56px; }
.marquee li { white-space: nowrap; font-size: 20px; font-weight: 600; color: var(--text-3); letter-spacing: -0.01em; }

/* --------------------------------------------------------------------------
   Light theme section (AI)
   -------------------------------------------------------------------------- */
.theme-light { background: var(--light-bg); color: var(--light-text); }
.theme-light .section-lede, .theme-light .card p { color: var(--light-text-2); }
.theme-light .eyebrow--teal { color: var(--light-accent); }

.pipeline { margin: 0 auto 72px; max-width: 1000px; }
.pipeline__svg { width: 100%; height: auto; overflow: visible; }
.pipeline__wire { stroke: #d3dadf; stroke-width: 3; fill: none; stroke-linecap: round; }
.pipeline__flow {
  stroke: url(#pipeGrad); stroke-width: 3; fill: none; stroke-linecap: round;
  stroke-dasharray: 10 22; animation: flow 1.4s linear infinite;
}
.pipeline__node rect { fill: #fff; stroke: #dfe5e9; stroke-width: 1.5; filter: drop-shadow(0 10px 18px rgba(16, 40, 50, .08)); }
.pipeline__node--guard rect { fill: #0f1a1d; stroke: var(--teal); stroke-width: 2; }
.pipeline__node--out rect { stroke: var(--blue); stroke-width: 2; }
.pipeline__node text { text-anchor: middle; font-family: var(--font); font-size: 17px; font-weight: 600; fill: var(--light-text); }
.pipeline__node text.sub { font-size: 12px; font-weight: 400; fill: #6b747c; font-family: var(--mono); }
.pipeline__node--guard text { fill: #fff; }
.pipeline__node--guard text.sub { fill: var(--glow); }

.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-cards--4 { grid-template-columns: repeat(4, 1fr); margin-top: 72px; }
.card {
  padding: 32px 30px; border-radius: var(--radius-md);
  background: #fff; border: 1px solid #e3e8eb;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(16, 40, 50, .35); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card--dark { background: rgba(255,255,255,.03); border-color: var(--line); }
.card--dark p { color: var(--text-2); }
.card--dark:hover { box-shadow: 0 24px 50px -28px rgba(0,0,0,.9); border-color: var(--line-strong); }

/* --------------------------------------------------------------------------
   Software
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: stretch; }
.codewin__body {
  margin: 0; padding: 22px 22px 26px; overflow-x: auto;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: #d3dbe0;
}
.codewin__body .c { color: #5f6b73; font-style: italic; }
.codewin__body .k { color: #c792ea; }
.codewin__body .f { color: var(--cyan-bright); }
.codewin__body .s { color: #c3e88d; }
.codewin__body .n { color: #f78c6c; }
.codewin__body .v { color: var(--electric); }

.gates {
  padding: 30px; border-radius: 20px;
  background: linear-gradient(180deg, var(--surface), var(--bg-3));
  border: 1px solid var(--line);
}
.gates__title { font-size: 22px; margin-bottom: 20px; }
.gates__list { display: grid; gap: 4px; }
.gates__list li {
  display: flex; gap: 14px; align-items: flex-start; padding: 11px 0;
  border-bottom: 1px solid var(--line);
  opacity: .35; transition: opacity .6s var(--ease);
}
.gates__list li:last-child { border-bottom: 0; }
.gates__list li.is-pass { opacity: 1; }
.gates__list strong { display: block; font-size: 16px; font-weight: 600; }
.gates__list span:not(.gate__check) { display: block; font-size: 14px; color: var(--text-2); }
.gate__check {
  flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); position: relative;
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.gate__check::after {
  content: ""; position: absolute; left: 7px; top: 3.5px; width: 5px; height: 10px;
  border: solid #02191b; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform .35s var(--ease) .1s;
}
.is-pass .gate__check { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 14px rgba(95, 227, 230, .5); }
.is-pass .gate__check::after { transform: rotate(45deg) scale(1); }

/* --------------------------------------------------------------------------
   Who we serve
   -------------------------------------------------------------------------- */
.scale { padding: 140px 0; background: var(--bg); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare__col {
  display: flex; flex-direction: column; gap: 28px;
  padding: 44px 40px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.compare__col--accent {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(74,168,255,.14), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(49,185,176,.12), transparent 60%),
    var(--surface);
}
.compare__tag {
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--cyan-bright); padding: 5px 12px; border-radius: 999px;
  background: rgba(59,196,200,.1); border: 1px solid rgba(59,196,200,.25);
}
.compare__head h3 { font-size: 28px; line-height: 1.15; }
.checklist { display: grid; gap: 14px; flex: 1; }
.checklist li { position: relative; padding-left: 30px; color: var(--text-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(59,196,200,.14);
}
.checklist li::after {
  content: ""; position: absolute; left: 6.5px; top: 7.5px; width: 4px; height: 8px;
  border: solid var(--cyan-bright); border-width: 0 1.7px 1.7px 0; transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Approach
   -------------------------------------------------------------------------- */
.approach { padding: 140px 0; background: var(--bg-2); }
.steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  position: relative; counter-reset: step;
}
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--electric), transparent);
  opacity: .5;
}
.step { padding: 0 18px; position: relative; }
.step__n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--mono); font-size: 13px; color: var(--glow);
  background: var(--bg-2); border: 1px solid rgba(95,227,230,.45);
  box-shadow: 0 0 22px -4px rgba(95,227,230,.45);
  margin-bottom: 22px; position: relative;
}
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15.5px; }

.principles { margin-top: 110px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.principle { background: var(--bg-2); padding: 34px 28px; }
.principle h3 { font-size: 19px; margin-bottom: 8px; }
.principle p { color: var(--text-2); font-size: 15.5px; }

/* --------------------------------------------------------------------------
   Founder
   -------------------------------------------------------------------------- */
.founder {
  padding: 140px 0;
  background: radial-gradient(800px 500px at 25% 50%, #262b30 0%, transparent 70%), var(--bg);
}
.founder__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.founder__mark img {
  width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(ellipse 48% 48% at 50% 50%, #000 25%, transparent 100%);
          mask-image: radial-gradient(ellipse 48% 48% at 50% 50%, #000 25%, transparent 100%);
}
.founder h2 { font-size: clamp(38px, 5vw, 60px); font-weight: 700; margin-bottom: 26px; }
.founder blockquote {
  margin: 0; font-size: clamp(20px, 2.1vw, 26px); line-height: 1.42; font-weight: 500;
  letter-spacing: -0.02em; color: var(--text);
}
.founder__sig { margin-top: 24px; color: var(--text-3); font-size: 15px; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact {
  padding: 140px 0;
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(74,168,255,.08), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(49,185,176,.08), transparent 60%),
    var(--bg-2);
}
.contact__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact__head h2 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 700; letter-spacing: -0.035em; }
.contact__head .section-lede { margin-left: 0; }
.contact__meta { margin-top: 36px; display: grid; gap: 14px; }
.contact__meta li { display: flex; flex-direction: column; gap: 2px; }
.contact__meta span { font-size: 13px; color: var(--text-3); }

.form {
  padding: 36px; border-radius: var(--radius-lg);
  background: rgba(30, 34, 38, .7); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span, .chips legend { font-size: 13px; color: var(--text-2); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(14, 17, 19, .7); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 13px 14px;
  transition: border-color .25s, box-shadow .25s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(59,196,200,.18);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff7a6b; box-shadow: 0 0 0 4px rgba(255,122,107,.14); }

.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { margin-bottom: 10px; padding: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--line-strong); color: var(--text-2);
  transition: all .25s var(--ease);
}
.chip input:checked + span { background: rgba(59,196,200,.16); border-color: var(--cyan); color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--cyan-bright); outline-offset: 2px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form__status { font-size: 14px; color: var(--text-2); }
.form__status.is-error { color: #ff9a8e; }
.form__status.is-ok { color: #6ff0b0; }
.form__fine { font-size: 12.5px; color: var(--text-3); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 13px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer h4 { font-size: 12.5px; font-weight: 600; color: var(--text); letter-spacing: 0; margin-bottom: 12px; }
.footer ul { display: grid; gap: 9px; }
.footer a { color: var(--text-3); }
.footer a:hover { color: var(--text); text-decoration: none; }
.footer__base {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-3);
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.tiles .reveal:nth-child(2), .grid-cards .reveal:nth-child(3n+2), .steps .reveal:nth-child(2), .principles .reveal:nth-child(2) { transition-delay: .08s; }
.tiles .reveal:nth-child(3), .grid-cards .reveal:nth-child(3n),   .steps .reveal:nth-child(3), .principles .reveal:nth-child(3) { transition-delay: .16s; }
.steps .reveal:nth-child(4), .principles .reveal:nth-child(4) { transition-delay: .24s; }
.steps .reveal:nth-child(5) { transition-delay: .32s; }

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes flow { to { stroke-dashoffset: -32; } }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .sticky-split { grid-template-columns: 1fr; gap: 32px; }
  .sticky-split__visual { position: relative; top: 0; }
  .grid-cards { grid-template-columns: 1fr 1fr; }
  .grid-cards--4 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 22px; right: auto; top: 0; bottom: 0; width: 1px; height: auto;
    background: linear-gradient(180deg, transparent, var(--teal), var(--electric), transparent); }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; padding: 0; }
  .step__n { grid-row: span 2; margin: 0; }
  .principles { grid-template-columns: 1fr 1fr; }
  .founder__inner, .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .founder__mark { max-width: 460px; margin-inline: auto; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, var(--container)); }
  .hero { padding-top: calc(var(--nav-h) + 7vh); }
  .pillars, .feature, .scale, .approach, .founder, .contact { padding: 96px 0; }
  .feature--security { padding-bottom: 0; }
  .section-head { margin-bottom: 44px; }
  .tile { padding: 32px 26px 28px; }
  .grid-cards, .grid-cards--4, .compare, .principles, .form__row { grid-template-columns: 1fr; }
  .compare__col { padding: 34px 26px; }
  .form { padding: 24px 20px; }
  .console__body { height: 300px; font-size: 11.5px; }
  .console__meter > div { grid-template-columns: 110px 1fr; }
  .codewin__body { font-size: 12px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .pipeline { overflow-x: auto; margin-inline: -16px; padding: 0 16px; }
  .pipeline__svg { min-width: 680px; }
  .marquee li { font-size: 17px; }
}

/* --------------------------------------------------------------------------
   Motion & contrast preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .marquee ul[aria-hidden] { display: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; row-gap: 14px; padding: 0 20px; }
  .statement__text .w { color: var(--text); }
}
@media (prefers-contrast: more) {
  :root { --text-2: #d0d6db; --text-3: #aab3ba; --line: rgba(255,255,255,.22); }
}

/* --------------------------------------------------------------------------
   Simple document pages (privacy, 404)
   -------------------------------------------------------------------------- */
.doc-page { padding: calc(var(--nav-h) + 90px) 0 120px; min-height: 80vh; }
.doc-page .container { max-width: 760px; }
.doc-page h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 14px; }
.doc-page h2 { font-size: 24px; margin: 44px 0 12px; }
.doc-page p, .doc-page li { color: var(--text-2); margin-bottom: 12px; }
.doc-page ul { list-style: disc; padding-left: 22px; }
.doc-page .updated { color: var(--text-3); font-size: 14px; margin-bottom: 30px; }
.doc-page--center { display: grid; place-items: center; text-align: center; }
.doc-page--center .lede { font-size: 21px; margin: 6px 0 30px; }
.gnav--simple .gnav__menu { display: flex; position: static; flex-direction: row; opacity: 1; visibility: visible; transform: none; padding: 0; background: none; border: 0; }
.gnav--simple .gnav__menu li { border: 0; }
.gnav--simple .gnav__cta { padding: 0; }
.gnav--simple .gnav__cta .btn { width: auto; padding: 6px 14px; font-size: 13px; }
.doc-page code { font-family: var(--mono); font-size: .9em; color: var(--cyan-bright); background: rgba(59,196,200,.08); padding: 1px 6px; border-radius: 6px; }
.doc-page strong { color: var(--text); font-weight: 600; }
.contact__meta div { color: var(--text-3); }
.doc-page .eyebrow--teal { color: var(--cyan); }
