/* -------------------------------------------------- */
/* Reset & base                                        */
/* -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  /* brand palette — dark lab / terminal theme */
  --navy-950: #05070d;
  --navy-900: #080b14;
  --navy-850: #0a0e19;
  --navy-800: #0d1220;
  --navy-700: #131a2b;
  --navy-600: #1c2438;
  --slate-500: #7c8aa5;
  --slate-400: #94a3b8;
  --slate-300: #b6c2d4;
  --slate-200: #cbd5e1;
  --slate-100: #e6ecf5;
  --slate-50: #f1f5fb;

  --blue-700: #1444c9;
  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #60a5fa;

  --green-500: #22c55e;
  --green-400: #34d399;
  --cyan-400: #22d3ee;
  --amber-400: #f59e0b;
  --red-400: #ef4444;

  --color-bg: var(--navy-950);
  --color-bg-alt: var(--navy-900);
  --color-surface: var(--navy-800);
  --color-text: var(--slate-100);
  --color-text-muted: var(--slate-400);
  --color-border: rgba(148, 163, 184, 0.16);
  --color-border-strong: rgba(148, 163, 184, 0.3);
  --color-primary: var(--blue-500);
  --color-primary-hover: var(--blue-400);
  --color-accent: var(--green-400);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Poppins", var(--font-body);
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 55px rgba(0, 0, 0, 0.55);
  --glow-primary: 0 0 0 1px rgba(37, 99, 235, 0.35), 0 8px 30px rgba(37, 99, 235, 0.18);

  --container-w: 1160px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--slate-50);
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

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

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--navy-950); }
::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 20px; border: 3px solid var(--navy-950); }
::-webkit-scrollbar-thumb:hover { background: var(--slate-500); }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------- */
/* Buttons                                             */
/* -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--glow-primary);
}
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--slate-100);
  border: 1.5px solid var(--color-border-strong);
}
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* -------------------------------------------------- */
/* Header                                              */
/* -------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 7, 13, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(5, 7, 13, 0.88);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { flex-shrink: 0; }
.brand-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--slate-50);
  line-height: 1.1;
}
.brand-text strong { font-weight: 800; }
.brand-text-accent { color: var(--blue-300); display: block; font-size: 0.72em; font-weight: 500; letter-spacing: 0.02em; }

.main-nav ul { display: flex; gap: 28px; }
.nav-link {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate-300);
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width 0.2s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: var(--color-accent); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--slate-100);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------- */
/* Hero                                                */
/* -------------------------------------------------- */
.hero {
  position: relative;
  padding: 190px 0 120px;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(37, 99, 235, 0.16) 0%, transparent 60%), var(--navy-950);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid {
  position: absolute;
  inset: -10% -10%;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 20%, black 40%, transparent 100%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.28;
}
.hero-glow-1 { width: 480px; height: 480px; background: var(--blue-500); top: -180px; right: -120px; }
.hero-glow-2 { width: 380px; height: 380px; background: var(--cyan-400); bottom: -200px; left: -100px; opacity: 0.16; }

.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "$";
  color: var(--slate-500);
}
.eyebrow-cursor::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--color-accent);
  animation: cursor-blink 1.1s steps(1) infinite;
}
@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  margin-bottom: 22px;
}
.text-gradient {
  background: linear-gradient(90deg, var(--blue-300), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 22px; }
.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--slate-300);
  font-weight: 500;
}
.hero-highlights .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}

/* -------------------------------------------------- */
/* Hero slider                                         */
/* -------------------------------------------------- */
.hero-slider {
  overflow: hidden;
  margin-bottom: 8px;
}
.hero-slider-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.hero-slide {
  flex: 0 0 100%;
  min-width: 0;
}
.hero-slide h1 { margin-bottom: 22px; }
.hero-slide .hero-lead { margin-bottom: 0; }

.hero-slider-dots {
  display: flex;
  gap: 8px;
  margin-top: 26px;
  margin-bottom: 34px;
}
.hero-slider-dot {
  width: 22px;
  height: 4px;
  border-radius: 4px;
  background: var(--navy-600);
  transition: background-color 0.25s ease, width 0.25s ease;
}
.hero-slider-dot:hover { background: var(--blue-400); }
.hero-slider-dot.is-active { background: var(--color-accent); width: 34px; }

@media (prefers-reduced-motion: reduce) {
  .hero-slider-track { transition: none; }
  .eyebrow::after { animation: none; }
}

/* -------------------------------------------------- */
/* Sections (shared)                                   */
/* -------------------------------------------------- */
.section { padding: 100px 0; }
.section-alt { background: rgba(8, 11, 20, 0.6); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-lead { color: var(--color-text-muted); font-size: 1.05rem; }

/* -------------------------------------------------- */
/* Terminal-style panels (shared by cards)              */
/* -------------------------------------------------- */
.service-card,
.coverage-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 42px 26px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card::before,
.coverage-card::before {
  content: "";
  position: absolute;
  top: 18px; left: 22px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-400);
  box-shadow: 16px 0 0 var(--amber-400), 32px 0 0 var(--green-500);
  opacity: 0.85;
}
.service-card:hover,
.coverage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.4);
}

/* -------------------------------------------------- */
/* Services                                            */
/* -------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  margin-bottom: 18px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service-card p { color: var(--color-text-muted); font-size: 0.94rem; }

/* -------------------------------------------------- */
/* Process                                             */
/* -------------------------------------------------- */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
}
.process-step {
  display: flex;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--color-border);
}
.process-step:last-child { border-bottom: 1px solid var(--color-border); }
.process-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-accent);
  min-width: 54px;
}
.process-number::before { content: "["; color: var(--slate-500); }
.process-number::after { content: "]"; color: var(--slate-500); }
.process-step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.process-step p { color: var(--color-text-muted); font-size: 0.95rem; }

/* -------------------------------------------------- */
/* About                                               */
/* -------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-list { display: flex; flex-direction: column; gap: 26px; }
.about-list li { border-left: 2px solid var(--color-border); padding-left: 18px; }
.about-list h3 { font-size: 1.05rem; margin-bottom: 6px; }
.about-list p { color: var(--color-text-muted); font-size: 0.95rem; }

/* -------------------------------------------------- */
/* Coverage areas                                      */
/* -------------------------------------------------- */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.coverage-card h3 {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--blue-300);
}
.coverage-card p { color: var(--color-text-muted); font-size: 0.94rem; }

/* -------------------------------------------------- */
/* Form                                                */
/* -------------------------------------------------- */
.form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-100);
  margin-bottom: 7px;
}
.required { color: #f87171; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: var(--slate-100);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.form-field select option { background: var(--navy-900); color: var(--slate-100); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--slate-500); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--navy-800);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: #f87171; }
.field-error {
  display: block;
  min-height: 18px;
  font-size: 0.82rem;
  color: #f87171;
  margin-top: 5px;
}
.form-field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.form-field-checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-accent); }
.form-field-checkbox label { margin: 0; font-weight: 500; font-size: 0.9rem; flex: 1; min-width: 200px; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-size: 0.82rem; color: var(--color-text-muted); }

.form-success {
  text-align: center;
  padding: 20px 10px 10px;
}
.form-success-icon {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  color: var(--green-400);
  display: flex; align-items: center; justify-content: center;
}
.form-success-icon svg { width: 30px; height: 30px; }
.form-success h3 { font-size: 1.3rem; margin-bottom: 10px; }
.form-success p { color: var(--color-text-muted); margin-bottom: 22px; }
.form-success strong { color: var(--slate-50); font-family: var(--font-mono); }

/* -------------------------------------------------- */
/* Contact                                             */
/* -------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-weight: 500;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.contact-item:hover { border-color: var(--color-accent); background: var(--navy-900); }
.contact-item svg { width: 20px; height: 20px; color: var(--color-accent); flex-shrink: 0; }

/* -------------------------------------------------- */
/* Footer                                              */
/* -------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: var(--slate-400);
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.brand-footer .brand-text { color: #fff; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-family: var(--font-mono); font-size: 0.85rem; color: var(--slate-400); }
.footer-links a:hover { color: var(--color-accent); }
.footer-copy { font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate-500); width: 100%; text-align: center; margin-top: 8px; }

/* -------------------------------------------------- */
/* Reveal-on-scroll animation                          */
/* -------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* -------------------------------------------------- */
/* Responsive                                          */
/* -------------------------------------------------- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .coverage-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--navy-950);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .main-nav a { display: block; padding: 12px 0; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }

  .hero { padding: 150px 0 80px; }
  .section { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 26px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
