:root {
  --bg: #070b14;
  --bg-soft: #0b1220;
  --panel: rgba(11, 17, 30, 0.82);
  --panel-strong: rgba(7, 12, 22, 0.96);
  --border: rgba(255, 255, 255, 0.08);
  --text: #fbfdff;
  --muted: #bcc9de;
  --accent: #67e8a5;
  --accent-2: #9b7dff;
  --accent-3: #b8ffcf;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.38);
  --shadow-hover: 0 30px 96px rgba(0, 0, 0, 0.5);
  --radius: 22px;
  --radius-lg: 34px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(34, 50, 78, 0.95) 0%, rgba(10, 16, 30, 0.88) 34%, rgba(4, 6, 11, 1) 100%),
    linear-gradient(180deg, #0b1120 0%, #06080f 100%);
  color: var(--text);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.site-shell {
  position: relative;
  overflow: clip;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 48%, transparent 88%);
  pointer-events: none;
  opacity: 0.45;
}

.bg-glow {
  position: fixed;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.28;
}

.bg-glow-1 {
  top: -10rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(226, 240, 255, 0.84), rgba(139, 170, 255, 0.3) 42%, transparent 74%);
  animation: driftA 16s ease-in-out infinite alternate;
}

.bg-glow-2 {
  right: -8rem;
  top: 18rem;
  background: radial-gradient(circle, rgba(124, 106, 255, 0.66), rgba(179, 164, 255, 0.2) 46%, transparent 72%);
  animation: driftB 18s ease-in-out infinite alternate;
}

.light-rays,
.smoke-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.light-rays {
  opacity: 0.62;
  mix-blend-mode: screen;
}

.light-ray {
  position: absolute;
  top: -22vh;
  width: 30vw;
  height: 135vh;
  filter: blur(10px);
  transform-origin: top center;
  opacity: 0.32;
  background: linear-gradient(180deg, rgba(241, 248, 255, 0.52), rgba(217, 231, 255, 0.16) 40%, rgba(184, 210, 255, 0));
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
}

.ray-1 {
  left: 4%;
  transform: rotate(-16deg);
  animation: raySweepA 14s ease-in-out infinite alternate;
}

.ray-2 {
  right: 14%;
  width: 24vw;
  opacity: 0.24;
  transform: rotate(12deg);
  background: linear-gradient(180deg, rgba(214, 228, 255, 0.38), rgba(190, 216, 255, 0.12) 46%, rgba(184, 210, 255, 0));
  animation: raySweepB 17s ease-in-out infinite alternate;
}

.ray-3 {
  left: 34%;
  width: 18vw;
  opacity: 0.18;
  transform: rotate(-4deg);
  animation: raySweepC 19s ease-in-out infinite alternate;
}

.smoke-layer {
  opacity: 0.46;
}

.smoke {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  background: radial-gradient(circle, rgba(230, 240, 255, 0.18), rgba(166, 190, 255, 0.1) 40%, rgba(148, 173, 255, 0) 74%);
}

.smoke-1 {
  width: 32rem;
  height: 32rem;
  left: -6rem;
  top: 24vh;
  animation: smokeDriftA 22s ease-in-out infinite alternate;
}

.smoke-2 {
  width: 28rem;
  height: 28rem;
  right: 6%;
  top: 58vh;
  opacity: 0.28;
  animation: smokeDriftB 24s ease-in-out infinite alternate;
}

.smoke-3 {
  width: 22rem;
  height: 22rem;
  left: 44%;
  top: 10vh;
  opacity: 0.18;
  animation: smokeDriftC 18s ease-in-out infinite alternate;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.45;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(22px);
  background: linear-gradient(180deg, rgba(4, 8, 16, 0.96), rgba(7, 11, 20, 0.7));
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.24);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 26px rgba(111, 209, 255, 0.55);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #b6c2d8;
}

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

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 99px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(236, 243, 255, 0.96), rgba(214, 231, 255, 0.9));
  color: #08111b;
  box-shadow: 0 18px 44px rgba(190, 216, 255, 0.2);
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -120% auto auto -30%;
  width: 42%;
  height: 320%;
  transform: rotate(24deg);
  background: linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0));
  animation: buttonSheen 4.8s ease-in-out infinite;
}

.btn-secondary,
.btn-nav {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-color: rgba(255,255,255,0.08);
}

.btn-full { width: 100%; }

.glass {
  background: linear-gradient(180deg, rgba(19, 27, 44, 0.9), rgba(10, 15, 26, 0.84));
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 26px 84px rgba(0, 0, 0, 0.46);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
  position: relative;
  isolation: isolate;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0));
  pointer-events: none;
  z-index: -1;
}

.hero {
  padding-top: 42px;
  padding-bottom: 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 50px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #bcd2ff;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1,
.section-head h2,
.page-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.95rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
  max-width: 20ch;
  text-wrap: balance;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 2px 26px rgba(255, 255, 255, 0.11);
}

.section-head h2,
.page-content h2 {
  font-size: clamp(1.35rem, 2.15vw, 2rem);
  max-width: 24ch;
}

.lead,
.section-head p,
.hero-copy p,
.case-card p,
.stat-card p,
.service-card p,
.product-card p,
.timeline-item p,
.stack-card p,
.contact-copy p,
.page-content p,
.page-list li {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.03rem;
}

.section-head p,
.contact-copy p {
  max-width: 68ch;
}

.accent-word {
  color: inherit;
  text-shadow: none;
}

.accent-word.alt {
  color: inherit;
}

.accent-word.mix {
  background: none;
  color: inherit;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  animation: none;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 24px 0 20px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: #c9d8ef;
}

.hero-points li {
  position: relative;
  padding-left: 20px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.hero-visual {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-panel {
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  min-height: 520px;
  transform: rotateY(-9deg) rotateX(4deg);
  animation: floatPanel 8s ease-in-out infinite;
  will-change: transform;
}

.panel-top {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.panel-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

.signal-card,
.line-box,
.mini-stat {
  border-radius: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.98), rgba(8, 13, 24, 0.88));
}

.signal-primary {
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(236, 243, 255, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(9, 16, 29, 0.92), rgba(8, 13, 24, 0.7));
  animation: pulseSurface 6s ease-in-out infinite;
}

.signal-label,
.line-box span,
.mini-stat span,
.product-tag {
  color: #c6d4eb;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-value {
  font-size: clamp(1.35rem, 3vw, 2.5rem);
  margin-top: 10px;
  font-weight: 700;
  color: #ffffff;
}

.hero-lines {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}

.line-box strong,
.mini-stat strong { font-size: 1.1rem; }
.line-connect {
  width: 2px;
  height: 26px;
  margin-left: 26px;
  background: linear-gradient(180deg, rgba(103,232,165,0.8), rgba(155,125,255,0));
  animation: flowLine 2.8s ease-in-out infinite;
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.trust-card,
.contact-pills span {
  border-radius: 18px;
  padding: 15px 18px;
  text-align: center;
  color: #f3f8ff;
}

.trust-card {
  animation: floatCard 10s ease-in-out infinite;
}

.trust-card:nth-child(2) { animation-delay: 0.4s; }
.trust-card:nth-child(3) { animation-delay: 0.8s; }
.trust-card:nth-child(4) { animation-delay: 1.2s; }
.trust-card:nth-child(5) { animation-delay: 1.6s; }

.section-head {
  display: grid;
  gap: 6px 28px;
  margin-bottom: 24px;
  align-items: start;
}

.section-head.narrow h2 { max-width: 18ch; }
.section-head p { max-width: 70ch; }

.section-head h2,
.contact-copy h2,
.page-content h2 {
  position: relative;
}

.section-head h2::after,
.contact-copy h2::after,
.page-content h2::after {
  content: "";
  display: block;
  width: 84px;
  height: 3px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(236, 243, 255, 0.95), rgba(184, 210, 255, 0.72));
  box-shadow: 0 0 24px rgba(228, 238, 255, 0.26);
  animation: barSweep 4.5s ease-in-out infinite;
}

.stats-grid,
.services-grid,
.products-grid,
.stack-grid,
.cases-grid {
  display: grid;
  gap: 20px;
}

.stats-grid { grid-template-columns: repeat(3, 1fr); }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.products-grid { grid-template-columns: repeat(3, 1fr); }
.stack-grid { grid-template-columns: repeat(4, 1fr); }
.cases-grid { grid-template-columns: repeat(3, 1fr); }

.stat-card,
.service-card,
.product-card,
.stack-card,
.case-card,
.timeline-item,
.contact-form,
.page-hero-card,
.page-content-card {
  border-radius: var(--radius);
  padding: 26px;
}

.stat-card:hover,
.service-card:hover,
.product-card:hover,
.stack-card:hover,
.case-card:hover,
.timeline-item:hover,
.contact-form:hover,
.page-hero-card:hover,
.page-content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 92px rgba(0, 0, 0, 0.48);
  border-color: rgba(222, 236, 255, 0.18);
}

.hero-copy {
  animation: driftContent 8s ease-in-out infinite;
  will-change: transform;
}

.signal-card,
.line-box,
.mini-stat,
.contact-pills span {
  animation: breatheCard 5.5s ease-in-out infinite;
}

.signal-card:hover,
.line-box:hover,
.mini-stat:hover,
.trust-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(222, 236, 255, 0.18);
}

.hero-lines .line-box:nth-child(1) { animation-delay: 0.2s; }
.hero-lines .line-box:nth-child(3) { animation-delay: 0.5s; }
.hero-lines .line-box:nth-child(5) { animation-delay: 0.8s; }
.mini-stat:nth-child(1) { animation-delay: 0.4s; }
.mini-stat:nth-child(2) { animation-delay: 0.9s; }

.product-card,
.case-card,
.service-card,
.stat-card,
.stack-card,
.timeline-item {
  animation: tiltIdle 9s ease-in-out infinite;
}

.product-card:nth-child(2),
.case-card:nth-child(2),
.service-card:nth-child(2),
.stat-card:nth-child(2),
.stack-card:nth-child(2),
.timeline-item:nth-child(2) { animation-delay: 0.45s; }

.product-card:nth-child(3),
.case-card:nth-child(3),
.service-card:nth-child(3),
.stat-card:nth-child(3),
.stack-card:nth-child(3),
.timeline-item:nth-child(3) { animation-delay: 0.9s; }

.stat-card strong,
.service-icon,
.timeline-item span,
.case-metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(111,209,255,0.16), rgba(155,125,255,0.16));
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 18px;
  color: #dff3ff;
}

.stat-card h3,
.service-card h3,
.product-card h3,
.stack-card h3,
.timeline-item h3,
.case-card h3,
.contact-copy h2,
.page-content h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.product-top {
  display: grid;
  gap: 10px;
}

.product-card ul,
.page-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #cfddf5;
  display: grid;
  gap: 10px;
}

.text-link {
  display: inline-block;
  margin-top: 20px;
  color: #d7ebff;
  font-weight: 600;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-section { padding-bottom: 88px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.82fr;
  gap: 24px;
  align-items: start;
}

.contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-form {
  display: grid;
  gap: 12px;
  max-width: 620px;
  justify-self: end;
  width: 100%;
  padding: 22px;
  background: linear-gradient(180deg, rgba(24, 29, 42, 0.96), rgba(14, 18, 30, 0.92));
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form label {
  display: grid;
  gap: 10px;
}

.contact-form span,
.form-note,
.form-status {
  color: #d1dced;
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(6, 10, 18, 0.96);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(220,233,255,0.45);
  box-shadow: 0 0 0 3px rgba(220,233,255,0.1), 0 12px 36px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #6f7990;
}

.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 0 40px;
  background: rgba(2, 5, 11, 0.82);
}

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

.footer p,
.footer-links { color: var(--muted); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.brand-footer { margin-bottom: 8px; }

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

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

.page-hero {
  padding: 56px 0 24px;
}

.page-hero-card,
.page-content-card {
  border-radius: 28px;
  padding: 28px;
}

.page-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.page-meta span {
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #d6e6ff;
}

.page-content {
  padding-bottom: 84px;
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.page-content-card h2 { margin-top: 0; }
.page-content-card h2 { max-width: none; }
.small-back {
  display: inline-flex;
  margin-top: 14px;
  color: #cde2ff;
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.85fr);
  }

  .section-head .eyebrow,
  .section-head h2 {
    grid-column: 1;
  }

  .section-head p {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 8px 0 0;
  }

  .section-head.narrow {
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.8fr);
  }
}

@keyframes shimmerText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(111, 209, 255, 0); }
  50% { box-shadow: 0 0 24px rgba(190, 216, 255, 0.08); }
}

@keyframes raySweepA {
  0% { transform: rotate(-18deg) translate3d(0, 0, 0); opacity: 0.34; }
  100% { transform: rotate(-8deg) translate3d(5vw, 3vh, 0); opacity: 0.64; }
}

@keyframes raySweepB {
  0% { transform: rotate(10deg) translate3d(0, 0, 0); opacity: 0.2; }
  100% { transform: rotate(20deg) translate3d(-4vw, -2vh, 0); opacity: 0.46; }
}

@keyframes raySweepC {
  0% { transform: rotate(-6deg) translate3d(0, 0, 0); opacity: 0.14; }
  100% { transform: rotate(2deg) translate3d(3vw, 1vh, 0); opacity: 0.3; }
}

@keyframes smokeDriftA {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.28; }
  100% { transform: translate3d(10vw, -6vh, 0) scale(1.28); opacity: 0.52; }
}

@keyframes smokeDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.22; }
  100% { transform: translate3d(-8vw, -7vh, 0) scale(1.24); opacity: 0.4; }
}

@keyframes smokeDriftC {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.18; }
  100% { transform: translate3d(6vw, 5vh, 0) scale(1.18); opacity: 0.32; }
}

@keyframes buttonSheen {
  0%, 100% { transform: translate3d(-18vw, 0, 0) rotate(24deg); opacity: 0; }
  18% { opacity: 0; }
  34% { opacity: 0.9; }
  52% { transform: translate3d(36vw, 0, 0) rotate(24deg); opacity: 0; }
}

@keyframes floatPanel {
  0%, 100% { transform: rotateY(-9deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-7deg) rotateX(5deg) translateY(-10px); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseSurface {
  0%, 100% { border-color: rgba(255,255,255,0.08); }
  50% { border-color: rgba(198, 221, 255, 0.18); }
}

@keyframes breatheCard {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.01); }
}

@keyframes flowLine {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 0.88; transform: scaleY(1.14); }
}

@keyframes barSweep {
  0%, 100% { transform: scaleX(1); transform-origin: left; }
  50% { transform: scaleX(1.12); transform-origin: left; }
}

@keyframes driftContent {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes tiltIdle {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-0.18deg); }
}

.section-head,
.contact-copy,
.page-hero-card {
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes driftA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(100px, 40px, 0) scale(1.08); }
}

@keyframes driftB {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-120px, -30px, 0) scale(1.12); }
}

@media (max-width: 1100px) {
  .hero-grid,
  .contact-grid,
  .page-grid,
  .timeline,
  .stack-grid,
  .services-grid,
  .products-grid,
  .stats-grid,
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid { gap: 30px; }
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 20px;
    left: 20px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(8, 13, 24, 0.94);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .nav.is-open { display: flex; }

  .hero-grid,
  .contact-grid,
  .page-grid,
  .timeline,
  .stack-grid,
  .services-grid,
  .products-grid,
  .stats-grid,
  .cases-grid,
  .trust-strip,
  .mini-stats {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
    transform: none;
  }

  .section,
  .contact-section,
  .page-content {
    padding: 68px 0;
  }

  .header-inner { min-height: 74px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .hero h1,
  .section-head h2,
  .page-hero h1,
  .page-content h2 {
    max-width: none;
  }

  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-nav {
    width: 100%;
  }

  .hero-actions { flex-direction: column; }
  .page-hero-card,
  .page-content-card,
  .stat-card,
  .service-card,
  .product-card,
  .stack-card,
  .case-card,
  .timeline-item,
  .contact-form,
  .hero-panel {
    padding: 22px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal,
  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }

  #starfield,
  .bg-glow,
  .light-rays,
  .smoke-layer {
    display: none;
  }
}
