/* ============================================================
   Nimbexa — design system
   Deep navy + electric cyan. No build step, no framework.
   ============================================================ */

:root {
  --bg: #040b18;
  --bg-raised: #081226;
  --bg-card: rgba(13, 25, 48, 0.6);
  --border: rgba(94, 148, 255, 0.14);
  --border-strong: rgba(94, 178, 255, 0.32);
  --text: #e8eefb;
  --text-dim: #9fb0cc;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --grad: linear-gradient(100deg, var(--cyan), var(--blue));
  --glow-cyan: rgba(34, 211, 238, 0.14);
  --glow-blue: rgba(59, 130, 246, 0.14);
  --radius: 18px;
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--cyan); text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 0.6em; }
h3 { font-size: 1.15rem; font-weight: 600; }

.container { width: min(1140px, 92vw); margin-inline: auto; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 1.2rem;
  background: rgba(34, 211, 238, 0.06);
}

.section-sub {
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  padding: 12px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-lg { padding: 15px 32px; font-size: 1rem; }

.btn-primary {
  background: var(--grad);
  color: #03101f;
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(34, 211, 238, 0.4); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.08); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(4, 11, 24, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  width: min(1200px, 94vw);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.nav-cta { padding: 10px 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 48px) 0 72px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(94, 148, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 148, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, black 30%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: drift 16s ease-in-out infinite alternate;
}
.orb-1 { width: 480px; height: 480px; background: var(--glow-cyan); top: -10%; left: -8%; }
.orb-2 { width: 420px; height: 420px; background: var(--glow-blue); bottom: -12%; right: -6%; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: rgba(99, 102, 241, 0.12); top: 40%; left: 55%; animation-delay: -10s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}

.hero-content { position: relative; z-index: 1; }

.hero-sub {
  color: var(--text-dim);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 660px;
  margin: 1.4rem auto 2.4rem;
}

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
  margin-top: 4rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section-alt {
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(59, 130, 246, 0.07), transparent),
    var(--bg-raised);
  border-block: 1px solid var(--border);
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 1rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 44px rgba(3, 10, 24, 0.6), 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.pillar-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.16));
  border: 1px solid var(--border-strong);
  color: var(--cyan);
  margin-bottom: 1.2rem;
}
.pillar-icon svg { width: 26px; height: 26px; }

.pillar-card h3 { margin-bottom: 0.6rem; font-size: 1.25rem; }
.pillar-card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Solutions ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.sol-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.sol-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sol-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.sol-card:hover::before { opacity: 1; }

.sol-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid var(--border);
  color: var(--cyan);
  margin-bottom: 1rem;
}
.sol-icon svg { width: 22px; height: 22px; }

.sol-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.sol-card p { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 40px;
  margin-top: 2.4rem;
}

.why-item {
  border-left: 2px solid transparent;
  border-image: linear-gradient(180deg, var(--cyan), var(--blue)) 1;
  padding-left: 18px;
}
.why-item h3 { margin-bottom: 0.4rem; font-size: 1.02rem; }
.why-item p { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Partners placeholder ---------- */
.partners-placeholder {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 64px 32px;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.placeholder-badge {
  width: 64px; height: 64px;
  margin: 0 auto 1.2rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.16));
  border: 1px solid var(--border-strong);
  color: var(--cyan);
}

.partners-placeholder h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.partners-placeholder p { color: var(--text-dim); max-width: 460px; margin-inline: auto; }

/* ---------- About ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.about-copy p { color: var(--text-dim); margin-bottom: 1.1rem; max-width: 560px; }

.about-points { list-style: none; margin-top: 1.4rem; }
.about-points li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.7rem;
  font-weight: 500;
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background:
    center / 10px no-repeat
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2303101f" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>'),
    linear-gradient(100deg, #22d3ee, #3b82f6);
}

.about-visual { display: grid; place-items: center; }
.visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 36px 30px;
  width: min(340px, 100%);
  text-align: center;
  box-shadow: 0 24px 60px rgba(3, 10, 24, 0.55);
}
.visual-card svg { width: 100%; height: auto; margin-bottom: 1rem; }
.visual-caption {
  font-family: var(--font-head);
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* ---------- Contact ---------- */
.contact-split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
}

.info-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 4px;
}
.info-block p { color: var(--text); font-size: 0.98rem; }
.info-block a { color: var(--text); }
.info-block a:hover { color: var(--cyan); }

.contact-form { display: grid; gap: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { display: grid; gap: 7px; }
.field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dim);
}
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(159, 176, 204, 0.5); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

/* Honeypot — visually removed, still in the DOM for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-status { min-height: 1.4em; font-size: 0.92rem; }
.form-status.ok { color: #4ade80; }
.form-status.err { color: #f87171; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  background: var(--bg-raised);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { width: 100%; color: var(--text-dim); font-size: 0.84rem; margin-top: 8px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .scroll-hint { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pillars, .solutions-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .contact-split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(4, 11, 24, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 6vw; font-size: 1rem; }
  .nav-links a.active::after { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .pillars, .solutions-grid, .why-grid, .form-row { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero-stats { gap: 28px; }
  .partners-placeholder { padding: 44px 22px; }
}
