/* ============================================================
   Antargyan AI — design system

   A refined evolution of the Blazor site's indigo/cyan identity.
   Deliberate departures from the original:
     - one accent gradient, used sparingly, instead of glowing orbs
       on every section
     - a real type scale rather than per-page font sizes
     - section rhythm driven by --sect-y so vertical spacing is
       consistent across pages that were previously hand-tuned
     - motion limited to a single fade-up, honouring prefers-reduced-motion
   ============================================================ */

:root {
  /* Surfaces — darker and cooler than the original for more contrast headroom */
  --void: #04050d;
  --base: #070915;
  --raise: #0c1020;
  --card: #111730;
  --card-hi: #161d3a;

  /* Brand. Indigo carries identity, cyan carries attention. */
  --indigo: #4f46e5;
  --indigo-lit: #6d67f0;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --grad: linear-gradient(115deg, var(--cyan) 0%, var(--indigo-lit) 52%, var(--violet) 100%);

  /* Text */
  --ink: #eef0fb;
  --ink-2: #a3adcc;
  --ink-3: #6f7a9c;
  --ink-4: #4a5372;

  /* Lines */
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-lit: rgba(109, 103, 240, 0.35);

  /* Status */
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

  /* Metrics */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --header-h: 72px;
  --sect-y: 120px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Anchor targets must clear the fixed header. */
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--base);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

::selection {
  background: rgba(109, 103, 240, 0.35);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--void);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.09);
  border: 3px solid var(--void);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Keyboard users get to skip the nav. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--indigo);
  color: #fff;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus {
  left: 0;
}

/* ============================================================
   Primitives
   ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.sect {
  padding: var(--sect-y) 0;
  position: relative;
}
.sect--tight {
  padding: 84px 0;
}
.sect--raise {
  background: var(--raise);
  border-block: 1px solid var(--line);
}

/* Eyebrow above every section heading. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--indigo-lit);
}

.h-sect {
  font-size: clamp(30px, 4.2vw, 46px);
  max-width: 20ch;
}
.sect-lede {
  margin-top: 22px;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 17px;
}

/* The single place the brand gradient is allowed on text. */
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.sect-head--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sect-head--center .h-sect {
  max-width: 24ch;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg {
  transition: transform 0.2s var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}

.btn--fill {
  background: var(--grad);
  color: #05060f;
  font-weight: 700;
}
.btn--fill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(109, 103, 240, 0.55);
}

.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover {
  border-color: var(--line-lit);
  background: rgba(109, 103, 240, 0.1);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 13.5px;
}

/* --- Maturity chip. The honesty mechanism, so it must read clearly. --- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid;
  white-space: nowrap;
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.chip--production {
  color: var(--ok);
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
}
.chip--rollout {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.08);
}
.chip--pilot {
  color: var(--warn);
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

/* ============================================================
   Header
   ============================================================ */

.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr--stuck {
  background: rgba(7, 9, 21, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.hdr-in {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.hdr-logo img {
  height: 30px;
  width: auto;
}
.hdr-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.hdr-nav a {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.hdr-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}
.hdr-nav a.on {
  color: var(--ink);
  background: rgba(109, 103, 240, 0.14);
}
.hdr-cta {
  margin-left: 8px;
}

.burger {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.burger span:nth-child(1) {
  top: 15px;
}
.burger span:nth-child(2) {
  top: 20px;
}
.burger span:nth-child(3) {
  top: 25px;
}
body.menu-open .burger span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
body.menu-open .burger span:nth-child(2) {
  opacity: 0;
}
body.menu-open .burger span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Mobile sheet. Rendered always, revealed by body.menu-open, so the
   menu needs no server round-trip (the Blazor version re-rendered). */
.sheet {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: rgba(4, 5, 13, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0.25s;
  overflow-y: auto;
}
body.menu-open .sheet {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.sheet a.sheet-link {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  letter-spacing: -0.02em;
}
.sheet a.sheet-link.on {
  color: var(--ink);
}
.sheet .btn {
  margin-top: 28px;
  align-self: flex-start;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 96px) 0 96px;
  overflow: hidden;
}
/* Two soft washes and a grid — replaces the original's 24 animated
   motes, 3 orbs and rotating ring system. */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero-bg::before {
  width: 620px;
  height: 620px;
  top: -220px;
  left: 50%;
  transform: translateX(-58%);
  background: radial-gradient(circle, rgba(79, 70, 229, 0.3), transparent 68%);
}
.hero-bg::after {
  width: 440px;
  height: 440px;
  top: 90px;
  right: -120px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 70%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.7;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 48px;
  align-items: center;
}
.hero-in {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.hero-flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.hero-flag b {
  color: var(--ink);
  font-weight: 600;
}
.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
}

.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -0.035em;
}
.hero-lede {
  margin-top: 26px;
  max-width: 58ch;
  font-size: clamp(16.5px, 1.6vw, 19px);
  color: var(--ink-2);
}
.hero-btns {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-art {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(109, 103, 240, 0.28);
  border-radius: 28px;
  overflow: hidden;
  background: var(--void);
  box-shadow: 0 34px 90px -42px rgba(34, 211, 238, 0.52);
  transform: perspective(1100px) rotateY(-2deg) rotateX(1deg);
}
.hero-art::after,
.feature-media::after,
.phero-media::after,
.article-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}
.hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.36 / 1;
  object-fit: cover;
  object-position: 68% center;
}
.hero-art figcaption,
.media-label {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 16px;
  padding: 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
  background: rgba(4, 5, 13, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 11.5px;
  line-height: 1.35;
}

/* Stat strip beneath the hero */
.statbar {
  position: relative;
  margin-top: 88px;
  display: grid;
  /* auto-fit so the same component works for a 4-stat hero and a
     2-stat product metric row without a separate modifier. */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.statbar > div {
  background: var(--base);
  padding: 26px 24px;
}
.statbar strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.statbar span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.45;
}

/* Sector marquee-style band */
.band {
  border-block: 1px solid var(--line);
  background: var(--raise);
  padding: 22px 0;
}
.band-in {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.band-in .tag {
  color: var(--ink-2);
}

/* ============================================================
   Page hero (interior pages)
   ============================================================ */

.phero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 68px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.phero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.phero-bg::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 420px;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(79, 70, 229, 0.24), transparent 70%);
  filter: blur(70px);
}
.phero-in {
  position: relative;
  max-width: 800px;
}
.phero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 56px;
}
.phero-layout .phero-in {
  max-width: none;
}
.phero-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(109, 103, 240, 0.24);
  border-radius: var(--r-lg);
  background: var(--void);
  box-shadow: 0 26px 70px -38px rgba(34, 211, 238, 0.5);
}
.phero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.phero h1 {
  font-size: clamp(34px, 5.6vw, 58px);
  letter-spacing: -0.032em;
}
.phero-lede {
  margin-top: 22px;
  max-width: 60ch;
  font-size: 17.5px;
  color: var(--ink-2);
}

/* ============================================================
   Cards
   ============================================================ */

.grid {
  display: grid;
  gap: 20px;
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
    background 0.25s var(--ease);
}
a.card:hover,
.card--hover:hover {
  border-color: var(--line-lit);
  background: var(--card-hi);
  transform: translateY(-3px);
}

.card-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--cyan);
  background: rgba(109, 103, 240, 0.12);
  border: 1px solid rgba(109, 103, 240, 0.22);
}
.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.card h4 {
  font-size: 16.5px;
  margin-bottom: 9px;
}
.card p {
  color: var(--ink-2);
  font-size: 14.8px;
}

/* Numbered cards (differentiators) */
.card-num {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--indigo-lit);
  margin-bottom: 14px;
}

/* --- Product card --- */

.pcard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pcard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.pcard-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.pcard-tag {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: var(--ink-3);
}
.pcard p {
  color: var(--ink-2);
  font-size: 14.8px;
  flex: 1;
}
.pcard-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cyan);
}
.pcard:hover .pcard-foot .arr {
  transform: translateX(4px);
}
.arr {
  transition: transform 0.2s var(--ease);
}

/* Product family group heading */
.fam {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.fam h2 {
  font-size: 25px;
}
.fam p {
  color: var(--ink-3);
  font-size: 14.5px;
  max-width: 56ch;
}
.fam-group + .fam-group {
  margin-top: 76px;
}

/* ============================================================
   Product detail
   ============================================================ */

.pd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-3);
  margin-bottom: 26px;
  transition: color 0.2s var(--ease);
}
.pd-back:hover {
  color: var(--cyan);
}

.pd-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 44px;
}
.pd-meta > div {
  background: var(--raise);
  padding: 20px 22px;
}
.pd-meta dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 8px;
}
.pd-meta dd {
  font-size: 14.5px;
  color: var(--ink-2);
}

.prose-lead p {
  font-size: 17.5px;
  color: var(--ink-2);
  max-width: 68ch;
}
.prose-lead p + p {
  margin-top: 18px;
}

.detail-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 56px;
  align-items: start;
}

.feature-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--void);
  box-shadow: 0 28px 70px -40px rgba(34, 211, 238, 0.42);
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-media--wide {
  aspect-ratio: 2.35 / 1;
  margin-bottom: 64px;
}
.feature-media--wide img {
  object-position: center 43%;
}
.feature-media--detail {
  aspect-ratio: 16 / 10;
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

/* ============================================================
   Services
   ============================================================ */

.srv {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
  padding: 46px 0;
  border-top: 1px solid var(--line);
}
.srv:last-child {
  border-bottom: 1px solid var(--line);
}
.srv-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
  margin-bottom: 14px;
  letter-spacing: 0.1em;
}
.srv h3 {
  font-size: 26px;
}
.srv-sum {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 15.5px;
}
.srv-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.srv-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 15px;
}
.srv-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 1.5px;
  background: var(--indigo-lit);
}
.srv-proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.srv-proof a {
  color: var(--cyan);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.srv-proof a:hover {
  border-bottom-color: currentColor;
}

/* ============================================================
   Split layouts
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 68px;
  align-items: center;
}
.split--top {
  align-items: start;
}
.split p {
  color: var(--ink-2);
  font-size: 16px;
}
.split p + p {
  margin-top: 18px;
}

/* Terminal-style panel — kept from the original, tightened up */
.panel {
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--void);
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
}
.panel-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--raise);
  border-bottom: 1px solid var(--line);
}
.panel-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-2);
}
.panel-bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
}
.panel-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2;
}
.panel-body .k {
  color: var(--ink-3);
}
.panel-body .v {
  color: var(--cyan);
}
.panel-body .c {
  color: var(--ink-4);
}

/* Timeline (about page) */
.tl {
  display: flex;
  flex-direction: column;
}
.tl-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 36px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.tl-item:last-child {
  border-bottom: 1px solid var(--line);
}
.tl-period {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-lit);
  padding-top: 4px;
}
.tl-item h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.tl-item p {
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 68ch;
}

/* Quotes */
.quote {
  display: flex;
  flex-direction: column;
}
.quote-mk {
  font-family: var(--display);
  font-size: 46px;
  line-height: 1;
  color: var(--indigo-lit);
  opacity: 0.5;
  margin-bottom: 12px;
}
.quote p {
  color: var(--ink-2);
  font-size: 15.5px;
  flex: 1;
}
.quote-by {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.quote-by strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}
.quote-by span {
  font-size: 13px;
  color: var(--ink-3);
}

/* ============================================================
   Insights
   ============================================================ */

.art-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  overflow: hidden;
}
.art-cover {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--void);
  border-bottom: 1px solid var(--line);
}
.art-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}
.art-card:hover .art-cover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}
.art-card > :not(.art-cover) {
  margin-inline: 26px;
}
.art-card > .art-meta {
  margin-top: 10px;
}
.art-card > .pcard-foot {
  margin-bottom: 26px;
}
.art-card h3 {
  font-size: 20px;
  line-height: 1.25;
}
.art-card p {
  flex: 1;
}
.art-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-4);
}

.article {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding: 0 28px;
}
.article-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 42px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--void);
  box-shadow: 0 28px 70px -42px rgba(34, 211, 238, 0.45);
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-intro {
  font-size: 19px;
  line-height: 1.72;
  color: var(--ink);
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.article section {
  margin-top: 46px;
}
.article h2 {
  font-size: 24px;
  margin-bottom: 20px;
}
.article p {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.78;
}
.article p + p {
  margin-top: 18px;
}
.article p strong {
  color: var(--ink);
  font-weight: 600;
}
.article-foot {
  margin-top: 68px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ============================================================
   Contact
   ============================================================ */

.contact {
  background: var(--raise);
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 68px;
  align-items: start;
}
.contact-side p {
  color: var(--ink-2);
  font-size: 16px;
  margin-top: 20px;
  max-width: 44ch;
}
.contact-details {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-details a,
.contact-details span {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  font-size: 15px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease);
}
.contact-details a:hover {
  color: var(--cyan);
}
.contact-details svg {
  flex: 0 0 auto;
  color: var(--ink-4);
}

form.cform {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 9px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--void);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 118px;
  line-height: 1.6;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-4);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo-lit);
  box-shadow: 0 0 0 3px rgba(109, 103, 240, 0.15);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
/* Honeypot: off-screen rather than display:none, so bots that skip
   hidden inputs still fill it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cform .btn {
  width: 100%;
  margin-top: 6px;
}
.note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-4);
  text-align: center;
}

.alert {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  margin-bottom: 24px;
  border: 1px solid;
}
.alert--ok {
  color: var(--ok);
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
}
.alert--bad {
  color: var(--bad);
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
}

/* ============================================================
   CTA
   ============================================================ */

.cta {
  position: relative;
  text-align: center;
  padding: 76px 40px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 340px;
  top: -170px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(79, 70, 229, 0.32), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.cta h2 {
  position: relative;
  font-size: clamp(28px, 4vw, 42px);
  max-width: 22ch;
  margin: 0 auto;
}
.cta p {
  position: relative;
  margin: 20px auto 0;
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 16.5px;
}
.cta-btns {
  position: relative;
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ============================================================
   Footer
   ============================================================ */

.ftr {
  background: var(--void);
  border-top: 1px solid var(--line);
  padding: 68px 0 34px;
}
.ftr-top {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 56px;
}
.ftr-brand img {
  height: 30px;
  margin-bottom: 20px;
}
.ftr-brand p {
  color: var(--ink-3);
  font-size: 14.5px;
  max-width: 40ch;
}
.ftr-brand .tagline {
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 10px;
}
.ftr-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.ftr-cols h4 {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 16px;
}
.ftr-cols a {
  display: block;
  padding: 6px 0;
  font-size: 14.5px;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}
.ftr-cols a:hover {
  color: var(--cyan);
}
.ftr-bot {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-4);
}
.social {
  display: flex;
  gap: 8px;
}
.social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.social a:hover {
  color: var(--ink);
  border-color: var(--line-lit);
  background: rgba(109, 103, 240, 0.12);
}

/* ============================================================
   404
   ============================================================ */

.nf {
  min-height: 74vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 60px) 28px 80px;
}
.nf-code {
  font-family: var(--display);
  font-size: clamp(76px, 15vw, 150px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nf h1 {
  font-size: 28px;
  margin-top: 18px;
}
.nf p {
  margin: 16px auto 34px;
  max-width: 46ch;
  color: var(--ink-2);
}

/* ============================================================
   Motion
   ============================================================ */

/* Reveal targets hide only while the root carries .js-reveal, which the
   inline boot script adds and removes again if app.js never arrives. Nothing
   here can leave content permanently invisible. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js-reveal [data-reveal].in {
  opacity: 1;
  transform: none;
}

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

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --sect-y: 92px;
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .split,
  .contact-grid,
  .detail-intro {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 30px;
  }
  .phero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    gap: 36px;
  }
  .srv {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ftr-top {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 860px) {
  .hdr-nav,
  .hdr-cta {
    display: none;
  }
  .burger {
    display: block;
  }
}

@media (max-width: 720px) {
  :root {
    --sect-y: 76px;
  }
  .wrap,
  .hdr-in,
  .article {
    padding: 0 20px;
  }
  .hero {
    padding: calc(var(--header-h) + 64px) 0 72px;
  }
  .hero-layout,
  .phero-layout {
    grid-template-columns: 1fr;
  }
  .hero-art {
    margin-top: 10px;
    transform: none;
    border-radius: 20px;
  }
  .hero-art img {
    aspect-ratio: 16 / 10;
  }
  .hero-art figcaption,
  .media-label {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }
  .phero {
    padding-bottom: 48px;
  }
  .phero-media {
    margin-top: 4px;
  }
  .feature-media--wide {
    aspect-ratio: 16 / 10;
    margin-bottom: 44px;
  }
  .statbar {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 60px;
  }
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 24px;
  }
  .art-card {
    padding: 0;
  }
  .art-card > :not(.art-cover) {
    margin-inline: 22px;
  }
  .cta {
    padding: 52px 24px;
  }
  .ftr-cols {
    grid-template-columns: 1fr 1fr;
  }
  .tl-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  form.cform {
    padding: 26px 22px;
  }
  .hero-btns .btn,
  .cta-btns .btn {
    width: 100%;
  }
}
