/* ═══════════════════════════════════════════════
   INTELLIDALE INC. — style.css
   Brand: Cyan (#1EC8E0) + Black + Dark navy
   ═══════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --cyan:      #1EC8E0;
  --cyan-dim:  #16a8be;
  --cyan-soft: #7ee8f7;
  --violet:    #6D5CFF;
  --cyan-glow: rgba(30, 200, 224, 0.18);
  --bg:        #080d14;
  --bg-2:      #0d1520;
  --bg-card:   #0f1c2e;
  --border:    rgba(30, 200, 224, 0.12);
  --border-lit:rgba(30, 200, 224, 0.32);
  --text:      #e8f0f8;
  --text-muted:#7a9bb5;
  --white:     #ffffff;
  --radius:    14px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  /* Motion curves — one expressive, one crisp */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', sans-serif;
  --font-head: 'Space Grotesk', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* Lets <details> animate from 0 to auto height */
@supports (interpolate-size: allow-keywords) {
  html { interpolate-size: allow-keywords; }
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Replaces the default blue tap flash on Android/iOS */
  -webkit-tap-highlight-color: rgba(30, 200, 224, 0.15);
}

/* Fine film grain — sits above everything, catches no clicks.
   Keeps large flat dark areas from looking like dead pixels. */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-4%, -6%); }
  20% { transform: translate(-8%, 2%); }
  30% { transform: translate(4%, -8%); }
  40% { transform: translate(-2%, 8%); }
  50% { transform: translate(-8%, 4%); }
  60% { transform: translate(6%, 0); }
  70% { transform: translate(0, 6%); }
  80% { transform: translate(2%, -4%); }
  90% { transform: translate(-4%, 2%); }
}

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

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

::selection {
  background: rgba(30, 200, 224, 0.28);
  color: var(--white);
}

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(30, 200, 224, 0.28) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(30, 200, 224, 0.22);
  border-radius: 100px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(30, 200, 224, 0.45); }

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

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; }

.gradient-text {
  background: linear-gradient(120deg, var(--cyan) 0%, #7ee8f7 55%, #b9a6ff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-drift 9s ease-in-out infinite alternate;
}

@keyframes gradient-drift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* ── SCROLL PROGRESS ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 1001;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-soft) 55%, var(--violet));
  box-shadow: 0 0 12px rgba(30, 200, 224, 0.6);
  will-change: transform;
}

/* ── LAYOUT ── */
.container {
  width: 92%;
  max-width: 1160px;
  margin: 0 auto;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-2);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(30, 200, 224, 0.1);
  border: 1px solid rgba(30, 200, 224, 0.25);
  padding: 5px 14px 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  overflow: hidden;
}

/* Live indicator dot */
.section-label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

/* Light sweeping across the pill */
.section-label::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(30, 200, 224, 0.28) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: label-sweep 5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.75); }
}

@keyframes label-sweep {
  0%, 55%  { transform: translateX(-100%); }
  85%, 100% { transform: translateX(100%); }
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ── BUTTONS ── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Specular sweep — fires once per hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease-out);
  pointer-events: none;
}

.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(0) scale(0.985); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #4ad6ea 50%, var(--cyan-dim) 100%);
  color: #04090f;
  box-shadow: 0 0 24px rgba(30, 200, 224, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 10px 40px rgba(30, 200, 224, 0.5), 0 0 60px rgba(30, 200, 224, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-ghost::after {
  background: linear-gradient(110deg, transparent 30%, rgba(30, 200, 224, 0.22) 50%, transparent 70%);
}

.btn-ghost:hover {
  border-color: var(--border-lit);
  color: var(--cyan);
  background: rgba(30, 200, 224, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

.btn-full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════
   NAVBAR
═══════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 18px 0;
  transition: padding 0.4s var(--ease-soft), background 0.4s ease,
              backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  padding: 11px 0;
  background: rgba(8, 13, 20, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(30, 200, 224, 0.08), 0 8px 32px rgba(0, 0, 0, 0.45);
}

.nav-inner {
  width: 92%;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(30,200,224,0.2));
  transition: transform 0.4s var(--ease-out), filter 0.4s ease;
}

#navbar.scrolled .nav-logo img { height: 32px; }

.nav-logo:hover img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 14px rgba(30, 200, 224, 0.5));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 34px;
  align-items: center;
}

.nav-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

/* Underline grows from the centre; stays lit for the active section */
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a.is-active:not(.nav-cta)::after { transform: scaleX(1); }

.nav-links a:hover { color: var(--white); }

.nav-links a.is-active:not(.nav-cta) {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(30, 200, 224, 0.45);
}

/* No white flash here — the button stays alive with a slow violet orb drifting
   inside it, and hover travels the gradient toward violet + reveals an arrow. */
.nav-links .nav-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(115deg, var(--cyan) 0%, #45d9ee 32%, #8f86ff 58%, #45d9ee 80%, var(--cyan) 100%);
  background-size: 260% 100%;
  background-position: 0% 50%;
  color: #050c14;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  transition: background-position 0.9s var(--ease-out), box-shadow 0.35s ease,
              transform 0.35s var(--ease-out);
}

.nav-links .nav-cta::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  left: -20%;
  top: 50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 92, 255, 0.55), transparent 62%);
  transform: translateY(-50%);
  animation: cta-orb 9s ease-in-out infinite alternate;
}

@keyframes cta-orb {
  from { transform: translate(0, -50%) scale(0.9); opacity: 0.55; }
  to   { transform: translate(150%, -50%) scale(1.25); opacity: 0.95; }
}

/* Arrow slides out of the label on hover */
.nav-links .nav-cta::after {
  content: '→';
  display: inline-block;
  width: 0;
  margin-left: 0;
  opacity: 0;
  transform: translateX(-5px);
  transition: width 0.35s var(--ease-out), margin-left 0.35s var(--ease-out),
              opacity 0.3s ease, transform 0.35s var(--ease-out);
}

.nav-links .nav-cta:hover {
  color: #050c14;
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 8px 26px rgba(30, 200, 224, 0.4), 0 0 34px rgba(109, 92, 255, 0.25);
}

.nav-links .nav-cta:hover::after {
  width: 1em;
  margin-left: 6px;
  opacity: 1;
  transform: translateX(0);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out), opacity 0.25s ease, background 0.3s ease;
}

/* Morph to an X */
.burger[aria-expanded="true"] span { background: var(--cyan); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 120px 6% 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 200, 224, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 200, 224, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  /* Grid dissolves toward the edges instead of stopping hard */
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 25%, transparent 78%);
  animation: grid-drift 24s linear infinite;
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 60px 60px, 60px 60px; }
}

/* A light beam that sweeps the hero every few seconds */
.hero::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(30, 200, 224, 0.055) 45%, transparent);
  transform: skewX(-14deg);
  pointer-events: none;
  animation: hero-sweep 11s ease-in-out infinite;
}

@keyframes hero-sweep {
  0%, 100% { left: -60%; opacity: 0; }
  35%      { opacity: 1; }
  65%      { opacity: 1; }
  99%      { left: 115%; opacity: 0; }
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
}

/* Slow-drifting aurora blobs give the background depth without motion sickness */
.hero-glow-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(30, 200, 224, 0.16), transparent 68%);
  top: -110px; left: -140px;
  animation: aurora-a 19s ease-in-out infinite alternate;
}

.hero-glow-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(109, 92, 255, 0.15), transparent 68%);
  bottom: -80px; right: 8%;
  animation: aurora-b 23s ease-in-out infinite alternate;
}

@keyframes aurora-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(90px, 60px, 0) scale(1.18); }
}

@keyframes aurora-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to   { transform: translate3d(-80px, -50px, 0) scale(0.92); }
}

.hero-content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(30, 200, 224, 0.08);
  border: 1px solid rgba(30, 200, 224, 0.2);
  padding: 6px 18px 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

/* Radar-style pinging dot */
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(30, 200, 224, 0.7);
  animation: badge-ping 2.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes badge-ping {
  0%   { box-shadow: 0 0 0 0 rgba(30, 200, 224, 0.65); }
  70%  { box-shadow: 0 0 0 9px rgba(30, 200, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 200, 224, 0); }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

/* ── Masked line reveal ──
   Each line sits in an overflow-hidden window and slides up into place.
   The padding/margin pair stops descenders (y, g) being clipped. */
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.hero-title .line-inner {
  display: block;
  transform: translateY(110%);
  animation: line-rise 1.1s var(--ease-out) forwards;
}

.hero-title .line:nth-child(1) .line-inner { animation-delay: 0.15s; }
.hero-title .line:nth-child(2) .line-inner { animation-delay: 0.29s; }

@keyframes line-rise {
  to { transform: translateY(0); }
}

/* Everything else in the hero fades up behind the title */
.hero-badge,
.hero-sub,
.hero-actions {
  opacity: 0;
  animation: hero-enter 0.9s var(--ease-out) forwards;
}

.hero-badge   { animation-delay: 0.05s; }
.hero-sub     { animation-delay: 0.48s; }
.hero-actions { animation-delay: 0.6s; }

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Hero Visual ── */
.hero-visual {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  transform-style: preserve-3d;
  /* --tilt-x / --tilt-y / --shift are written to .hero by script.js */
  transform:
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translateX(var(--shift, 0px));
  transition: transform 0.6s var(--ease-out);
  opacity: 0;
  /* Fade only — animating transform here would clobber the tilt vars above */
  animation: fade-in 1.1s var(--ease-out) 0.35s forwards;
}

@keyframes fade-in {
  to { opacity: 1; }
}

.hero-card-orbit {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

/* ── Orbital system: two rings and three independently moving moons ── */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(30, 200, 224, 0.2);
  box-shadow: inset 0 0 24px rgba(30, 200, 224, 0.025);
  animation: orbit-spin 24s linear infinite;
  pointer-events: none;
}

.ring-1 {
  width: 260px;
  height: 260px;
  border-color: rgba(30, 200, 224, 0.22);
}

.ring-2 {
  width: 340px;
  height: 340px;
  border-style: dashed;
  border-color: rgba(109, 92, 255, 0.22);
  animation-duration: 34s;
  animation-direction: reverse;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.orbit-center {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 2px solid rgba(30, 200, 224, 0.3);
  border-radius: 50%;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px rgba(30, 200, 224, 0.25), 0 0 0 8px rgba(30, 200, 224, 0.06);
  overflow: hidden;
}

.orbit-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  padding: 8px;
}

.orbit-dot {
  --orbit-radius: 130px;
  --orbit-duration: 8s;
  --orbit-start: 0deg;
  --orbit-turn: 360deg;
  --moon-color: var(--cyan);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  z-index: 3;
  background: var(--moon-color);
  border-radius: 50%;
  box-shadow:
    0 0 6px var(--moon-color),
    0 0 18px var(--moon-color),
    0 0 34px color-mix(in srgb, var(--moon-color) 45%, transparent);
  animation: orbit-dot-spin var(--orbit-duration) linear infinite;
  will-change: transform, filter;
  pointer-events: none;
}

.orbit-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid color-mix(in srgb, var(--moon-color) 55%, transparent);
  border-radius: inherit;
  animation: moon-halo 1.8s ease-in-out infinite;
}

.dot-1 {
  --orbit-radius: 130px;
  --orbit-duration: 7.5s;
  --orbit-start: -90deg;
  --moon-color: var(--cyan);
  width: 11px;
  height: 11px;
}

.dot-2 {
  --orbit-radius: 168px;
  --orbit-duration: 11s;
  --orbit-start: 28deg;
  --orbit-turn: -360deg;
  --moon-color: var(--violet);
  width: 9px;
  height: 9px;
}

.dot-3 {
  --orbit-radius: 108px;
  --orbit-duration: 5.8s;
  --orbit-start: 155deg;
  --moon-color: #b8f7ff;
  width: 7px;
  height: 7px;
}

@keyframes orbit-dot-spin {
  from {
    transform:
      translate(-50%, -50%)
      rotate(var(--orbit-start))
      translateX(var(--orbit-radius));
    filter: brightness(0.85);
  }
  50% { filter: brightness(1.45); }
  to {
    transform:
      translate(-50%, -50%)
      rotate(calc(var(--orbit-start) + var(--orbit-turn)))
      translateX(var(--orbit-radius));
    filter: brightness(0.85);
  }
}

@keyframes moon-halo {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50%      { opacity: 0.85; transform: scale(1.15); }
}

@keyframes rotate-angle {
  to { --angle: 360deg; }
}

/* ═══════════════════════════════════
   SERVICES
═══════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 45%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: border-color 0.4s ease, transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

/* Cursor-tracked spotlight — --mx/--my are written by script.js */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(30, 200, 224, 0.14), transparent 42%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.service-card:hover {
  border-color: var(--border-lit);
  transform: translateY(-8px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(30, 200, 224, 0.09);
}

.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { opacity: 1; }

.service-icon {
  position: relative;
  width: 52px;
  height: 52px;
  background: rgba(30, 200, 224, 0.1);
  border: 1px solid rgba(30, 200, 224, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--cyan);
  transition: transform 0.5s var(--ease-out), background 0.4s ease,
              border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  transition: transform 0.5s var(--ease-out);
}

.service-card:hover .service-icon {
  background: rgba(30, 200, 224, 0.18);
  border-color: var(--border-lit);
  transform: translateY(-3px) rotate(-4deg);
  box-shadow: 0 8px 26px rgba(30, 200, 224, 0.25);
}

.service-card:hover .service-icon svg { transform: scale(1.12) rotate(4deg); }

.service-card h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.service-tags li {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--cyan);
  background: rgba(30, 200, 224, 0.08);
  border: 1px solid rgba(30, 200, 224, 0.18);
  padding: 3px 10px;
  border-radius: 100px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.service-card:hover .service-tags li {
  background: rgba(30, 200, 224, 0.14);
  border-color: rgba(30, 200, 224, 0.34);
}

.service-tags li:hover {
  transform: translateY(-2px);
  background: rgba(30, 200, 224, 0.22);
}

/* ═══════════════════════════════════
   TECH STACK — MARQUEE
═══════════════════════════════════ */
.marquee-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0 0 8px;
  touch-action: pan-y;
  scrollbar-width: none;
}

/* Gradient edge fades */
.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 3;
  pointer-events: none;
}

.marquee-fade-left {
  left: 0;
  background: linear-gradient(90deg, var(--bg-2) 0%, transparent 100%);
}

.marquee-fade-right {
  right: 0;
  background: linear-gradient(270deg, var(--bg-2) 0%, transparent 100%);
}

/* Track */
.marquee-track {
  display: flex;
  width: max-content;
  padding: 10px 0;
}

/* --speed is set per row so longer rows don't scroll faster */
.marquee-track[data-direction="left"] .marquee-content {
  animation: marquee-scroll-left var(--speed, 50s) linear infinite;
}

.marquee-track[data-direction="right"] .marquee-content {
  animation: marquee-scroll-right var(--speed, 50s) linear infinite;
}

.marquee-content {
  --marquee-gap: 20px;
  --marquee-gutter: 10px;
  display: flex;
  gap: var(--marquee-gap);
  padding: 0 var(--marquee-gutter);
  will-change: transform;
}

@keyframes marquee-scroll-left {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes marquee-scroll-right {
  0%   { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ── Tech Card ── */
.tech-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
  cursor: default;
  perspective: 600px;
}

.tech-card svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.tech-card span {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.35s ease;
}

.tech-card:hover {
  transform: translateY(-4px) scale(1.06) rotateX(2deg);
  border-color: var(--glow, var(--cyan));
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 20px color-mix(in srgb, var(--glow, var(--cyan)) 25%, transparent),
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tech-card:hover svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px var(--glow, var(--cyan)));
}

.tech-card:hover span {
  color: var(--white);
}

/* ═══════════════════════════════════
   WHY US
═══════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.why-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(30, 200, 224, 0.08);
  background: rgba(15, 28, 46, 0.5);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s ease, transform 0.45s var(--ease-out),
              background 0.4s ease, box-shadow 0.45s var(--ease-out);
}

.why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%),
    rgba(30, 200, 224, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.why-card:hover {
  border-color: rgba(30, 200, 224, 0.28);
  background: rgba(15, 28, 46, 0.75);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.why-card:hover::after { opacity: 1; }

.why-number {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  background: linear-gradient(160deg, rgba(30, 200, 224, 0.55), rgba(109, 92, 255, 0.18));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.5s var(--ease-out);
}

.why-card:hover .why-number { transform: translateY(-2px) scale(1.06); }

.why-card h3 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════
   PROCESS
═══════════════════════════════════ */
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}

.process-step {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(30, 200, 224, 0.1);
  border: 2px solid rgba(30, 200, 224, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: background 0.4s ease, box-shadow 0.4s ease,
              transform 0.45s var(--ease-out), border-color 0.4s ease;
}

/* Expanding ring on hover */
.step-num::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s ease;
}

.process-step:hover .step-num {
  background: rgba(30, 200, 224, 0.22);
  border-color: var(--cyan);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 0 32px rgba(30, 200, 224, 0.45);
}

.process-step:hover .step-num::after {
  transform: scale(1.5);
  opacity: 0;
  animation: step-ripple 1.2s var(--ease-out) infinite;
}

@keyframes step-ripple {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

.step-content h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.process-connector {
  flex: 0 0 60px;
  height: 2px;
  background: rgba(30, 200, 224, 0.14);
  margin-top: 27px;
  position: relative;
  overflow: visible;
}

/* Fills left-to-right when the row scrolls into view */
.process-connector::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--cyan), rgba(30, 200, 224, 0.5));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.9s var(--ease-soft);
}

.process-connector.filled::before { transform: scaleX(1); }

.process-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid rgba(30, 200, 224, 0.4);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  opacity: 0;
  transition: opacity 0.4s ease 0.6s;
}

.process-connector.filled::after { opacity: 1; }

/* A pulse that travels the connector, suggesting flow between stages */
.process-connector.filled {
  background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: connector-pulse 2.8s ease-in-out 1s infinite;
}

@keyframes connector-pulse {
  0%   { background-position: -50% 0; }
  60%  { background-position: 150% 0; }
  100% { background-position: 150% 0; }
}

/* ═══════════════════════════════════
   CONTACT
═══════════════════════════════════ */
.section-contact {
  background: var(--bg-2);
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(30, 200, 224, 0.09) 0%, transparent 70%);
  top: 50%; left: 50%;
  margin: -300px 0 0 -300px;
  pointer-events: none;
  animation: contact-glow-drift 14s ease-in-out infinite alternate;
}

@keyframes contact-glow-drift {
  from { transform: translate3d(-60px, -20px, 0) scale(0.9); }
  to   { transform: translate3d(60px, 20px, 0) scale(1.15); }
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-text { padding-top: 8px; }

.contact-text .section-title {
  margin-bottom: 16px;
}

.contact-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

.contact-link svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
  flex-shrink: 0;
}

.contact-link:hover { color: var(--cyan); }

/* ── Contact Form ── */
.contact-form-wrap {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* Slow conic sheen around the form — the page's focal point */
.contact-form-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle),
    transparent 0deg, rgba(30, 200, 224, 0.5) 60deg,
    rgba(109, 92, 255, 0.4) 120deg, transparent 200deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: rotate-angle 8s linear infinite;
  pointer-events: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.3s var(--ease-out);
}

.form-group:focus-within label {
  color: var(--cyan);
  transform: translateX(3px);
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease,
              background 0.3s ease, transform 0.3s var(--ease-out);
  resize: vertical;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(122, 155, 181, 0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder { opacity: 0.45; transform: translateX(4px); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(30, 200, 224, 0.55);
  background: rgba(30, 200, 224, 0.05);
  box-shadow: 0 0 0 3px rgba(30, 200, 224, 0.12), 0 8px 28px rgba(30, 200, 224, 0.1);
}

/* Filled-and-valid gets a quiet confirmation tint */
.form-group input:not(:placeholder-shown):valid,
.form-group textarea:not(:placeholder-shown):valid {
  border-color: rgba(30, 200, 224, 0.22);
}

.form-note {
  font-size: 0.82rem;
  text-align: center;
  color: var(--cyan);
  min-height: 18px;
  transition: opacity 0.3s ease;
}

.form-note:not(:empty) { animation: hero-enter 0.4s var(--ease-out) forwards; }

/* ═══════════════════════════════════
   FAQ
═══════════════════════════════════ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition),
              box-shadow 0.4s var(--ease-out);
}

/* Accent bar on the open item */
.faq-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.45s var(--ease-out);
}

.faq-item[open]::before { transform: scaleY(1); }

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(30, 200, 224, 0.3);
}

.faq-item[open] {
  background: rgba(15, 28, 46, 0.9);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  transition: padding-left 0.35s var(--ease-out);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { padding-left: 26px; }
.faq-item[open] summary { padding-left: 26px; }

.faq-item summary h3 {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--white);
  transition: color 0.3s ease;
}

.faq-item[open] summary h3 { color: var(--cyan); }

/* Plus sign that rotates into a minus */
.faq-item summary::after {
  content: '';
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--cyan), var(--cyan)) center / 14px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) center / 2px 14px no-repeat;
  transform: rotate(0deg);
  transition: transform 0.45s var(--ease-out);
}

.faq-item[open] summary::after {
  transform: rotate(135deg);
  background:
    linear-gradient(var(--cyan), var(--cyan)) center / 14px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) center / 2px 14px no-repeat;
  opacity: 0.9;
}

.faq-item > p {
  padding: 0 22px 20px 26px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* Smooth open/close where ::details-content is supported; instant elsewhere */
@supports selector(::details-content) {
  .faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    opacity: 0;
    transition: block-size 0.45s var(--ease-soft), opacity 0.35s ease,
                content-visibility 0.45s allow-discrete;
  }

  .faq-item[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

/* ═══════════════════════════════════
   RECENT WORK — deliberately one line
═══════════════════════════════════ */
.recent-work {
  padding: 26px 0;
  background: var(--bg);
  border-top: 1px solid rgba(30, 200, 224, 0.07);
}

.recent-work-line {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.recent-work-label {
  display: inline-block;
  margin-right: 10px;
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.recent-work-line a {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid rgba(30, 200, 224, 0.4);
  transition: color var(--transition), border-color var(--transition);
}

.recent-work-line a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.footer {
  border-top: 1px solid rgba(30, 200, 224, 0.08);
  padding: 40px 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.8;
  filter: drop-shadow(0 0 4px rgba(30,200,224,0.15));
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.4s var(--ease-out);
}

.footer-logo:hover {
  opacity: 1;
  transform: scale(1.04);
  filter: drop-shadow(0 0 12px rgba(30, 200, 224, 0.45));
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(30, 200, 224, 0.15);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition),
              background var(--transition), transform 0.4s var(--ease-out),
              box-shadow 0.4s ease;
}

.footer-socials a svg { width: 16px; height: 16px; }

.footer-socials a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(30, 200, 224, 0.08);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 24px rgba(30, 200, 224, 0.28);
}

/* ═══════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out),
    filter 0.75s var(--ease-out);
  will-change: opacity, transform;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  will-change: auto;
}

/* Safety net: if JS never runs, nothing stays invisible */
.no-js .fade-up {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ═══════════════════════════════════
   REDUCED MOTION
   Everything decorative stops; nothing becomes unreadable.
═══════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html { scroll-behavior: auto; }

  .fade-up,
  .fade-up.visible {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero-title .line-inner { transform: none; }
  .hero-badge, .hero-sub, .hero-actions { opacity: 1; transform: none; }
  .process-connector::before { transform: scaleX(1); }
  .process-connector::after  { opacity: 1; }
  body::after { display: none; }

  /* Keep the two user-facing ambient displays alive. Their movement is slow,
     linear, and contains no flashes or abrupt zooms. */
  .marquee-track[data-direction="left"] .marquee-content,
  .marquee-track[data-direction="right"] .marquee-content {
    animation-duration: var(--speed, 50s) !important;
    animation-iteration-count: infinite !important;
  }

  .orbit-ring {
    animation-duration: 24s !important;
    animation-iteration-count: infinite !important;
  }

  .ring-2 { animation-duration: 34s !important; }

  .orbit-dot {
    animation-duration: var(--orbit-duration) !important;
    animation-iteration-count: infinite !important;
  }

  .orbit-dot::after {
    animation-duration: 1.8s !important;
    animation-iteration-count: infinite !important;
  }
}

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 960px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero-content { max-width: 100%; }
  .hero-sub { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .process-steps {
    flex-direction: column;
    align-items: center;
  }

  .process-connector {
    width: 2px;
    height: 40px;
    flex: 0;
    margin: 0;
    background: rgba(30, 200, 224, 0.14);
    animation: none;
  }

  /* Vertical stack — fill downward instead of rightward */
  .process-connector::before {
    background: linear-gradient(180deg, var(--cyan), rgba(30, 200, 224, 0.5));
    transform: scaleY(0);
    transform-origin: 50% 0;
  }

  .process-connector.filled::before { transform: scaleY(1); }

  .process-connector::after {
    right: auto;
    top: auto;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid rgba(30, 200, 224, 0.4);
  }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 62px; left: 0; right: 0;
    background: rgba(8, 13, 20, 0.94);
    padding: 22px 6% 28px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    animation: menu-drop 0.4s var(--ease-out) both;
  }

  @keyframes menu-drop {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Each row slides in just behind the one above it */
  .nav-links.open li {
    animation: menu-item 0.45s var(--ease-out) both;
  }

  .nav-links.open li:nth-child(1) { animation-delay: 0.05s; }
  .nav-links.open li:nth-child(2) { animation-delay: 0.10s; }
  .nav-links.open li:nth-child(3) { animation-delay: 0.15s; }
  .nav-links.open li:nth-child(4) { animation-delay: 0.20s; }
  .nav-links.open li:nth-child(5) { animation-delay: 0.25s; }

  @keyframes menu-item {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  .nav-links.open a:not(.nav-cta) {
    display: block;
    padding: 12px 4px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(30, 200, 224, 0.07);
  }

  .nav-links.open a:not(.nav-cta)::after { display: none; }

  /* Inline by default — must be block for the vertical padding/margin to apply */
  .nav-links.open .nav-cta {
    display: block;
    margin-top: 14px;
    text-align: center;
    padding: 13px 20px;
  }

  .burger { display: flex; }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .contact-form-wrap { padding: 28px 20px; }

  /* Marquee responsive */
  .marquee-fade { width: 40px; }
  .tech-card {
    padding: 10px 16px;
    gap: 8px;
  }
  .tech-card svg {
    width: 22px;
    height: 22px;
  }
  .tech-card span {
    font-size: 0.78rem;
  }
  .marquee-content {
    --marquee-gap: 12px;
    --marquee-gutter: 6px;
  }
  .marquee-track[data-direction="left"] .marquee-content,
  .marquee-track[data-direction="right"] .marquee-content {
    /* Rows are narrower here, so shorten the loop to keep the same pace */
    animation-duration: calc(var(--speed, 50s) * 0.62);
  }

  /* ── Touch ergonomics ── */

  /* Under 16px, iOS Safari zooms the whole page when a field takes focus */
  .form-group input,
  .form-group textarea {
    font-size: 16px;
    padding: 14px 16px;
  }

  .form-group label { font-size: 0.78rem; }

  /* 44px minimum tap targets */
  .burger {
    width: 44px;
    height: 44px;
    margin-right: -8px;
  }

  .nav-logo {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .footer-socials a { width: 44px; height: 44px; }
  .footer-socials a svg { width: 18px; height: 18px; }

  .faq-item summary { padding-top: 16px; padding-bottom: 16px; }

  /* Slightly larger body copy reads better on a phone */
  .service-card p,
  .why-card p,
  .faq-item > p { font-size: 0.95rem; }

  .service-card { padding: 30px 24px; }
  .why-card { padding: 28px 24px; }
}

/* ═══════════════════════════════════
   TOUCH DEVICES
   Hover lifts stay stuck after a tap on touch screens, so drop the
   transform-based ones and let :active carry the feedback instead.
═══════════════════════════════════ */
@media (hover: none) {
  .service-card:hover,
  .why-card:hover,
  .tech-card:hover,
  .btn:hover,
  .footer-socials a:hover,
  .nav-links .nav-cta:hover,
  .service-tags li:hover {
    transform: none;
  }

  .service-card:hover .service-icon { transform: none; }
  .service-card:hover .service-icon svg { transform: none; }
  .why-card:hover .why-number { transform: none; }
  .process-step:hover .step-num { transform: none; }
  .process-step:hover .step-num::after { animation: none; opacity: 0; }
  .nav-logo:hover img,
  .footer-logo:hover { transform: none; }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero { padding-left: 5%; padding-right: 5%; }
  .hero-title { font-size: 2.35rem; }
  .hero-badge { font-size: 0.7rem; padding: 5px 14px 5px 11px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .container { width: 90%; }
  .contact-form-wrap { padding: 24px 16px; }
  .footer-copy { font-size: 0.78rem; }
}
