/* ============================================================
   KerMor LLC — Design System
   Dark, modern, animated. Self-contained (no framework).
   ============================================================ */

:root {
  --bg: #05070f;
  --bg-soft: #0a0e1c;
  --surface: #0d1224;
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);

  --text: #e8ecf8;
  --text-soft: #aab4cf;
  --muted: #7e89a6;

  --cyan: #22d3ee;
  --indigo: #6366f1;
  --violet: #a855f7;
  --accent-grad: linear-gradient(100deg, #22d3ee 0%, #6366f1 55%, #a855f7 100%);

  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.22);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
}

p { margin: 0 0 1em; color: var(--text-soft); }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #67e8f9; }

::selection { background: rgba(99, 102, 241, 0.45); color: #fff; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container-narrow { width: min(880px, 92%); margin-inline: auto; }

section { position: relative; padding: 96px 0; }
section.tight { padding: 64px 0; }

/* ---------- Utility text ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--accent-grad);
  border-radius: 2px;
}

.section-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.section-lead { font-size: 1.12rem; color: var(--text-soft); max-width: 640px; }
.center { text-align: center; }
.center .section-lead, .center .eyebrow { margin-inline: auto; }
.center .eyebrow::before { display: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--accent-grad);
  color: #060814;
  box-shadow: 0 8px 30px rgba(56, 122, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(99, 102, 241, 0.5);
  color: #060814;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 7, 15, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--text); }
.logo .logo-mark { width: 38px; height: 38px; flex: none; }
.logo-img { height: 30px; width: auto; display: block; }
.logo span em { font-style: normal; color: var(--cyan); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a, .nav .dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.25s, background 0.25s;
}
.nav > a:hover, .nav > a.active,
.nav .dropdown > a:hover, .nav .dropdown > a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.nav .btn { padding: 10px 22px; font-size: 14px; margin-left: 10px; }
.nav .btn:hover svg { transform: translateX(3px); }

.dropdown { position: relative; }
.dropdown .caret { width: 11px; height: 11px; transition: transform 0.3s; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 12px;
  background: rgba(11, 16, 32, 0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.dropdown.open .dropdown-menu,
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown.open .caret, .dropdown:hover .caret { transform: rotate(180deg); }
.dropdown-menu a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  transition: background 0.25s, color 0.25s;
}
.dropdown-menu a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.dropdown-menu a svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--cyan); }
.dropdown-menu a strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-display);
}
.dropdown-menu a small { font-size: 12.5px; color: var(--muted); line-height: 1.45; display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(6, 9, 18, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 18px 5vw 26px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    grid-template-columns: 1fr;
    display: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
    margin-top: 4px;
  }
  .dropdown.open .dropdown-menu { display: grid; }
  .dropdown:hover .dropdown-menu { transform: none; }
  .nav .btn { margin: 14px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  animation: floatGlow 14s ease-in-out infinite alternate;
}
.hero-glow.g1 { width: 560px; height: 560px; top: -160px; right: -120px; background: rgba(99, 102, 241, 0.24); }
.hero-glow.g2 { width: 480px; height: 480px; bottom: -180px; left: -140px; background: rgba(34, 211, 238, 0.15); animation-delay: -6s; }
@keyframes floatGlow {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-50px, 40px) scale(1.12); }
}

.hero-inner { position: relative; z-index: 2; max-width: 860px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 28px;
}
.hero-badge .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  position: relative;
}
.hero-badge .pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  margin-bottom: 26px;
  font-weight: 800;
}
.hero .rotator {
  display: inline-block;
  position: relative;
  min-width: 5ch;
}
.hero .rotator .word {
  display: inline-block;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wordIn 0.6s var(--ease);
}
@keyframes wordIn {
  from { opacity: 0; transform: translateY(60%); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub { font-size: 1.2rem; max-width: 620px; margin-bottom: 40px; color: var(--text-soft); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 70px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 760px;
}
.hero-stats .stat {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 14, 28, 0.55);
  backdrop-filter: blur(12px);
}
.hero-stats .num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.hero-stats .label { font-size: 12.5px; color: var(--muted); margin-top: 4px; letter-spacing: 0.04em; }
@media (max-width: 760px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px; height: 40px;
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}
.scroll-hint::after {
  content: "";
  width: 3px; height: 8px;
  border-radius: 3px;
  background: var(--cyan);
  margin-top: 7px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0.2; }
}

/* ---------- Marquee ---------- */
.marquee-band {
  border-block: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
  position: relative;
}
.marquee-band::before, .marquee-band::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-band::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-band::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track span::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent-grad);
  transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), background 0.35s, border-color 0.35s, box-shadow 0.4s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 102, 241, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--card-hover); box-shadow: var(--shadow-glow); }
.card:hover::before { opacity: 1; }

.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(168, 85, 247, 0.14));
  border: 1px solid var(--border);
  margin-bottom: 20px;
  color: var(--cyan);
  transition: transform 0.4s var(--ease);
}
.card:hover .icon { transform: scale(1.08) rotate(-4deg); }
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { font-size: 14.5px; margin-bottom: 0; color: var(--text-soft); }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--cyan);
}
.card .card-link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.card:hover .card-link svg { transform: translateX(5px); }

a.card { display: block; color: inherit; }
a.card:hover { color: inherit; }

.card-wide {
  grid-column: 1 / -1;
  display: flex;
  gap: 26px;
  align-items: flex-start;
  padding: 34px 32px;
  background:
    radial-gradient(700px 200px at 0% 0%, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(700px 200px at 100% 100%, rgba(168, 85, 247, 0.1), transparent 60%),
    var(--card);
}
a.card-wide { display: flex; }
.card-wide .icon { margin-bottom: 0; }
.card-wide h3 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-wide p { max-width: 760px; }
@media (max-width: 640px) { .card-wide, a.card-wide { flex-direction: column; } }

.chip-new {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #060814;
  font-family: var(--font-display);
}

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.checklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-soft);
  font-size: 15.5px;
}
.checklist li strong { color: var(--text); font-weight: 600; }
.checklist .check {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 3px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(99, 102, 241, 0.16));
  border: 1px solid var(--border-strong);
  color: var(--cyan);
}
.checklist .check svg { width: 12px; height: 12px; }

.visual-panel {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.07), rgba(99, 102, 241, 0.07) 50%, rgba(168, 85, 247, 0.07));
  padding: 34px;
  overflow: hidden;
}
.visual-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 44px 100%;
  opacity: 0.35;
  mask-image: radial-gradient(closest-side at 50% 50%, black, transparent);
  pointer-events: none;
}
.visual-panel > * { position: relative; z-index: 1; }

/* ---------- Process ---------- */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .process { grid-template-columns: 1fr; } }
.step {
  counter-increment: step;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  position: relative;
  transition: transform 0.4s var(--ease), border-color 0.35s;
}
.step:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}
.step h3 { font-size: 1.08rem; }
.step p { font-size: 14px; margin: 0; }

/* ---------- Values / pills ---------- */
.value-pill {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.value-pill:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.value-pill .icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(168, 85, 247, 0.14));
  border: 1px solid var(--border);
  color: var(--cyan);
}
.value-pill .icon svg { width: 22px; height: 22px; }
.value-pill h3 { font-size: 1.02rem; margin-bottom: 5px; }
.value-pill p { font-size: 13.8px; margin: 0; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 40px 0 0; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--indigo), var(--violet));
  border-radius: 2px;
  opacity: 0.5;
}
.timeline .t-item { position: relative; padding-bottom: 36px; }
.timeline .t-item:last-child { padding-bottom: 0; }
.timeline .t-item::before {
  content: "";
  position: absolute;
  left: -32px; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--cyan);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.6);
}
.timeline .t-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
}
.timeline h3 { font-size: 1.12rem; margin: 6px 0 8px; }
.timeline p { font-size: 14.5px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding: 40px 0 110px; }
.cta-box {
  position: relative;
  border-radius: 28px;
  padding: clamp(44px, 7vw, 80px);
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(800px 300px at 20% 0%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(800px 300px at 80% 100%, rgba(168, 85, 247, 0.16), transparent 60%),
    var(--surface);
}
.cta-box h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 700px; margin-inline: auto; }
.cta-box p { max-width: 560px; margin: 0 auto 34px; }
.cta-box .hero-ctas { justify-content: center; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #04060d;
  padding: 70px 0 34px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  margin-bottom: 54px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--text-soft); transition: color 0.25s, padding-left 0.25s; }
.site-footer ul a:hover { color: var(--cyan); padding-left: 4px; }
.footer-brand p { margin-top: 16px; max-width: 320px; color: var(--muted); font-size: 14px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: 0.3s;
}
.footer-social a:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }

/* ---------- Sub-page hero ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 70px;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(700px 300px at 10% 10%, rgba(34, 211, 238, 0.1), transparent 60%);
  border-bottom: 1px solid var(--border);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 56px 100%;
  opacity: 0.22;
  mask-image: linear-gradient(180deg, black, transparent 80%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 800px; }
.page-hero .section-lead { font-size: 1.15rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--text-soft); }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--cyan);
  transition: transform 0.3s var(--ease);
  flex: none;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 26px 24px; font-size: 15px; color: var(--text-soft); }
.faq-item .faq-body p:last-child { margin: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-display);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field select option { background: var(--surface); color: var(--text); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
  background: rgba(255, 255, 255, 0.05);
}
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 16px; font-size: 14.5px; display: none; }
.form-status.ok { display: block; color: #4ade80; }

.contact-card {
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.contact-card .icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(168, 85, 247, 0.14));
  border: 1px solid var(--border);
  color: var(--cyan);
}
.contact-card .icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-card p { font-size: 14px; margin: 0; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(10, 14, 28, 0.9);
  backdrop-filter: blur(10px);
  color: var(--cyan);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.35s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--cyan); box-shadow: 0 0 24px rgba(34, 211, 238, 0.3); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Misc ---------- */
.divider-glow {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
  transition: 0.3s;
}
.tag:hover { border-color: var(--cyan); color: var(--cyan); }

.section-head { margin-bottom: 54px; }
.section-head.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
}

.bg-soft { background: var(--bg-soft); border-block: 1px solid var(--border); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--surface);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
}
.skip-link:focus { left: 12px; }
