/* =========================================================
   DEXAMIS — Single Page Site
   Palette: medium blue / dark grey / white
   ========================================================= */

:root {
  --blue:        #1d5bbf;
  --blue-hover:  #1a4ea3;
  --blue-light:  #2e74d6;
  --blue-soft:   #e8f0fc;
  --ink:         #1c2128;
  --ink-2:       #2a313b;
  --grey-600:    #4a5563;
  --grey-400:    #6b7280;
  --grey-300:    #9ca3af;
  --grey-200:    #d9dde3;
  --grey-100:    #eef0f3;
  --bg:          #ffffff;
  --bg-soft:     #f7f8fa;
  --bg-dark:     #0f1a2e;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(28,33,40,.06);
  --shadow:    0 8px 24px rgba(28,33,40,.08);
  --shadow-lg: 0 24px 60px rgba(28,33,40,.12);

  --container: 1200px;

  --font: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* -------- Reset -------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* -------- Typography -------- */
h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
}
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-size: 1.05rem; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 0.875rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(29,91,191,.28);
}
.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(29,91,191,.34);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--grey-200);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 16px 0;
  transition: all .25s ease;
}
.nav.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--grey-100);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: color .25s ease;
}
.brand-mark { color: var(--blue-light); display: inline-flex; transition: color .25s ease; }
.brand-name { font-size: 1.25rem; }
.nav.is-scrolled .brand { color: var(--ink); }
.nav.is-scrolled .brand-mark { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,.92);
  transition: color .25s ease;
}
.nav-links a:hover { color: #fff; }
.nav.is-scrolled .nav-links a { color: #1a1f26; }
.nav.is-scrolled .nav-links a:hover { color: var(--blue); }
.nav-links .btn { color: #fff; }
.nav-links .btn:hover { color: #fff; }

.nav-toggle span { background: #fff; }
.nav.is-scrolled .nav-toggle span { background: var(--ink); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  transition: all .25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle.is-open span,
.nav-mobile.is-open ~ * .nav-toggle span { background: var(--ink); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  background: #fff;
  border-top: 1px solid var(--grey-100);
}
.nav-mobile a {
  padding: 14px 8px;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--grey-100);
}
.nav-mobile a:last-child { border: 0; }
.nav-mobile.is-open { display: flex; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(180deg, #0f1a2e 0%, #142544 60%, #1a3060 100%);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#networkCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(46,116,214,.25) 0%, transparent 60%),
              linear-gradient(180deg, transparent 60%, rgba(15,26,46,.6) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
}
.hero-copy {
  max-width: 760px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(46,116,214,.15);
  border: 1px solid rgba(46,116,214,.4);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #cfe2ff;
  margin-bottom: 24px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  70%  { box-shadow: 0 0 0 12px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.hero h1 {
  color: #fff;
  margin-bottom: 24px;
}
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,.78);
  margin-bottom: 36px;
  max-width: 620px;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
}
.hero .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
  color: #fff;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.12);
  max-width: 620px;
}
.stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 100px;
  z-index: 2;
}
.scroll-cue span {
  display: block;
  width: 3px;
  height: 8px;
  background: #fff;
  border-radius: 100px;
  margin: 6px auto;
  animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  padding: 110px 0;
}
.section-head {
  max-width: 740px;
  margin-bottom: 64px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--grey-600);
  margin-top: 18px;
}

/* -------- Solutions -------- */
.solutions { background: var(--bg-soft); }
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(29,91,191,.25);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--grey-600); font-size: 0.95rem; }
.card-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue-soft);
}
.card-list li::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 10px;
  width: 6px;
  height: 3px;
  border-left: 1.6px solid var(--blue);
  border-bottom: 1.6px solid var(--blue);
  transform: rotate(-45deg);
}

/* -------- Use Cases -------- */
.use-cases { background: #fff; padding-top: 30px; }
.use-cases .section-head { margin-bottom: 48px; max-width: 820px; }
.use-cases .section-head h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.use-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border: 1px solid var(--grey-100);
  transition: all .22s ease;
  overflow: hidden;
}
.use-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.use-card:hover {
  transform: translateY(-3px);
  border-color: rgba(29,91,191,.25);
  box-shadow: var(--shadow);
}
.use-card:hover::before { transform: scaleX(1); }
.use-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.use-icon svg { width: 24px; height: 24px; }
.use-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.use-card p {
  color: var(--grey-600);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* -------- About -------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-copy p {
  color: var(--grey-600);
  font-size: 1rem;
  margin-bottom: 16px;
}
.about-copy p strong { color: var(--ink); font-weight: 600; }
.values {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}
.value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.value-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-icon svg { width: 22px; height: 22px; }
.value h4 { margin-bottom: 2px; }
.value p { color: var(--grey-600); font-size: 0.92rem; margin: 0; }

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.globe-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
}
.globe {
  width: 100%;
  height: 100%;
  animation: spin 60s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.globe-pins circle {
  animation: pinPulse 3s ease-in-out infinite;
}
.globe-pins circle:nth-child(2) { animation-delay: .6s; }
.globe-pins circle:nth-child(3) { animation-delay: 1.2s; }
.globe-pins circle:nth-child(4) { animation-delay: 1.8s; }
.globe-pins circle:nth-child(5) { animation-delay: 2.4s; }
@keyframes pinPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.6); opacity: .5; }
  transform-origin: center;
}
.globe-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.globe-rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(46,116,214,.3);
  border-radius: 50%;
  animation: ring 4s ease-out infinite;
}
.globe-rings span:nth-child(2) { animation-delay: 1.3s; }
.globe-rings span:nth-child(3) { animation-delay: 2.6s; }
@keyframes ring {
  0%   { transform: scale(.7); opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* -------- Contact -------- */
.contact {
  background: var(--ink);
  color: #fff;
}
.contact h2 { color: #fff; }
.contact .kicker { color: var(--blue-light); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-copy p {
  color: rgba(255,255,255,.7);
  margin: 18px 0 32px;
  font-size: 1rem;
}
.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,.85);
  font-size: 0.95rem;
}
.contact-info svg {
  width: 20px;
  height: 20px;
  color: var(--blue-light);
  flex-shrink: 0;
}
.contact-info a:hover { color: var(--blue-light); }

.contact-form {
  background: #fff;
  color: var(--ink);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.form-row input,
.form-row textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,91,191,.12);
}
.form-row textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}
.form-row.invalid input,
.form-row.invalid textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 6px 10px;
  align-items: center;
}
.captcha-row label { grid-column: 1 / -1; }
.captcha-row input { grid-column: 1; }
.captcha-refresh {
  grid-column: 2;
  grid-row: 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--grey-200);
  background: #fff;
  border-radius: var(--radius);
  color: var(--grey-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.captcha-refresh:hover {
  color: var(--blue);
  border-color: var(--blue);
  transform: rotate(45deg);
}

/* Honeypot: visually hidden from humans */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.78rem;
  color: var(--grey-400);
  margin-top: 4px;
}
.form-status {
  font-size: 0.9rem;
  padding: 0;
  border-radius: var(--radius-sm);
  min-height: 0;
  transition: all .2s;
}
.form-status.success {
  padding: 12px 14px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.form-status.error {
  padding: 12px 14px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #0a1320;
  color: rgba(255,255,255,.7);
  padding: 64px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark { color: var(--blue-light); }
.footer-brand p { margin-top: 12px; font-size: 0.92rem; max-width: 320px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-cols h5 {
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-cols a {
  display: block;
  font-size: 0.9rem;
  padding: 4px 0;
  color: rgba(255,255,255,.65);
  transition: color .15s;
}
.footer-cols a:hover { color: var(--blue-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================================
   ENTRY ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-visual { max-width: 380px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .hero { padding: 110px 0 70px; min-height: auto; }
  .hero-stats { gap: 28px; grid-template-columns: repeat(3, 1fr); }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: 0.72rem; }
  .scroll-cue { display: none; }
  .contact-form { padding: 28px 20px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { font-size: 0.78rem; }
}

@media (max-width: 520px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { gap: 18px; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
