/* ===== ARC Dev — Design Tokens ===== */
:root {
  --bg: #040816;
  --bg-deep: #02050f;
  --panel: rgba(16, 26, 58, 0.45);
  --panel-solid: #0a1330;
  --border: rgba(130, 160, 255, 0.14);
  --border-hi: rgba(62, 224, 255, 0.45);
  --text: #eef2ff;
  --muted: #95a2c4;
  --cyan: #3ee0ff;
  --blue: #4d7cff;
  --violet: #8b5cff;
  --font-head: 'Sora', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --radius: 18px;
  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  background-color: var(--bg);
  background:
    radial-gradient(1100px 700px at 75% -10%, rgba(40, 80, 200, 0.35), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(139, 92, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #050c24 0%, var(--bg) 40%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

#bg-particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

/* ===== Typography ===== */
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1.1; }
h3 { font-size: 1.15rem; line-height: 1.3; }

p { color: var(--muted); max-width: 62ch; }
.lead { font-size: 1.12rem; }

.grad-text {
  background: linear-gradient(120deg, var(--cyan), var(--blue) 50%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

/* ===== Header ===== */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 8, 22, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

header.nav.scrolled {
  background: rgba(4, 8, 22, 0.85);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  transition: padding 0.5s var(--ease);
}

header.nav.scrolled .nav-inner { padding-top: 10px; padding-bottom: 10px; }

/* Logo: 3D swaying mark + orbiting lights */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.logo-icon {
  position: relative;
  width: 48px;
  height: 40px;
  display: grid;
  place-items: center;
  perspective: 300px;
}

.logo-mark {
  width: 40px;
  height: 29px;
  overflow: visible;
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 8px rgba(26, 140, 255, 0.5));
  animation: mark-swing 6s ease-in-out infinite;
}

.logo:hover .logo-mark { animation: mark-spin 1.2s var(--ease); }

@keyframes mark-swing {
  0%, 100% { transform: rotateY(-22deg) rotateX(8deg); }
  50% { transform: rotateY(22deg) rotateX(-6deg); }
}

@keyframes mark-spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.logo-orbit {
  position: absolute;
  inset: 2px -2px;
  border-radius: 50%;
  border: 1px solid rgba(62, 224, 255, 0.16);
  animation: orbit 3.6s linear infinite;
  pointer-events: none;
}

.logo-orbit::before, .logo-orbit::after {
  content: '';
  position: absolute;
  left: 50%;
  border-radius: 50%;
}

.logo-orbit::before {
  width: 5px; height: 5px; top: -2.5px; margin-left: -2.5px;
  background: #fff;
  box-shadow: 0 0 6px 2px var(--cyan);
}

.logo-orbit::after {
  width: 4px; height: 4px; bottom: -2px; margin-left: -2px;
  background: var(--violet);
  box-shadow: 0 0 6px 2px var(--violet);
}

@keyframes orbit {
  from { transform: rotateX(70deg) rotateZ(0deg); }
  to { transform: rotateX(70deg) rotateZ(360deg); }
}

.logo-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
}

.logo-word span {
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
  margin-left: 4px;
}

.nav-links { display: flex; gap: 38px; font-size: 0.95rem; font-weight: 500; }

.nav-links a {
  position: relative;
  color: var(--muted);
  transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.btn[disabled] { opacity: 0.7; cursor: wait; }

.btn-primary { background: linear-gradient(120deg, var(--blue), var(--violet)); color: #fff; }
.btn-ghost { background: var(--panel-solid); color: var(--text); transition: color 0.3s ease; }
.btn-ghost:hover { color: var(--cyan); }

/* Spinning light ring — JS wraps every .btn in .btn-glow */
.btn-glow {
  position: relative;
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 8px 30px rgba(77, 124, 255, 0.3);
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease;
}

.btn-glow:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 44px rgba(77, 124, 255, 0.55);
}

.btn-glow::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300%;
  aspect-ratio: 1;
  background: conic-gradient(from 0deg, var(--cyan), var(--violet), var(--blue), var(--cyan));
  transform: translate(-50%, -50%);
  animation: spin-ring 3.5s linear infinite;
  z-index: -1;
}

.btn-glow > .btn { position: relative; }

@keyframes spin-ring { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 40px 0 120px;
}

.hero-copy { max-width: 680px; }

.hero-title {
  display: flex;
  align-items: flex-end;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(4.4rem, 10vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  margin-bottom: 26px;
}

.ht-arc {
  background: linear-gradient(110deg, #9aa6c4 0%, #ffffff 30%, #dfe5f2 45%, #ffffff 55%, #8e98b3 80%, #c9d1e4 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 40px rgba(77, 124, 255, 0.35));
  animation: shine 7s var(--ease) infinite;
}

@keyframes shine {
  0% { background-position: 100% 0; }
  60%, 100% { background-position: -50% 0; }
}

.ht-dev {
  font-weight: 400;
  font-size: 0.36em;
  letter-spacing: 0;
  margin: 0 0 0.22em 0.14em;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(62, 224, 255, 0.55);
}

.hero-tag {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 22ch;
  margin-bottom: 18px;
}

/* Rotating word */
.rotator {
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  white-space: nowrap;
  color: var(--text);
  font-weight: 700;
  transition: width 0.55s var(--ease);
}

.rot-word {
  display: inline-block;
  transition: transform 0.5s var(--ease), opacity 0.35s ease;
}

.rot-word.out { transform: translateY(-110%); opacity: 0; }
.rot-word.enter { transform: translateY(110%); opacity: 0; transition: none; }
.rot-measure { position: absolute; left: 0; top: 0; visibility: hidden; white-space: nowrap; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

.hero-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 34px;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-meta li { display: flex; align-items: center; gap: 8px; }

.hero-meta li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.scroll-hint {
  position: absolute;
  left: 0;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-hint::before {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--cyan), transparent);
  transform-origin: top;
  animation: hint 2.4s var(--ease) infinite;
}

@keyframes hint {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ===== 3D logo dock / scroll wheel ===== */
#arc-dock {
  position: fixed;
  left: 0;
  top: 0;
  width: 600px;
  height: 600px;
  z-index: 0;
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: transform;
}

#arc-dock.docked { z-index: 45; pointer-events: auto; cursor: pointer; }

#arc-dock svg, #arc-dock canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#arc-dock svg { opacity: 0; }

.dock-disc { fill: rgba(4, 8, 22, 0.78); }
.dock-track { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 2.5; }
.dock-progress { fill: none; stroke: url(#dockGrad); stroke-width: 2.5; stroke-linecap: round; }

/* ===== Marquee ===== */
.marquee {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(4, 8, 22, 0.45);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-track span {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  color: var(--muted);
  white-space: nowrap;
}

.marquee-track span::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 10px var(--cyan);
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
section { padding: 100px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px 72px;
  align-items: end;
  margin-bottom: 56px;
}

.section-head p { font-size: 1.05rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.6s var(--ease), box-shadow 0.5s ease, border-color 0.5s ease;
}

.card-num {
  display: block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin-bottom: 20px;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

.card-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  transition: color 0.3s ease, transform 0.4s var(--ease);
}

.card-link:hover { color: var(--cyan); transform: translateX(4px); }

/* Stats panel */
.stats-section { padding: 70px 0 30px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.stat {
  background: rgba(8, 14, 36, 0.92);
  padding: 38px 34px;
  transition: background 0.5s ease;
}

.stat:hover { background: rgba(16, 28, 66, 0.95); }

.stat-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  line-height: 1;
  margin-bottom: 14px;
}

.stat p { font-size: 0.95rem; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 46px;
  border-top: 1px solid var(--border);
  transition: transform 0.6s var(--ease);
}

.step::before {
  counter-increment: step;
  content: '0' counter(step);
  position: absolute;
  top: -1px;
  left: 0;
  width: 46px;
  padding-top: 12px;
  border-top: 2px solid var(--cyan);
  font-family: var(--font-head);
  font-size: 0.82rem;
  color: var(--cyan);
}

.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.95rem; }

/* Facts */
.fact { display: flex; gap: 20px; align-items: flex-start; }

.fact-icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(62, 224, 255, 0.15), rgba(139, 92, 255, 0.22));
  border: 1px solid var(--border);
  color: var(--cyan);
  font-family: var(--font-head);
  font-weight: 700;
}

.fact h3 { margin-bottom: 6px; }

/* FAQ — smooth accordion */
.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.faq-layout .section-head {
  display: block;
  position: sticky;
  top: 120px;
  margin: 0;
}

.faq-layout .section-head p { margin-top: 18px; }
.faq-layout .section-head .card-link { margin-top: 0; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.35s ease;
}

.faq-q:hover, .faq-item.open .faq-q { color: var(--cyan); }

.faq-icon {
  position: relative;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: border-color 0.5s ease, background 0.5s ease, transform 0.7s var(--ease);
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: translate(-50%, -50%);
  transition: transform 0.6s var(--ease);
}

.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item.open .faq-icon {
  border-color: var(--border-hi);
  background: rgba(62, 224, 255, 0.08);
  transform: rotate(180deg);
}

.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.6s var(--ease), opacity 0.45s ease;
}

.faq-item.open .faq-a { grid-template-rows: 1fr; opacity: 1; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 54px 26px 0; }

/* CTA band */
.cta-band {
  margin: 40px 0 100px;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 80px 32px;
  text-align: center;
  background:
    radial-gradient(600px circle at 50% 0%, rgba(77, 124, 255, 0.24), transparent 70%),
    var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta-band h2 { margin-bottom: 14px; }
.cta-band p { margin: 0 auto 32px; }

/* ===== Inner pages ===== */
.page-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px 72px;
  align-items: end;
  padding: 100px 0 60px;
}

.page-hero h1 { max-width: 16ch; }

.service-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child { border-bottom: none; }
.service-block.flip > div:first-child { order: 2; }
.service-block h2 { margin-bottom: 16px; }

.ticks { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }

.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 0.96rem;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.spec-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.spec-row:last-child { border-bottom: none; }
.spec-row span:first-child { color: var(--muted); }
.spec-row span:last-child { font-weight: 700; }

.flow-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  font-size: 0.95rem;
}

.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 36px;
  bottom: -8px;
  width: 2px;
  background: linear-gradient(var(--cyan), transparent);
  opacity: 0.5;
}

.flow-dot {
  flex: 0 0 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

/* ===== ARC Orb ===== */
.orb-wrap {
  position: relative;
  height: clamp(460px, 52vw, 680px);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(55% 60% at 50% 50%, rgba(40, 90, 220, 0.2), transparent 70%),
    rgba(4, 8, 22, 0.45);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.orb-wrap:active { cursor: grabbing; }
.orb-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.orb-pops { position: absolute; inset: 0; pointer-events: none; }

.orb-pin {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  pointer-events: auto;
}

.orb-pop {
  position: absolute;
  width: 250px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(8, 14, 36, 0.92);
  border: 1px solid var(--border-hi);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(62, 224, 255, 0.15);
  transform: translate(-50%, calc(-100% - 22px)) scale(0.9);
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}

.orb-pop.show { opacity: 1; transform: translate(-50%, calc(-100% - 22px)) scale(1); }
.orb-pop.below { transform: translate(-50%, 22px) scale(0.9); }
.orb-pop.below.show { transform: translate(-50%, 22px) scale(1); }

.orb-pop h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.orb-pop h4::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.orb-pop p { font-size: 0.85rem; }

.orb-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 72px;
  align-items: start;
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input, .field textarea {
  width: 100%;
  background: rgba(4, 8, 22, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(62, 224, 255, 0.15);
}

.field textarea { min-height: 160px; resize: vertical; }

.form-status { margin-top: 16px; font-size: 0.92rem; min-height: 1.4em; }
.form-status.ok { color: var(--cyan); }
.form-status.err { color: #ff8a8a; }

.contact-info .info-row { margin-bottom: 28px; }

.contact-info .k {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

.contact-info .v { font-size: 1.05rem; word-break: break-word; }
.contact-info .v a:hover { color: var(--cyan); }

.next-steps { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }

.next-steps ol {
  margin-top: 12px;
  padding-left: 20px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== Footer ===== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  background: rgba(2, 5, 15, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer-grid h4 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-grid li { margin-bottom: 10px; color: var(--muted); word-break: break-word; }
.footer-grid a { color: var(--muted); transition: color 0.3s ease; }
.footer-grid a:hover { color: var(--cyan); }
.footer-grid .logo { color: var(--text); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== Scroll reveal (staggered by JS) ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s ease,
    transform 1.1s var(--ease),
    box-shadow 0.5s ease,
    border-color 0.5s ease;
}

.js .reveal.in { opacity: 1; transform: none; }

/* After the entrance, hovers respond quickly */
.js .reveal.settled {
  transition:
    opacity 0.4s ease,
    transform 0.6s var(--ease),
    box-shadow 0.5s ease,
    border-color 0.5s ease;
}

/* ===== Hover lift ===== */
.card:hover,
.js .card.reveal.in:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--border-hi);
  box-shadow: 0 24px 60px rgba(20, 40, 120, 0.45), 0 0 0 1px rgba(62, 224, 255, 0.2);
}

.step:hover,
.js .step.reveal.in:hover { transform: translateY(-6px); }

/* Scroll drift uses the separate "translate" property, so it never fights hovers */
.drift { will-change: translate; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  section { padding: 64px 0; }

  .grid-2, .grid-3, .grid-4, .service-block, .contact-grid, .section-head, .page-hero, .faq-layout {
    grid-template-columns: 1fr;
  }

  .section-head { gap: 14px; margin-bottom: 36px; }
  .faq-layout { gap: 32px; }
  .faq-layout .section-head { position: static; }
  .service-block { gap: 32px; padding: 52px 0; }
  .service-block.flip > div:first-child { order: 0; }
  .page-hero { padding: 56px 0 32px; }

  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 18px;
    padding: 22px var(--gutter);
    background: rgba(4, 8, 22, 0.96);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a::after { display: none; }

  /* Hero: logo sits above the title on phones */
  .hero {
    min-height: auto;
    display: block;
    padding: calc(min(85vw, 50vh, 420px) * 0.72) 0 70px;
    padding: calc(min(85vw, 50svh, 420px) * 0.72) 0 70px;
  }

  .scroll-hint { display: none; }

  .card, .cta-band {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(12, 20, 46, 0.85);
  }

  .card { padding: 26px 22px; }
  .stats-section { padding: 40px 0 10px; }
  .stat { padding: 28px 22px; }
  .cta-band { margin: 20px 0 64px; padding: 56px 22px; }
  .orb-wrap { height: 460px; }
  .orb-pop { width: 210px; }
  .footer-grid { gap: 32px; }

  .field input, .field textarea { font-size: 16px; }
  a, button { -webkit-tap-highlight-color: transparent; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-meta { gap: 14px; }

  .hero-actions .btn-glow, .cta-band .btn-glow, form .btn-glow { display: flex; width: 100%; }
  .hero-actions .btn, .cta-band .btn, form .btn { width: 100%; justify-content: center; }
}

/* Touch screens: no stuck hover states after a tap */
@media (hover: none) {
  .card:hover, .js .card.reveal.in:hover,
  .step:hover, .js .step.reveal.in:hover,
  .btn-glow:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-glow::before, .scroll-hint::before, .marquee-track, .logo-mark, .logo-orbit, .ht-arc { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}