/* ============================================================
   Buffalo Tech Systems — Core Styles
   Cyber / neon-dark aesthetic with Buffalo steel accents
   ============================================================ */

:root {
  --bg: #08080f;
  --bg-2: #0d0d1a;
  --surface: rgba(24, 22, 44, 0.55);
  --surface-solid: #12111f;
  --line: rgba(150, 130, 230, 0.14);
  --line-strong: rgba(139, 92, 246, 0.38);

  --text: #f0edff;
  --text-dim: #a89fc6;
  --text-mute: #6f6893;

  --cyan: #2ee6a6;   /* brand accent — emerald/teal */
  --lime: #2ee6a6;
  --violet: #8b5cf6;
  --amber: #ffb547;

  --grad: linear-gradient(120deg, #8b5cf6 0%, #2ee6a6 100%);
  --grad-soft: linear-gradient(120deg, rgba(139,92,246,0.16), rgba(46,230,166,0.14));

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

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

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 200;
  background: var(--cyan); color: #001018; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ============================================================
   Ambient background effects
   ============================================================ */
#bg-canvas {
  position: fixed; inset: 0; z-index: -3; width: 100%; height: 100%;
  opacity: 0.9;
}
.grid-overlay {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 0%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(700px 500px at 85% 10%, rgba(76, 130, 220, 0.10), transparent 60%),
    radial-gradient(600px 600px at 50% 100%, rgba(46, 230, 166, 0.08), transparent 60%);
}
.noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Custom cursor glow (desktop) */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 340px; height: 340px; z-index: -1;
  border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 65%);
  transition: opacity .4s; opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-glow { opacity: 1; }
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all .35s var(--ease);
}
.nav-inner {
  width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem 0;
}
.nav.scrolled {
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav.scrolled .nav-inner { padding: 0.7rem 0; }

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 40px; width: auto; filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.35)); transition: transform .4s var(--ease), filter .4s; }
.brand:hover .brand-logo { transform: scale(1.04); filter: drop-shadow(0 0 20px rgba(46, 230, 166, 0.45)); }
.nav.scrolled .brand-logo { height: 36px; }
.footer-logo { height: 44px; }

.nav-links { display: flex; align-items: center; gap: 1.9rem; font-size: 0.94rem; font-weight: 500; }
.nav-links a { color: var(--text-dim); position: relative; transition: color .25s; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
/* scroll-spy / current-page active state */
.nav-links a.active:not(.nav-cta) { color: var(--text); }
.nav-links a.active:not(.nav-cta)::after { width: 100%; }
.nav-cta {
  padding: 0.55rem 1.15rem; border-radius: 999px; color: var(--text) !important;
  border: 1px solid var(--line-strong); background: rgba(139,92,246,0.10);
  transition: all .3s var(--ease);
}
.nav-cta:hover { background: rgba(139,92,246,0.22); box-shadow: 0 0 24px rgba(139,92,246,0.3); }

/* ---------- Services dropdown ---------- */
.nav-item.has-dropdown { position: relative; }
.nav-drop-toggle {
  display: inline-flex; align-items: center; gap: 0.32rem; position: relative;
  color: var(--text-dim); font-family: inherit; font-size: inherit; font-weight: 500; padding: 0;
  transition: color .25s;
}
.nav-drop-toggle .caret { transition: transform .3s var(--ease); opacity: 0.8; }
.nav-drop-toggle::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width .3s var(--ease);
}
.nav-drop-toggle:hover, .nav-drop-toggle.active { color: var(--text); }
.nav-drop-toggle:hover::after, .nav-drop-toggle.active::after { width: 100%; }
.has-dropdown:hover .caret, .has-dropdown.open .caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 320px; padding: 0.5rem; border-radius: 16px; z-index: 120;
  background: rgba(12, 14, 26, 0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nav-dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-dropdown:hover .nav-dropdown, .has-dropdown.open .nav-dropdown, .has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex; gap: 0.7rem; align-items: center; padding: 0.6rem 0.7rem; border-radius: 11px;
  color: var(--text-dim); transition: background .2s, color .2s;
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover { background: rgba(139,92,246,0.12); color: var(--text); }
.nav-dropdown a.active { background: var(--grad-soft); color: var(--text); }
.ndi-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--grad-soft); border: 1px solid var(--line-strong); color: var(--cyan); }
.nav-dropdown strong { display: block; font-family: var(--font-head); font-size: 0.9rem; font-weight: 600; }
.nav-dropdown small { display: block; font-size: 0.76rem; color: var(--text-mute); margin-top: 1px; }
.nav-drop-all { justify-content: center; font-size: 0.85rem; font-weight: 500; color: var(--cyan) !important; margin-top: 0.25rem; border-top: 1px solid var(--line); border-radius: 0 0 11px 11px; }
.nav-drop-all:hover { background: rgba(46,230,166,0.08) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s var(--ease); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; position: relative;
  transition: transform .25s var(--ease), box-shadow .3s, background .3s; will-change: transform;
}
.btn svg { transition: transform .3s var(--ease); }
.btn-primary { background: var(--grad); color: #0b0616; box-shadow: 0 6px 30px rgba(139, 92, 246, 0.3); }
.btn-primary:hover { box-shadow: 0 10px 44px rgba(46, 230, 166, 0.4); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { background: rgba(139,92,246,0.12); border-color: var(--violet); }
.btn-block { width: 100%; }
.btn:active { transform: scale(0.97); }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 8rem 1.25rem 4rem;
}
.hero-inner { max-width: 900px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.95rem; border-radius: 999px; font-size: 0.82rem; font-weight: 500;
  color: var(--text-dim); border: 1px solid var(--line); background: var(--surface);
  backdrop-filter: blur(8px); margin-bottom: 1.8rem;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 rgba(46,230,166,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,230,166,0.5);} 70% { box-shadow: 0 0 0 8px rgba(46,230,166,0);} 100% { box-shadow: 0 0 0 0 rgba(46,230,166,0);} }

.hero-title {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem); line-height: 1.04; margin-bottom: 1.5rem;
}
.hero-title .line { display: block; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.02rem, 2.2vw, 1.25rem); color: var(--text-dim); max-width: 640px; margin: 0 auto 2.4rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* stagger reveals in hero */
.hero .reveal:nth-child(1){ transition-delay:.05s;} .hero .reveal:nth-child(2){ transition-delay:.15s;}
.hero .reveal:nth-child(3){ transition-delay:.25s;} .hero .reveal:nth-child(4){ transition-delay:.35s;}
.hero .reveal:nth-child(5){ transition-delay:.45s;}

/* terminal */
.hero-terminal {
  margin: 3rem auto 0; max-width: 560px; text-align: left; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(6, 10, 20, 0.85); backdrop-filter: blur(10px);
  overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); }
.term-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red{background:#ff5f57;} .dot.amber{background:#febc2e;} .dot.green{background:#28c840;}
.term-title { margin-left: 0.5rem; font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-mute); }
.term-body { padding: 1rem 1.1rem 1.2rem; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.7; color: var(--lime); min-height: 120px; }
.term-body .prompt { color: var(--cyan); }
.term-body .ok { color: var(--lime); }
.term-body .dim { color: var(--text-mute); }
.term-cursor { display: inline-block; width: 9px; height: 1.05em; background: var(--cyan); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.scroll-cue { position: absolute; bottom: 1.8rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mute); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(var(--cyan), transparent); position: relative; overflow: hidden; }
.scroll-line::after { content:""; position:absolute; top:-40px; left:0; width:100%; height:40px; background: var(--cyan); animation: scrollDown 2s ease-in-out infinite; }
@keyframes scrollDown { 0%{transform:translateY(0);} 100%{transform:translateY(80px);} }

/* ============================================================
   Marquee
   ============================================================ */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(8,12,22,0.6); padding: 1.1rem 0; -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; align-items: center; gap: 2.4rem; width: max-content; animation: marquee 32s linear infinite; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--text-dim); }
.marquee-track span:nth-child(even) { color: var(--cyan); font-size: 0.7rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(5rem, 10vw, 8rem) 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.9rem; }
.section-title { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.1; }
.section-lead { color: var(--text-dim); font-size: 1.08rem; margin-top: 1rem; }

/* ============================================================
   Service cards
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  position: relative; padding: 2rem 1.8rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  overflow: hidden; transition: transform .4s var(--ease), border-color .4s;
  transform-style: preserve-3d;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-6px); }
.card-glow { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,0.20), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; left: var(--mx, 50%); top: var(--my, 50%); transform: translate(-50%, -50%); }
.card:hover .card-glow { opacity: 1; }
.card-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--line-strong); color: var(--cyan); margin-bottom: 1.3rem; }
.card h3 { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.card > p { color: var(--text-dim); font-size: 0.96rem; margin-bottom: 1.1rem; }
.card-list { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: var(--text-mute); }
.card-list li { position: relative; padding-left: 1.4rem; }
.card-list li::before { content: "▹"; position: absolute; left: 0; color: var(--cyan); }
.card em { color: var(--lime); font-style: normal; }

/* "Learn more" link — stretches to make the whole card clickable */
.card-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1.2rem; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--cyan); transition: gap .25s var(--ease); }
.card-link::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); z-index: 1; }
.card-link svg { transition: transform .25s var(--ease); }
.card:hover .card-link { gap: 0.6rem; }
.card:hover .card-link svg { transform: translateX(3px); }
.card-list, .card > p, .card h3 { position: relative; z-index: 2; }

.card-feature { background: linear-gradient(160deg, rgba(139,92,246,0.12), rgba(46,230,166,0.05)), var(--surface); border-color: var(--line-strong); }
.card-tag { position: absolute; top: 1.1rem; right: 1.1rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 999px; background: var(--grad); color: #001217; font-weight: 600; }

/* ============================================================
   Why / Stats
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.why-copy .section-title, .why-copy .section-lead { text-align: left; }
.check-list { display: flex; flex-direction: column; gap: 0.85rem; margin: 1.8rem 0 2.2rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--text-dim); }
.check { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--grad-soft); border: 1px solid var(--line-strong); color: var(--lime); font-size: 0.75rem; font-weight: 700; margin-top: 2px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.stat { padding: 1.6rem 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(10px); text-align: center; transition: transform .35s var(--ease), border-color .35s; }
.stat:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.stat-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { display: block; margin-top: 0.5rem; font-size: 0.85rem; color: var(--text-mute); }

/* ============================================================
   Process steps
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding: 2rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(10px); transition: transform .35s var(--ease), border-color .35s; }
.step:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.step-num { font-family: var(--font-mono); font-size: 2rem; font-weight: 500; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.9; }
.step h3 { font-family: var(--font-head); font-size: 1.25rem; margin: 0.6rem 0 0.5rem; }
.step p { color: var(--text-dim); font-size: 0.92rem; }
.steps .step:not(:last-child)::after { content: "→"; position: absolute; right: -0.9rem; top: 50%; transform: translateY(-50%); color: var(--line-strong); font-size: 1.2rem; z-index: 2; }

/* ============================================================
   Quotes
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.quote { padding: 2rem 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(10px); position: relative; transition: transform .35s var(--ease), border-color .35s; }
.quote:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.quote::before { content: "\201C"; position: absolute; top: 0.2rem; left: 1.2rem; font-family: var(--font-head); font-size: 4rem; color: var(--line-strong); }
.quote p { position: relative; color: var(--text); font-size: 1rem; margin-bottom: 1.2rem; padding-top: 1.2rem; }
.quote footer { display: flex; flex-direction: column; }
.quote footer strong { font-family: var(--font-head); }
.quote footer span { font-size: 0.85rem; color: var(--text-mute); }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-copy { position: sticky; top: 6rem; }
.contact-copy .section-title, .contact-copy .section-lead { text-align: left; }
.contact-points { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.8rem; }
.contact-points li { display: flex; align-items: center; gap: 0.75rem; color: var(--text-dim); }
.cp-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); }
.contact-email { color: var(--cyan); font-weight: 500; border-bottom: 1px solid transparent; transition: border-color .25s; }
.contact-email:hover { border-color: var(--cyan); }

.contact-form { padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 1.15rem; box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.field { position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 1.05rem 1rem 0.5rem; border-radius: var(--radius-sm);
  background: rgba(5, 9, 18, 0.6); border: 1px solid var(--line); color: var(--text);
  font-family: inherit; font-size: 0.98rem; transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.field textarea { padding-top: 1.4rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(46,230,166,0.14); }
.field label { position: absolute; left: 1rem; top: 0.95rem; color: var(--text-mute); font-size: 0.98rem; pointer-events: none; transition: all .2s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 0.35rem; font-size: 0.72rem; color: var(--cyan);
}
.field select { color: var(--text); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none'%3E%3Cpath d='M3 5l4 4 4-4' stroke='%2397a6c4' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-top: 1.4rem; }
.select-label { top: 0.35rem; font-size: 0.72rem; color: var(--cyan); }
.field select:required:invalid { color: var(--text-mute); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff5f57; box-shadow: 0 0 0 3px rgba(255,95,87,0.12); }

.form-note { text-align: center; font-size: 0.92rem; min-height: 1.2em; }
.form-note.success { color: var(--lime); }
.form-note.error { color: #ff7a72; }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: rgba(6, 9, 17, 0.7); backdrop-filter: blur(10px); padding-top: 4rem; margin-top: 3rem; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 3rem; }
.footer-brand p { color: var(--text-mute); font-size: 0.92rem; margin-top: 1rem; max-width: 320px; }
.footer-col h4 { font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 1rem; color: var(--text); }
.footer-col a { display: block; color: var(--text-dim); font-size: 0.92rem; padding: 0.28rem 0; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-area { color: var(--text-mute); font-size: 0.88rem; margin-top: 0.6rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-block: 1.4rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--text-mute); flex-wrap: wrap; gap: 0.8rem; }
.footer-status { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ============================================================
   FAQ (shared: homepage + service pages)
   ============================================================ */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 0.8rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); backdrop-filter: blur(10px); overflow: hidden; transition: border-color .3s; }
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary { cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--cyan); font-size: 1.2rem; transition: transform .3s var(--ease); }
.faq-item[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--text-dim); font-size: 0.96rem; line-height: 1.65; }

/* ============================================================
   Scroll-to-top button (with scroll-progress ring)
   ============================================================ */
.scroll-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  width: 56px; height: 56px; z-index: 80; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer; isolation: isolate;
  background: rgba(12, 14, 26, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(22px) scale(0.5); pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.scroll-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.scroll-top:hover { border-color: var(--line-strong); box-shadow: 0 0 34px rgba(139, 92, 246, 0.5); }
.scroll-top:active { transform: scale(0.9); }

.st-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.st-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 3; }
.st-prog { fill: none; stroke: url(#stGrad); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(46, 230, 166, 0.55)); transition: stroke-dashoffset .12s linear; }

.st-arrow { width: 22px; height: 22px; color: var(--text); z-index: 2; transition: transform .3s var(--ease), color .3s; }
.scroll-top:hover .st-arrow { color: var(--cyan); animation: st-bob .9s var(--ease) infinite; }
@keyframes st-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(-6px); } }

.st-tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) translateX(8px); font-family: var(--font-head); font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.02em; padding: 5px 10px; border-radius: 9px; white-space: nowrap;
  background: var(--surface-solid); border: 1px solid var(--line); color: var(--text);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.st-tip::after { content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-left-color: var(--surface-solid); }
.scroll-top:hover .st-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (hover: none) { .st-tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .scroll-top:hover .st-arrow { animation: none; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .cards, .quotes { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps .step::after { display: none; }
  .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; align-items: stretch; gap: 1rem; padding: 6rem 2rem 2.5rem; background: rgba(5,7,13,0.97); backdrop-filter: blur(20px); transform: translateY(-100%); transition: transform .4s var(--ease); border-bottom: 1px solid var(--line); font-size: 1.1rem; max-height: 100svh; overflow-y: auto; }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a { text-align: center; }
  /* dropdown becomes an inline accordion on mobile */
  .nav-item.has-dropdown { display: flex; flex-direction: column; align-items: center; }
  .nav-drop-toggle { justify-content: center; font-size: 1.1rem; }
  .nav-dropdown { position: static; transform: none; width: 100%; max-width: 340px; margin: 0.6rem auto 0; opacity: 1; visibility: visible; pointer-events: auto; display: none; box-shadow: none; background: rgba(255,255,255,0.03); }
  .has-dropdown.open .nav-dropdown { display: block; transform: none; }
  .nav-cta { text-align: center; }
  .nav-toggle { display: flex; z-index: 101; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .cards, .quotes, .stats, .steps, .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero { padding-top: 7rem; }
}
