/* =========================================================
   Summit Automation — site styles
   ========================================================= */

:root {
  --bg: #05070f;
  --bg-2: #080c19;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e9eef8;
  --muted: #9aa6bd;
  --dim: #6b778f;
  --cyan: #5ee7ff;
  --blue: #4f7bff;
  --violet: #7a6bff;
  --grad: linear-gradient(120deg, #6ef0ff 0%, #5aa8ff 50%, #7a86ff 100%);
  --grad-text: linear-gradient(110deg, #7cf0ff 0%, #5aa8ff 45%, #8f84ff 100%);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius: 22px;
  --nav-h: 76px;
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Film grain for a premium finish */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .footer { overflow-x: clip; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; font-weight: 600; color: #fff; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

::selection { background: rgba(94, 231, 255, 0.3); color: #fff; }

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

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

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

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--font-body);
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-position 0.6s var(--ease), border-color 0.3s, background-color 0.3s, color 0.3s;
}
.btn .icon { transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary {
  color: #041021;
  background-image: linear-gradient(120deg, #7cf3ff 0%, #5aa8ff 40%, #7a86ff 70%, #7cf3ff 100%);
  background-size: 220% 100%;
  background-position: 0% 0;
  box-shadow: 0 12px 34px -12px rgba(90, 168, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 18px 44px -12px rgba(90, 168, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-ghost {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 231, 255, 0.5);
  background-color: rgba(94, 231, 255, 0.07);
}

.btn-sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: calc(var(--nav-h) + var(--safe-top));
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, height 0.4s var(--ease);
}
.nav.scrolled {
  --nav-h: 66px;
  background-color: rgba(5, 7, 15, 0.72);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark { width: 38px; height: 38px; filter: drop-shadow(0 0 12px rgba(94, 231, 255, 0.35)); }
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand-name span { color: var(--muted); font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a:not(.btn) {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:not(.btn):hover,
.nav-links a.active { color: #fff; }
.nav-links a:not(.btn):hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav.open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 55% 45% at 72% 60%, rgba(79, 123, 255, 0.32), transparent 70%),
    radial-gradient(ellipse 35% 30% at 70% 56%, rgba(94, 231, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 40% at 92% 30%, rgba(122, 107, 255, 0.14), transparent 70%),
    linear-gradient(180deg, #03050b 0%, #060c22 52%, #05070f 100%);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}
#hero-canvas.ready { opacity: 1; }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 15, 0.92) 0%, rgba(5, 7, 15, 0.6) 34%, rgba(5, 7, 15, 0) 62%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 15, 0) 26%),
    linear-gradient(180deg, rgba(5, 7, 15, 0.7) 0%, rgba(5, 7, 15, 0) 18%);
}

.hero-content {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 120px;
}
.hero-content > * { max-width: 660px; }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(94, 231, 255, 0.25);
  background: rgba(94, 231, 255, 0.06);
  color: #bdefff;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(94, 231, 255, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 231, 255, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(94, 231, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 231, 255, 0); }
}

.hero-content > .hero-title { max-width: 760px; }
.hero-title {
  margin-top: 28px;
  font-size: clamp(2.6rem, 5.8vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.hero-sub {
  margin-top: 26px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: #b4bfd3;
  max-width: 560px !important;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 44px;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: rgba(233, 238, 248, 0.72);
}
.hero-points .icon { width: 16px; height: 16px; color: var(--cyan); stroke-width: 2.5; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  padding: 6px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.scroll-cue:hover { opacity: 1; }
.scroll-mouse {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  position: relative;
}
.scroll-mouse span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--cyan);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(233, 238, 248, 0.55);
  white-space: nowrap;
}
.marquee-track i {
  font-style: normal;
  font-size: 14px;
  color: var(--cyan);
  opacity: 0.8;
}
@keyframes marquee {
  to { transform: translateX(calc(-50% - 18px)); }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 140px 0;
  scroll-margin-top: 40px;
}
/* Subtle blueprint grid that fades out behind key sections */
#services::before,
.contact::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 720px;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(94, 231, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 231, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 55% 65% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 65% at 50% 0%, #000 0%, transparent 75%);
}
.contact::before {
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 80% 10%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 50% 60% at 80% 10%, #000 0%, transparent 75%);
}
.section > .container { position: relative; }

.section-head { max-width: 720px; margin-bottom: 72px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.section-head.center .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

h2 {
  margin-top: 18px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.lead {
  margin-top: 22px;
  max-width: 600px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Reveal on scroll ----------
   Content is visible by default. Script only hides elements that start
   below the fold (.pre) and fades them in as they scroll into view. */
.js .reveal {
  --d: 0s;
  transition:
    opacity 1s var(--ease) var(--d),
    translate 1s var(--ease) var(--d),
    transform 0.6s var(--ease) 0s,
    border-color 0.4s,
    box-shadow 0.4s;
}
.js .reveal.pre { opacity: 0; translate: 0 34px; }
[data-delay="1"] { --d: 0.1s !important; }
[data-delay="2"] { --d: 0.2s !important; }
[data-delay="3"] { --d: 0.3s !important; }
[data-delay="4"] { --d: 0.4s !important; }

/* ---------- 3D tilt cards ---------- */
.tilt {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
}
.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(94, 231, 255, 0.13), transparent 45%);
  transition: opacity 0.4s;
}
.tilt:hover .card-glare { opacity: 1; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  padding: 36px 32px 34px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.012) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.card:hover {
  border-color: rgba(94, 231, 255, 0.28);
  box-shadow: 0 30px 60px -30px rgba(79, 123, 255, 0.45), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #8beeff;
  background: linear-gradient(135deg, rgba(94, 231, 255, 0.18), rgba(79, 123, 255, 0.07));
  border: 1px solid rgba(94, 231, 255, 0.24);
  box-shadow: 0 12px 30px -12px rgba(94, 231, 255, 0.5);
  transform: translateZ(46px);
}
.card-icon .icon { width: 25px; height: 25px; stroke-width: 1.8; }
.card-num {
  position: absolute;
  top: 34px;
  right: 32px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.22);
  transform: translateZ(20px);
}
.card h3 {
  margin-top: 26px;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  transform: translateZ(30px);
}
.card p {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--muted);
  transform: translateZ(16px);
}

/* ---------- Showcase (CSS 3D) ---------- */
.showcase {
  background:
    radial-gradient(ellipse 60% 60% at 75% 50%, rgba(79, 123, 255, 0.12), transparent 70%),
    linear-gradient(180deg, transparent, rgba(8, 12, 25, 0.7) 50%, transparent);
}
.showcase-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}
.check-list {
  margin: 34px 0 40px;
  display: grid;
  gap: 16px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #cfd7e6;
  font-size: 16px;
}
.check {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(94, 231, 255, 0.1);
  border: 1px solid rgba(94, 231, 255, 0.3);
}
.check .icon { width: 14px; height: 14px; stroke-width: 3; }

.stage {
  position: relative;
  height: 560px;
  perspective: 1800px;
  perspective-origin: 50% 40%;
}
.stage-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 10deg)) rotateY(var(--ry, -18deg));
  will-change: transform;
}
.stage-glow {
  position: absolute;
  left: 10%;
  top: 15%;
  width: 80%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 123, 255, 0.45), rgba(94, 231, 255, 0.12) 45%, transparent 70%);
  filter: blur(40px);
  transform: translateZ(-120px);
}

.browser {
  position: absolute;
  left: 0;
  top: 9%;
  width: 86%;
  border-radius: 16px;
  overflow: hidden;
  background: #0a1022;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(94, 231, 255, 0.06),
    0 0 80px -20px rgba(79, 123, 255, 0.35);
  transform: translateZ(0);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.browser-bar .dot:nth-child(1) { background: #ff6b6b; opacity: 0.8; }
.browser-bar .dot:nth-child(2) { background: #ffcc5c; opacity: 0.8; }
.browser-bar .dot:nth-child(3) { background: #4cd98a; opacity: 0.8; }
.url-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  padding: 0 14px;
  height: 24px;
  flex: 0 1 240px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 11.5px;
  color: var(--muted);
}
.url-bar .icon { width: 11px; height: 11px; color: #4cd98a; }
.browser-body { padding: 18px 22px 22px; }

.mini-nav { display: flex; align-items: center; justify-content: space-between; }
.mini-logo { width: 64px; height: 12px; border-radius: 6px; background: var(--grad); }
.mini-links { display: flex; gap: 12px; }
.mini-links i { width: 30px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); }
.mini-btn { width: 54px; height: 18px; border-radius: 9px; background: var(--grad); }

.mini-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  align-items: center;
  margin: 26px 0 22px;
}
.bar { height: 13px; border-radius: 7px; background: rgba(255, 255, 255, 0.88); margin-bottom: 9px; }
.bar.thin { height: 7px; background: rgba(255, 255, 255, 0.22); margin-bottom: 7px; }
.w90 { width: 90%; } .w80 { width: 80%; } .w70 { width: 70%; } .w60 { width: 60%; }
.mini-ctas { display: flex; gap: 8px; margin-top: 16px; }
.mini-cta { width: 66px; height: 20px; border-radius: 10px; background: var(--grad); }
.mini-cta.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.25); }
.mini-cta.full { width: 100%; height: 22px; }
.mini-visual {
  height: 128px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(165deg, #1a2b5c 0%, #0c1530 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mini-visual svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 75%; }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-cards div {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.mini-cards i { display: block; width: 18px; height: 18px; border-radius: 6px; background: rgba(94, 231, 255, 0.3); margin-bottom: 10px; }
.mini-cards b { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.4); margin-bottom: 6px; }
.mini-cards b.s { width: 60%; background: rgba(255, 255, 255, 0.18); margin-bottom: 0; }

.phone {
  position: absolute;
  right: 0;
  bottom: 2%;
  width: 27%;
  aspect-ratio: 9 / 18.5;
  padding: 9px;
  border-radius: 30px;
  background: #060a15;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 50px -10px rgba(94, 231, 255, 0.3);
  transform: translateZ(110px);
}
.phone-notch {
  position: absolute;
  top: 15px;
  left: 50%;
  width: 34%;
  height: 12px;
  margin-left: -17%;
  border-radius: 8px;
  background: #000;
  z-index: 2;
}
.phone-screen {
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  padding: 32px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(180deg, #0d1736, #0a1022 40%);
}
.phone-screen .mini-logo { width: 46px; height: 9px; margin-bottom: 4px; }
.phone-hero {
  position: relative;
  height: 30%;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(165deg, #22397a, #0d1736);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}
.phone-hero svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 70%; }
.phone-screen .bar { margin-bottom: 0; height: 9px; }
.phone-screen .bar.thin { height: 6px; }
.phone-card { flex: 1; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); }

.float-card {
  position: absolute;
  border-radius: 16px;
  background: rgba(14, 21, 42, 0.94);
  border: 1px solid rgba(94, 231, 255, 0.24);
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.85), 0 0 30px -12px rgba(94, 231, 255, 0.45);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
.fc-lead {
  top: 0;
  right: 4%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 14px 14px;
  transform: translateZ(170px);
}
.fc-lead strong { display: block; font-size: 13.5px; font-weight: 600; color: #fff; line-height: 1.3; }
.fc-lead small { display: block; font-size: 11.5px; color: var(--muted); }
.fc-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #041021;
  background: var(--grad);
}
.fc-icon .icon { width: 17px; height: 17px; }
.fc-traffic {
  left: -5%;
  bottom: 6%;
  width: 190px;
  padding: 14px 16px 12px;
  transform: translateZ(140px);
  animation-delay: -2s;
}
.fc-traffic small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.spark { width: 100%; height: 44px; margin-top: 6px; }
.fc-badge {
  left: 6%;
  top: 2%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transform: translateZ(90px);
  animation-delay: -4s;
}

/* ---------- Process ---------- */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process-line {
  position: absolute;
  top: 34px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.process-line span {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p, 0) * 100%);
  background: var(--grad);
  box-shadow: 0 0 16px rgba(94, 231, 255, 0.8);
}
.step { text-align: center; padding: 0 8px; }
.step-node {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: var(--cyan);
  background: linear-gradient(160deg, #121b38, #0a1022);
  border: 1px solid rgba(94, 231, 255, 0.3);
  box-shadow: 0 16px 40px -14px rgba(94, 231, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(45deg);
}
.step-node .icon { width: 26px; height: 26px; stroke-width: 1.8; transform: rotate(-45deg); }
.step-node { transition: border-color 0.5s, box-shadow 0.5s, background 0.5s; }
.step.lit .step-node {
  border-color: rgba(94, 231, 255, 0.75);
  background: linear-gradient(160deg, #16295a, #0b1430);
  box-shadow: 0 0 0 6px rgba(94, 231, 255, 0.06), 0 18px 46px -12px rgba(94, 231, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.step-num {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.step h3 { margin-top: 8px; font-size: 1.35rem; letter-spacing: -0.02em; }
.step p { margin-top: 10px; font-size: 15.5px; color: var(--muted); }

/* ---------- Why ---------- */
.why { background: linear-gradient(180deg, transparent, rgba(8, 12, 25, 0.8) 40%, transparent); }
.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.why-copy { position: sticky; top: 130px; }
.why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.why-item {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
}
.why-item:nth-child(even) { margin-top: 40px; }
.why-item:hover { border-color: rgba(94, 231, 255, 0.28); }
.why-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--cyan);
  background: rgba(94, 231, 255, 0.08);
  border: 1px solid rgba(94, 231, 255, 0.2);
  transform: translateZ(36px);
}
.why-icon .icon { width: 22px; height: 22px; stroke-width: 1.8; }
.why-item h3 { margin-top: 22px; font-size: 1.15rem; letter-spacing: -0.015em; transform: translateZ(24px); }
.why-item p { margin-top: 8px; font-size: 15px; color: var(--muted); transform: translateZ(12px); }

/* ---------- CTA band ---------- */
.cta-band-wrap { padding: 40px 0 20px; }
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 96px 32px;
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(79, 123, 255, 0.35), transparent 70%),
    linear-gradient(180deg, #0c1430, #070b18);
  border: 1px solid rgba(94, 231, 255, 0.2);
  box-shadow: 0 40px 100px -40px rgba(79, 123, 255, 0.5);
}
.cta-rings {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  z-index: -1;
  perspective: 900px;
}
.cta-rings span {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(94, 231, 255, 0.22);
  transform: translate(-50%, -50%) rotateX(74deg) rotateZ(0deg);
  animation: ringSpin 30s linear infinite;
}
.cta-rings span::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px 3px rgba(94, 231, 255, 0.8);
}
.cta-rings span:nth-child(1) { width: 520px; height: 520px; }
.cta-rings span:nth-child(2) { width: 820px; height: 820px; animation-duration: 46s; animation-direction: reverse; border-color: rgba(122, 107, 255, 0.2); }
.cta-rings span:nth-child(3) { width: 1140px; height: 1140px; animation-duration: 64s; border-color: rgba(255, 255, 255, 0.07); }
@keyframes ringSpin {
  to { transform: translate(-50%, -50%) rotateX(74deg) rotateZ(360deg); }
}
.cta-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 0 22px rgba(94, 231, 255, 0.55));
}
.cta-band h2 { margin-top: 0; font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.cta-band p { margin: 18px auto 0; max-width: 520px; font-size: 1.125rem; color: #b4bfd3; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: start;
}
.people { display: grid; gap: 18px; margin-top: 44px; }
.person {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.person:hover { border-color: rgba(94, 231, 255, 0.28); }
.avatar {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 20px;
  padding: 2px;
  background: var(--grad);
  box-shadow: 0 14px 34px -12px rgba(94, 231, 255, 0.6);
}
.avatar span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(160deg, #111a37, #090e1e);
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  color: #fff;
}
.person-info { min-width: 0; }
.person-info h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.role { font-size: 13.5px; color: var(--cyan); font-weight: 500; margin-bottom: 12px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.contact-row .contact-line { min-width: 0; }
.copy-btn {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.copy-btn .icon {
  grid-area: 1 / 1;
  width: 15px;
  height: 15px;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.copy-btn .i-check { opacity: 0; transform: scale(0.6); color: #6ee7b7; stroke-width: 2.6; }
.copy-btn:hover,
.copy-btn:focus-visible {
  color: var(--cyan);
  background-color: rgba(94, 231, 255, 0.08);
  border-color: rgba(94, 231, 255, 0.25);
}
.copy-btn.copied .i-copy { opacity: 0; transform: scale(0.6); }
.copy-btn.copied .i-check { opacity: 1; transform: none; }
.copy-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  translate: -50% 4px;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--text);
  color: var(--bg);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, translate 0.2s var(--ease);
}
.copy-btn.copied .copy-tip,
.copy-btn.selected .copy-tip { opacity: 1; translate: -50% 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] { display: none !important; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 15.5px;
  color: #d3dbe9;
  overflow-wrap: anywhere;
  transition: color 0.25s;
}
.contact-line .icon { width: 16px; height: 16px; color: var(--muted); transition: color 0.25s; }
.contact-line:hover { color: #fff; }
.contact-line:hover .icon { color: var(--cyan); }

.contact-form {
  padding: 38px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(94, 231, 255, 0.04);
}
.contact-form h3 { font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 500; color: #c3cbdb; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(3, 5, 12, 0.6);
  color: #fff;
  font: 15px/1.5 var(--font-body);
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa6bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}
.field select option { background: #0a1022; color: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: #5d6880; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(94, 231, 255, 0.6);
  background-color: rgba(3, 5, 12, 0.85);
  box-shadow: 0 0 0 4px rgba(94, 231, 255, 0.12);
}
.field.invalid input,
.field.invalid textarea { border-color: rgba(255, 107, 107, 0.7); }
.contact-form .btn { margin-top: 8px; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--dim); text-align: center; }
.form-note.success { color: #6ee7b7; }
.form-note.error { color: #ff8a8a; }

.form-done {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(110, 231, 183, 0.05);
  border: 1px solid rgba(110, 231, 183, 0.25);
}
.form-done-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
}
.form-done-title .check { color: #6ee7b7; background: rgba(110, 231, 183, 0.12); border-color: rgba(110, 231, 183, 0.35); }
.form-done p { font-size: 14px; color: var(--muted); }
.form-done strong { color: #d3dbe9; font-weight: 500; overflow-wrap: anywhere; }
.form-done textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(3, 5, 12, 0.6);
  color: #cfd7e6;
  font: 13.5px/1.55 var(--font-body);
  resize: vertical;
}
.form-done textarea:focus { outline: none; border-color: rgba(94, 231, 255, 0.6); }
.form-done-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-form .form-done .btn { margin-top: 0; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 40px;
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(8, 12, 25, 0.6), var(--bg));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { margin-top: 18px; max-width: 280px; color: var(--muted); font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer-col h4 {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.footer-col a {
  font-size: 15px;
  color: var(--muted);
  overflow-wrap: anywhere;
  transition: color 0.25s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--dim);
}
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); transition: color 0.25s; }
.to-top .icon { width: 16px; height: 16px; }
.to-top:hover { color: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; gap: 40px; }
  .stage { height: 520px; max-width: 720px; width: 100%; margin: 0 auto; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-copy { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: calc(var(--nav-h) + var(--safe-top));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 28px;
    background: #070a14;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0.3s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav.open {
    background-color: #070a14;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav-links a:not(.btn) {
    padding: 16px 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta { margin: 20px 0 0; height: 52px; }

  .section { padding: 110px 0; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .process-line { display: none; }
}

@media (max-width: 720px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .hero { align-items: flex-start; }
  .hero-content { padding-top: calc(var(--nav-h) + 36px); padding-bottom: 260px; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 7, 15, 0.92) 0%, rgba(5, 7, 15, 0.75) 40%, rgba(5, 7, 15, 0) 70%),
      linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 15, 0) 22%);
  }
  .hero-sky {
    background:
      radial-gradient(ellipse 90% 35% at 50% 78%, rgba(79, 123, 255, 0.35), transparent 70%),
      radial-gradient(ellipse 60% 25% at 50% 74%, rgba(94, 231, 255, 0.2), transparent 70%),
      linear-gradient(180deg, #03050b 0%, #060c22 60%, #05070f 100%);
  }
  .hero-points { gap: 10px; flex-direction: column; margin-top: 34px; }
  .scroll-cue { display: none; }

  .section { padding: 90px 0; }
  .section-head { margin-bottom: 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .card { padding: 30px 26px; }

  .stage { height: 380px; }
  .stage-inner { scale: 0.92; }
  .fc-lead { right: 0; padding: 10px 14px 10px 10px; }
  .fc-lead strong { font-size: 12px; }
  .fc-lead small { font-size: 10.5px; }
  .fc-icon { width: 30px; height: 30px; }
  .fc-traffic { width: 140px; left: 2%; }
  .fc-badge { display: none; }
  .browser-body { padding: 12px 14px 14px; }
  .mini-hero { margin: 16px 0 14px; gap: 12px; }
  .mini-visual { height: 80px; }
  .bar { height: 9px; margin-bottom: 6px; }
  .bar.thin { height: 5px; }
  .mini-cards div { padding: 8px; }
  .url-bar { font-size: 10px; }

  .process { grid-template-columns: 1fr; row-gap: 44px; }
  .why-list { grid-template-columns: 1fr; }
  .why-item:nth-child(even) { margin-top: 0; }

  .cta-band { padding: 72px 22px; border-radius: 26px; }
  .cta-rings span:nth-child(1) { width: 360px; height: 360px; }
  .cta-rings span:nth-child(2) { width: 560px; height: 560px; }

  .person { padding: 22px; gap: 16px; }
  .avatar { width: 54px; height: 54px; border-radius: 17px; }
  .avatar span { border-radius: 15px; font-size: 22px; }
  .contact-form { padding: 28px 22px; border-radius: 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  /* Avatar sits beside the name; phone and email rows use the full card width */
  .person {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
  }
  .person-info { display: contents; }
  .avatar { grid-row: 1 / span 2; }
  .person-info h3 { grid-column: 2; align-self: end; }
  .person-info .role { grid-column: 2; align-self: start; margin-bottom: 0; }
  .person-info .contact-row { grid-column: 1 / -1; }
  .person-info .contact-row:nth-of-type(1) { margin-top: 14px; }
}

@media (max-width: 420px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .hero-actions .btn { width: 100%; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 34px; height: 34px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  .js .reveal, .js .reveal.pre { opacity: 1; translate: none; transition: none; }
  .marquee-track { animation: none; }
}
