:root {
  --bg:            #050b1a;
  --bg-2:          #07112a;
  --panel:         #0a162e;
  --panel-2:       #0d1a36;
  --panel-3:       #0f1f3d;
  --line:          rgba(96, 138, 220, 0.16);
  --line-strong:   rgba(96, 138, 220, 0.32);
  --text:          #e6eefb;
  --text-dim:      #98a8c4;
  --text-mute:     #6a7d9e;
  --accent:        #3a86ff;
  --accent-2:      #5aa0ff;
  --accent-soft:   #1b3a78;
  --green:         #36d57a;
  --amber:         #f5b455;
  --red:           #ef5a6f;
  --shadow:        0 30px 80px -30px rgba(0,0,0,.7);
  --radius:        14px;
  --radius-sm:     10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 36px; }

/* ----- TOP NAV ----- */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 26px 0 0;
  transition: background .25s, padding .25s, box-shadow .25s;
}
.nav.nav-static {
  position: sticky;
  top: 0;
  padding: 18px 0;
  background: rgba(5, 11, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav.scrolled,
body.scrolled .nav {
  position: fixed;
  background: rgba(5, 11, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.nav.scrolled .logo-mark { font-size: 22px; }
.nav.scrolled .logo-sub { font-size: 8px; margin-top: 4px; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-mark {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.logo-mark .dot { color: var(--accent-2); }
.logo-sub {
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--accent-2);
  margin-top: 6px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: #d6e1f5;
}
.nav-links a {
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active { color: var(--accent-2); }
.nav-links svg { width: 9px; height: 9px; opacity: .7; transition: transform .2s; }
.nav-static .nav-links a { text-shadow: none; }

/* Dropdown menus */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #d6e1f5;
  transition: color .2s;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  padding: 8px 0;
}
.nav-item > a:hover, .nav-item.open > a { color: #fff; }
.nav-item > a svg { width: 9px; height: 9px; opacity: .7; transition: transform .2s; }
.nav-item:hover > a svg { transform: rotate(180deg); }
.nav-static .nav-item > a { text-shadow: none; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -20px;
  min-width: 320px;
  background: rgba(8, 16, 36, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 100;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown.wide { min-width: 460px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dropdown a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim);
  transition: background .15s, color .15s;
  text-shadow: none;
}
.dropdown a:hover {
  background: rgba(58,134,255,0.1);
  color: #fff;
}
.dropdown a small {
  display: block;
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 2px;
  font-weight: 400;
}
.dropdown a strong {
  font-weight: 600;
  color: #fff;
}
.dropdown a:hover strong { color: var(--accent-2); }
.dropdown-cta {
  margin-top: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-mute);
}
.dropdown-cta a { color: var(--accent-2); padding: 0; display: inline; }
.dropdown-cta a:hover { background: transparent; text-decoration: underline; }

.btn-demo {
  background: var(--accent);
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background .2s, transform .2s;
  display: inline-block;
}
.btn-demo:hover { background: var(--accent-2); transform: translateY(-1px); }

/* ----- HERO (home) ----- */
.hero {
  position: relative;
  min-height: 720px;
  padding: 130px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 800px at 78% 30%, rgba(58,134,255,0.12), transparent 60%);
  pointer-events: none;
}
.hero-earth-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('bg.png') no-repeat;
  background-size: cover;
  background-position: center right;
}
.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5,11,26,0.85) 0%, rgba(5,11,26,0.55) 90px, rgba(5,11,26,0.15) 150px, transparent 220px),
    linear-gradient(to right, var(--bg) 0%, rgba(5,11,26,0.92) 18%, rgba(5,11,26,0.55) 32%, rgba(5,11,26,0.18) 45%, transparent 60%),
    linear-gradient(to bottom, transparent 70%, var(--bg) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 30px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 26px;
  color: #fff;
  max-width: 540px;
}
.hero-lead {
  font-size: 16px;
  color: var(--text-dim);
  margin: 0 0 14px;
  max-width: 460px;
  line-height: 1.55;
}
.hero-sub {
  font-size: 13.5px;
  color: var(--text-mute);
  max-width: 460px;
  line-height: 1.65;
  margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 4px;
  background: rgba(255,255,255,0.18);
}
.btn .arrow svg { width: 10px; height: 10px; }

.hero-visual { position: relative; height: 560px; }
.card-overview {
  position: absolute;
  right: -20px;
  top: 30px;
  width: 230px;
  background: rgba(8, 16, 36, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  z-index: 4;
  box-shadow: var(--shadow);
}
.card-overview-title {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  margin-bottom: 16px;
  font-weight: 500;
}
.ov-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.ov-row:last-of-type { border-bottom: none; }
.ov-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  font-weight: 500;
}
.ov-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: #fff;
  font-weight: 500;
}
.ov-btn {
  margin-top: 14px;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--accent-2);
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 500;
  background: rgba(58,134,255,0.05);
  transition: background .2s;
}
.ov-btn:hover { background: rgba(58,134,255,0.12); }

.card-tug {
  position: absolute;
  right: 100px;
  bottom: -10px;
  width: 270px;
  background: rgba(8, 16, 36, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  z-index: 4;
  box-shadow: var(--shadow);
}
.tug-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.tug-thumb {
  width: 36px; height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 78% 38%, #6ba7e8 0%, #2d5fa0 22%, #0d2552 45%, #050d22 70%, #02060f 100%);
  box-shadow: inset -4px -3px 8px rgba(0,0,0,0.7), 0 0 6px rgba(120,200,255,0.5), inset 2px 0 4px rgba(120,200,255,0.3);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.tug-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 50%, rgba(8,16,36,0.85) 0%, rgba(8,16,36,0.5) 30%, transparent 55%);
}
.tug-name { font-size: 14px; font-weight: 600; color: #fff; }
.tug-sub { font-size: 10px; color: var(--text-mute); letter-spacing: 0.1em; }
.tug-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  font-size: 11px;
}
.tug-row span:first-child { color: var(--text-mute); letter-spacing: 0.08em; }
.tug-row span:last-child { font-family: 'JetBrains Mono', monospace; color: #fff; }
.tug-row .ok { color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.tug-row .ok::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* ----- FEATURE STRIP (4 cols) ----- */
.feature-strip { position: relative; z-index: 2; padding: 30px 0 50px; }
.feature-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.fs-item { display: flex; gap: 16px; align-items: flex-start; }
.fs-icon {
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--accent-2);
  flex-shrink: 0;
}
.fs-icon svg { width: 18px; height: 18px; }
.fs-title {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--accent-2);
  margin: 2px 0 6px;
}
.fs-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }

/* ----- FEATURE CARDS ----- */
.feature-cards { padding: 10px 0 60px; }
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.feature-cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.feat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .2s, transform .2s;
}
.feat-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.feat-icon {
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--accent-2);
  margin-bottom: 22px;
}
.feat-icon svg { width: 18px; height: 18px; }
.feat-title {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.feat-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.55; flex: 1; }
.feat-arrow {
  color: var(--accent-2);
  margin-top: 16px;
  align-self: flex-end;
  transition: transform .2s;
}
.feat-card:hover .feat-arrow { transform: translateX(4px); }

/* ----- TACK panel card ----- */
.tack { padding: 30px 0 80px; }
.tack-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: center;
}
.tack-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 16px;
}
.tack-card h2 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.tack-card p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 16px;
}
.tack-card .btn { margin-top: 14px; }

/* ----- TACK Dashboard mockup ----- */
.dash {
  background: #060e22;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 10px;
}
.dash-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.dash-head .logo-mini {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.dash-head .dots { margin-left: auto; display: flex; gap: 5px; }
.dash-head .dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.dash-body {
  display: grid;
  grid-template-columns: 32px 1fr 1.4fr 1fr;
  min-height: 240px;
}
.dash-rail {
  background: rgba(255,255,255,0.015);
  border-right: 1px solid var(--line);
  padding: 10px 0;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.dash-rail i {
  display: block; width: 14px; height: 14px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
}
.dash-col {
  padding: 12px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.dash-col:last-child { border-right: none; }
.dash-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  font-weight: 500;
}
.dash-ring {
  margin: 6px auto;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 354deg, rgba(255,255,255,0.06) 354deg 360deg);
  display: grid; place-items: center;
  position: relative;
}
.dash-ring::before {
  content: ''; position: absolute; inset: 8px;
  border-radius: 50%; background: #060e22;
}
.dash-ring span {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #fff;
}
.dash-ring small {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  font-size: 7px; color: var(--green); letter-spacing: 0.16em;
}
.dash-status-list { font-size: 10px; }
.dash-status-list li {
  display: flex; justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.dash-status-list li::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
}
.dash-status-list ul { margin: 0; padding: 0; list-style: none; }
.dash-status-list .s-op::before { background: var(--green); }
.dash-status-list .s-man::before { background: var(--accent-2); }
.dash-status-list .s-stb::before { background: var(--amber); }
.dash-status-list .s-ano::before { background: var(--red); }
.dash-status-list li span:last-child {
  font-family: 'JetBrains Mono', monospace; color: #fff;
}

.globe-mini {
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 20% 12% at 32% 38%, rgba(255,180,90,0.45), transparent 70%),
    radial-gradient(ellipse 14% 10% at 28% 55%, rgba(255,170,80,0.35), transparent 70%),
    radial-gradient(circle at 65% 40%, rgba(50,100,170,0.5) 0%, transparent 40%),
    radial-gradient(circle at 35% 45%, #0a1832 0%, #050d22 40%, #02060f 70%);
  margin: 6px auto;
  width: 92%;
  box-shadow: inset -16px -8px 26px rgba(0,0,0,.6), 0 0 24px rgba(80,160,255,0.25), inset 8px 0 16px rgba(80,160,255,0.12);
  position: relative;
  overflow: visible;
}
.globe-mini svg { position: absolute; inset: -4%; width: 108%; height: 108%; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.dash-table th, .dash-table td {
  padding: 4px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.dash-table th { color: var(--text-mute); font-weight: 500; letter-spacing: 0.1em; }
.dash-table td { color: var(--text-dim); }
.dash-table td:first-child { color: #fff; }

.dash-thrust { display: flex; gap: 14px; align-items: baseline; margin: 4px 0 6px; }
.dash-thrust div { font-family: 'JetBrains Mono', monospace; font-size: 15px; color: #fff; }
.dash-thrust small { display: block; font-size: 8px; color: var(--text-mute); letter-spacing: 0.1em; margin-bottom: 4px; font-family: 'Manrope', sans-serif; }
.sparkline {
  width: 100%; height: 22px;
  background: linear-gradient(to top, rgba(54,213,122,0.18), transparent);
  position: relative;
  border-radius: 2px;
}
.sparkline::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 100%;
  background:
    linear-gradient(to right, transparent 0%, rgba(54,213,122,.7) 10%, rgba(54,213,122,.7) 90%, transparent 100%);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' preserveAspectRatio='none'><path d='M0 22 L10 18 L18 24 L28 14 L38 20 L48 10 L58 16 L70 6 L82 12 L92 4 L100 8' stroke='black' stroke-width='1.5' fill='none' vector-effect='non-scaling-stroke'/></svg>") no-repeat center / 100% 100%;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' preserveAspectRatio='none'><path d='M0 22 L10 18 L18 24 L28 14 L38 20 L48 10 L58 16 L70 6 L82 12 L92 4 L100 8' stroke='black' stroke-width='1.5' fill='none' vector-effect='non-scaling-stroke'/></svg>") no-repeat center / 100% 100%;
}

.traj-svg { width: 100%; height: 70px; margin: 6px 0; }
.submit-btn {
  margin-top: auto;
  background: var(--accent);
  color: #fff;
  padding: 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  width: 100%;
}

/* ----- SOLUTIONS row ----- */
.solutions { padding: 0 0 70px; }
.solutions-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.solutions-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 22px;
}
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sol-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 240px;
  cursor: pointer;
}
.sol-card .img {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 35%, #112450 0%, #07112a 60%, #050b1a 100%);
  transition: transform .5s;
  overflow: hidden;
}
.sol-card .img svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sol-card:hover .img { transform: scale(1.04); }
.sol-card .img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(5,11,26,0.92) 88%);
  pointer-events: none;
}
.sol-card .body { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px; z-index: 2; }
.sol-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; color: #fff; }
.sol-card p { margin: 0; font-size: 11.5px; color: var(--text-dim); line-height: 1.5; }
.sol-card .more { color: var(--accent-2); margin-top: 10px; display: inline-block; }

/* ----- BIG CTA ----- */
.cta {
  position: relative;
  padding: 90px 0 90px;
  text-align: center;
  overflow: hidden;
}
.cta-horizon {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.cta-horizon svg {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  min-width: 1400px;
  height: 360px;
  display: block;
}
.cta h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: -0.025em;
}
.cta p {
  position: relative;
  z-index: 1;
  color: var(--text-dim);
  margin: 0 0 30px;
  font-size: 14px;
}
.cta .btn { position: relative; z-index: 1; }

/* ----- FOOTER ----- */
footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  position: relative;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1.4fr;
  gap: 30px;
  margin-bottom: 50px;
}
.foot-brand .logo-mark { font-size: 22px; }
.foot-brand .logo-sub { font-size: 8px; }
.foot-brand p { margin: 18px 0 22px; font-size: 12px; color: var(--text-dim); line-height: 1.55; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text-dim);
  transition: color .2s, background .2s;
}
.socials a:hover { color: #fff; background: rgba(58,134,255,0.1); }
.socials svg { width: 13px; height: 13px; }

.foot-col h4 {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent-2);
  font-weight: 500;
  margin: 4px 0 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li, .foot-col a {
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 5px 0;
  display: block;
  transition: color .2s;
}
.foot-col a:hover { color: #fff; }

.signup p { font-size: 12px; color: var(--text-dim); margin: 4px 0 16px; line-height: 1.55; }
.signup-form {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
}
.signup-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  outline: none;
}
.signup-form input::placeholder { color: var(--text-mute); }
.signup-form button { background: var(--accent); padding: 0 14px; color: #fff; }
.signup-form button svg { width: 14px; height: 14px; }

.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 16px;
}
.foot-legal { display: flex; gap: 30px; }
.foot-legal a:hover { color: #fff; }
.foot-tag {
  color: var(--accent-2);
  letter-spacing: 0.28em;
  font-weight: 500;
  font-size: 10px;
}

/* ----- starfield bg ----- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 45% 80%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 10% 70%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 90% 90%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 35% 15%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 60% 45%, rgba(255,255,255,0.4), transparent);
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ============================================================
   SUBPAGE STYLES
   ============================================================ */

/* Compact hero for inner pages */
.subhero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, #03081a 0%, #050b1a 100%);
}
.subhero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 80% 30%, rgba(58,134,255,0.22), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(58,134,255,0.10), transparent 60%);
  pointer-events: none;
}
/* Starfield for inner-page heroes */
.subhero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 22%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 18% 65%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.4px 1.4px at 27% 35%, rgba(180,210,255,0.9), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.2px 1.2px at 55% 20%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 65% 55%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.6px 1.6px at 75% 30%, rgba(200,220,255,0.95), transparent),
    radial-gradient(1px 1px at 82% 75%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.2px 1.2px at 92% 45%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 50% 90%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.4px 1.4px at 35% 15%, rgba(180,210,255,0.7), transparent),
    radial-gradient(1px 1px at 70% 10%, rgba(255,255,255,0.6), transparent);
  background-size: 100% 100%;
  pointer-events: none;
  opacity: 0.85;
}
/* Decorative orbit arcs in subhero */
.subhero-decor {
  position: absolute;
  right: -100px;
  top: -50px;
  width: 700px;
  height: 600px;
  pointer-events: none;
  opacity: 0.5;
  z-index: 1;
}
.subhero-decor svg { width: 100%; height: 100%; display: block; }
.subhero .wrap { position: relative; z-index: 2; }
.subhero h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: #fff;
  max-width: 760px;
}
.subhero p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 0 28px;
}
.subhero .crumbs {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  margin-bottom: 24px;
}
.subhero .crumbs a { color: var(--accent-2); }
.subhero .crumbs span { margin: 0 8px; opacity: 0.5; }

/* Generic content section */
.section { padding: 80px 0; position: relative; }
.section.compact { padding: 50px 0; }
.section.dark { background: var(--panel); }
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: #fff;
  line-height: 1.15;
}
.section-lead {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 40px;
}
.section-head { margin-bottom: 40px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* 2-column split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.flip > div:first-child { order: 2; }
.split h3 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: #fff;
}
.split p { color: var(--text-dim); font-size: 14px; line-height: 1.65; margin: 0 0 14px; }
.split ul { padding-left: 18px; color: var(--text-dim); font-size: 14px; line-height: 1.7; }
.split ul li { margin-bottom: 6px; }

/* Icon-spec list */
.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.spec-list .spec {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.spec h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}
.spec p { font-size: 13px; color: var(--text-dim); line-height: 1.55; margin: 0; }

/* Data callout (metric stat) */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.metric .v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.metric .l {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 10px;
}
.metric p { font-size: 12px; color: var(--text-dim); line-height: 1.5; margin: 0; }

/* Architecture / module diagram blocks */
.stack-diagram {
  display: grid;
  gap: 12px;
}
.stack-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  align-items: center;
}
.stack-row .layer {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent-2);
  font-weight: 600;
}
.stack-row .layer-body h4 { font-size: 16px; font-weight: 600; color: #fff; margin: 0 0 6px; }
.stack-row .layer-body p { font-size: 13px; color: var(--text-dim); margin: 0; line-height: 1.55; }

/* Roles / careers */
.role-list { display: grid; gap: 12px; }
.role {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: border-color .2s, transform .2s;
}
.role:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.role h4 { font-size: 16px; font-weight: 600; color: #fff; margin: 0 0 4px; }
.role .meta { font-size: 12px; color: var(--text-mute); letter-spacing: 0.08em; }
.role .meta span { margin-right: 18px; }
.role .apply { color: var(--accent-2); font-size: 13px; font-weight: 500; white-space: nowrap; }

/* News cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.news-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.news-thumb {
  height: 160px;
  background: radial-gradient(ellipse at 50% 50%, #1a3a6e 0%, #0a1832 60%, #050d22 100%);
  position: relative;
  overflow: hidden;
}
.news-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.news-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 12px;
}
.news-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #fff;
  line-height: 1.25;
}
.news-card p { font-size: 13px; color: var(--text-dim); line-height: 1.55; margin: 0 0 16px; flex: 1; }
.news-date { font-size: 11px; color: var(--text-mute); letter-spacing: 0.1em; }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.team-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background:
    radial-gradient(circle at 35% 30%, #2a5aa0 0%, #0d2552 60%, #050d22 100%);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--accent-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 600;
}
.team-card h4 { font-size: 15px; font-weight: 600; color: #fff; margin: 0 0 4px; }
.team-card .title { font-size: 11px; color: var(--accent-2); letter-spacing: 0.16em; font-weight: 500; margin: 0 0 10px; }
.team-card p { font-size: 12px; color: var(--text-dim); line-height: 1.5; margin: 0; }

/* Contact / form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.form-grid {
  display: grid;
  gap: 16px;
}
.form-grid .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  font-weight: 500;
}
.field input, .field textarea, .field select {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field textarea { min-height: 130px; resize: vertical; }

.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-info .ci {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.contact-info .ci h4 { font-size: 11px; letter-spacing: 0.2em; color: var(--accent-2); margin: 0 0 10px; font-weight: 500; }
.contact-info .ci p { font-size: 14px; color: #fff; margin: 0 0 4px; font-weight: 500; }
.contact-info .ci small { font-size: 12px; color: var(--text-dim); }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.faq summary {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  color: var(--accent-2);
  font-size: 22px;
  line-height: 1;
}
.faq[open] summary::after { content: '−'; }
.faq p {
  margin: 14px 0 0;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Timeline (roadmap) */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 1px;
  background: var(--line-strong);
}
.timeline-item {
  position: relative;
  padding: 14px 0 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px; top: 22px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(58,134,255,0.5);
}
.timeline-item.done::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 12px rgba(54,213,122,0.5); }
.timeline-item.future::before { background: var(--bg); border-color: var(--text-mute); box-shadow: none; }
.timeline-quarter {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 6px;
}
.timeline-item.done .timeline-quarter { color: var(--green); }
.timeline-item.future .timeline-quarter { color: var(--text-mute); }
.timeline-item h4 { font-size: 17px; font-weight: 600; color: #fff; margin: 0 0 6px; }
.timeline-item p { font-size: 13px; color: var(--text-dim); line-height: 1.55; margin: 0; max-width: 640px; }

/* Use case big cards */
.use-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.use-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color .2s, transform .2s;
}
.use-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.use-card .tag {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 14px;
}
.use-card h3 { font-size: 22px; font-weight: 600; color: #fff; margin: 0 0 12px; letter-spacing: -0.01em; }
.use-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin: 0 0 18px; }
.use-card .out {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.use-card .out .m { font-family: 'JetBrains Mono', monospace; font-size: 18px; color: #fff; margin-bottom: 2px; }
.use-card .out .lab { font-size: 10px; color: var(--text-mute); letter-spacing: 0.12em; }

/* Legal long content */
.long-content { max-width: 760px; margin: 0 auto; }
.long-content h2 { color: #fff; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 36px 0 14px; }
.long-content h3 { color: #fff; font-size: 17px; font-weight: 600; margin: 28px 0 10px; }
.long-content p, .long-content li { color: var(--text-dim); font-size: 14px; line-height: 1.7; }
.long-content ul, .long-content ol { padding-left: 22px; }
.long-content a { color: var(--accent-2); text-decoration: underline; }

/* Logo strip / partners */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: 0.7;
}
.logo-strip .lg {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Helpers */
.center { text-align: center; }
.muted { color: var(--text-dim); }
.small { font-size: 12px; }
.pill {
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  font-weight: 500;
}

/* ============================================================
   FLOATING CHAT AGENT
   ============================================================ */
.chat {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 200;
  font-family: 'Manrope', system-ui, sans-serif;
}

/* The bobbing FAB */
.chat-fab {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent) 0%, #2a6dd9 100%);
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  box-shadow:
    0 14px 30px -8px rgba(58,134,255,0.55),
    0 0 0 1px rgba(120,200,255,0.25),
    inset 0 -6px 18px rgba(0,0,0,0.25);
  animation: chatBob 3.2s ease-in-out infinite;
  transition: transform .25s, box-shadow .25s;
  position: relative;
}
.chat-fab:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 22px 40px -10px rgba(58,134,255,0.7),
    0 0 0 1px rgba(120,200,255,0.4),
    inset 0 -6px 18px rgba(0,0,0,0.25);
}
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab .icon-close { display: none; }
.chat.open .chat-fab .icon-chat { display: none; }
.chat.open .chat-fab .icon-close { display: block; }
.chat.open .chat-fab { animation: none; }

/* Pulsing online dot */
.chat-fab .online {
  position: absolute;
  top: 6px; right: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 0 rgba(54,213,122,0.7);
  animation: chatPulse 2s ease-out infinite;
}

@keyframes chatBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes chatPulse {
  0%   { box-shadow: 0 0 0 0 rgba(54,213,122,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(54,213,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(54,213,122,0); }
}

/* Optional toast preview */
.chat-toast {
  position: absolute;
  bottom: 76px;
  right: 0;
  background: rgba(8,16,36,0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text);
  max-width: 240px;
  line-height: 1.45;
  box-shadow: var(--shadow);
  transform-origin: bottom right;
  animation: chatToastIn .5s ease-out 2s both;
}
.chat-toast::after {
  content: '';
  position: absolute;
  bottom: -6px; right: 22px;
  width: 12px; height: 12px;
  background: rgba(8,16,36,0.95);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
.chat-toast .dismiss {
  position: absolute;
  top: 4px; right: 6px;
  font-size: 14px;
  color: var(--text-mute);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.chat-toast .dismiss:hover { color: #fff; }
.chat.open .chat-toast,
.chat.dismissed .chat-toast { display: none; }

@keyframes chatToastIn {
  0%   { opacity: 0; transform: translateY(8px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* The chat panel */
.chat-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  height: 540px;
  background: rgba(8,16,36,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity .25s, transform .25s, visibility .25s;
}
.chat.open .chat-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(58,134,255,0.10) 0%, transparent 100%);
}
.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #5aa0ff 0%, #2a6dd9 50%, #0d2552 100%);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(58,134,255,0.4);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.chat-avatar .a-dot {
  position: absolute;
  bottom: -1px; right: -1px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #0a162e;
}
.chat-meta { flex: 1; min-width: 0; }
.chat-meta .name { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.2; }
.chat-meta .status { font-size: 11px; color: var(--green); letter-spacing: 0.06em; margin-top: 2px; display: inline-flex; align-items: center; gap: 5px; }
.chat-meta .status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.chat-min {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--text-mute);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.chat-min:hover { background: rgba(255,255,255,0.06); color: #fff; }
.chat-min svg { width: 14px; height: 14px; }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(120,180,255,0.15); border-radius: 3px; }

.msg {
  max-width: 80%;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 14px;
  word-wrap: break-word;
}
.msg.bot {
  background: rgba(58,134,255,0.10);
  border: 1px solid rgba(120,180,255,0.18);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg.user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg.bot.typing {
  display: inline-flex;
  gap: 4px;
  padding: 14px;
}
.msg.bot.typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: typingDot 1.2s ease-in-out infinite;
}
.msg.bot.typing span:nth-child(2) { animation-delay: 0.15s; }
.msg.bot.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

.chat-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.chat-suggest button {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.chat-suggest button:hover {
  background: rgba(58,134,255,0.12);
  color: #fff;
  border-color: var(--accent-2);
}

.chat-input {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(5,11,26,0.4);
}
.chat-input input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
}
.chat-input input:focus { border-color: var(--accent); }
.chat-input input::placeholder { color: var(--text-mute); }
.chat-input button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.chat-input button:hover { background: var(--accent-2); }
.chat-input button:active { transform: scale(0.92); }
.chat-input button:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-input button svg { width: 14px; height: 14px; }
.chat-foot {
  text-align: center;
  font-size: 10px;
  color: var(--text-mute);
  padding: 6px 0 10px;
  letter-spacing: 0.1em;
}
.chat-foot strong { color: var(--accent-2); font-weight: 500; }

@media (max-width: 480px) {
  .chat-panel { width: calc(100vw - 32px); height: 70vh; right: 0; }
  .chat { right: 16px; bottom: 16px; }
}
@media (max-width: 880px) {
  .chat-toast { display: none; }
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.menu-toggle svg { width: 18px; height: 18px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; }
  .feature-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-cards-grid, .feature-cards-grid.cols-3, .feature-cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .tack-card { grid-template-columns: 1fr; padding: 28px; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.flip > div:first-child { order: 0; }
  .spec-list { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .use-grid { grid-template-columns: 1fr; }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
  .stack-row { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    right: 36px;
    flex-direction: column;
    background: rgba(8,16,36,0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 14px;
    gap: 4px;
    min-width: 220px;
  }
  .nav-links.open .nav-item { display: block; }
  .nav-links.open .dropdown { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .feature-strip-grid, .feature-cards-grid, .solutions-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .metrics, .news-grid, .team-grid { grid-template-columns: 1fr; }
  .form-grid .row { grid-template-columns: 1fr; }
}
