/* ==========================================================================
   AleCodex Software Solutions — core stylesheet
   Dark, blue-gradient brand system. No frameworks, no build step.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --blue-500: #1e88ff;
  --blue-600: #0a5cff;
  --blue-400: #4fa8ff;
  --cyan-300: #7cd4ff;

  /* Surfaces */
  --bg: #04060c;
  --bg-elev: #070a13;
  --surface: rgba(255, 255, 255, 0.026);
  --surface-hi: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(120, 170, 255, 0.32);

  /* Type */
  --text: #e9edf6;
  --text-dim: #9aa5ba;
  --text-faint: #6b7688;

  /* Gradients */
  --grad-blue: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-600) 100%);
  --grad-silver: linear-gradient(160deg, #ffffff 0%, #c3ccdc 55%, #8e99ac 100%);
  --grad-brand: linear-gradient(100deg, #ffffff 0%, #dbe4f2 38%, var(--blue-400) 62%, var(--blue-600) 100%);

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.45s;

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 74px;

  /* Fonts */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

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

h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p { margin: 0; }

::selection { background: var(--blue-600); color: #fff; }

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

/* ---------- 3. Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 11vw, 132px); position: relative; }
.section--tight { padding-block: clamp(56px, 8vw, 92px); }

.section-head { max-width: 700px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-500));
}
.section-head--center .eyebrow::before { display: none; }

.lede {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.5vw, 1.09rem);
  margin-top: 20px;
  max-width: 62ch;
}
.section-head--center .lede { margin-inline: auto; }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.blue-text { color: var(--blue-400); }

/* Ambient backdrops */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}
.glow--a { width: 620px; height: 620px; background: rgba(30, 136, 255, 0.16); top: -220px; right: -180px; }
.glow--b { width: 520px; height: 520px; background: rgba(10, 92, 255, 0.12); bottom: -240px; left: -200px; }

.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.section > .wrap { position: relative; z-index: 1; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: 0 8px 26px -8px rgba(30, 136, 255, 0.65);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(30, 136, 255, 0.8);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--border-hi);
  background: var(--surface-hi);
  transform: translateY(-2px);
}

.btn--sm { padding: 10px 20px; font-size: 0.86rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-400);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 5. Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(4, 6, 12, 0.82);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
}
.brand__name span { color: var(--blue-400); }
.brand__sub {
  display: block;
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  color: var(--text-faint);
  margin-top: 5px;
  font-weight: 500;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  width: 18px;
  margin: 3px auto -5px;
  border-radius: 2px;
  background: var(--grad-blue);
}

/* The CTA inside the nav belongs to the mobile drawer only — on desktop the
   one in .header__cta covers it, and showing both duplicates the button. */
.nav .btn { display: none; }

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

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 17px;
  height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span + span { margin-top: 4.5px; }
.burger.is-open span:nth-child(1) { transform: translateY(6.1px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.1px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 104px));
  padding-bottom: clamp(64px, 9vw, 108px);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 26px;
}
.pill b {
  background: var(--grad-blue);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.hero h1 { margin-bottom: 24px; }
.hero__lede {
  color: var(--text-dim);
  font-size: clamp(1.03rem, 1.7vw, 1.16rem);
  max-width: 56ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-faint);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 15px; height: 15px; color: var(--blue-400); flex: none; }

/* Hero visual — code panel */
.code-panel {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.9), rgba(6, 9, 16, 0.9));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
}
.code-panel:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }

.code-panel__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2b3446; }
.dot:nth-child(3) { background: var(--blue-600); }
.code-panel__file {
  margin-left: 8px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  color: var(--text-faint);
}

.code-panel pre {
  margin: 0;
  padding: 22px 20px 26px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.85;
  overflow-x: auto;
  color: #c7d2e4;
}
.c-key { color: #7cb8ff; }
.c-fn { color: #a8dcff; }
.c-str { color: #8fe3b0; }
.c-com { color: #566379; font-style: italic; }
.c-num { color: #ffb86b; }

.code-panel__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-faint);
  background: rgba(30, 136, 255, 0.045);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #35d67f;
  box-shadow: 0 0 0 0 rgba(53, 214, 127, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(53, 214, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 214, 127, 0); }
}

/* ---------- 7. Pillar strip ---------- */
.pillars {
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.014);
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.pillar {
  background: var(--bg);
  padding: 30px clamp(16px, 2.4vw, 30px);
  text-align: center;
  transition: background 0.3s var(--ease);
}
.pillar:hover { background: var(--bg-elev); }
.pillar svg { width: 28px; height: 28px; margin: 0 auto 14px; color: var(--blue-400); }
.pillar h3 {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pillar p { font-size: 0.85rem; color: var(--text-faint); line-height: 1.55; }

/* ---------- 8. Cards / services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  padding: 30px 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.036), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(30, 136, 255, 0.13), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hi);
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.9);
}
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border-hi);
  background: rgba(30, 136, 255, 0.1);
  margin-bottom: 22px;
}
.card__icon svg { width: 23px; height: 23px; color: var(--blue-400); }

.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-dim); font-size: 0.94rem; }

.card__list { margin-top: 20px; display: grid; gap: 9px; }
.card__list li {
  display: flex;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--text-faint);
  line-height: 1.5;
}
.card__list li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--blue-500);
}

.card__index {
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  opacity: 0.5;
  z-index: 1;
}

/* ---------- 9. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.stat {
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.6vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---------- 10. Process ---------- */
.steps { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.step {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: clamp(18px, 3vw, 40px);
  padding: 30px clamp(22px, 3vw, 34px);
  background: var(--bg);
  transition: background 0.3s var(--ease);
}
.step:hover { background: var(--bg-elev); }
.step__num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(120, 170, 255, 0.55);
  line-height: 1;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 0.94rem; max-width: 68ch; }

/* ---------- 11. Tech stack ---------- */
.stack-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.stack-group {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.stack-group h3 {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 18px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.028);
  font-size: 0.81rem;
  color: var(--text-dim);
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.chip:hover { border-color: var(--border-hi); color: var(--text); transform: translateY(-2px); }

/* ---------- 12. Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }

.media-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(30, 136, 255, 0.1), rgba(255, 255, 255, 0.02));
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
}
.media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 30% 20%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 30% 20%, #000, transparent 72%);
}
.media-card > * { position: relative; }

.check-list { display: grid; gap: 15px; margin-top: 28px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; }
.check-list svg { width: 20px; height: 20px; flex: none; color: var(--blue-400); margin-top: 2px; }
.check-list b { display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: 3px; }
.check-list span { color: var(--text-dim); font-size: 0.9rem; line-height: 1.55; }

/* ---------- 13. Timeline ---------- */
.timeline { position: relative; display: grid; gap: 4px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--blue-500), rgba(30, 136, 255, 0.06));
}
.tl-item { position: relative; padding: 0 0 34px 40px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--blue-500);
  box-shadow: 0 0 0 4px rgba(30, 136, 255, 0.12);
}
.tl-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 8px;
}
.tl-item h3 { font-size: 1.14rem; }
.tl-item__org { color: var(--blue-400); font-size: 0.92rem; font-weight: 500; }
.tl-item__date {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.76rem;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}
.tl-item ul { display: grid; gap: 8px; margin-top: 12px; }
.tl-item ul li {
  display: flex;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}
.tl-item ul li::before {
  content: "";
  flex: none;
  width: 5px; height: 5px;
  margin-top: 9px;
  border-radius: 50%;
  background: rgba(120, 170, 255, 0.5);
}

/* ---------- 14. Accordion (FAQ) ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.faq details[open] { border-color: var(--border-hi); background: var(--surface-hi); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 1.8px solid var(--blue-400);
  border-bottom: 1.8px solid var(--blue-400);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
  margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq__body { padding: 0 24px 22px; color: var(--text-dim); font-size: 0.94rem; }

/* ---------- 15. CTA band ---------- */
.cta-band {
  position: relative;
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 68px) clamp(28px, 5vw, 60px);
  background: linear-gradient(135deg, rgba(30, 136, 255, 0.16), rgba(10, 92, 255, 0.05) 55%, transparent);
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  background: rgba(30, 136, 255, 0.2);
  filter: blur(120px);
  top: -260px; left: 50%;
  transform: translateX(-50%);
}
.cta-band > * { position: relative; }
.cta-band .lede { margin-inline: auto; }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}

/* ---------- 16. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.info-list { display: grid; gap: 12px; margin-top: 32px; }
.info-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s;
}
.info-item:hover { border-color: var(--border-hi); transform: translateX(4px); background: var(--surface-hi); }
.info-item__icon {
  width: 42px; height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(30, 136, 255, 0.12);
  border: 1px solid var(--border-hi);
}
.info-item__icon svg { width: 19px; height: 19px; color: var(--blue-400); }
.info-item small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 3px;
}
.info-item strong { font-weight: 500; font-size: 0.95rem; word-break: break-word; }

/* Form */
.form-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  padding: clamp(26px, 4vw, 40px);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field label span { color: var(--blue-400); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: rgba(4, 6, 12, 0.6);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fa8ff' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
}
.field select option { background: #0a0e18; color: var(--text); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(30, 136, 255, 0.16);
  background: rgba(4, 6, 12, 0.9);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.hp { position: absolute; left: -9999px; opacity: 0; }

.form-note { font-size: 0.8rem; color: var(--text-faint); margin-top: 16px; text-align: center; }

.form-status {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: rgba(53, 214, 127, 0.1); border: 1px solid rgba(53, 214, 127, 0.35); color: #8ff0bc; }
.form-status--err { background: rgba(255, 90, 90, 0.1); border: 1px solid rgba(255, 90, 90, 0.35); color: #ffb0b0; }

/* ---------- 17. Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding-block: clamp(48px, 7vw, 72px) 28px;
  position: relative;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 52px);
  padding-bottom: 44px;
}
.footer__about { color: var(--text-faint); font-size: 0.9rem; margin-top: 18px; max-width: 34ch; }
.footer h4 {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 16px;
}
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: var(--text-faint); font-size: 0.9rem; transition: color 0.2s, padding-left 0.25s var(--ease); }
.footer__links a:hover { color: var(--blue-400); padding-left: 4px; }

.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}
.socials a:hover { border-color: var(--border-hi); transform: translateY(-3px); background: var(--surface-hi); }
.socials svg { width: 17px; height: 17px; color: var(--text-dim); }
.socials a:hover svg { color: var(--blue-400); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ---------- 18. Page header (inner pages) ---------- */
.page-head {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(50px, 7vw, 82px));
  padding-bottom: clamp(44px, 6vw, 66px);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.crumbs { font-size: 0.82rem; color: var(--text-faint); margin-bottom: 18px; }
.crumbs a:hover { color: var(--blue-400); }
.crumbs span { margin-inline: 8px; opacity: 0.5; }

/* ---------- 19. Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; }
  .code-panel { transform: none; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .burger { display: grid; }
  .header__cta .btn { display: none; }

  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px var(--gutter) 26px;
    background: rgba(4, 6, 12, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 13px 14px; border-radius: var(--r-sm); font-size: 1rem; }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { background: var(--surface); color: var(--blue-400); }
  .nav .btn { display: inline-flex; margin-top: 12px; }
  .nav .btn--primary { color: #fff; }
}

@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 10px; }
  .field-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .pillars__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .brand__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 21. Print ---------- */
@media print {
  .header, .footer, .cta-band, .burger { display: none; }
  body { background: #fff; color: #000; }
}
