/* ============ Fonts ============ */
@font-face {
  font-family: 'Inter Tight';
  src: url('assets/fonts/InterTight-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('assets/fonts/InterTight-Italic-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ============ Tokens ============ */
:root {
  --navy: #000C1F;
  --navy-soft: #030f24;
  --navy-panel: #061530;
  --navy-panel-2: #0a1c3d;
  --navy-border: rgba(137, 184, 251, 0.14);
  --navy-border-strong: rgba(137, 184, 251, 0.28);
  --cyan: #27D8F2;
  --cyan-dim: rgba(39, 216, 242, 0.14);
  --white: #FFFFFF;
  --ink-1: #F4F8FF;
  --ink-2: #B9C6DE;
  --ink-3: #7C8CA8;
  --emerald: #2DBE7E;
  --teal: #00A8A8;
  --amber: #F5B942;

  --max: 1180px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 999px;
  --ease: cubic-bezier(.22,.9,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink-1);
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.035) 1px, transparent 0);
  background-size: 26px 26px;
  opacity: 0.5;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-primary {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 0 0 0 rgba(39,216,242,0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(39,216,242,0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-1);
  border-color: var(--navy-border-strong);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}
.arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 20px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
body.nav-open .site-header {
  background: rgba(0,12,31,0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--navy-border);
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(0,12,31,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--navy-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-icon {
  width: 26px; height: 26px;
  color: var(--white);
  display: inline-flex;
  flex-shrink: 0;
}
.brand-icon svg { width: 100%; height: 100%; }
.brand-word {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--white);
}
.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--cyan);
  transition: width .25s var(--ease);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 1.6px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.mobile-nav {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 28px 22px;
}
.mobile-nav a {
  padding: 12px 4px;
  font-size: 16px;
  color: var(--ink-1);
  border-bottom: 1px solid var(--navy-border);
}
.mobile-nav .btn { margin-top: 12px; justify-content: center; }

body.nav-open .mobile-nav { max-height: 420px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 200px 0 140px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -220px; right: -160px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(39,216,242,0.22) 0%, rgba(39,216,242,0.05) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-pattern {
  position: absolute;
  top: 0; right: 0;
  width: 60%;
  max-width: 620px;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}
.hero-pattern svg { width: 100%; height: 100%; }
.float-slow { animation: float 9s ease-in-out infinite; transform-origin: center; }
.float-med { animation: float 7s ease-in-out infinite .6s; transform-origin: center; }
.float-fast { animation: float 6s ease-in-out infinite 1.1s; transform-origin: center; }
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
}

.hero-inner { max-width: 760px; }
.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
}
.hero-title .accent { color: var(--cyan); }
.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 560px;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============ Sections ============ */
.section {
  padding: 108px 0;
  position: relative;
}
.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-top: 10px;
  max-width: 640px;
}
.section-lead {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 560px;
}

.grid {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

/* ============ Service cards ============ */
.services-grid {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: linear-gradient(160deg, var(--navy-panel-2), var(--navy-panel));
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--navy-border-strong);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--cyan-dim);
  color: var(--cyan);
  margin-bottom: 18px;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.service-icon svg { width: 22px; height: 22px; }
.service-card:hover .service-icon {
  transform: scale(1.08) rotate(-4deg);
  background: var(--cyan);
  color: var(--navy);
}
.card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 8px;
}
.card p {
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ============ Why grid ============ */
.why-grid { grid-template-columns: repeat(3, 1fr); margin-top: 52px; }
.why-card {
  padding: 32px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--navy-border);
  background: transparent;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  background: rgba(39,216,242,0.04);
}
.why-index {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.05em;
}
.why-card h3 {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.why-card p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* ============ Products ============ */
.products-grid { grid-template-columns: repeat(3, 1fr); }
.product-card {
  display: block;
  padding: 30px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--navy-border);
  background: linear-gradient(160deg, var(--navy-panel-2), var(--navy-panel));
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--navy-border-strong);
  box-shadow: 0 20px 44px -22px rgba(0,0,0,0.55);
}
.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.tag-emerald { background: rgba(45,190,126,0.14); color: var(--emerald); }
.tag-teal { background: rgba(0,168,168,0.16); color: var(--teal); }
.tag-amber { background: rgba(245,185,66,0.16); color: var(--amber); }
.product-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.product-card p {
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.6;
  min-height: 66px;
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
}
.product-card:hover .product-link .arrow { transform: translateX(3px); }

/* ============ Trusted marquee ============ */
.trusted-section { padding-bottom: 96px; }
.marquee {
  position: relative;
  z-index: 1;
  margin-top: 46px;
  overflow: hidden;
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  padding: 26px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: scroll-left 22s linear infinite;
}
.marquee-track span {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: color .3s;
}
.marquee-track span:hover { color: var(--cyan); }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Process ============ */
.process-rail { margin-top: 56px; position: relative; }
.process-line {
  position: absolute;
  top: 13px;
  left: 10%; right: 10%;
  height: 1px;
  background: var(--navy-border);
  display: none;
}
@media (min-width: 981px) {
  .process-line { display: block; }
}
.process-line-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--cyan);
  transition: width 1.4s var(--ease);
}
.process-rail.line-active .process-line-fill { width: 100%; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--navy);
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.step h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ============ Quote ============ */
.quote {
  margin: 88px 0 0;
  padding: 44px 0 0;
  border-top: 1px solid var(--navy-border);
  max-width: 760px;
}
.quote p {
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink-1);
}
.quote p::before { content: '“'; color: var(--cyan); }
.quote cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 600;
}

/* ============ CTA panel ============ */
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  background: linear-gradient(160deg, #08213f, #041329 70%);
  border: 1px solid var(--navy-border-strong);
}
.cta-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(39,216,242,0.06) 0 2px, transparent 2px 42px);
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 65%);
}
.cta-panel h2 {
  position: relative;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  max-width: 620px;
  margin: 0 auto;
}
.cta-panel p {
  position: relative;
  margin: 18px auto 34px;
  max-width: 480px;
  color: var(--ink-2);
  font-size: 16px;
}
.cta-panel .btn { position: relative; }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--navy-border);
  padding: 64px 0 28px;
  position: relative;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 300px; }
.footer-brand .brand-icon,
.footer-brand .brand-word {
  display: inline-flex;
  vertical-align: middle;
}
.footer-brand p {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.6;
}
.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-nav a, .footer-contact a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color .2s;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--cyan); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.footer-bottom {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--navy-border);
}
.footer-bottom p {
  font-size: 13px;
  color: var(--ink-3);
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .hero-pattern { width: 80%; opacity: 0.5; }
}

@media (max-width: 760px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .hero { padding: 150px 0 90px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .cta-panel { padding: 52px 26px; }
  .footer-inner { flex-direction: column; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
