/* ==========================================================================
   nxtvault — site.css
   Light theme, emerald accent, Inter typography.
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-emerald: #ECFDF5;

  --ink-900: #0B1220;
  --ink-700: #1F2937;
  --ink-500: #475569;
  --ink-400: #64748B;
  --ink-300: #94A3B8;
  --ink-200: #CBD5E1;
  --ink-100: #E2E8F0;
  --ink-50:  #F1F5F9;

  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10B981;
  --emerald-100: #D1FAE5;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.04);
  --shadow-md: 0 4px 16px -4px rgba(11, 18, 32, 0.08), 0 1px 4px rgba(11, 18, 32, 0.04);
  --shadow-lg: 0 18px 48px -22px rgba(11, 18, 32, 0.18), 0 4px 12px -4px rgba(11, 18, 32, 0.06);

  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --max: 1180px;

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink-700);
  font-family: var(--font-sans);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--ink-900); text-decoration: none; transition: color 140ms ease; }
a:hover { color: var(--emerald-600); }

img, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }
strong { color: var(--ink-900); font-weight: 600; }
em { font-style: italic; color: var(--ink-700); }

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

::selection { background: var(--emerald-500); color: #fff; }

a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--emerald-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----- Brand ---------------------------------------------------------------*/

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: 19px;
  color: var(--ink-900);
  text-decoration: none;
}
.brand:hover { color: var(--ink-900); }
.brand__mark { display: inline-flex; }
.brand__mark svg { display: block; }
.brand__name { font-weight: 800; letter-spacing: -0.02em; }
.brand__accent { color: var(--emerald-500); }

.brand--small { font-size: 16px; }
.brand--small .brand__mark svg { width: 22px; height: 22px; }

/* ----- Nav ---------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--ink-100);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav__links a {
  color: var(--ink-500);
  position: relative;
  padding: 6px 0;
}
.nav__links a:hover { color: var(--ink-900); }
.nav__cta {
  background: var(--ink-900);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.nav__cta:hover {
  background: var(--emerald-600);
  color: #fff !important;
}

@media (max-width: 760px) {
  .nav__links { gap: 14px; font-size: 13.5px; }
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ----- Hero ---------------------------------------------------------------- */

.hero {
  padding: clamp(72px, 10vw, 130px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(16,185,129,0.10), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(11,18,32,0.04), transparent 60%),
    var(--bg);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  background: var(--emerald-100);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--emerald-700);
  margin-bottom: 28px;
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.20);
}

.hero__title {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--ink-900);
  margin: 0 0 26px;
  max-width: 18ch;
}

.grad {
  background: linear-gradient(95deg, var(--emerald-600) 10%, var(--emerald-500) 70%, var(--ink-900) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-500);
  max-width: 64ch;
  margin: 0 0 36px;
  line-height: 1.55;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 160ms ease;
  font-family: inherit;
}
.btn--primary {
  background: var(--ink-900);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--emerald-600);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn--ghost {
  border-color: var(--ink-200);
  color: var(--ink-900);
  background: var(--bg);
}
.btn--ghost:hover {
  border-color: var(--emerald-500);
  color: var(--emerald-700);
  background: var(--emerald-100);
}

/* ----- Sections ------------------------------------------------------------ */

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}
.section--alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--ink-400);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.eyebrow--accent { color: var(--emerald-600); }

.section__title {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink-900);
  margin: 0 0 20px;
  max-width: 24ch;
}

.section__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-500);
  max-width: 64ch;
  margin: 0 0 56px;
}

/* ----- Status section ------------------------------------------------------ */

.section--status {
  padding: clamp(64px, 7vw, 96px) 0;
  background: var(--bg);
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
}
.status__head { margin-bottom: 32px; }
.status__head .section__title { margin-bottom: 0; }

.status__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
}
@media (max-width: 760px) { .status__grid { grid-template-columns: 1fr; } }

.status__item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  font-size: 15.5px;
  color: var(--ink-500);
  line-height: 1.55;
}
.status__icon {
  color: var(--emerald-500);
  font-size: 11px;
  margin-top: 8px;
}
.status__item strong { color: var(--ink-900); }

/* ----- Pillar cards -------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 980px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: 28px 28px 24px;
  background: var(--bg);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ink-200);
}

.card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--emerald-100);
  border: 1px solid rgba(16,185,129,0.30);
  color: var(--emerald-700);
}
.card--rugged .card__icon {
  background: rgba(11,18,32,0.06);
  border-color: rgba(11,18,32,0.12);
  color: var(--ink-900);
}
.card--audit .card__icon {
  background: var(--bg-soft);
  border-color: var(--ink-200);
  color: var(--ink-700);
}

.card__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin: 0;
}

.card__lede {
  color: var(--ink-500);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.card__list {
  border-top: 1px solid var(--ink-100);
  padding-top: 18px;
  margin-bottom: 18px;
}
.card__list li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--ink-700);
  font-size: 14.5px;
  line-height: 1.55;
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 12px; height: 2px;
  background: var(--emerald-500);
  border-radius: 1px;
}

.card__buyer {
  font-size: 13.5px;
  color: var(--ink-400);
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--ink-100);
}
.card__buyer strong { color: var(--ink-700); }

/* ----- Technology section -------------------------------------------------- */

.tech {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 980px) { .tech { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tech { grid-template-columns: 1fr; } }

.tech__group {
  background: var(--bg);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 22px 22px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.tech__group:hover {
  border-color: rgba(16,185,129,0.35);
  box-shadow: 0 8px 24px -10px rgba(16,185,129,0.15);
}

.tech__head {
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--emerald-600);
  font-weight: 700;
  margin: 0 0 14px;
}

.tech__list li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--ink-100);
  font-size: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.tech__list li:last-child { border-bottom: 0; }

.tech__name {
  color: var(--ink-900);
  font-weight: 600;
  font-size: 14.5px;
}
.tech__role {
  color: var(--ink-500);
  font-size: 13.5px;
  line-height: 1.5;
}

.tech__note {
  margin-top: 36px;
  padding: 22px 26px;
  background: var(--bg);
  border: 1px solid rgba(16,185,129,0.30);
  border-left: 4px solid var(--emerald-500);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.6;
}
.tech__note strong { color: var(--ink-900); }
.tech__note em { color: var(--emerald-700); font-style: normal; font-weight: 600; }

/* ----- Partner section ----------------------------------------------------- */

.partner__lines {
  display: grid;
  background: var(--bg);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 32px 0 24px;
}

.partner__line {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ink-100);
  transition: background 160ms ease;
}
.partner__line:last-child { border-bottom: 0; }
.partner__line:hover { background: var(--bg-emerald); }

.partner__sku {
  font-weight: 700;
  color: var(--ink-900);
  font-size: 15.5px;
}
.partner__use {
  color: var(--ink-500);
  font-size: 14.5px;
}

@media (max-width: 720px) {
  .partner__line { grid-template-columns: 1fr; gap: 4px; }
}

.partner__note {
  color: var(--ink-400);
  font-size: 14px;
  font-style: italic;
  margin: 0;
  max-width: 80ch;
}

/* ----- Compliance grid ----------------------------------------------------- */

.compl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .compl { grid-template-columns: 1fr; } }

.compl__col {
  padding: 26px;
  background: var(--bg);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.compl__head {
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--emerald-600);
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-100);
}
.compl__col ul li {
  padding: 9px 0;
  color: var(--ink-700);
  font-size: 14.5px;
  border-bottom: 1px dashed var(--ink-100);
}
.compl__col ul li:last-child { border-bottom: 0; }

/* ----- CTA ----------------------------------------------------------------- */

.section--cta {
  background:
    radial-gradient(900px 360px at 50% 0%, rgba(16,185,129,0.08), transparent 70%),
    var(--bg);
  text-align: center;
}

.cta { max-width: 720px; margin: 0 auto; }

.cta__title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink-900);
  margin: 0 0 18px;
}
.cta__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-500);
  margin: 0 0 32px;
}
.cta__row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.cta__note {
  font-size: 13.5px;
  color: var(--ink-400);
  margin: 0;
}

/* ----- Footer -------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--ink-100);
  padding: 32px 0;
  background: var(--bg-soft);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
@media (max-width: 800px) {
  .footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
@media (max-width: 800px) { .footer__brand { align-items: center; } }
.footer__tag { font-size: 13px; color: var(--ink-400); }

.footer__links {
  display: flex;
  gap: 22px;
  font-size: 13.5px;
}
.footer__links a { color: var(--ink-500); font-weight: 500; }

.footer__note {
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 4px;
  color: var(--ink-400);
  font-size: 13px;
}
@media (max-width: 800px) { .footer__note { text-align: center; } }

/* ----- Reduced motion ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0s !important; transition-duration: 0s !important; }
  html { scroll-behavior: auto; }
}
