/* ========== TOKENS ========== */
:root {
  --navy: #071B3A;
  --navy-2: #0a2348;
  --navy-3: #0d2a55;
  --blue: #1677FF;
  --cyan: #22D3EE;
  --teal: #14B8A6;
  --slate: #1F2937;
  --gray-1: #CBD5E1;
  --gray-2: #94A3B8;
  --gray-3: #64748B;
  --bg: #F6F8FC;
  --bg-2: #EEF2F8;
  --white: #FFFFFF;
  --ring: rgba(34, 211, 238, .25);
  --shadow-1: 0 1px 2px rgba(7, 27, 58, .06), 0 4px 12px rgba(7, 27, 58, .04);
  --shadow-2: 0 10px 30px rgba(7, 27, 58, .08), 0 2px 8px rgba(7, 27, 58, .05);
  --shadow-3: 0 20px 60px rgba(7, 27, 58, .15);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --grad-blue: linear-gradient(135deg, #22D3EE 0%, #1677FF 100%);
  --grad-blue-hover: linear-gradient(135deg, #38DDF2 0%, #2E8AFF 100%);
  --grad-text: linear-gradient(135deg, #22D3EE 0%, #1677FF 100%);
  --grad-dark: linear-gradient(135deg, #071B3A 0%, #0a2348 50%, #1F2937 100%);
  --font: 'Inter', 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Manrope', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  width: 100%;
}
img, svg, video { max-width: 100%; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--navy); margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
p  { margin: 0; color: var(--gray-3); }

.gradient-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;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .94rem;
  letter-spacing: .005em;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.btn-sm { padding: 10px 18px; font-size: .86rem; gap: 8px; }
.btn-block { width: 100%; }

.btn .btn-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform .25s ease;
}
.btn-sm .btn-arrow { width: 14px; height: 14px; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--grad-blue);
  color: var(--white);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .25) inset,
    0 6px 18px rgba(22, 119, 255, .35),
    0 2px 6px rgba(22, 119, 255, .22);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-blue-hover);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: -1;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .3) inset,
    0 12px 28px rgba(22, 119, 255, .42),
    0 4px 10px rgba(22, 119, 255, .28);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(34, 211, 238, .35),
    0 6px 18px rgba(22, 119, 255, .35);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(7, 27, 58, .15);
}
.btn-ghost:hover { background: rgba(22, 119, 255, .06); border-color: rgba(22, 119, 255, .35); color: var(--blue); }

.btn-ghost-light {
  color: var(--white);
  border-color: rgba(255,255,255,.35);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); color: var(--white); }

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #071B3A;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
  transform: translateZ(0);
  -webkit-transform: translate3d(0, 0, 0);
}
.site-header.scrolled {
  background: #061533;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .25);
  border-bottom-color: rgba(34, 211, 238, .15);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.logo-mark {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  display: block;
  /* Header is navy → logo always renders white for contrast */
  filter: brightness(0) invert(1) drop-shadow(0 4px 10px rgba(0, 0, 0, .25));
}
.logo-footer .logo-mark {
  filter: brightness(0) invert(1) drop-shadow(0 4px 14px rgba(34, 211, 238, .25));
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: .14em;
  color: var(--white);
}
.logo-sub {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .34em;
  color: rgba(255, 255, 255, .6);
  margin-top: 4px;
}
.logo-footer .logo-name { color: var(--white); }
.logo-footer .logo-sub { color: rgba(255, 255, 255, .55); }
@media (max-width: 768px) {
  /* HEADER ONLY — stack: symbol on top, wordmark centered below */
  .site-header .logo {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .site-header .logo-mark { height: 30px; }
  .site-header .logo-text {
    align-items: center;
    text-align: center;
  }
  .site-header .logo-name { font-size: .7rem; letter-spacing: .14em; }
  .site-header .logo-sub { font-size: .42rem; letter-spacing: .26em; margin-top: 2px; }

  /* Footer logo stays horizontal but a bit smaller on mobile */
  .logo-footer { gap: 10px; }
  .logo-footer .logo-mark { height: 36px; }
  .logo-footer .logo-name { font-size: .92rem; letter-spacing: .1em; }
  .logo-footer .logo-sub { font-size: .5rem; letter-spacing: .26em; margin-top: 2px; }

  /* Header needs a touch more vertical room for the stacked logo */
  .nav-wrap { height: 70px; }
}

.primary-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.primary-nav a {
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  position: relative;
  transition: color .2s ease;
}
.primary-nav a:hover { color: var(--cyan); }
.primary-nav a.active { color: var(--cyan); }
.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-text);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.primary-nav a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  position: relative;
  padding: 0;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ========== HERO ========== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at top left, rgba(34, 211, 238, .08), transparent 50%),
    radial-gradient(ellipse at top right, rgba(22, 119, 255, .06), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, #F6F8FC 100%);
  color: var(--navy);
  overflow: hidden;
  padding: clamp(72px, 11vw, 130px) 0 clamp(80px, 10vw, 120px);
  border-bottom: 1px solid rgba(7, 27, 58, .05);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(7, 27, 58, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 27, 58, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.orb-1 { width: 480px; height: 480px; background: radial-gradient(circle, #1677FF 0%, transparent 70%); top: -150px; left: -120px; opacity: .30; }
.orb-2 { width: 420px; height: 420px; background: radial-gradient(circle, #22D3EE 0%, transparent 70%); bottom: -160px; right: -100px; opacity: .28; }
.orb-3 { width: 320px; height: 320px; background: radial-gradient(circle, #14B8A6 0%, transparent 70%); top: 30%; left: 40%; opacity: .14; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-copy { max-width: 620px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .12), rgba(22, 119, 255, .08));
  border: 1px solid rgba(22, 119, 255, .25);
  font-size: .8rem;
  color: #0891b2;
  letter-spacing: .04em;
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .15);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 211, 238, .15); }
  50% { box-shadow: 0 0 0 8px rgba(34, 211, 238, .05); }
}

.hero-title { color: var(--navy); margin-bottom: 22px; }
.hero-sub { color: var(--gray-3); font-size: 1.08rem; max-width: 580px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn-ghost {
  color: var(--navy);
  border-color: rgba(7, 27, 58, .18);
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(8px);
}
.hero-cta .btn-ghost:hover {
  background: rgba(22, 119, 255, .08);
  border-color: rgba(22, 119, 255, .4);
  color: var(--blue);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(7, 27, 58, .1);
}
.hero-meta > div { display: flex; flex-direction: column; }
.hero-meta strong { color: var(--navy); font-weight: 700; font-size: .98rem; }
.hero-meta span { color: var(--gray-3); font-size: .82rem; margin-top: 2px; }

/* hero dashboard mockup */
.hero-visual { position: relative; perspective: 1400px; }

.dashboard-mock {
  background: linear-gradient(160deg, #0a2348 0%, #071B3A 100%);
  border: 1px solid rgba(34, 211, 238, .15);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(7, 27, 58, .25),
    0 12px 32px rgba(22, 119, 255, .15),
    0 0 0 1px rgba(34, 211, 238, .08) inset;
  transform: rotateY(-6deg) rotateX(4deg);
  transition: transform .6s ease;
}
.dashboard-mock:hover { transform: rotateY(-3deg) rotateX(2deg); }

.dm-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.dm-dots { display: flex; gap: 6px; }
.dm-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.2);
}
.dm-dots span:nth-child(1) { background: #ef4444; opacity: .8; }
.dm-dots span:nth-child(2) { background: #f59e0b; opacity: .8; }
.dm-dots span:nth-child(3) { background: #22c55e; opacity: .8; }
.dm-title { font-size: .78rem; color: rgba(255,255,255,.5); }

.dm-body { display: grid; grid-template-columns: 150px 1fr; min-height: 360px; }
.dm-side {
  background: rgba(7, 27, 58, .35);
  padding: 16px 12px;
  border-right: 1px solid rgba(255,255,255,.05);
  display: flex; flex-direction: column; gap: 4px;
}
.dm-side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}
.dm-side-item .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); }
.dm-side-item.active {
  background: linear-gradient(90deg, rgba(34,211,238,.12), rgba(22,119,255,.04));
  color: var(--cyan);
}
.dm-side-item.active .dot { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.dm-main { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.dm-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dm-kpi {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.dm-kpi-label { font-size: .68rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; }
.dm-kpi-value { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--white); }
.dm-kpi-value .muted { color: rgba(255,255,255,.4); font-size: 1rem; font-weight: 500; }
.dm-kpi-trend { font-size: .68rem; font-weight: 600; }
.dm-kpi-trend.up { color: #22c55e; }
.dm-kpi-trend.down { color: #f43f5e; }

.dm-chart {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 8px;
  height: 130px;
}
.dm-chart svg { width: 100%; height: 100%; }

.dm-rows { display: flex; flex-direction: column; gap: 6px; }
.dm-list-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .78rem;
  color: rgba(255,255,255,.75);
}
.dm-list-row .muted { color: rgba(255,255,255,.4); text-align: right; }
.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: .65rem;
  font-weight: 600;
  text-align: center;
}
.tag-ok { background: rgba(34, 197, 94, .15); color: #4ade80; }
.tag-warn { background: rgba(245, 158, 11, .15); color: #fbbf24; }

.float-card {
  position: absolute;
  background: rgba(255,255,255,.95);
  color: var(--navy);
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
  display: flex; align-items: center; gap: 14px;
  border: 1px solid rgba(255,255,255,.5);
  animation: float 6s ease-in-out infinite;
}
.float-card .fc-ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--grad-blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.float-card .fc-ic svg { width: 20px; height: 20px; }
.fc-title { font-weight: 700; font-size: .85rem; }
.fc-sub { font-size: .72rem; color: var(--gray-3); }

.float-card-1 { top: -20px; left: -30px; animation-delay: 0s; }
.float-card-2 { bottom: 10px; right: -25px; animation-delay: 2s; }

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

/* ========== SECTIONS ========== */
.section {
  padding: clamp(72px, 9vw, 120px) 0;
  position: relative;
}
.section-alt { background: linear-gradient(180deg, #F6F8FC 0%, #EEF2F8 100%); }

.section-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}
.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--blue);
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(22, 119, 255, .08);
  border: 1px solid rgba(22, 119, 255, .18);
}
.section-head h2 { margin-bottom: 18px; }
.lead { font-size: 1.05rem; color: var(--gray-3); }

/* feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid rgba(7, 27, 58, .06);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 211, 238, .05), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: rgba(22, 119, 255, .2);
}
.feature-card:hover::before { opacity: 1; }

.feature-ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--grad-blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 10px 24px rgba(22, 119, 255, .28);
}
.feature-ic svg { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: .92rem; }

/* products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid rgba(7, 27, 58, .06);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}
.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); }
.product-card:hover::after { transform: scaleX(1); }

.product-ic {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(22, 119, 255, .08);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.product-ic svg { width: 26px; height: 26px; }
.product-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.product-card p { font-size: .92rem; margin-bottom: 18px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.checks li {
  font-size: .88rem;
  color: var(--slate);
  padding-left: 24px;
  position: relative;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--grad-text);
  opacity: .15;
}
.checks li::after {
  content: '';
  position: absolute;
  left: 4px; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

/* why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--white);
  border: 1px solid rgba(7, 27, 58, .06);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.why-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}
.why-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.why-card p { font-size: .85rem; }

/* process */
.process-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.process-line::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(22, 119, 255, .3), rgba(34, 211, 238, .4), rgba(22, 119, 255, .3), transparent);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid rgba(7, 27, 58, .06);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-align: left;
}
.step-num {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--grad-blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 16px;
  margin-top: -48px;
  box-shadow: 0 10px 24px rgba(22, 119, 255, .3);
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: .85rem; }

/* solutions */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.sol-card {
  background: var(--white);
  border: 1px solid rgba(7, 27, 58, .06);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}
.sol-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 119, 255, .25);
  box-shadow: var(--shadow-2);
}
.sol-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue);
  background: rgba(22, 119, 255, .08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.sol-card h4 { font-size: 1rem; line-height: 1.3; }

/* tech */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.tech-col {
  background: var(--white);
  border: 1px solid rgba(7, 27, 58, .06);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.tech-col h4 {
  font-size: 1.1rem;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(7, 27, 58, .08);
}
.dot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dot-list li {
  font-size: .92rem;
  color: var(--slate);
  padding-left: 22px;
  position: relative;
}
.dot-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--grad-blue);
  transform: rotate(45deg);
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(7, 27, 58, .1);
  font-size: .82rem;
  font-weight: 500;
  color: var(--slate);
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.badge:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  color: var(--blue);
}

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-copy .kicker { margin-bottom: 14px; }
.about-copy h2 { margin-bottom: 22px; }
.about-copy p { font-size: 1.02rem; margin-bottom: 18px; }
.about-copy .mission {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 500;
  padding: 18px 22px;
  border-left: 3px solid var(--blue);
  background: linear-gradient(90deg, rgba(22, 119, 255, .04), transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 28px;
}
.about-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.about-points > div {
  display: flex; flex-direction: column;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid rgba(7, 27, 58, .06);
}
.about-points strong { color: var(--navy); font-size: .98rem; }
.about-points span { color: var(--gray-3); font-size: .85rem; margin-top: 2px; }

.about-visual { position: relative; }
.node-net { position: relative; }
.node-net svg {
  width: 100%;
  height: auto;
  animation: rotate-slow 60s linear infinite;
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* team / expertise */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.team-card {
  background: var(--white);
  border: 1px solid rgba(7, 27, 58, .06);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.team-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: rgba(22, 119, 255, .18);
}
.team-card:hover::after { transform: scaleX(1); }

.team-ic {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: rgba(22, 119, 255, .08);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.team-ic svg { width: 24px; height: 24px; }
.team-card h3 { font-size: 1.08rem; margin-bottom: 10px; line-height: 1.3; }
.team-card p { font-size: .9rem; }

.team-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid rgba(7, 27, 58, .06);
  border-radius: var(--radius);
  padding: 28px 36px;
  box-shadow: var(--shadow-1);
}
.ts-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
.ts-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.ts-label {
  font-size: .82rem;
  color: var(--gray-3);
  max-width: 200px;
}
.ts-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(7, 27, 58, .08);
}

/* CTA */
.cta-section {
  position: relative;
  background: var(--grad-dark);
  color: var(--white);
  overflow: hidden;
  padding: clamp(72px, 10vw, 120px) 0;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
}
.cta-inner h2 { color: var(--white); margin-bottom: 14px; }
.cta-inner p { color: rgba(255,255,255,.7); font-size: 1.1rem; margin-bottom: 32px; }
.cta-buttons {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-copy h2 { margin-top: 14px; margin-bottom: 14px; }
.contact-copy p { margin-bottom: 30px; }

.contact-info {
  display: flex; flex-direction: column; gap: 16px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid rgba(7, 27, 58, .06);
  border-radius: var(--radius-sm);
}
.contact-ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .12), rgba(22, 119, 255, .08));
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(22, 119, 255, .12);
}
.contact-ic svg {
  width: 22px;
  height: 22px;
}
.contact-row strong { display: block; font-size: .88rem; color: var(--navy); }
.contact-row a, .contact-row span { color: var(--gray-3); font-size: .88rem; }
.contact-row a:hover { color: var(--blue); }

.company-details {
  margin-top: 24px;
  background: var(--white);
  border: 1px solid rgba(7, 27, 58, .08);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.company-details h4 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gray-3);
  margin: 0 0 12px;
}
.company-details dl {
  margin: 0;
  display: grid;
  grid-template-columns: 130px 1fr;
  row-gap: 8px;
  column-gap: 14px;
  font-size: .88rem;
}
.company-details dt {
  color: var(--gray-3);
  font-weight: 500;
}
.company-details dd {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 768px) {
  /* Stack key over value on mobile so long values never overflow */
  .company-details dl {
    grid-template-columns: 1fr;
    row-gap: 4px;
    font-size: .9rem;
  }
  .company-details dt {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 10px;
  }
  .company-details dt:first-of-type { margin-top: 0; }
  .company-details dd { font-size: .92rem; }
}

.contact-form {
  background: var(--white);
  border: 1px solid rgba(7, 27, 58, .06);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form label > span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(7, 27, 58, .12);
  background: var(--bg);
  font-family: inherit;
  font-size: .95rem;
  color: var(--navy);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
/* Custom dropdown arrow for the project-type select */
.contact-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071B3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--gray-3); opacity: 1; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--ring);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* GDPR consent row */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(180deg, rgba(22, 119, 255, .04), rgba(22, 119, 255, .01));
  border: 1px solid rgba(22, 119, 255, .12);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.consent-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(7, 27, 58, .25);
  background: var(--white);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  margin-top: 2px;
  transition: border-color .2s ease, background .2s ease;
}
.consent-row input[type="checkbox"]:hover {
  border-color: var(--blue);
}
.consent-row input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
  border-color: var(--blue);
}
.consent-row input[type="checkbox"]:checked {
  background: var(--grad-blue);
  border-color: var(--blue);
}
.consent-row input[type="checkbox"]:checked::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.consent-row .consent-text {
  font-size: .82rem;
  color: var(--slate);
  line-height: 1.5;
}
.consent-row .consent-text a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-row .consent-text a:hover { color: var(--navy); }

.form-status {
  font-size: .9rem;
  padding: 12px 14px;
  border-radius: 10px;
  display: none;
}
.form-status.ok { display: block; background: rgba(34, 197, 94, .1); color: #15803d; border: 1px solid rgba(34, 197, 94, .2); }
.form-status.err { display: block; background: rgba(239, 68, 68, .1); color: #b91c1c; border: 1px solid rgba(239, 68, 68, .2); }

/* ========== LEGAL PAGES (privacy / terms) ========== */
.legal-page {
  padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 120px);
  background: linear-gradient(180deg, #F6F8FC 0%, #FFFFFF 240px);
}
.legal-wrap {
  max-width: 820px;
}
.legal-head {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(7, 27, 58, .08);
}
.legal-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 14px 0 12px;
  line-height: 1.1;
}
.legal-meta {
  font-size: .9rem;
  color: var(--gray-3);
}
.legal-content {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.7;
}
.legal-content .lead {
  font-size: 1.08rem;
  color: var(--slate);
  margin-bottom: 32px;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .06), rgba(22, 119, 255, .04));
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 44px 0 14px;
  color: var(--navy);
}
.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 26px 0 10px;
  color: var(--navy);
}
.legal-content p {
  margin: 0 0 14px;
  color: var(--slate);
}
.legal-content ul {
  margin: 0 0 18px;
  padding-left: 22px;
}
.legal-content ul li {
  margin-bottom: 8px;
  color: var(--slate);
}
.legal-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover { color: var(--navy); }
.legal-content strong { color: var(--navy); }
.legal-card {
  background: var(--white);
  border: 1px solid rgba(7, 27, 58, .08);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 12px 0 24px;
  box-shadow: var(--shadow-1);
}
.legal-card p { margin: 0 0 4px; font-size: .96rem; }
.legal-card p:last-child { margin: 0; }

@media (max-width: 768px) {
  .legal-content h2 { font-size: 1.2rem; }
  .legal-content { font-size: .96rem; }
}

/* footer */
.site-footer {
  background: var(--grad-dark);
  color: rgba(255,255,255,.7);
  padding: 80px 0 28px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .3), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-bottom a {
  color: rgba(255,255,255,.65);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-bottom a:hover { color: var(--cyan); }
.footer-brand p { color: rgba(255,255,255,.55); font-size: .92rem; margin-top: 18px; max-width: 360px; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h5 {
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 10px;
}
.footer-links a {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--cyan); }

.footer-cta h5 {
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 10px;
}
.footer-cta p { color: rgba(255,255,255,.55); font-size: .88rem; margin-bottom: 16px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.footer-tag { max-width: 640px; text-align: right; }

/* ========== ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .eyebrow-dot, .float-card, .node-net svg { animation: none; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-meta { margin-top: 36px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .process-line { grid-template-columns: repeat(2, 1fr); }
  .process-line::before { display: none; }
  .step-num { margin-top: 0; }
  .solutions-grid { grid-template-columns: repeat(3, 1fr); }
  .tech-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-stats { flex-wrap: wrap; padding: 24px; }
  .ts-divider { display: none; }
  .ts-item { flex: 1 1 45%; padding: 8px; }
}

@media (max-width: 768px) {
  /* Mobile header stays navy too */
  .site-header {
    background: #071B3A;
    border-bottom-color: rgba(255, 255, 255, .08);
  }
  .site-header.scrolled {
    background: #061533;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 6px 18px rgba(0, 0, 0, .25);
  }
  .primary-nav {
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: #061533;
    border-bottom: 1px solid rgba(34, 211, 238, .15);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  }
  .primary-nav.open { max-height: 420px; padding: 12px 24px 18px; }
  .primary-nav a {
    padding: 14px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .85);
  }
  .primary-nav a:last-of-type { border-bottom: none; }
  .nav-toggle { display: block; }
  .nav-actions .btn { display: none; }

  .feature-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .process-line { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-meta { grid-template-columns: 1fr; gap: 12px; padding-top: 24px; margin-top: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px 18px; gap: 16px; }
  /* iOS Safari zooms the page when an input has font-size < 16px → force 16px on mobile */
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
    padding: 13px 14px;
  }
  .contact-form select { padding-right: 40px; }
  .contact-form textarea { min-height: 110px; }
  .contact-form label > span { font-size: .82rem; }
  .consent-row { padding: 12px 14px; gap: 10px; }
  .consent-row .consent-text { font-size: .82rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .footer-tag { text-align: left; }
  .float-card-1, .float-card-2 { display: none; }
  .dashboard-mock { transform: none; }
  .team-grid { grid-template-columns: 1fr; }
  .ts-item { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .dm-body { grid-template-columns: 1fr; min-height: 0; }
  .dm-side {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.05);
  }
  .dm-side-item { flex-shrink: 0; }
  .dm-row { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .legal-content { word-break: break-word; }
}
