/* ============================================================
   Nexacore Technologies — bespoke design system
   Dark, Linear/Vercel-inspired: deep navy, indigo→cyan gradients,
   Inter, glass nav, aurora hero, scroll reveals, card glows.
   Plain CSS on purpose — no build step, fully ours.
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg: #06080f;
  --bg-2: #0a0e1a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.14);
  --ink: #e8ecf5;
  --muted: #98a2b8;
  --faint: #6b7690;
  --indigo: #6e7bff;
  --cyan: #38c8e8;
  --amber: #f5a524;
  --green: #34d399;
  --grad: linear-gradient(120deg, var(--indigo), var(--cyan));
  --glow: 0 0 60px rgba(110, 123, 255, 0.18);
  --radius: 16px;
  --radius-lg: 22px;
  --font: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1140px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: rgba(110, 123, 255, 0.35); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ── Typo ────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 14px; color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 12px;
}
.section-eyebrow::before {
  content: ""; width: 16px; height: 1.5px; background: var(--grad); border-radius: 2px;
}

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 8, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-size: 14.5px; font-weight: 600;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
  will-change: transform;
}
.btn-primary {
  background: var(--grad); color: #04050a;
  box-shadow: 0 4px 24px rgba(110, 123, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 34px rgba(56, 200, 232, 0.4); }
.btn-ghost { border: 1px solid var(--border-2); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--surface-2); border-color: rgba(110, 123, 255, 0.5); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn .arrow { transition: transform 0.18s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Pills / badges ───────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; font-style: normal; }
.pill.live i { background: var(--green); box-shadow: 0 0 10px var(--green); }
.pill.live { color: var(--green); border-color: rgba(52, 211, 153, 0.3); }
.pill.beta i { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.pill.beta { color: var(--amber); border-color: rgba(245, 165, 36, 0.3); }
.pill.soon i { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.pill.soon { color: var(--cyan); border-color: rgba(56, 200, 232, 0.3); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; padding: 170px 0 110px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 30%, transparent 75%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}
.orb-a { width: 480px; height: 480px; background: rgba(110, 123, 255, 0.35); top: -140px; left: 8%; }
.orb-b { width: 420px; height: 420px; background: rgba(56, 200, 232, 0.22); top: -80px; right: 5%; animation-delay: -7s; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(34px) } }

.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}
.hero-badge { margin-bottom: 20px; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Hero product mock (CSS-built, no screenshots needed) */
.mock-wrap { position: relative; }
.mock-window {
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  box-shadow: var(--glow), 0 24px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden; backdrop-filter: blur(8px);
  animation: float 9s ease-in-out infinite;
}
.mock-titlebar {
  display: flex; gap: 7px; align-items: center; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02);
}
.mock-titlebar i { width: 10px; height: 10px; border-radius: 50%; font-style: normal; }
.mock-titlebar .mt-label { margin-left: 10px; font-size: 11px; color: var(--faint); letter-spacing: 0.05em; }
.mock-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.mock-msg { display: flex; }
.mock-msg .bubble {
  max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5;
}
.mock-msg.user { justify-content: flex-end; }
.mock-msg.user .bubble { background: var(--grad); color: #04050a; border-bottom-right-radius: 4px; font-weight: 500; }
.mock-msg.bot .bubble { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.mock-actions { display: flex; gap: 8px; margin-top: 4px; }
.mock-btn {
  flex: 1; text-align: center; font-size: 12px; font-weight: 600; padding: 9px; border-radius: 10px;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--ink);
}
.mock-btn.accent { background: rgba(110, 123, 255, 0.15); border-color: rgba(110, 123, 255, 0.45); color: #aab4ff; }

.chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px; font-size: 12.5px; font-weight: 600;
  background: rgba(10, 14, 26, 0.9); border: 1px solid var(--border-2);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px);
  animation: float 7s ease-in-out infinite;
}
.chip svg { width: 15px; height: 15px; }
.chip-1 { top: -22px; right: 6%; animation-delay: -2s; }
.chip-2 { bottom: 18%; left: -34px; animation-delay: -4s; }
.chip-3 { bottom: -20px; right: 14%; animation-delay: -1s; }

/* ── Trust strip ──────────────────────────────────────────── */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; }
.trust-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); }
.trust-item svg { width: 16px; height: 16px; color: var(--cyan); }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 88px 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .lead { font-size: 1.05rem; }

/* ── Cards ────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  position: relative; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(110, 123, 255, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(110, 123, 255, 0.12);
  background: var(--surface-2);
}
.card h3 { color: var(--ink); }
.card p { font-size: 14.5px; margin-bottom: 16px; }
.card .icon-tile {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(110, 123, 255, 0.14); border: 1px solid rgba(110, 123, 255, 0.3);
  margin-bottom: 16px; color: #aab4ff; font-size: 18px;
}
.card .icon-tile svg { width: 20px; height: 20px; }
.card.tilt-indigo .icon-tile { background: rgba(110, 123, 255, 0.14); border-color: rgba(110, 123, 255, 0.35); color: #aab4ff; }
.card.tilt-cyan .icon-tile { background: rgba(56, 200, 232, 0.12); border-color: rgba(56, 200, 232, 0.35); color: #7adcff; }
.card.tilt-amber .icon-tile { background: rgba(245, 165, 36, 0.12); border-color: rgba(245, 165, 36, 0.35); color: #ffca7a; }
.card.tilt-green .icon-tile { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.35); color: #7cecc3; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--cyan);
}
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.card li { display: flex; gap: 9px; font-size: 14px; color: var(--muted); }
.card li::before { content: "✓"; color: var(--green); font-weight: 700; font-size: 13px; }
.card .pill { margin-bottom: 14px; }

/* Featured product card (Converse) */
.card.featured {
  background: linear-gradient(160deg, rgba(110, 123, 255, 0.10), rgba(255, 255, 255, 0.02) 42%);
  border-color: rgba(110, 123, 255, 0.42);
}
.card.featured:hover { border-color: rgba(110, 123, 255, 0.7); }

/* ── Stats ────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.stat { padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); text-align: left; }
.stat b {
  display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat span { font-size: 13px; color: var(--muted); }

/* ── Stack badges (developer experience) ──────────────────── */
.stack-row { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--muted);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.stack-badge:hover { transform: translateY(-2px); border-color: rgba(56, 200, 232, 0.5); color: var(--ink); }

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band { position: relative; padding: 30px; border-radius: var(--radius-lg); text-align: center;
  background: linear-gradient(140deg, rgba(110, 123, 255, 0.16), rgba(56, 200, 232, 0.10));
  border: 1px solid rgba(110, 123, 255, 0.4); overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: rgba(110, 123, 255, 0.25); filter: blur(90px); top: -190px; right: -100px;
}
.cta-band h2 { position: relative; }
.cta-band p { position: relative; max-width: 52ch; margin: 0 auto 26px; }
.cta-band .cta-row { position: relative; justify-content: center; }

/* ── Products table-ish rows on detail pages ───────────────── */
.spec { display: grid; grid-template-columns: 180px 1fr; gap: 8px 20px; font-size: 14px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.spec dt { color: var(--faint); margin: 0; }
.spec dd { color: var(--ink); margin: 0; }

.page-hero { padding: 150px 0 40px; position: relative; }
.page-hero .lead { max-width: 62ch; }

/* ── Forms ────────────────────────────────────────────────── */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border-2); color: var(--ink);
  font: inherit; font-size: 14.5px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px); background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(110, 123, 255, 0.22);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-error { font-size: 12.5px; color: #ff8484; margin-top: 6px; min-height: 0; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: rgba(255, 120, 120, 0.6); }
.form-note { font-size: 12.5px; color: var(--faint); }
.form-success {
  display: none; padding: 30px; border-radius: var(--radius); text-align: center;
  border: 1px solid rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08);
}
.form-success.show { display: block; animation: rise 0.5s ease both; }
.form-success h3 { color: var(--green); }
.btn loading { opacity: 0.6; pointer-events: none; }

/* ── Footer ───────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 64px 0 32px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--faint); max-width: 34ch; margin-top: 14px; }
.footer-col h4 { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--muted); padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--faint);
}

/* ── Legal ────────────────────────────────────────────────── */
.legal-body { max-width: 760px; margin: 0 auto; }
.legal-body h2 { font-size: 1.25rem; margin-top: 34px; }
.legal-body p, .legal-body li { font-size: 14.5px; color: var(--muted); }
.legal-body ul { padding-left: 20px; }

/* ── 404 ───────────────────────────────────────────────────── */
.err-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 120px; }
.err-code { font-size: clamp(6rem, 18vw, 10rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; }

/* ── Reveal animations ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }
.reveal[data-delay="4"] { transition-delay: 0.36s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .mock-wrap { max-width: 560px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(6, 8, 15, 0.97); border-bottom: 1px solid var(--border);
    padding: 10px 24px 18px; display: none; backdrop-filter: blur(14px);
  }
  .nav-links.open { display: flex; animation: rise 0.28s ease both; }
  .nav-links a { padding: 13px 6px; border-radius: 8px; font-size: 15px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .hero { padding-top: 130px; }
  .form-row { grid-template-columns: 1fr; }
  .chip-2 { left: -8px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}
