/* ======================================================================
   AISOC — landing page styles
   Värit, fontit ja koko visuaalinen kieli on kuratoitu välttämään
   "AI-generic" -ulkoasua. Ei Interiä, ei purple/blue gradientteja.
   ====================================================================== */

:root {
  --ink: #0a0d12;
  --ink-2: #141821;
  --ink-3: #1f2530;
  --bone: #f5f3ec;
  --bone-2: #ebe7d8;
  --paper: #ffffff;
  --text-on-dark: #e8e6dc;
  --text-on-dark-mute: #a0a4ae;
  --text-on-light: #1a1f2e;
  --text-on-light-mute: #5b6273;
  --line-dark: #232938;
  --line-light: #d9d4c1;

  --ember: #ff6a3d;
  --ember-2: #ff8559;
  --ember-shade: #c8431d;
  --sage: #9cb380;
  --sage-soft: #c5d4ad;
  --red: #e94545;

  --display: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --body: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --container: 1180px;
  --container-narrow: 820px;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --t-fast: 160ms ease-out;
  --t: 240ms ease-out;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-on-dark);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container--narrow { max-width: var(--container-narrow); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(10, 13, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t);
}
.nav.is-scrolled {
  background: rgba(10, 13, 18, 0.92);
  border-bottom-color: var(--line-dark);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-on-dark);
}
.nav__mark {
  display: inline-block;
  width: 32px;
  height: 32px;
  color: var(--text-on-dark);
}
.nav__mark svg { width: 100%; height: 100%; }
.nav__wordmark {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--text-on-dark);
}
.nav__byempor {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-on-dark-mute);
  letter-spacing: 0.04em;
  padding-left: 8px;
  border-left: 1px solid var(--line-dark);
}
.nav__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav__links a {
  color: var(--text-on-dark-mute);
  transition: color var(--t-fast);
}
.nav__links a:hover { color: var(--text-on-dark); }
.nav__cta {
  padding: 9px 16px;
  border: 1px solid var(--ember);
  color: var(--ember) !important;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__cta:hover {
  background: var(--ember);
  color: var(--ink) !important;
}
.nav__burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-on-dark);
  margin: 4px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn--ember {
  background: var(--ember);
  color: var(--ink);
}
.btn--ember:hover {
  background: var(--ember-2);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--line-dark);
}
.btn--ghost:hover {
  border-color: var(--text-on-dark);
}
.btn--outline {
  background: transparent;
  color: var(--text-on-light);
  border-color: var(--text-on-light);
}
.btn--outline:hover {
  background: var(--text-on-light);
  color: var(--bone);
}

/* ---------- Typography ---------- */
.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin: 0 0 16px;
}
.h2 em {
  font-style: normal;
  color: var(--ember);
}
.h2--dark { color: var(--text-on-light); }
.h2--dark em { color: var(--ember-shade); }
.h2--bone { color: var(--bone); }
.h2--bone em { color: var(--ink); }

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-on-dark-mute);
  max-width: 640px;
  margin: 0;
}
.lead--dark { color: var(--text-on-light-mute); }
.lead--bone { color: rgba(245, 243, 236, 0.92); max-width: 720px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 16px;
}
.kicker__line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--ember);
}
.kicker--light { color: var(--bone); }
.kicker--light .kicker__line { background: var(--bone); }

/* ---------- Section primitives ---------- */
.section {
  padding: clamp(72px, 10vw, 130px) 0;
}
.section--dark { background: var(--ink); }
.section--bone { background: var(--bone); color: var(--text-on-light); }
.section--ember {
  background: var(--ember);
  color: var(--ink);
}
.section__head { max-width: 760px; margin-bottom: 56px; }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  vertical-align: middle;
}
.dot--ember { background: var(--ember); box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.18); animation: pulse 2.4s ease-in-out infinite; }
.dot--sage  { background: var(--sage); box-shadow: 0 0 0 4px rgba(156, 179, 128, 0.2); }
.dot--red   { background: var(--red); box-shadow: 0 0 0 4px rgba(233, 69, 69, 0.2); animation: pulse 0.9s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(255, 106, 61, 0.05); }
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 110px) 0 clamp(72px, 10vw, 130px);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(255, 106, 61, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 0% 80%, rgba(156, 179, 128, 0.05) 0%, transparent 50%),
    var(--ink);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.15;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.hero__copy { min-width: 0; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-mute);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: var(--text-on-dark);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .hero__title { white-space: normal; font-size: clamp(34px, 8vw, 46px); }
}
.hero__title em {
  font-style: italic;
  color: var(--ember);
  font-weight: 500;
}
.hero__sub {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--text-on-dark-mute);
  max-width: 560px;
  margin: 0 0 36px;
}
.hero__sub strong {
  color: var(--text-on-dark);
  font-weight: 600;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}
.metric { display: flex; flex-direction: column; gap: 6px; }
.metric__num {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  line-height: 1;
}
.metric__num .metric__unit {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-on-dark-mute);
  margin-left: 2px;
}
.metric__label {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-on-dark-mute);
  letter-spacing: 0.02em;
}

/* Terminal ----------------------------- */
.terminal {
  background: linear-gradient(180deg, #11151e 0%, #0e1219 100%);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
  max-width: 520px;
  width: 100%;
  justify-self: end;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--line-dark);
}
.terminal__lights {
  display: inline-flex;
  gap: 6px;
}
.terminal__lights i {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2c3240;
}
.terminal__title {
  flex: 1;
  font-size: 11.5px;
  color: var(--text-on-dark-mute);
  text-align: center;
  letter-spacing: 0.04em;
}
.terminal__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--sage);
  transition: color var(--t);
}
.terminal__status.is-incident { color: var(--red); }
.terminal__body {
  height: 360px;
  padding: 16px 18px;
  overflow: hidden;
  position: relative;
}
.terminal__body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, rgba(14, 18, 25, 0.9) 100%);
}
.terminal__line {
  display: flex;
  gap: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  opacity: 0;
  transform: translateY(6px);
  animation: termIn 200ms ease-out forwards;
}
@keyframes termIn {
  to { opacity: 1; transform: translateY(0); }
}
.terminal__line .ts { color: #5b6273; }
.terminal__line .src { color: #9aa3b2; }
.terminal__line .msg { color: var(--text-on-dark-mute); }
.terminal__line.is-info .msg  { color: var(--text-on-dark); }
.terminal__line.is-warn .msg  { color: var(--ember); }
.terminal__line.is-warn .src  { color: var(--ember); }
.terminal__line.is-incident { background: rgba(233, 69, 69, 0.08); padding: 2px 6px; margin-left: -6px; margin-right: -6px; border-left: 2px solid var(--red); }
.terminal__line.is-incident .msg { color: var(--red); font-weight: 500; }
.terminal__line.is-incident .src { color: var(--red); }
.terminal__line.is-action .msg { color: var(--sage); }
.terminal__line.is-action .src { color: var(--sage); }
.terminal__footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--line-dark);
  font-size: 11px;
  color: var(--text-on-dark-mute);
  letter-spacing: 0.04em;
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-on-dark-mute);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__scroll span {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: var(--text-on-dark-mute);
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.3); opacity: 0.4; }
  50%      { transform: scaleY(1); opacity: 1; }
}

/* ===================== PROBLEM CARDS ===================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  padding: 32px 28px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: border-color var(--t), transform var(--t);
}
.card:hover {
  border-color: var(--ember);
  transform: translateY(-2px);
}
.card__num {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ember);
  text-transform: uppercase;
}
.card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  margin: 14px 0 10px;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
}
.card p {
  margin: 0;
  color: var(--text-on-dark-mute);
  font-size: 15px;
  line-height: 1.55;
}

/* ===================== FLOW (3 vaihetta) ===================== */
.flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.flow__step {
  padding: 36px 32px;
  border-right: 1px solid var(--line-light);
  position: relative;
}
.flow__step:last-child { border-right: 0; }
.flow__step--active {
  background: linear-gradient(180deg, rgba(255, 106, 61, 0.06) 0%, transparent 100%);
}
.flow__num {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ember-shade);
  margin-bottom: 16px;
}
.flow__step h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 18px;
  letter-spacing: -0.015em;
  color: var(--text-on-light);
}
.flow__list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.flow__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text-on-light-mute);
}
.flow__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 1px;
  background: var(--ember);
}
.flow__list em {
  color: var(--text-on-light);
  font-style: normal;
  font-weight: 600;
}
.flow__tag {
  display: inline-block;
  font-size: 11px;
  padding: 5px 10px;
  background: var(--bone-2);
  color: var(--text-on-light-mute);
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

/* ===================== COMPARE TABLE ===================== */
.compare {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare__table th, .compare__table td {
  padding: 18px 24px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-dark);
}
.compare__table tbody tr:last-child th,
.compare__table tbody tr:last-child td {
  border-bottom: 0;
}
.compare__table thead th {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
  background: rgba(255, 255, 255, 0.02);
  font-weight: 500;
}
.compare__table tbody td:first-child {
  color: var(--text-on-dark);
  font-weight: 500;
}
.compare__table .compare__us {
  color: var(--ember);
  background: rgba(255, 106, 61, 0.04);
}
.compare__table thead .compare__us { color: var(--ember); }

/* ===================== PRICING ===================== */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price {
  position: relative;
  padding: 36px 28px;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.price--feature {
  border-color: var(--ember);
  background: linear-gradient(180deg, rgba(255, 106, 61, 0.04) 0%, var(--paper) 60%);
  box-shadow: 0 24px 60px -28px rgba(255, 106, 61, 0.4);
}
.price__badge {
  position: absolute;
  top: -12px;
  left: 28px;
  padding: 4px 10px;
  background: var(--ember);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
}
.price h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 4px;
  color: var(--text-on-light);
  letter-spacing: -0.015em;
}
.price__for {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-on-light-mute);
  margin: 0 0 24px;
  letter-spacing: 0.04em;
}
.price__amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-light);
}
.price__big {
  font-family: var(--display);
  font-weight: 500;
  font-size: 44px;
  letter-spacing: -0.025em;
  color: var(--text-on-light);
  line-height: 1;
}
.price__per {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-on-light-mute);
}
.price__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
.price__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: var(--text-on-light-mute);
}
.price__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--ember);
  border-bottom: 2px solid var(--ember);
  transform: rotate(-45deg);
}
.pricing__foot {
  text-align: center;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-on-light-mute);
}

/* ===================== FAQ ===================== */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-light);
}
.faq__item {
  border-bottom: 1px solid var(--line-light);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-on-light);
  letter-spacing: -0.01em;
  transition: color var(--t-fast);
}
.faq__item summary:hover { color: var(--ember-shade); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.faq__plus::before, .faq__plus::after {
  content: "";
  position: absolute;
  background: var(--text-on-light);
  transition: transform var(--t);
}
.faq__plus::before {
  top: 50%; left: 0;
  width: 16px; height: 1.5px;
  transform: translateY(-50%);
}
.faq__plus::after {
  left: 50%; top: 0;
  width: 1.5px; height: 16px;
  transform: translateX(-50%);
}
.faq__item[open] .faq__plus::after { transform: translateX(-50%) rotate(90deg); }
.faq__body {
  padding: 0 0 22px;
  max-width: 760px;
}
.faq__body p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-on-light-mute);
}
.faq__body em {
  font-style: italic;
  color: var(--text-on-light);
}

/* ===================== INSURANCE (ember section) ===================== */
.section--ember .kicker { color: var(--ink); }
.section--ember .kicker__line { background: var(--ink); }
.checks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  color: rgba(245, 243, 236, 0.94);
}
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--ink);
  color: var(--bone);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===================== TECH STACK ===================== */
.stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.stack__card {
  background: var(--ink-2);
  padding: 32px 28px;
  transition: background var(--t);
}
.stack__card:hover { background: var(--ink-3); }
.stack__card h4.mono {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 12px;
}
.stack__card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
}
.stack__card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-on-dark-mute);
  line-height: 1.55;
}

/* ===================== CTA ===================== */
.section--cta {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 106, 61, 0.12) 0%, transparent 60%),
    var(--ink);
  border-top: 1px solid var(--line-dark);
}
.contact {
  margin-top: 40px;
  padding: 32px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
}
.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.field span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-mute);
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 15px;
  padding: 12px 14px;
  background: var(--ink);
  border: 1px solid var(--line-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-sm);
  width: 100%;
  transition: border-color var(--t-fast);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ember);
}
.field textarea {
  resize: vertical;
  min-height: 90px;
  font-family: var(--body);
}
.contact__submit {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.contact__alt {
  margin: 0;
  color: var(--text-on-dark-mute);
  font-size: 13.5px;
}
.contact__alt a { color: var(--ember); }
.contact__alt a:hover { text-decoration: underline; }

/* ===================== FOOTER ===================== */
.footer {
  background: #06080c;
  border-top: 1px solid var(--line-dark);
  padding: 64px 0 24px;
  color: var(--text-on-dark-mute);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  align-items: start;
}
.footer__brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-on-dark);
}
.footer__brand .nav__mark { width: 32px; height: 32px; }
.footer__title {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-on-dark);
  margin: 0 0 4px;
}
.footer__sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-on-dark-mute);
  max-width: 320px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__cols h5 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer__cols a {
  display: block;
  font-size: 14px;
  color: var(--text-on-dark-mute);
  margin-bottom: 8px;
  transition: color var(--t-fast);
}
.footer__cols a:hover { color: var(--ember); }
.footer__legal {
  max-width: var(--container);
  margin: 48px auto 0;
  padding: 22px 28px 0;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-on-dark-mute);
  letter-spacing: 0.04em;
}

/* ===================== Reveal-on-scroll ===================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .terminal { max-width: 560px; }
  .hero__metrics { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cards, .flow, .pricing, .stack { grid-template-columns: 1fr 1fr; }
  .stack { grid-template-columns: 1fr 1fr; }
  .flow__step { border-right: 0; border-bottom: 1px solid var(--line-light); }
  .flow__step:nth-child(odd) { border-right: 1px solid var(--line-light); }
  .footer__inner { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .contact__row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__burger.is-open + .nav__links,
  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 28px 24px;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
  }
  .nav__links.is-open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav__byempor { display: none; }
  .hero__title { font-size: clamp(36px, 9vw, 48px); }
  .hero__metrics { grid-template-columns: 1fr; }
  .cards, .flow, .pricing, .stack { grid-template-columns: 1fr; }
  .flow__step { border-right: 0 !important; border-bottom: 1px solid var(--line-light); }
  .flow__step:last-child { border-bottom: 0; }
  .compare__table { font-size: 13px; }
  .compare__table th, .compare__table td { padding: 12px 14px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__legal { flex-direction: column; gap: 8px; }
  .contact { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
