/* ============ CODOUT — design system ============ */
:root {
  /* Brand palette — derived from the Codout </> mark */
  --cyan: #1AAFE8;
  --cyan-soft: #5FC8F0;
  --teal: #126A87;
  --teal-deep: #0A4E66;
  --ink: #0B1520;
  --ink-2: #1A2733;
  --bg: #F4F7FA;
  --bg-warm: #E9EEF4;
  --paper: #FFFFFF;
  --muted: #5C6A78;
  --line: rgba(11, 21, 32, 0.10);
  --line-strong: rgba(11, 21, 32, 0.22);

  /* keep legacy aliases so existing rules keep working */
  --lime: var(--cyan);
  --lime-deep: var(--cyan);
  --ember: var(--teal);
  --violet: var(--teal-deep);

  --f-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-sans: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 22px;
  --r-xl: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--cyan); color: var(--ink); }

/* ============ layout ============ */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 inline;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

.rule { height: 1px; background: var(--line); width: 100%; }
.rule-strong { height: 1px; background: var(--ink); width: 100%; }

/* ============ typography ============ */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 1px;
  box-shadow: 0 0 0 4px rgba(26, 175, 232, 0.25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(26, 175, 232, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(26, 175, 232, 0.12); }
}

.display {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(56px, 10vw, 160px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.display em {
  font-style: normal;
  color: var(--cyan);
  font-weight: 500;
}
.display .grad {
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 55%, var(--teal) 75%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.h2 {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.h3 {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.lead {
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 58ch;
  font-weight: 400;
}
.body { font-size: 16px; color: var(--ink-2); line-height: 1.55; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; }

/* ============ nav ============ */
.nav {
  position: fixed;
  top: 18px;
  left: 40px;
  right: 40px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(245, 241, 234, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 100px;
}
@media (max-width: 720px) {
  .nav { left: 16px; right: 16px; padding: 10px 14px; top: 12px; }
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 0;
  color: var(--ink);
}
.nav__brand img.navlogo { height: 28px; width: auto; display: block; }
@media (max-width: 720px) { .nav__brand img.navlogo { height: 24px; } }
.nav__brand .mark {
  height: 26px;
  display: flex;
  align-items: center;
}
.nav__brand .mark img { height: 26px; width: auto; display: block; }
.nav__brand .wordmark { height: 22px; width: auto; display: block; }
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav__links a {
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s;
}
.nav__links a.active { color: var(--ink); }
.nav__links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1.5px;
  background: var(--lime-deep);
}
.nav__links a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav__links { display: none; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), background 0.2s;
}
.btn:hover { background: #1F1F1F; transform: translateY(-1px); }
.btn .arr {
  display: inline-block;
  width: 14px; height: 14px;
  position: relative;
}
.btn .arr::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 11L11 3M11 3H5M11 3V9' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 11L11 3M11 3H5M11 3V9' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
}
.btn:hover .arr::before { transform: translate(2px, -2px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 100% 80% at 60% 60%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 60% 60%, #000 30%, transparent 80%);
  opacity: 0.8;
}
.hero__blob {
  position: absolute;
  right: -8%;
  top: 18%;
  width: 52vw;
  height: 52vw;
  max-width: 820px;
  max-height: 820px;
  pointer-events: none;
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  padding-top: 80px;
}
.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 30px;
  flex-wrap: wrap;
}
.hero__meta .location {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.hero__meta .location strong { color: var(--ink); font-weight: 500; }
.hero h1 {
  max-width: 14ch;
}
.hero__bottom {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 40px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}
@media (max-width: 820px) {
  .hero__bottom { grid-template-columns: 1fr; gap: 24px; }
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__scroll {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg);
}
.marquee__track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: mq 40s linear infinite;
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee__track .sep { color: var(--lime-deep); }
@keyframes mq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* section */
.section {
  padding: 120px 0;
  position: relative;
}
@media (max-width: 720px) { .section { padding: 80px 0; } }

.section__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 64px;
  align-items: baseline;
}
@media (max-width: 820px) {
  .section__head { grid-template-columns: 1fr; gap: 20px; }
}
.section__head .index {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============ stats ============ */
.stats {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 40px;
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: -60px;
  position: relative;
  z-index: 3;
}
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); padding: 20px; }
}
.stat {
  padding: 24px 28px;
  border-right: 1px solid rgba(255,255,255,0.12);
  position: relative;
}
.stat:last-child { border-right: 0; }
@media (max-width: 820px) {
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.12); }
}
.stat__num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--paper);
}
.stat__num sup {
  font-size: 0.4em;
  vertical-align: top;
  margin-left: 4px;
  color: var(--cyan);
  font-family: var(--f-mono);
  font-weight: 400;
  letter-spacing: 0;
}
.stat__label {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ============ services ============ */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
@media (max-width: 820px) {
  .services { grid-template-columns: 1fr; }
}
.service {
  padding: 40px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.35s;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: flex-start;
  cursor: pointer;
  overflow: hidden;
}
.service:nth-child(even) { border-right: 0; }
.service:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 820px) {
  .service { border-right: 0; }
  .service:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .service:last-child { border-bottom: 0; }
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(.7,0,.2,1);
  z-index: 0;
}
.service > * { position: relative; z-index: 1; transition: color 0.3s; }
.service:hover::before { transform: translateY(0); }
.service:hover { color: var(--paper); }
.service:hover .service__num,
.service:hover .service__desc,
.service:hover .service__tag { color: var(--cyan); }
.service:hover .service__arrow { color: var(--cyan); transform: translate(4px, -4px); }

.service__num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.service__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 18px 0 14px;
}
.service__desc {
  color: var(--muted);
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.5;
}
.service__tags {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service__tag {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.service__arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--ink);
  transition: transform 0.3s, color 0.3s, border-color 0.3s;
}
.service:hover .service__arrow { border-color: var(--cyan); }

/* ============ process ============ */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
@media (max-width: 960px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

.step {
  padding: 32px 24px 36px;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; }
.step__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--lime-deep);
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
}
.step__num::after {
  content: "";
  flex: 1;
  border-top: 1px dashed var(--line-strong);
  margin: 8px 0 0 12px;
}
.step__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.step__desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.step__dot {
  width: 12px; height: 12px;
  background: var(--ink);
  border-radius: 50%;
  position: absolute;
  top: -6px;
  left: 24px;
}
.step__dot--active { background: var(--cyan); box-shadow: 0 0 0 6px rgba(26, 175, 232, 0.3); }

/* ============ testimonials ============ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 960px) { .testi-grid { grid-template-columns: 1fr; } }
.testi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-height: 360px;
  position: relative;
  transition: transform 0.35s, border-color 0.35s;
}
.testi:hover { transform: translateY(-4px); border-color: var(--ink); }
.testi.testi--dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.testi.testi--dark .testi__quote { color: var(--paper); }
.testi.testi--dark .testi__who .name { color: var(--paper); }
.testi.testi--dark .testi__who .role { color: rgba(255,255,255,0.5); }
.testi.testi--dark .testi__mark { color: var(--cyan); }

.testi__mark {
  font-family: var(--f-display);
  font-size: 72px;
  line-height: 0.6;
  color: var(--lime-deep);
  height: 28px;
}
.testi__quote {
  font-family: var(--f-sans);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex: 1;
}
.testi__who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.testi.testi--dark .testi__who { border-top-color: rgba(255,255,255,0.12); }
.testi__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: var(--bg-warm);
  flex-shrink: 0;
}
.testi.testi--dark .testi__avatar { background: rgba(26, 175, 232, 0.1); color: var(--cyan); border-color: rgba(255,255,255,0.1); }
.testi__who .name { font-weight: 500; font-size: 14px; }
.testi__who .role { font-size: 13px; color: var(--muted); }

/* ============ stack ============ */
.stack {
  padding: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  margin-top: 20px;
}
.stack__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  margin-top: 32px;
}
@media (max-width: 960px) { .stack__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .stack__grid { grid-template-columns: repeat(3, 1fr); } }
.stack__item {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px;
  transition: background 0.3s;
  position: relative;
}
.stack__item:hover { background: var(--bg-warm); }
.stack__item:nth-child(8n) { border-right: 0; }
.stack__item svg { width: 40px; height: 40px; color: var(--ink); }
.stack__item .label {
  position: absolute;
  bottom: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ============ microsoft partner strip ============ */
.partner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 50px 44px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl);
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 820px) { .partner { grid-template-columns: 1fr; padding: 32px 24px; } }
.partner::before {
  content: "";
  position: absolute;
  right: -100px; top: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, oklch(0.62 0.19 140 / 0.4), transparent 70%);
}
.partner__copy { position: relative; }
.partner__eye {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.partner__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.partner__desc { color: rgba(255,255,255,0.7); font-size: 15px; max-width: 50ch; }
.partner__badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  position: relative;
}
.badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  min-width: 200px;
}
.badge__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 18px;
}
.badge__label { font-size: 11px; color: rgba(255,255,255,0.55); font-family: var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; }
.badge__title { font-size: 14px; font-weight: 500; color: var(--paper); margin-top: 2px; }

/* ============ CTA ============ */
.cta {
  padding: 120px 0 100px;
  position: relative;
  text-align: center;
}
.cta .display { margin: 0 auto; max-width: 10ch; }
.cta__sub { margin-top: 28px; font-size: 18px; color: var(--muted); }
.cta__actions { margin-top: 42px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ============ footer ============ */
.footer {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 80px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
.footer__brand { display: flex; flex-direction: column; gap: 18px; max-width: 38ch; }
.footer__brand .logo {
  display: inline-flex;
  align-items: center;
}
.footer__brand .logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.footer__brand p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.5; }
.footer__col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
  font-weight: 400;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: rgba(255,255,255,0.8); font-size: 14px; transition: color 0.2s; }
.footer__col a:hover { color: var(--cyan); }

.footer__bottom {
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__giant {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(120px, 22vw, 340px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--paper);
  padding: 20px 0 0;
  text-align: center;
  background: linear-gradient(to bottom, var(--paper) 20%, transparent 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  overflow: hidden;
  user-select: none;
}

/* ============ reveal anim ============ */
/* Hide-state only applied after JS marks html.js-ready; .in sets the visible state.
   We do NOT rely on transitions/animations to set final state — reduce-motion users
   would get stuck at opacity:0. The animation is purely cosmetic enhancement. */
html.js-ready [data-reveal]:not(.in) {
  opacity: 0;
  transform: translateY(28px);
}
[data-reveal].in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
  }
}

/* ============ cursor blob ============ */
.cursor-glow {
  position: fixed;
  pointer-events: none;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 175, 232, 0.22), transparent 60%);
  transform: translate(-50%, -50%);
  z-index: 0;
  mix-blend-mode: multiply;
  transition: opacity 0.3s;
  opacity: 0;
}
body.has-cursor .cursor-glow { opacity: 1; }

/* ============ page-wide reused chrome ============ */
.pagehero {
  padding: 180px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.pagehero__kicker {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.pagehero__kicker .num { color: var(--ink); font-weight: 500; }
.pagehero h1 { max-width: 18ch; }
.pagehero__sub {
  margin-top: 28px;
  font-size: 20px;
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.45;
}

/* service detail row */
.svc-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (max-width: 820px) { .svc-row { grid-template-columns: 1fr; gap: 24px; padding: 50px 0; } }
.svc-row__idx { font-family: var(--f-mono); font-size: 12px; color: var(--lime-deep); letter-spacing: 0.1em; }
.svc-row__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(40px, 5vw, 72px); line-height: 0.98; letter-spacing: -0.04em; margin: 12px 0 0; }
.svc-row__desc { font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 52ch; margin-bottom: 24px; }
.svc-row__bullets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
@media (max-width: 620px) { .svc-row__bullets { grid-template-columns: 1fr; } }
.svc-row__bullets li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.svc-row__bullets li::before {
  content: "+";
  color: var(--lime-deep);
  font-weight: 600;
}

/* contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px 0 100px;
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__row { display: flex; gap: 16px; }
@media (max-width: 520px) { .form__row { flex-direction: column; } }
.field { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: 10px 2px;
  font-size: 16px;
  font-family: var(--f-sans);
  color: var(--ink);
  border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 100px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.contact-info { display: flex; flex-direction: column; gap: 32px; padding-top: 10px; }
.contact-info__item { display: flex; flex-direction: column; gap: 8px; }
.contact-info__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-info__value { font-size: 22px; font-family: var(--f-display); font-weight: 500; letter-spacing: -0.025em; }
.contact-info__value a { border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s; }
.contact-info__value a:hover { border-color: var(--ink); }

/* about */
.about-manifesto {
  padding: 60px 0 40px;
}
.manifesto__line {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 32px;
  align-items: baseline;
}
.manifesto__line em { font-style: normal; color: var(--cyan); }
.manifesto__line .n {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
  min-width: 40px;
}
.manifesto__line em {
  font-style: italic;
  color: var(--lime-deep);
}
.manifesto__line:last-child { border-bottom: 0; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
@media (max-width: 820px) { .values-grid { grid-template-columns: 1fr; } }
.value {
  padding: 34px 30px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.value:last-child { border-right: 0; }
@media (max-width: 820px) { .value { border-right: 0; } }
.value__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--lime-deep);
  margin-bottom: 30px;
}
.value__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.value__desc { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }
.tl {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tl:last-child { border-right: 0; }
.tl__year {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 42px;
  letter-spacing: -0.035em;
  line-height: 1;
}
.tl__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: uppercase;
}
.tl__desc { font-size: 14px; color: var(--muted); margin-top: 4px; }


/* ============ CASES PAGE ============ */
.cases-hero {
  padding: 160px 0 60px;
  border-bottom: 1px solid var(--line);
}
.cases-hero__meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 40px;
}
.cases-hero__count {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.cases-hero__count sup { font-size: 10px; margin-left: 2px; }
.cases-hero__title {
  font-size: clamp(56px, 9vw, 130px);
  letter-spacing: -0.04em;
  line-height: 0.94;
  margin-bottom: 40px;
}
.cases-hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--teal);
}
.cases-hero__lead {
  font-size: 20px;
  max-width: 62ch;
  color: var(--ink-2);
  margin-bottom: 48px;
}
.cases-filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.cases-filter {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  transition: all 0.2s;
  text-transform: uppercase;
}
.cases-filter:hover { border-color: var(--ink); }
.cases-filter.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Clients strip */
.clients {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.clients__label { margin-bottom: 24px; }
.clients__track {
  display: flex; flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
}
.client {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  opacity: 0.55;
  padding: 6px 0;
  transition: opacity 0.2s, color 0.2s;
  border-bottom: 1px solid transparent;
}
.client:hover { opacity: 1; color: var(--ink); border-bottom-color: var(--cyan); }
@media (max-width: 720px) { .client { font-size: 16px; } }

/* Case list */
.cases-list { padding: 80px 0 40px; }
.case {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.case:first-of-type { padding-top: 40px; }
.case:last-of-type { border-bottom: 0; }

.case__meta {
  display: flex; gap: 16px; align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.case__num { color: var(--ink); font-weight: 600; }
.case__year::before { content: "·"; margin-right: 16px; color: var(--line-strong); }
.case__tag {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--line-strong);
}
.case__tag--saas    { border-color: var(--cyan); color: var(--teal); }
.case__tag--ecom    { border-color: var(--teal); color: var(--teal-deep); background: rgba(26,175,232,0.08); }
.case__tag--gov     { border-color: var(--ink); color: var(--ink); background: rgba(11,21,32,0.04); }
.case__tag--produto { border-color: var(--teal-deep); color: var(--teal-deep); background: rgba(10,78,102,0.08); }

.case__body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 980px) {
  .case__body { grid-template-columns: 1fr; gap: 36px; }
}

.case__client {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.case__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.04;
  max-width: 20ch;
  margin-bottom: 22px;
}
.case__title em { font-style: italic; font-weight: 300; color: var(--teal); }
.case__desc {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 55ch;
  margin-bottom: 24px;
}
.case__bullets {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding-left: 0;
}
.case__bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}
.case__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 10px; height: 1px;
  background: var(--cyan);
}
.case__bullets strong { color: var(--ink); font-weight: 600; }

.case__stack {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 20px;
}
.case__stack span {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink-2);
  letter-spacing: 0.03em;
}
.case__links {
  display: flex; flex-wrap: wrap;
  gap: 18px 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.case__links a {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.case__links a:hover { color: var(--cyan); border-color: var(--cyan); }
.case__link-note {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.case__visual {
  position: sticky; top: 100px;
  background: var(--bg-warm);
  border-radius: var(--r-lg);
  padding: 32px;
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
@media (max-width: 980px) {
  .case__visual { position: relative; top: auto; max-width: 480px; }
}
.case__metric {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  gap: 6px;
}
.case__metric-num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(56px, 8vw, 96px);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}
.case__metric-num sup {
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-left: 4px;
  color: var(--muted);
  vertical-align: super;
  text-transform: uppercase;
}
.case__metric-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.case__art {
  position: absolute;
  bottom: -20px; right: -30px;
  width: 82%;
  max-width: 340px;
  opacity: 0.95;
}

/* Products grid */
.products {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.products__head { margin-bottom: 60px; display: flex; flex-direction: column; gap: 18px; }
.display-sm {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 28ch;
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 880px) { .products__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products__grid { grid-template-columns: 1fr; } }
.product {
  background: var(--paper);
  padding: 36px 30px;
  display: flex; flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
}
.product:hover { background: var(--bg); }
.product__mark {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 22px;
  color: var(--teal-deep);
  letter-spacing: -0.02em;
}
.product__mark span { color: var(--cyan); }
.product__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.015em;
}
.product__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}



/* ============ HOME CLIENTS + CASES ============ */
.home-clients__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.home-clients__link {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.home-clients__link:hover { color: var(--ink); border-color: var(--ink); }
.home-clients__track {
  display: flex; flex-wrap: wrap;
  gap: 12px 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}
@media (max-width: 900px) { .home-cases { grid-template-columns: 1fr; } }
.home-case {
  background: var(--paper);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  gap: 24px;
  min-height: 420px;
  transition: background 0.25s, color 0.25s;
  position: relative;
}
.home-case:hover { background: var(--ink); color: var(--paper); }
.home-case:hover .home-case__tag,
.home-case:hover .client,
.home-case:hover .home-case__year,
.home-case:hover .home-case__foot,
.home-case:hover .home-case__metric .label { color: var(--cyan-soft); }
.home-case:hover .home-case__metric .num { color: var(--paper); }

.home-case--dark { background: var(--ink); color: var(--paper); }
.home-case--dark .home-case__tag,
.home-case--dark .client,
.home-case--dark .home-case__year,
.home-case--dark .home-case__foot,
.home-case--dark .home-case__metric .label { color: var(--cyan-soft); }
.home-case--dark .home-case__metric .num { color: var(--paper); }
.home-case--dark:hover { background: var(--teal-deep); }

.home-case__head {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-case__tag { color: var(--teal); font-weight: 600; }
.home-case__metric { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.home-case__metric .num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 68px);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}
.home-case__metric .num sup {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-left: 4px;
  color: var(--muted);
  vertical-align: super;
  text-transform: uppercase;
}
.home-case__metric .label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.home-case__text .client {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.home-case__text h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.home-case__foot {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.home-case--dark .home-case__foot { border-top-color: rgba(255,255,255,0.15); }
.home-cases__cta { margin-top: 40px; display: flex; justify-content: center; }


/* ============ accessibility ============ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  text-decoration: none;
  z-index: 1000;
}
.skip-link:focus { left: 12px; outline: 2px solid var(--cyan); outline-offset: 2px; }

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

/* ============ hero v2 — split with live terminal ============ */
.hero--v2 { padding: 160px 0 100px; position: relative; }
.hero--v2 .hero__meta--full {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero--v2 .hero__title {
  font-size: clamp(44px, 6.4vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 40px;
  max-width: 1280px;
  text-wrap: balance;
}
.hero--v2 .hero__split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: start;
}
.hero--v2 .hero__left { min-width: 0; }
.hero--v2 .display { font-size: clamp(44px, 5.4vw, 86px); line-height: 0.96; letter-spacing: -0.03em; margin: 28px 0 32px; text-wrap: balance; }
.hero--v2 .hero__bottom { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 560px; align-items: start; padding-top: 0; border-top: none; }
.hero--v2 .lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--ink); max-width: 56ch; }
.hero--v2 .hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.dot--live {
  animation: pulseLive 1.4s ease-in-out infinite;
  background: #28C840 !important;
}
@keyframes pulseLive {
  0%, 100% { box-shadow: 0 0 0 0 rgba(40,200,64,0.6); }
  50% { box-shadow: 0 0 0 8px rgba(40,200,64,0); }
}

/* Terminal */
.hero__terminal { min-width: 0; }
.term {
  background: #0A1018;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(11,21,32,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.65;
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #131A23;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.term__dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.term__title {
  font-size: 11px;
  color: #6B7785;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.04em;
}
.term__body {
  padding: 18px 20px 20px;
  color: #C8D0DA;
  height: 360px;
  overflow: hidden;
  position: relative;
}
.term__body::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #0A1018);
  pointer-events: none;
}
.term__line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term__line--meta { color: #6B7785; font-size: 11px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.term__prompt { color: #1AAFE8; margin-right: 8px; }
.term__stream .ln {
  opacity: 0;
  transform: translateY(8px);
  animation: termIn 0.4s cubic-bezier(.2,.7,.2,1) forwards;
  padding: 2px 0;
}
@keyframes termIn { to { opacity: 1; transform: translateY(0); } }
.term__stream .t { color: #6B7785; }
.term__stream .tag { color: #1AAFE8; font-weight: 500; }
.term__stream .tag--ok { color: #28C840; }
.term__stream .tag--warn { color: #FEBC2E; }
.term__stream .tag--info { color: #5FC8F0; }
.term__stream .path { color: #C8D0DA; }
.term__stream .num { color: #E8AF5A; }
.term__stream .host { color: #8B95A3; }

@media (max-width: 1080px) {
  .hero--v2 .hero__split { grid-template-columns: 1fr; gap: 48px; }
  .hero--v2 .display { font-size: clamp(42px, 9vw, 82px); }
  .term__body { height: 280px; font-size: 12px; }
}


/* ============ CASE LEGADO ============ */
.case--legacy {
  background: linear-gradient(135deg, rgba(10, 78, 102, 0.04), rgba(26, 175, 232, 0.02));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 48px;
  margin-top: 32px;
}
.case--legacy .case__meta {
  opacity: 0.7;
}
.case--legacy .case__title {
  font-size: clamp(24px, 3.5vw, 36px);
  max-width: 780px;
}
.case__body--legacy {
  display: block;
}
.case__body--legacy .case__text {
  max-width: none;
}

.legacy-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.legacy-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.legacy-list li strong {
  font-family: var(--f-mono, 'JetBrains Mono', monospace);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep);
  padding-top: 2px;
}
.legacy-list li span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.legacy-list li em {
  font-style: normal;
  font-family: var(--f-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background: rgba(26, 175, 232, 0.08);
  border-radius: 3px;
}
@media (max-width: 720px) {
  .case--legacy { padding: 28px; }
  .legacy-list li { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
}


/* product card as link (cases page) */
.product--link { text-decoration: none; color: inherit; display: block; transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .3s; }
.product--link:hover { transform: translateY(-4px); border-color: var(--cyan); }
.product--link:hover .product__name { color: var(--cyan); }


/* footer social icons */
.footer__social { display: flex; gap: 12px; margin-top: 6px; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  transition: border-color .2s, color .2s, background .2s;
}
.footer__social a:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(26,175,232,0.08); }
.footer__social svg { width: 16px; height: 16px; fill: currentColor; }

/* 404 footer social — lighter version */
.foot__social { display: flex; gap: 10px; margin-top: 12px; }
.foot__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(11,21,32,0.15); color: rgba(11,21,32,0.6);
  transition: border-color .2s, color .2s;
}
.foot__social a:hover { border-color: var(--cyan); color: var(--cyan); }
.foot__social svg { width: 14px; height: 14px; fill: currentColor; }

/* contact page social list */
.contact-info__social { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.contact-info__social a { font-size: 18px; }


/* contact form feedback */
.form-status {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.45;
  max-width: 560px;
}
.form-status--ok {
  background: rgba(26,175,232,0.08);
  border: 1px solid rgba(26,175,232,0.3);
  color: var(--ink);
}
.form-status--err {
  background: rgba(217,83,79,0.06);
  border: 1px solid rgba(217,83,79,0.3);
  color: #8a2a26;
}
.form-status--err a { color: #8a2a26; text-decoration: underline; }
