/* ═══════════════════════════════════════════════════════
   Codeploy — Tech Minimalista
   Acento único: #1C509B • Base: Inter
   ═══════════════════════════════════════════════════════ */

:root {
  --bg: #FAFAFA;
  --bg-elev: #FFFFFF;
  --bg-dark: #0A0A0A;
  --bg-dark-2: #141414;
  --fg: #0A0A0A;
  --fg-muted: #6B6B6B;
  --fg-subtle: #9A9A9A;
  --line: rgba(10, 10, 10, 0.08);
  --line-strong: rgba(10, 10, 10, 0.14);
  --accent: #1C509B;
  --accent-hover: #2563B8;
  --accent-soft: rgba(28, 80, 155, 0.08);
  --radius: 10px;
  --radius-lg: 16px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-head: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
}

p { margin: 0; color: var(--fg-muted); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Shared utilities ── */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--fg-subtle);
}

.section {
  padding: 140px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
@media (max-width: 900px) { .section { padding: 88px 0; } }

.section--dark {
  background: var(--bg-dark);
  color: #E8E8E8;
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #FFF; }
.section--dark p { color: #9E9E9E; }
.section--dark .eyebrow { color: #7A7A7A; }
.section--dark .eyebrow::before { background: #4A4A4A; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  margin-bottom: 72px;
  align-items: end;
}
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}

.section-head h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.section-head .lead {
  font-size: 17px;
  line-height: 1.55;
  max-width: 52ch;
}

/* ── Navbar ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(250, 250, 250, 0.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav--scrolled { border-bottom-color: var(--line); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .nav__inner { padding: 0 20px; } }

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 15px;
}
.nav__brand img { height: 22px; width: auto; }

.nav__links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--fg-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--fg); background: var(--line); }
@media (max-width: 900px) { .nav__links { display: none; } }

.nav__cta {
  padding: 8px 16px;
  background: var(--fg);
  color: #FFF;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav__cta:hover { background: var(--accent); }
.nav__cta svg { width: 12px; height: 12px; }

/* ── Hero ── */
.hero {
  padding-top: 160px;
  padding-bottom: 120px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
@media (max-width: 900px) {
  .hero { padding-top: 120px; padding-bottom: 60px; }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 32px;
  background: var(--bg-elev);
}
.hero__status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
}
.hero__title .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero__title--serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; letter-spacing: -0.02em; }
.hero__title--serif .accent { font-weight: 400; }
.hero__title--mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(36px, 5.2vw, 68px); }

.hero__sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 48ch;
  margin-bottom: 40px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
}
.btn svg { width: 14px; height: 14px; }
.btn--primary { background: var(--fg); color: #FFF; }
.btn--primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn--ghost { background: var(--bg-elev); color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--fg); }

.hero__meta {
  margin-top: 56px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero__meta-item .num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg);
  display: block;
}
.hero__meta-item .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 8px;
  display: block;
}

/* Hero visual canvas */
.hero__visual {
  aspect-ratio: 1 / 1;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
.hero__visual canvas { display: block; width: 100%; height: 100%; }
.hero__visual-label {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__visual-label::before {
  content: '';
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
}
.hero__visual-corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-subtle);
}
.hero__visual-corner--tr { top: 16px; right: 16px; }
.hero__visual-corner--bl { bottom: 16px; left: 16px; }
.hero__visual-corner--br { bottom: 16px; right: 16px; }

/* Terminal variant */
.term {
  padding: 48px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--fg);
  background:
    radial-gradient(circle at 20% 10%, rgba(28, 80, 155, 0.06), transparent 40%),
    var(--bg-elev);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.term__line { display: flex; gap: 16px; }
.term__num { color: var(--fg-subtle); width: 20px; text-align: right; user-select: none; }
.term__kw { color: var(--accent); }
.term__str { color: #7a7a3a; }
.term__cmt { color: var(--fg-subtle); }
.term__caret { display: inline-block; width: 8px; height: 14px; background: var(--accent); vertical-align: text-bottom; animation: blink 1.1s steps(2) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* Geo variant */
.geo {
  height: 100%;
  position: relative;
  background:
    linear-gradient(135deg, #F4F4F4 0%, #FFFFFF 100%);
  overflow: hidden;
}
.geo__shape {
  position: absolute;
  border-radius: 50%;
}
.geo__shape--1 { width: 60%; aspect-ratio: 1; background: var(--accent); left: -10%; top: 20%; opacity: 0.9; }
.geo__shape--2 { width: 40%; aspect-ratio: 1; background: var(--fg); right: 10%; bottom: -10%; border-radius: 0; }
.geo__shape--3 { width: 24%; aspect-ratio: 1; border: 1px solid var(--fg); border-radius: 0; top: 14%; right: 14%; transform: rotate(18deg); }
.geo__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: multiply;
  opacity: 0.6;
}

/* ── Marquee clients ── */
.marquee {
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  gap: 72px;
  width: max-content;
  animation: scroll 38s linear infinite;
}
.marquee__item {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.marquee__item::after {
  content: '';
  width: 4px; height: 4px; background: var(--fg-subtle); border-radius: 50%;
  margin-left: 72px;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service {
  background: var(--bg-elev);
  padding: 36px 32px 40px;
  transition: background 0.25s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}
.service:hover { background: #FDFDFD; }
.service:hover .service__arrow { transform: translate(4px, -4px); color: var(--accent); }

.service__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.service__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-subtle);
  letter-spacing: 0.1em;
}
.service__icon {
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
}
.service__icon svg { width: 16px; height: 16px; }

.service h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.service p {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 20px;
}

.service__tags {
  list-style: none;
  padding: 0;
  margin: auto 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service__tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.service__arrow {
  position: absolute;
  top: 32px; right: 32px;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
  color: var(--fg-subtle);
}
.service__arrow svg { width: 16px; height: 16px; }

/* ── Products ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }

.product {
  background: var(--bg-dark-2);
  border: 1px solid #222;
  border-radius: var(--radius-lg);
  padding: 28px 24px 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}
.product::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(28, 80, 155, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.product:hover { transform: translateY(-4px); border-color: var(--accent); }
.product:hover::before { opacity: 1; }

.product__icon {
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.product__icon svg { width: 18px; height: 18px; }

.product h3 {
  color: #FFF;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.product p {
  font-size: 13px;
  line-height: 1.5;
  color: #9A9A9A;
  flex: 1;
  position: relative;
  z-index: 1;
}
.product__link {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #CFCFCF;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.product__link svg { width: 10px; height: 10px; transition: transform 0.2s; }
.product:hover .product__link { color: #FFF; }
.product:hover .product__link svg { transform: translateX(3px); }

/* ── About / Mission / Values ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 120px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 80px; } }

.about-grid p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 18px;
  color: var(--fg-muted);
}

.mission-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  background: var(--bg-elev);
}
.mission-card h3 {
  font-size: 14px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
}
.mission-card .quote {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 1000px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .values-grid { grid-template-columns: 1fr; } }

.value {
  background: var(--bg-elev);
  padding: 32px 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.value__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.value h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.value p {
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
}
.value__quote {
  margin-top: 16px;
  font-size: 12px;
  font-style: italic;
  color: var(--fg-subtle);
  border-top: 1px dashed var(--line-strong);
  padding-top: 14px;
}

/* ── Clients ── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }

.client {
  background: var(--bg-elev);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 140px;
  justify-content: space-between;
  transition: background 0.2s;
}
.client:hover { background: #FDFDFD; }
.client h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.client__sector {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.client__link {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.client__link svg { width: 10px; height: 10px; }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.contact-info .email {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 12px;
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.contact-info .email:hover { border-color: var(--accent); }
.contact-info p { font-size: 17px; line-height: 1.55; max-width: 40ch; }

.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  padding: 36px;
}
.contact-type {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}
@media (max-width: 600px) { .contact-type { grid-template-columns: repeat(2, 1fr); } }
.contact-type input { display: none; }
.contact-type label {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.contact-type label:hover { color: var(--fg); border-color: var(--fg-muted); }
.contact-type input:checked + label { background: var(--fg); color: #FFF; border-color: var(--fg); }

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.field input, .field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elev);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form button[type="submit"] {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  background: var(--fg);
  color: #FFF;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.contact-form button[type="submit"]:hover { background: var(--accent); }

/* ── Footer ── */
.foot {
  background: var(--bg-dark);
  color: #9A9A9A;
  padding: 80px 0 32px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid #1f1f1f;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr; } }

.foot h5 {
  color: #CFCFCF;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot a { color: #9A9A9A; font-size: 14px; transition: color 0.2s; }
.foot a:hover { color: #FFF; }
.foot-brand p { color: #7A7A7A; font-size: 14px; max-width: 34ch; margin-top: 14px; }
.foot-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #6A6A6A;
}

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.4s; }

/* ── Language switcher ── */
.lang-switcher {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-elev);
  margin-left: 10px;
}
.lang-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  color: var(--fg-muted);
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.18s;
}
.lang-btn:last-child { border-right: none; }
.lang-btn:hover { color: var(--fg); }
.lang-btn.active { background: var(--fg); color: #FFF; }
.nav__inner .lang-switcher { margin-left: 0; }
@media (max-width: 720px) { .lang-switcher { display: none; } }

/* ── Subpage (service/product detail) ── */
.sub-hero {
  padding: 150px 0 90px;
  border-bottom: 1px solid var(--line);
}
.sub-hero__back {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  transition: color 0.2s;
}
.sub-hero__back:hover { color: var(--fg); }
.sub-hero__title {
  font-family: var(--font-head);
  font-size: clamp(44px, 6.5vw, 88px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 24px 0 28px;
  max-width: 16ch;
}
.sub-hero__title em { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; color: var(--accent); }
.sub-hero__sub {
  font-size: 18px;
  line-height: 1.55;
  max-width: 58ch;
  color: var(--fg-muted);
}
.sub-hero__meta {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.sub-hero__meta strong { color: var(--fg); font-weight: 500; }

/* ── Capability grid ── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } }
.cap {
  background: var(--bg-elev);
  padding: 32px 28px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}
.cap__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.cap h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.cap p { font-size: 14px; line-height: 1.55; }

/* Approach steps */
.approach {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 800px) { .approach { grid-template-columns: repeat(2, 1fr); } }
.approach__step {
  background: var(--bg-elev);
  padding: 32px 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.approach__num {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--fg-subtle);
}
.approach__step h4 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 8px;
}
.approach__step p { font-size: 13px; line-height: 1.55; }

/* Use cases list */
.uclist { border-top: 1px solid var(--line); }
.uc {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 180px;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
@media (max-width: 800px) {
  .uc { grid-template-columns: 40px 1fr; row-gap: 6px; }
  .uc__desc, .uc__sector { grid-column: 2; }
}
.uc__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-subtle);
  letter-spacing: 0.06em;
}
.uc__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.uc__desc { font-size: 14px; line-height: 1.55; color: var(--fg-muted); }
.uc__sector {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-align: right;
}
@media (max-width: 800px) { .uc__sector { text-align: left; } }

/* Tech chips */
.tech-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-chips span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg);
  background: var(--bg-elev);
}

/* Big CTA band */
.cta-band {
  background: var(--bg-dark);
  color: #FFF;
  border-radius: var(--radius-lg);
  padding: 72px 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 48px 32px; } }
.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(28,80,155,0.3), transparent 60%);
  pointer-events: none;
}
.cta-band h2 {
  color: #FFF;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  position: relative;
  z-index: 1;
}
.cta-band p { color: #AAA; position: relative; z-index: 1; font-size: 16px; }
.cta-band .btn { position: relative; z-index: 1; align-self: start; }
.cta-band .btn--primary { background: #FFF; color: var(--fg); }
.cta-band .btn--primary:hover { background: var(--accent); color: #FFF; }

/* Product spec table */
.spec {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
.spec__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.spec__row:last-child { border-bottom: none; }
@media (max-width: 700px) { .spec__row { grid-template-columns: 1fr; gap: 4px; padding: 18px 20px; } }
.spec__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.spec__v { font-size: 15px; color: var(--fg); }

/* Product preview box */
.product-preview {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  position: relative;
  overflow: hidden;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-preview::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.product-preview::after {
  content: '';
  position: absolute;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(28,80,155,0.45), transparent 70%);
  top: 20%; left: 20%;
  filter: blur(10px);
}
.product-preview > * { position: relative; z-index: 1; }

/* ── Tweaks panel ── */
.tweaks {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 100;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 18px;
  width: 280px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  font-size: 13px;
  display: none;
}
.tweaks.open { display: block; }
.tweaks__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.tweaks__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.tweaks__close { color: var(--fg-muted); font-size: 18px; line-height: 1; }
.tweaks__group { margin-bottom: 16px; }
.tweaks__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 8px;
  display: block;
}
.tweaks__opts { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks__opt {
  flex: 1;
  min-width: 70px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 12px;
  color: var(--fg);
  background: var(--bg);
  transition: all 0.18s;
  text-align: center;
}
.tweaks__opt:hover { border-color: var(--fg-muted); }
.tweaks__opt.active { background: var(--fg); color: #FFF; border-color: var(--fg); }
