:root {
  --bg: #08080b;
  --bg-2: #0e0e12;
  --card: #16161c;
  --card-2: #1c1c24;
  --border: #26262e;
  --text: #f4f4f6;
  --muted: #9a9aa6;
  --muted-2: #6f6f7a;
  --accent: #ff5a5f;
  --accent-soft: rgba(255, 90, 95, 0.14);
  --indigo: #7c7cf0;
  --radius: 14px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(8, 8, 11, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-text { font-size: 13px; font-weight: 600; letter-spacing: 2px; line-height: 1.15; }
.nav-right { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-size: 15px; color: var(--muted); font-weight: 500;
  position: relative; transition: color 0.25s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--accent); border-radius: 2px;
}
.btn-outline {
  border: 1.5px solid #4a4a55;
  padding: 11px 20px; border-radius: 8px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.5px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 13px 26px; border-radius: 8px;
  font-weight: 600; font-size: 15px; border: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  box-shadow: 0 6px 22px -8px rgba(255, 90, 95, 0.6);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -8px rgba(255, 90, 95, 0.7); background: #ff6b70; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: #06060a;
}
.hero-bg {
  position: absolute; inset: -4%;
  background-size: cover; background-position: center;
  z-index: 0;
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.05) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1.5%, -1%); }
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; z-index: 1; opacity: 0.5;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--bg) 8%, rgba(8,8,11,0.55) 42%, rgba(8,8,11,0.1) 100%),
              linear-gradient(0deg, var(--bg) 1%, transparent 42%);
}
.hero-home .hero-bg { background-image: url("assets/hero-blue.jpg"); }
.hero-red .hero-bg { background-image: url("assets/hero-red.jpg"); }
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 620px; }
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -1px;
  margin-bottom: 22px;
}
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 420px; margin-bottom: 34px; }

/* thin variant hero (inner pages) */
.hero-slim { min-height: 62vh; }
.hero-slim h1 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 100px 0; }
.section-tight { padding: 70px 0; }
.eyebrow {
  color: var(--accent); font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; font-size: 13px; margin-bottom: 14px;
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; letter-spacing: -0.5px; line-height: 1.15; }
.center { text-align: center; }

/* ---------- Feature grid (home) ---------- */
.feature-wrap {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 56px; overflow: hidden;
}
.feature-wrap::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/mesh-dark.jpg") center/cover;
  opacity: 0.35; -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
}
.feature-intro, .cards { position: relative; z-index: 1; }
.feature-intro h2 { font-size: 2rem; font-weight: 600; line-height: 1.2; margin-bottom: 20px; }
.feature-intro p { color: var(--muted); font-size: 1rem; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); background: var(--card-2); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 22px; margin-bottom: 16px;
  background: var(--accent-soft);
}
.card h3 { color: var(--accent); font-size: 1.02rem; margin-bottom: 10px; font-weight: 600; }
.card p { color: var(--muted); font-size: 0.9rem; }
.card .rule { height: 3px; width: 40px; background: var(--border); border-radius: 3px; margin-top: 18px; }

/* ---------- Split banner ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.split-visual {
  min-height: 400px; position: relative;
  display: flex; align-items: flex-end; padding: 44px;
  background: #0b0b0f; overflow: hidden;
}
.split-visual::before {
  content: ""; position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.9s var(--ease);
}
.split:hover .split-visual::before { transform: scale(1.06); }
.split-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,11,0.15), rgba(8,8,11,0.75));
}
.split-visual.radar::before { background-image: url("assets/radar-red.jpg"); }
.split-visual.swirl::before { background-image: url("assets/swirl-red.jpg"); }
.split-visual h2 { position: relative; z-index: 1; font-size: 1.9rem; font-weight: 600; max-width: 340px; line-height: 1.25; }
.split-text { padding: 54px 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.split-text p { color: var(--muted); margin-bottom: 26px; }

/* ---------- Logos ---------- */
.logos {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius); margin-top: 24px; overflow: hidden;
}
.logos > div {
  padding: 40px 20px; text-align: center;
  border-right: 1px solid var(--border);
  color: var(--muted); font-weight: 700; letter-spacing: 1px; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.logos > div:last-child { border-right: none; }
.logos > div:hover { color: var(--text); background: var(--bg-2); }
.logos .label { color: var(--text); font-weight: 600; letter-spacing: 0; font-size: 1.4rem; }

/* ---------- CTA band ---------- */
.cta {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.cta-visual {
  position: relative; min-height: 320px;
  background: #0b0b0f;
  display: flex; align-items: center; padding: 50px; overflow: hidden;
}
.cta-visual::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/sphere.png") center/contain no-repeat;
  opacity: 0.85;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-visual h2 { position: relative; z-index: 1; font-size: 1.9rem; font-weight: 600; max-width: 280px; line-height: 1.25; text-shadow: 0 2px 20px rgba(0,0,0,0.8); }
.cta-text { padding: 50px 44px; }
.cta-text p { color: var(--muted); margin-bottom: 26px; }

/* ---------- Solutions feature rows ---------- */
.rows { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.frow {
  display: grid; grid-template-columns: 66px 1fr;
  padding: 34px 44px; border-bottom: 1px solid var(--border);
  align-items: start; gap: 26px;
  transition: background 0.35s var(--ease);
}
.frow:last-child { border-bottom: none; }
.frow:hover { background: var(--bg-2); }
.frow .ficon {
  width: 66px; height: 66px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.frow .ficon.indigo { background: rgba(124,124,240,0.18); color: var(--indigo); }
.frow .ficon.coral { background: var(--accent-soft); color: var(--accent); }
.frow h3 { font-size: 1.15rem; margin-bottom: 10px; font-weight: 600; }
.frow p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Steps (get-started) ---------- */
.steps-band {
  position: relative;
  background: linear-gradient(180deg, #0c1218 0%, #10171e 50%, #120c10 100%);
  padding: 80px 0 90px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.steps-band::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/wave-navy.jpg") center/cover;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.steps-band .container { position: relative; z-index: 1; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 940px; margin: 40px auto 0; }
.step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 26px 30px; text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.step:hover { transform: translateY(-6px); border-color: var(--accent); }
.step .num {
  width: 52px; height: 52px; margin: 0 auto 20px;
  border-radius: 50%; background: #24242c; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1.2rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 12px; font-weight: 600; }
.step p { color: var(--muted); font-size: 0.9rem; }
.steps .step:nth-child(4) { grid-column: 1 / 2; }
.steps.row2 { grid-template-columns: repeat(2, 1fr); max-width: 620px; margin-top: 22px; }

/* ---------- Contact form ---------- */
.contact-band {
  background: linear-gradient(120deg, rgba(120,40,45,0.4), rgba(40,20,50,0.4)), var(--bg-2);
  padding: 70px 0;
}
.contact-form { max-width: 620px; }
.contact-form h2 { font-size: 1.7rem; margin-bottom: 28px; font-weight: 600; }
.contact-note { max-width: 560px; }
.contact-note h2 { font-size: 1.7rem; margin-bottom: 14px; font-weight: 600; }
.contact-note p { color: var(--muted); margin-bottom: 24px; }
.contact-note .contact-sub { font-size: 0.9rem; margin-top: 22px; margin-bottom: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 13px 14px; color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(255,255,255,0.06);
}
.field textarea { resize: vertical; min-height: 120px; }
.field { margin-bottom: 18px; }

/* ---------- Footer ---------- */
.footer {
  padding: 46px 0 40px; border-top: 1px solid var(--border);
}
.footer .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer .brand svg { width: 56px; height: 56px; }
.footer-contact { color: var(--muted); font-size: 0.92rem; text-align: right; }
.footer-contact strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 4px; }
.footer-email { color: var(--muted); transition: color 0.25s var(--ease); }
.footer-email:hover { color: var(--accent); }
.footer-credit { color: var(--muted-2); font-size: 0.78rem; margin-top: 8px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature-wrap { grid-template-columns: 1fr; padding: 36px 26px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .split, .cta { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps .step:nth-child(4) { grid-column: auto; }
  .logos { grid-template-columns: 1fr 1fr; }
  .logos > div:nth-child(2) { border-right: none; }
  .frow { grid-template-columns: 1fr; }
  .footer .container { flex-direction: column; text-align: center; }
  .footer-contact { text-align: center; }
}
@media (max-width: 560px) {
  .nav { padding: 14px 18px; }
  .nav-right { gap: 16px; }
  .nav-link { display: none; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .brand-text { display: none; }
}
