/* ================================================================
   CyberGlobe LTD — styles.css
   "Engineering paper" design system: cool technical-paper light
   theme, deep ink panels, circuit-blue accent, mono spec labels.

   TABLE OF CONTENTS
   01. CSS Custom Properties (Design Tokens)
   02. CSS Reset & Base
   03. Typography & Utilities
   04. Animations & Reveal System
   05. Buttons
   06. Header & Navigation
   07. Mobile Menu
   08. Hero Section (+ topology schematic)
   09. About Section
   10. Services Section
   11. Expertise Section (dark spec sheet)
   12. Why Us Section
   13. Process Section
   14. Testimonials Section
   15. Contact Section
   16. Footer
   17. Back to Top
   18. Responsive Overrides
   19. Accessibility & Motion
   ================================================================ */


/* ================================================================
   01. CSS CUSTOM PROPERTIES
   ================================================================ */

:root {
  /* — Colour Palette — */
  --paper:        #f2f5f7;      /* cool technical paper                */
  --card:         #ffffff;      /* raised card surfaces                */
  --ink:          #0a1622;      /* deep ink panels (hero/footer)       */
  --ink-2:        #102334;      /* raised surfaces on ink              */

  --signal:       #0a6be8;      /* circuit blue — primary accent       */
  --signal-deep:  #0956bd;      /* hover / active                      */
  --signal-dim:   rgba(10, 107, 232, 0.09);
  --sky:          #5db2f8;      /* accent on dark panels               */
  --cyan:         #38d2f0;      /* schematic strokes                   */

  --text-1:       #14242f;      /* primary text on light               */
  --text-2:       #495b6b;      /* secondary text on light             */
  --text-3:       #7d90a0;      /* muted text on light                 */

  --dk-text-1:    #e9f0f6;      /* primary text on ink                 */
  --dk-text-2:    #9cb0c1;      /* secondary text on ink               */

  --line:         #d9e2ea;      /* hairline borders on light           */
  --line-strong:  #c3d0da;
  --dk-line:      rgba(255, 255, 255, 0.10);

  /* — Typography — */
  --font-display: 'Archivo', 'Helvetica Neue', sans-serif;
  --font-body:    'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'SFMono-Regular', monospace;

  /* — Spacing Scale — */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;
  --space-5xl:  8rem;

  /* — Border Radius — */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  14px;
  --radius-full: 9999px;

  /* — Transitions — */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --dur-fast:   150ms;
  --dur-mid:    280ms;
  --dur-slow:   500ms;

  /* — Layout — */
  --container-max: 1180px;
  --container-pad: clamp(1.25rem, 5vw, 2.5rem);
  --header-h:    72px;

  /* — Shadows — */
  --shadow-sm:   0 1px 2px rgba(13, 30, 45, 0.06), 0 2px 8px rgba(13, 30, 45, 0.05);
  --shadow-md:   0 4px 12px rgba(13, 30, 45, 0.07), 0 12px 32px rgba(13, 30, 45, 0.07);
  --shadow-lg:   0 24px 64px rgba(13, 30, 45, 0.16);
}


/* ================================================================
   02. CSS RESET & BASE
   ================================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--paper);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, select, textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--signal);
  color: #ffffff;
}

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


/* ================================================================
   03. TYPOGRAPHY & UTILITIES
   ================================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-5xl);
}

/* Mono eyebrow label above headings */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--space-lg);
}

.section-label::before {
  content: "//";
  font-weight: 600;
  opacity: 0.55;
}

.section-heading {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-1);
  text-wrap: balance;
}

.section-sub {
  max-width: 620px;
  margin-top: var(--space-lg);
  font-size: 1.06rem;
  color: var(--text-2);
}

.section-header {
  margin-bottom: var(--space-3xl);
}

/* Dark-section variants */
.section-header--dark .section-heading { color: var(--dk-text-1); }
.section-header--dark .section-sub     { color: var(--dk-text-2); }
.section-header--dark .section-label   { color: var(--cyan); }


/* ================================================================
   04. ANIMATIONS & REVEAL SYSTEM
   ================================================================ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 90ms; }
.reveal--delay-2 { transition-delay: 180ms; }
.reveal--delay-3 { transition-delay: 270ms; }
.reveal--delay-4 { transition-delay: 360ms; }


/* ================================================================
   05. BUTTONS
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.7em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  transition:
    background-color var(--dur-mid) var(--ease-out),
    border-color     var(--dur-mid) var(--ease-out),
    color            var(--dur-mid) var(--ease-out),
    transform        var(--dur-mid) var(--ease-out),
    box-shadow       var(--dur-mid) var(--ease-out);
}

.btn-icon {
  transition: transform var(--dur-mid) var(--ease-out);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--signal);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(10, 107, 232, 0.28);
}

.btn--primary:hover {
  background: var(--signal-deep);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
}

/* Ghost button on dark hero */
.btn--ghost {
  color: var(--dk-text-1);
  border: 1px solid var(--dk-line);
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.07);
}


/* ================================================================
   06. HEADER & NAVIGATION
   ================================================================ */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 22, 34, 0.0);
  transition:
    background-color var(--dur-mid) var(--ease-out),
    box-shadow       var(--dur-mid) var(--ease-out),
    border-color     var(--dur-mid) var(--ease-out);
  border-bottom: 1px solid transparent;
}

/* Header sits on the ink hero at top; gains a solid ink bar when scrolled */
.site-header.is-scrolled {
  background: rgba(10, 22, 34, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--dk-line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
}

.brand-icon img {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.09em;
  color: var(--dk-text-1);
}

.brand-accent {
  color: var(--sky);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
}

.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--dk-text-2);
  padding-block: 0.4em;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--dk-text-1);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link--cta {
  padding: 0.55em 1.25em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  color: var(--dk-text-1);
  transition:
    background-color var(--dur-mid) var(--ease-out),
    border-color     var(--dur-mid) var(--ease-out);
}

.nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: #ffffff;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
}

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dk-text-1);
  border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-mid);
}

.menu-toggle.is-open .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ================================================================
   07. MOBILE MENU (overlay + slide-in panel)
   ================================================================ */

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 13, 20, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out);
}

.mobile-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}


/* ================================================================
   08. HERO SECTION
   ================================================================ */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--dk-text-1);
  padding-top: calc(var(--header-h) + clamp(3rem, 8vh, 6rem));
  padding-bottom: clamp(3.5rem, 9vh, 7rem);
  overflow: hidden;
}

/* Blueprint grid backdrop */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(93, 178, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 178, 248, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 40%, black 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 80% at 60% 40%, black 35%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--space-xl);
}

.eyebrow-mark {
  opacity: 0.55;
  font-weight: 600;
}

.hero-headline {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-bottom: var(--space-xl);
}

.hero-headline em {
  font-style: normal;
  color: var(--sky);
  position: relative;
  white-space: nowrap;
}

.hero-headline em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 3px;
  background: var(--signal);
  transform-origin: left;
  animation: underline-draw 0.9s var(--ease-out) 0.9s backwards;
}

@keyframes underline-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero-sub {
  max-width: 500px;
  font-size: 1.1rem;
  color: var(--dk-text-2);
  margin-bottom: var(--space-2xl);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

/* Stats — mono numerals, hairline separators */
.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  padding-left: 1rem;
  border-left: 2px solid rgba(93, 178, 248, 0.35);
}

.stat-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--dk-text-1);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--dk-text-2);
}

/* — Topology schematic (signature element) — */
.hero-schematic {
  position: relative;
}

.topology {
  width: 100%;
  height: auto;
}

.topo-link {
  stroke: rgba(93, 178, 248, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
  fill: none;
  animation: link-flow 1.6s linear infinite;
}

@keyframes link-flow {
  to { stroke-dashoffset: -22; }
}

.packet {
  fill: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(56, 210, 240, 0.9));
}

.packet--alt {
  fill: var(--sky);
  filter: drop-shadow(0 0 6px rgba(93, 178, 248, 0.9));
}

.topo-node rect {
  fill: rgba(16, 35, 52, 0.85);
  stroke: rgba(93, 178, 248, 0.4);
  stroke-width: 1.2;
}

.topo-node--core rect {
  fill: rgba(10, 107, 232, 0.16);
  stroke: var(--sky);
  stroke-width: 1.5;
}

.topo-dot {
  fill: var(--cyan);
}

.topo-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  fill: var(--dk-text-1);
}

.topo-label--core {
  font-size: 13px;
  fill: var(--sky);
}

.topo-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--dk-text-2);
}

.schematic-caption {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--dk-text-2);
}

.caption-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: #2ee59d;
  box-shadow: 0 0 8px rgba(46, 229, 157, 0.8);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}


/* ================================================================
   09. ABOUT SECTION
   ================================================================ */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-lead {
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: var(--space-lg);
}

.about-body {
  color: var(--text-2);
  margin-bottom: var(--space-lg);
}

.about-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
  margin-top: var(--space-xl);
}

.pillar {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-1);
}

.pillar-icon {
  color: var(--signal);
  font-weight: 600;
}

/* Spec card — styled like an engineering datasheet */
.spec-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
}

.spec-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--line);
}

.spec-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.spec-card__ref {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.card-env-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.card-env {
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.env-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.env-dot--on    { background: var(--signal); }
.env-dot--priv  { background: var(--cyan); }
.env-dot--pub   { background: var(--sky); }
.env-dot--field { background: #2ee59d; }

.env-label {
  font-weight: 500;
  font-size: 0.95rem;
  flex: 1;
}

.env-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f9960;
  background: rgba(46, 229, 157, 0.12);
  padding: 0.3em 0.7em;
  border-radius: var(--radius-sm);
}

.card-divider {
  height: 1px;
  background: var(--line);
  margin-block: var(--space-lg);
}

.card-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-domain-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--signal);
  background: var(--signal-dim);
  border: 1px solid rgba(10, 107, 232, 0.18);
  padding: 0.32em 0.75em;
  border-radius: var(--radius-sm);
}


/* ================================================================
   10. SERVICES SECTION
   ================================================================ */

.services {
  background: var(--card);
  border-block: 1px solid var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition:
    transform    var(--dur-mid) var(--ease-out),
    box-shadow   var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--signal);
  box-shadow: var(--shadow-md);
}

.service-card__flag {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--signal);
  padding: 0.35em 0.75em;
  border-radius: var(--radius-sm);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  color: var(--signal);
  background: var(--signal-dim);
  border: 1px solid rgba(10, 107, 232, 0.16);
  margin-bottom: var(--space-lg);
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

.service-card__body {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.service-card__list {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: var(--space-md);
  border-top: 1px dashed var(--line-strong);
}

.service-card__list li {
  position: relative;
  padding-left: 1.3em;
  font-size: 0.9rem;
  color: var(--text-2);
}

.service-card__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--signal);
  font-weight: 600;
}


/* ================================================================
   11. EXPERTISE SECTION — dark spec sheet
   ================================================================ */

.expertise {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.expertise::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(93, 178, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 178, 248, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 20%, transparent 75%);
  pointer-events: none;
}

.expertise .container {
  position: relative;
}

.expertise-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.expertise-category {
  background: rgba(16, 35, 52, 0.6);
  border: 1px solid var(--dk-line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--dur-mid) var(--ease-out);
}

.expertise-category:hover {
  border-color: rgba(93, 178, 248, 0.4);
}

.expertise-cat-title {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--dk-text-1);
  margin-bottom: var(--space-lg);
}

.cat-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid rgba(56, 210, 240, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.2em 0.5em;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--dk-text-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dk-line);
  padding: 0.38em 0.8em;
  border-radius: var(--radius-sm);
  transition:
    color        var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background   var(--dur-fast) var(--ease-out);
}

.tag:hover {
  color: var(--dk-text-1);
  border-color: rgba(93, 178, 248, 0.5);
  background: rgba(10, 107, 232, 0.12);
}


/* ================================================================
   12. WHY US SECTION
   ================================================================ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: var(--space-lg);
}

.why-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition:
    transform  var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

.why-card__body {
  color: var(--text-2);
  font-size: 0.95rem;
}


/* ================================================================
   13. PROCESS SECTION
   ================================================================ */

.process {
  background: var(--card);
  border-block: 1px solid var(--line);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.process-step {
  position: relative;
}

/* Connector line between steps */
.step-connector {
  position: absolute;
  top: 24px;
  left: 56px;
  right: calc(-1 * var(--space-xl));
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--line-strong) 0 6px,
    transparent 6px 11px
  );
}

.process-step:last-child .step-connector {
  display: none;
}

.step-number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--signal);
  background: var(--card);
  border: 1.5px solid var(--signal);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

.step-body {
  color: var(--text-2);
  font-size: 0.92rem;
}


/* ================================================================
   14. TESTIMONIALS SECTION
   ================================================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: var(--space-lg);
}

.testimonial {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.testimonial__quote {
  position: relative;
  color: var(--text-2);
  font-size: 0.98rem;
  margin-bottom: var(--space-xl);
  padding-top: 1.6rem;
}

.testimonial__quote::before {
  content: "“";
  position: absolute;
  top: -0.35rem;
  left: -0.1rem;
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--signal);
  opacity: 0.35;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.9em;
  margin-top: auto;
}

.author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--signal);
  background: var(--signal-dim);
  border: 1px solid rgba(10, 107, 232, 0.22);
}

.author-name {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.82rem;
  color: var(--text-3);
}


/* ================================================================
   15. CONTACT SECTION
   ================================================================ */

.contact {
  background: var(--card);
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-sub {
  color: var(--text-2);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-2xl);
  max-width: 420px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.contact-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  font-weight: 500;
  color: var(--text-1);
  transition: color var(--dur-fast) var(--ease-out);
}

a.contact-detail:hover {
  color: var(--signal);
}

.contact-detail__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--signal);
  background: var(--signal-dim);
  border: 1px solid rgba(10, 107, 232, 0.16);
  flex-shrink: 0;
}

.contact-response {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--text-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 0.7em 1.1em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: #2ee59d;
  box-shadow: 0 0 8px rgba(46, 229, 157, 0.7);
  animation: pulse-dot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

/* — Form — */
.contact-form-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group--full {
  margin-bottom: var(--space-lg);
}

.form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-1);
}

.form-label span {
  color: var(--signal);
}

.form-input {
  width: 100%;
  padding: 0.8em 1em;
  font-size: 0.95rem;
  color: var(--text-1);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow   var(--dur-fast) var(--ease-out);
}

.form-input::placeholder {
  color: var(--text-3);
}

.form-input:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(10, 107, 232, 0.14);
}

.form-input.has-error {
  border-color: #d64545;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.12);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23495b6b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.6em;
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-error {
  font-size: 0.8rem;
  color: #c03d3d;
  min-height: 1em;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.form-privacy {
  flex: 1;
  min-width: 220px;
  font-size: 0.8rem;
  color: var(--text-3);
}

.btn--submit {
  position: relative;
}

.btn--submit .btn-loading {
  display: none;
}

.btn--submit.is-loading .btn-text,
.btn--submit.is-loading .btn-icon {
  visibility: hidden;
}

.btn--submit.is-loading .btn-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Honeypot field — kept out of sight and out of the tab order */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-success[hidden] {
  display: none;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-top: var(--space-lg);
  padding: 0.9em 1.2em;
  font-size: 0.92rem;
  font-weight: 500;
  color: #0f7a4d;
  background: rgba(46, 229, 157, 0.12);
  border: 1px solid rgba(46, 229, 157, 0.35);
  border-radius: var(--radius-md);
}

.form-success svg {
  flex-shrink: 0;
}

.form-fail[hidden] {
  display: none;
}

.form-fail {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-top: var(--space-lg);
  padding: 0.9em 1.2em;
  font-size: 0.92rem;
  font-weight: 500;
  color: #a33232;
  background: rgba(214, 69, 69, 0.09);
  border: 1px solid rgba(214, 69, 69, 0.35);
  border-radius: var(--radius-md);
}

.form-fail svg {
  flex-shrink: 0;
}


/* ================================================================
   16. FOOTER
   ================================================================ */

.site-footer {
  background: var(--ink);
  color: var(--dk-text-2);
  padding-block: var(--space-3xl) var(--space-xl);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--dk-line);
}

.footer-brand .brand {
  margin-bottom: var(--space-md);
}

.site-footer .brand-icon img {
  width: 28px;
  height: 28px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--dk-text-2);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.footer-nav-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: var(--space-md);
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-nav-col a,
.footer-nav-col span {
  font-size: 0.9rem;
  color: var(--dk-text-2);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-nav-col a:hover {
  color: var(--dk-text-1);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-xl);
}

.footer-copy,
.footer-legal {
  font-size: 0.8rem;
  color: var(--dk-text-2);
}

.footer-legal a {
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-legal a:hover {
  color: var(--dk-text-1);
}


/* ================================================================
   16b. LEGAL PAGES (privacy.html / terms.html)
   ================================================================ */

.legal-page {
  padding-top: calc(var(--header-h) + var(--space-3xl));
  padding-bottom: var(--space-4xl);
}

.legal-header {
  background: var(--ink);
  border-bottom: 1px solid var(--dk-line);
}

.legal-header.site-header {
  position: absolute;
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: var(--space-md);
}

.prose {
  max-width: 760px;
  margin-top: var(--space-2xl);
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: var(--space-2xl) 0 var(--space-md);
}

.prose p,
.prose ul {
  color: var(--text-2);
  margin-bottom: var(--space-md);
}

.prose ul {
  padding-left: 1.1rem;
  list-style: disc;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose strong {
  color: var(--text-1);
}


/* ================================================================
   17. BACK TO TOP
   ================================================================ */

.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  background: var(--signal);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(10, 107, 232, 0.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity   var(--dur-mid) var(--ease-out),
    transform var(--dur-mid) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--signal-deep);
}


/* ================================================================
   18. RESPONSIVE OVERRIDES
   ================================================================ */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-schematic {
    max-width: 560px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl) var(--space-xl);
  }

  .process-step:nth-child(2) .step-connector {
    display: none;
  }
}

@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    max-width: 480px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding-block: var(--space-4xl);
  }

  /* Mobile nav: slide-in panel */
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 95;
    height: 100dvh;
    width: min(320px, 84vw);
    background: var(--ink);
    border-left: 1px solid var(--dk-line);
    padding: calc(var(--header-h) + var(--space-xl)) var(--space-xl) var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--dur-mid) var(--ease-out);
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .nav-link--cta {
    margin-top: var(--space-md);
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .step-connector {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions .btn {
    width: 100%;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ================================================================
   19. ACCESSIBILITY & MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .topo-link {
    animation: none;
  }

  .topo-packets {
    display: none;
  }
}
