/* ============================================
   Kai Development — main stylesheet
   ============================================ */

:root {
  --bg: #0a0e17;
  --bg-alt: #0d1220;
  --surface: #121826;
  --surface-2: #171f30;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e9ecf5;
  --text-dim: #9aa3b8;
  --text-dimmer: #6b7386;

  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --green: #22c55e;

  --gradient-1: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
  --gradient-2: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  --gradient-text: linear-gradient(90deg, var(--purple-light), var(--cyan));
  --gradient-text-alt: linear-gradient(90deg, var(--pink), var(--purple-light));

  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.35);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

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

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

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--purple), var(--cyan)); border-radius: 10px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

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

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-alt {
  background: var(--gradient-text-alt);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6), 0 0 40px rgba(6, 182, 212, 0.3);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-arrow { transition: transform 0.3s; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-nav { margin-left: auto; margin-right: 14px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hide { opacity: 0; visibility: hidden; }
.preloader-inner {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 4px;
}
.preloader-bracket { color: var(--purple-light); }
.preloader-text em { font-style: normal; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.preloader-bar { width: 180px; height: 3px; background: rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; }
.preloader-bar span {
  display: block; height: 100%; width: 0%;
  background: var(--gradient-1);
  animation: loadbar 1.4s ease forwards;
}
@keyframes loadbar { to { width: 100%; } }

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  will-change: transform;
}

#particles {
  position: fixed; inset: 0;
  z-index: 0;
  opacity: 0.6;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px 0;
  transition: all 0.35s ease;
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 32px; }
.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-bracket { color: var(--purple-light); }
.logo-accent { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 30px; margin-left: 20px; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--text-dim);
  position: relative; padding: 4px 0; transition: color 0.25s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--gradient-1); transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; z-index: 600; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 20%, transparent 80%);
  z-index: 0;
}
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  z-index: 0;
  animation: blobfloat 12s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: var(--purple); top: -150px; right: -100px; }
.blob-2 { width: 450px; height: 450px; background: var(--cyan); bottom: -180px; left: -120px; animation-delay: -6s; }
@keyframes blobfloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  font-size: 0.82rem; font-weight: 500; color: var(--purple-light);
  margin-bottom: 24px;
}
.dot-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-sub { color: var(--text-dim); font-size: 1.1rem; max-width: 540px; margin-bottom: 36px; min-height: 54px; }
.typed { color: var(--cyan); font-weight: 600; }
.cursor-blink { color: var(--cyan); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-cta { display: flex; gap: 16px; margin-bottom: 42px; flex-wrap: wrap; }

.hero-trust { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-trust > span { color: var(--text-dimmer); font-size: 0.85rem; }
.trust-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-badges span {
  font-size: 0.78rem; font-weight: 600; color: var(--text-dim);
  padding: 5px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}

/* Hero visual / code window */
.hero-visual { position: relative; }
.code-window {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 60px rgba(124, 58, 237, 0.15);
  transform: perspective(1000px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.code-window:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
.code-window-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.code-window-title { margin-left: 10px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dimmer); }
.code-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.8;
  overflow-x: auto;
  color: #d4d9e8;
}
.c-key { color: #ff7ab2; }
.c-var { color: #79c0ff; }
.c-fn { color: #d2a8ff; }
.c-str { color: #a5d6ff; }
.c-num { color: #f8c555; }
.c-comment { color: #6b7386; }

.floating-card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  font-size: 0.82rem;
  animation: floaty 5s ease-in-out infinite;
  backdrop-filter: blur(10px);
}
.floating-card strong { display: block; font-size: 0.85rem; }
.floating-card small { color: var(--text-dimmer); font-size: 0.72rem; }
.fc-icon { font-size: 1.4rem; }
.card-1 { top: -20px; left: -30px; animation-delay: -1s; }
.card-2 { bottom: -20px; right: -20px; animation-delay: -3s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.72rem; color: var(--text-dimmer); letter-spacing: 0.1em; text-transform: uppercase;
  z-index: 2;
}
.scroll-indicator span {
  width: 22px; height: 36px; border: 2px solid var(--text-dimmer); border-radius: 20px;
  position: relative;
}
.scroll-indicator span::before {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--cyan); border-radius: 4px;
  animation: scrolldown 1.6s ease infinite;
}
@keyframes scrolldown {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
[data-reveal].visible { opacity: 1; transform: translateY(0); }

/* ---------- Stats ---------- */
.stats { padding: 70px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-card p { color: var(--text-dim); font-size: 0.92rem; margin-top: 6px; }
.stat-num {
  font-family: var(--font-heading); font-size: 2.6rem; font-weight: 700;
  background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-suffix { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 700; color: var(--purple-light); }

/* ---------- Section shared ---------- */
section { position: relative; z-index: 2; padding: 120px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 1.02rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(124, 58, 237, 0.15);
}
.service-icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(6,182,212,0.18));
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.service-card p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 16px; }
.service-link { font-size: 0.85rem; font-weight: 600; color: var(--cyan); }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.about-visual { position: relative; display: flex; align-items: center; justify-content: center; height: 420px; }
.about-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.35), transparent 70%);
  filter: blur(20px);
}
.stack-orbit { position: relative; width: 320px; height: 320px; }
.orbit-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--gradient-1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem; color: #fff;
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.6);
}
.orbit-item {
  position: absolute;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--text);
  animation: orbit 16s linear infinite;
}
.oi-1 { top: 0; left: 50%; margin-left: -26px; animation-duration: 14s; }
.oi-2 { top: 50%; right: 0; margin-top: -26px; animation-duration: 18s; }
.oi-3 { bottom: 0; left: 50%; margin-left: -26px; animation-duration: 20s; }
.oi-4 { top: 50%; left: 0; margin-top: -26px; animation-duration: 16s; }
.oi-5 { top: 15%; left: 15%; animation-duration: 22s; }
.oi-6 { bottom: 15%; right: 15%; animation-duration: 24s; }
@keyframes orbit {
  from { transform: rotate(0deg) translateX(140px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(140px) rotate(-360deg); }
}
.about-copy p { color: var(--text-dim); margin: 20px 0 24px; }
.check-list { margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.check-list li { font-size: 0.95rem; color: var(--text); display: flex; gap: 10px; align-items: center; }
.check { color: var(--green); font-weight: 700; }

/* ---------- Marquee ---------- */
.marquee-wrap {
  position: relative; z-index: 2;
  padding: 34px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.marquee { overflow: hidden; }
.marquee-track {
  display: flex; gap: 50px; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--text-dimmer);
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee-track span:hover { color: var(--cyan); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Process ---------- */
.process-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px;
}
.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.process-step:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(124, 58, 237, 0.15);
}
.process-num {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700;
  color: var(--text-dimmer);
}
.process-icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(6,182,212,0.18));
  margin-bottom: 20px;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.process-step p { color: var(--text-dim); font-size: 0.88rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  padding: 90px 0;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.18), transparent 70%);
}
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 36px; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; }
.contact-copy p { color: var(--text-dim); margin: 18px 0 32px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact-info div { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--text-dim); }
.contact-info a:hover { color: var(--cyan); }

.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-dim); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.92rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}
.form-group textarea { resize: vertical; }
.form-note { margin-top: 14px; font-size: 0.85rem; color: var(--green); min-height: 20px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 2; padding: 80px 0 0; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr; gap: 40px; padding-bottom: 60px; }
.footer-brand p { color: var(--text-dim); font-size: 0.88rem; margin: 16px 0 20px; max-width: 300px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; color: var(--text-dimmer); }
.footer-col a { display: block; color: var(--text-dim); font-size: 0.9rem; margin-bottom: 12px; transition: color 0.3s; }
.footer-col a:hover { color: var(--cyan); }
.footer-newsletter p { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 16px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1; padding: 11px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 0.85rem;
}
.newsletter-form button {
  width: 42px; border-radius: var(--radius-sm); background: var(--gradient-1); color: #fff; font-weight: 700;
}
.footer-bottom {
  display: flex; justify-content: space-between; padding: 24px 0; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-dimmer);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 400;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-1); color: #fff; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all 0.35s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { order: -1; height: 300px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(10,14,23,0.98); backdrop-filter: blur(20px);
    flex-direction: column; align-items: center; justify-content: center; gap: 32px;
    z-index: 400;
  }
  .nav-links.open a { font-size: 1.3rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cursor-glow { display: none; }
}