/* ============================================================
   CoreStack — design system
   Dark, engineered, terminal-inspired. One signal accent.
   ============================================================ */

:root {
  /* Cool near-black neutrals */
  --bg:          oklch(0.155 0.012 245);
  --bg-2:        oklch(0.185 0.013 245);
  --surface:     oklch(0.214 0.014 245);
  --surface-2:   oklch(0.255 0.015 245);
  --border:      oklch(0.305 0.013 245);
  --border-bright: oklch(0.42 0.016 245);

  --text:        oklch(0.965 0.004 245);
  --text-dim:    oklch(0.755 0.012 245);
  --text-faint:  oklch(0.585 0.013 245);

  /* Accent — overridden at runtime from Tweaks */
  --accent:      oklch(0.82 0.125 200);
  --accent-soft: color-mix(in oklab, var(--accent) 16%, transparent);
  --accent-line: color-mix(in oklab, var(--accent) 34%, transparent);
  --accent-ink:  oklch(0.18 0.03 245);

  --radius:   14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient grid + glow behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in oklab, var(--border) 50%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--border) 50%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 70% -5%, #000 0%, transparent 62%);
          mask-image: radial-gradient(120% 80% at 70% -5%, #000 0%, transparent 62%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  top: -28vh; right: -12vw;
  width: 62vw; height: 62vw;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; z-index: 1; padding-block: clamp(72px, 10vw, 132px); }
.section--tight { padding-block: clamp(54px, 7vw, 92px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent-line);
}

.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-top: 18px;
}
.sec-head p {
  color: var(--text-dim);
  font-size: clamp(16px, 1.4vw, 19px);
  margin-top: 16px;
  max-width: 60ch;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.01em;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  box-shadow: 0 1px 0 color-mix(in oklab, #fff 22%, transparent) inset,
              0 10px 30px -12px var(--accent);
}
.btn--primary:hover { box-shadow: 0 0 0 1px var(--accent), 0 14px 34px -10px var(--accent); transform: translateY(-1px); }
.btn--ghost {
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  border-color: var(--border-bright);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent-line); background: var(--surface); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.is-stuck {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-bright);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 0%, transparent);
  position: relative;
}
.brand__mark svg { width: 17px; height: 17px; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.brand__name b { color: var(--accent); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-dim);
  padding: 8px 13px; border-radius: 8px;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a.is-active { color: var(--accent); }
.nav__links a.is-active:hover { background: var(--surface); }

/* Inner pages have no hero — give the first section room under the sticky nav */
main > section:first-child { padding-top: clamp(104px, 12vw, 156px); }

/* Decorative AI-robot watermark, upper-left (inner pages only) */
.ai-bot {
  position: fixed;
  top: 78px;
  left: clamp(4px, 1.4vw, 26px);
  width: clamp(112px, 10.5vw, 158px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.17;
}
@media (max-width: 760px) { .ai-bot { display: none; } }
.nav__cta { display: flex; align-items: center; gap: 14px; }

/* ---------- Language switch ---------- */
.lang { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 13px; }
.lang button {
  background: transparent; border: 0; cursor: pointer;
  color: var(--text-faint); padding: 4px 5px; border-radius: 6px;
  letter-spacing: 0.03em;
  transition: color 0.16s;
}
.lang button.is-on { color: var(--accent); font-weight: 600; }
.lang button:not(.is-on):hover { color: var(--text); }
.lang__sep { color: var(--border-bright); }

/* ---------- Mobile menu (burger + drawer) ---------- */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 9px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.nav__burger span {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.2s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__drawer {
  position: fixed;
  top: 70px; left: 0; right: 0;
  z-index: 49;
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--border);
  padding: 10px var(--gutter) 26px;
  display: flex; flex-direction: column; gap: 6px;
}
@media (prefers-reduced-motion: no-preference) {
  .nav__drawer { animation: drawerIn 0.26s var(--ease); }
}
@keyframes drawerIn {
  from { transform: translateY(-12px); }
  to   { transform: none; }
}
.nav__drawer-links { display: flex; flex-direction: column; }
.nav__drawer-links a {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-size: 20px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
}
.nav__drawer-links a svg { width: 18px; height: 18px; color: var(--text-faint); transition: transform 0.2s, color 0.2s; }
.nav__drawer-links a:active svg { transform: translateX(3px); }
.nav__drawer-links a.is-active { color: var(--accent); }
.nav__drawer-links a.is-active svg { color: var(--accent); }
.nav__drawer-cta { justify-content: center; margin-top: 18px; padding: 15px; }

.nav__scrim {
  position: fixed; inset: 70px 0 0 0; z-index: 48;
  background: color-mix(in oklab, var(--bg) 55%, transparent);
}

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width: 520px) {
  .nav__cta-btn { display: none; }
}

/* ---------- Availability pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em;
  padding: 6px 12px; border-radius: 100px;
  border: 1px solid var(--border-bright);
  background: var(--surface);
  color: var(--text-dim);
  white-space: nowrap;
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: oklch(0.78 0.16 150);
  box-shadow: 0 0 0 0 oklch(0.78 0.16 150);
  animation: ping 2.4s var(--ease) infinite;
}
.pill.is-booked .dot { background: oklch(0.78 0.13 70); animation: none; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, oklch(0.78 0.16 150) 60%, transparent); }
  70%,100% { box-shadow: 0 0 0 7px transparent; }
}

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; padding-top: clamp(40px, 6vw, 70px); }

/* Faint datacentre motif anchored to the bottom of the viewport (home only) */
.dc-bg {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: clamp(170px, 24vw, 310px);
  z-index: 0;
  pointer-events: none;
  background: var(--accent);
  -webkit-mask: url("datacenter.svg") bottom center / contain no-repeat;
          mask: url("datacenter.svg") bottom center / contain no-repeat;
  opacity: 0.14;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-top: 22px;
}
.hero h1 .accent { color: var(--accent); }
.hero__lede {
  color: var(--text-dim);
  font-size: clamp(17px, 1.5vw, 20px);
  margin-top: 22px;
  max-width: 52ch;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 22px 34px;
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 33px); letter-spacing: -0.02em; }
.stat__num b { color: var(--accent); font-weight: 600; }
.stat__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-top: 4px; }

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
}

/* ---------- Terminal ---------- */
.term {
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--border-bright) 70%, transparent);
  background: color-mix(in oklab, var(--bg-2) 75%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -36px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02) inset;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.term:hover, .term:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 40px 80px -36px rgba(0,0,0,0.8), 0 0 25px -5px var(--accent-soft);
}
.term__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 50%, transparent);
}
.term__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-bright); }
.term__title { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-left: 8px; }
.term__body {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.72;
  padding: 18px 18px 22px;
  min-height: 332px;
  white-space: pre-wrap;
  word-break: break-word;
}
.term__body .ln { display: block; }
.term__prompt { color: var(--accent); }
.term__user { color: var(--text); }
.term__out { color: var(--text-dim); }
.term__ok { color: oklch(0.82 0.15 150); }
.term__warn { color: oklch(0.84 0.13 80); }
.term__err { color: oklch(0.62 0.17 24); }
.term__muted { color: var(--text-faint); }
.term__prompt-line { color: var(--accent); display: block; }
.term__input-line { display: flex; align-items: center; color: var(--text); }
.term__input {
  background: transparent !important;
  border: none !important;
  color: var(--text) !important;
  font-family: var(--font-mono) !important;
  font-size: inherit !important;
  line-height: inherit !important;
  outline: none !important;
  flex: 1;
  padding: 0 !important;
  margin: 0 !important;
  caret-color: var(--accent);
}
.cursor { display: inline-block; width: 8px; height: 1.05em; transform: translateY(2px); background: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Cards / services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  border: 1px solid color-mix(in oklab, var(--border) 40%, transparent);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--bg-2) 55%, transparent);
  backdrop-filter: blur(14px);
  padding: 28px 26px 30px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-line), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover {
  border-color: var(--accent-line);
  transform: translateY(-4px) scale(1.005);
  background: color-mix(in oklab, var(--bg-2) 68%, transparent);
  box-shadow: 0 16px 36px -12px var(--accent-soft), 0 0 0 1px var(--accent-soft) inset;
}
.card:hover::before { opacity: 1; }
.card__idx { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.card__icon {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 20px;
  display: grid; place-items: center;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
.card__icon svg { width: 21px; height: 21px; }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15.5px; }
.card__list { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.card__list li { display: flex; gap: 10px; font-size: 14px; color: var(--text-dim); font-family: var(--font-mono); }
.card__list li::before { content: "›"; color: var(--accent); }
.card__foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }
.card__foot b { color: var(--text); font-weight: 500; }

/* ---------- Expertise ---------- */
.subhead { display: flex; align-items: center; gap: 11px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 22px; }
.subhead .sq { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); flex: none; }
.subhead--gap { margin-top: 46px; }

.ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .ai-grid { grid-template-columns: 1fr; } }
.ai-card { display: flex; flex-direction: column; }
.ai-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; margin-bottom: 10px; }
.ai-chips { margin-top: auto; padding-top: 18px; }

.ai-feature {
  margin-top: 20px;
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
  border: 1px solid var(--accent-line); border-radius: var(--radius);
  background: linear-gradient(120deg, var(--accent-soft), color-mix(in oklab, var(--bg-2) 65%, transparent) 58%);
  backdrop-filter: blur(14px);
  padding: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ai-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px var(--accent-soft);
}
.ai-feature .card__icon { margin-bottom: 0; }
.ai-feature__body h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; margin-bottom: 10px; }
.ai-feature__body p { color: var(--text-dim); font-size: 15px; max-width: 72ch; text-wrap: pretty; }
.ai-feature__body .chips { margin-top: 16px; }
@media (max-width: 560px) { .ai-feature { grid-template-columns: 1fr; gap: 16px; padding: 24px; } }

.stacks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .stacks { grid-template-columns: 1fr; } }
.stack {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-2); padding: 22px 22px 24px;
}
.stack__head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.stack__head .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.stack__head h4 { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono); font-size: 12.5px;
  padding: 5px 11px; border-radius: 7px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}
.chip:hover { color: var(--text); border-color: var(--accent-line); background: var(--surface-2); }

/* ---------- Timeline ---------- */
.timeline { display: flex; flex-direction: column; }
.tl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(16px, 4vw, 48px);
  padding: 26px 0;
  border-top: 1px solid var(--border);
  transition: background 0.2s;
}
.tl:last-child { border-bottom: 1px solid var(--border); }
.tl:hover { background: linear-gradient(90deg, var(--accent-soft), transparent 40%); }
.tl__when { font-family: var(--font-mono); font-size: 13px; color: var(--accent); padding-top: 4px; }
.tl__role { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.tl__org { color: var(--text-dim); font-size: 15px; }
.tl__org b { color: var(--text); font-weight: 500; }
.tl__desc { color: var(--text-dim); font-size: 14.5px; margin-top: 10px; max-width: 64ch; text-wrap: pretty; white-space: pre-line; }
.tl__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.tl__tags span { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); padding: 3px 9px; border: 1px solid var(--border); border-radius: 6px; white-space: nowrap; }
@media (max-width: 640px) { .tl { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Engagement / Rates ---------- */
.eng__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.bill {
  display: inline-flex; padding: 4px; gap: 4px;
  border: 1px solid var(--border-bright); border-radius: 100px;
  background: var(--bg-2); flex: none;
}
.bill button {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em;
  color: var(--text-dim); background: transparent; border: 0;
  padding: 9px 18px; border-radius: 100px;
  transition: color 0.18s, background 0.18s;
}
.bill button.is-on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.bill button:not(.is-on):hover { color: var(--text); }

.eng { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .eng { grid-template-columns: 1fr; } }
.eng__card {
  border: 1px solid color-mix(in oklab, var(--border) 40%, transparent);
  border-radius: var(--radius);
  padding: 26px;
  background: color-mix(in oklab, var(--bg-2) 55%, transparent);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.eng__card:hover {
  border-color: var(--accent-line);
  transform: translateY(-4px) scale(1.005);
  background: color-mix(in oklab, var(--bg-2) 68%, transparent);
  box-shadow: 0 16px 36px -12px var(--accent-soft), 0 0 0 1px var(--accent-soft) inset;
}
.eng__card.is-featured {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft), color-mix(in oklab, var(--bg-2) 65%, transparent) 55%);
  box-shadow: 0 10px 30px -12px var(--accent-soft);
}
.eng__card.is-featured:hover {
  box-shadow: 0 16px 40px -10px var(--accent-soft), 0 0 0 1px var(--accent) inset;
}
.eng__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.eng__card h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 12px 0 12px; }

.eng__price {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.eng__from { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); align-self: center; }
.eng__amt { font-family: var(--font-display); font-weight: 600; font-size: 38px; letter-spacing: -0.02em; color: var(--text); }
.eng__unit { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); white-space: nowrap; }

.eng__card p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 18px; }
.eng__card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: auto; }
.eng__card li { display: flex; gap: 10px; font-size: 14px; color: var(--text-dim); }
.eng__card li::before { content: "✓"; color: var(--accent); font-family: var(--font-mono); }

.eng__note { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); margin-top: 22px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about p { color: var(--text-dim); font-size: 16.5px; margin-bottom: 16px; text-wrap: pretty; }
.about p b { color: var(--text); font-weight: 500; }
.about__card {
  border: 1px solid color-mix(in oklab, var(--border) 40%, transparent);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--bg-2) 55%, transparent);
  backdrop-filter: blur(14px);
  padding: 26px;
  font-family: var(--font-mono); font-size: 13px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.about__card:hover {
  border-color: var(--accent-line);
  box-shadow: 0 16px 36px -12px var(--accent-soft);
}
.about__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.about__row:last-child { border-bottom: 0; }
.about__row .k { color: var(--text-faint); }
.about__row .v { color: var(--text); text-align: right; }

/* ---------- Contact ---------- */
.contact {
  border: 1px solid var(--border-bright);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 55%),
    color-mix(in oklab, var(--bg-2) 65%, transparent);
  backdrop-filter: blur(14px);
  padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 56px);
  position: relative; overflow: hidden;
  box-shadow: 0 40px 80px -36px rgba(0,0,0,0.6);
}
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.contact h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.02em; line-height: 1.05; }
.contact__lede { color: var(--text-dim); margin-top: 16px; max-width: 44ch; }
.contact__lines { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.contact__line { display: flex; align-items: center; gap: 13px; font-family: var(--font-mono); font-size: 14px; white-space: nowrap; }
.contact__line a:hover { color: var(--accent); }
.contact__line .ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--accent); flex: none; }
.contact__line .ic svg { width: 16px; height: 16px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 15px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; resize: vertical;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form__success {
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  border-radius: var(--radius-sm); padding: 16px 18px;
  font-family: var(--font-mono); font-size: 13.5px; color: var(--text);
  display: flex; gap: 12px; align-items: flex-start;
}

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding-block: 40px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer__meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.footer__meta a:hover { color: var(--accent); }

/* ---------- Mobile / small-screen polish ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }

  /* Hero stats: even 3-up row that never crowds */
  .hero__meta { gap: 18px 22px; }
  .hero__meta .stat { flex: 1 1 auto; min-width: 86px; }

  /* Buttons go full-width so they're easy thumb targets */
  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }

  /* Terminal: relax the tall min-height on phones */
  .term__body { min-height: 0; font-size: 12.5px; padding: 16px 15px 18px; }

  /* Contact card breathes a touch more */
  .contact { border-radius: var(--radius); }
  .contact__line { white-space: normal; }

  /* Rates header stacks: toggle drops below the heading */
  .eng__head { align-items: flex-start; }

  /* Footer reads as a centered stack */
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; }
}

@media (max-width: 380px) {
  .hero__meta .stat { flex: 1 1 100%; }
  .brand__name { font-size: 16px; }
}

/* ---------- Entrance (transform-only — never hides content, capture-safe) ---------- */
@keyframes riseIn {
  from { transform: translateY(20px); }
  to   { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { animation: riseIn 0.6s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor, .pill .dot { animation: none; }
  html { scroll-behavior: auto; }
}
