/* ============================================================
   Nimbus Secure — design tokens
   Ink      #0B1220  primary dark background
   Ink-2    #101a2c  raised dark surface
   Paper    #F7F8FA  primary light background
   Paper-2  #FFFFFF  raised light surface
   Slate    #5B6478  muted text / borders
   Ink-text #10151F  body text on light
   Signal   #3FCDBB  teal — the "direct link" accent
   Ember    #F2994A  warm accent — secondary CTA / alerts
   ============================================================ */

:root {
  --ink: #0B1220;
  --ink-2: #111a2d;
  --ink-3: #182338;
  --paper: #F7F8FA;
  --paper-2: #FFFFFF;
  --slate: #5B6478;
  --slate-soft: #8b93a4;
  --line: #e4e7ec;
  --ink-text: #10151F;
  --signal: #3FCDBB;
  --signal-bright: #59E9D6;
  --ember: #F2994A;
  --danger: #E5673F;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", monospace;

  --container: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

p { margin: 0; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

::selection { background: var(--signal); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

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

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(63, 205, 187, 0.18);
}

/* ---------------- boot screen ---------------- */
.boot-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--ink);
}
.boot-mark { display: flex; align-items: center; gap: 0; }
.boot-node {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--signal-bright);
  box-shadow: 0 0 16px rgba(89, 233, 214, 0.7);
}
.boot-line {
  width: 90px; height: 2px;
  background: linear-gradient(90deg, var(--signal-bright), transparent, var(--signal-bright));
  background-size: 200% 100%;
  animation: travel 1.1s linear infinite;
}
@keyframes travel { to { background-position: -200% 0; } }
.boot-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--slate-soft);
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--signal);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.btn-primary:hover { background: var(--signal-bright); box-shadow: 0 6px 20px -6px rgba(63,205,187,0.55); }

.btn-ghost-dark {
  background: transparent;
  color: #EAF0F5;
  border-color: rgba(255,255,255,0.22);
}
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

.btn-ghost-light {
  background: transparent;
  color: var(--ink-text);
  border-color: var(--line);
}
.btn-ghost-light:hover { border-color: var(--slate); }

/* ---------------- nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.brand-mark {
  width: 24px; height: 24px;
  position: relative;
  flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100%; }
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
  color: #C4CCD9;
}
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 14px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ---------------- hero ---------------- */
.hero {
  background: radial-gradient(ellipse 900px 500px at 15% -10%, rgba(63,205,187,0.16), transparent 60%),
              linear-gradient(180deg, var(--ink) 0%, #0d1626 100%);
  color: #fff;
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: 52px;
  color: #fff;
  margin: 18px 0 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--signal-bright);
}
.hero p.lede {
  font-size: 18px;
  color: #B7C0CF;
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-proof {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--slate-soft);
  flex-wrap: wrap;
}
.hero-proof span { color: #DCE2EA; }

@media (max-width: 640px) {
  .hero h1 { font-size: 34px; }
}

/* ---------------- signature diagram: the direct link ---------------- */
.link-diagram {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 44px 28px 26px;
}
.link-stage {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.link-node {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--ink-3);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  flex-shrink: 0;
}
.link-node svg { width: 24px; height: 24px; color: #DCE2EA; }
.link-track {
  position: absolute;
  left: 54px; right: 54px; top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--signal) 0%, var(--signal-bright) 50%, var(--signal) 100%);
  transform: translateY(-1px);
  overflow: visible;
}
.link-packet {
  position: absolute;
  top: -4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--signal-bright);
  box-shadow: 0 0 14px rgba(89,233,214,0.9);
  animation: packet 3.2s ease-in-out infinite alternate;
}
@keyframes packet {
  0% { left: 0%; opacity: 0.4; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0.4; }
}
.link-cloud {
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 34px;
  color: var(--slate-soft);
}
.link-cloud svg { width: 34px; height: 34px; opacity: 0.5; }
.link-cloud .x-mark {
  position: absolute;
  inset: 0;
  color: var(--danger);
}
.link-caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-soft);
  margin-top: 26px;
}
.link-caption b { color: var(--signal-bright); font-weight: 500; }
.link-legend {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--slate-soft);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---------------- generic section scaffolding ---------------- */
section { padding: 92px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: 34px; margin: 14px 0 16px; color: var(--ink-text); }
.section-head p { color: var(--slate); font-size: 16.5px; }
.on-dark .section-head h2 { color: #fff; }
.on-dark .section-head p { color: #AEB8C7; }

.section-light { background: var(--paper); }
.section-white { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: #DCE2EA; }

/* ---------------- problem strip ---------------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 860px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.problem-card .glyph {
  width: 38px; height: 38px;
  margin-bottom: 18px;
  color: var(--danger);
}
.problem-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--ink-text); }
.problem-card p { color: var(--slate); font-size: 15px; }

/* ---------------- point of difference ---------------- */
.diff-highlight {
  display: inline-block;
  margin-top: 10px;
  color: var(--signal-bright);
  font-weight: 600;
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
@media (max-width: 760px) { .diff-grid { grid-template-columns: 1fr; } }

.diff-card {
  border-radius: var(--radius);
  padding: 30px 28px;
  border: 1px solid rgba(255,255,255,0.1);
}
.diff-card-them { background: rgba(255,255,255,0.03); }
.diff-card-us {
  background: rgba(63,205,187,0.08);
  border-color: rgba(63,205,187,0.4);
}

.diff-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-soft);
}
.diff-card-us .diff-label { color: var(--signal-bright); }

.diff-path {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 18px;
}
.diff-node {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #DCE2EA;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
}
.diff-node-server { color: var(--danger); border-color: rgba(229,103,63,0.4); }
.diff-arrow { color: var(--slate-soft); font-size: 15px; }
.diff-arrow-signal { color: var(--signal-bright); }

.diff-card p { color: #AEB8C7; font-size: 14px; }

/* ---------------- how it works ---------------- */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; gap: 30px; }
}
.flow-step {
  position: relative;
  padding: 0 22px 0 0;
}
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 0;
  width: 22px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--signal) 0 6px, transparent 6px 10px);
}
@media (max-width: 960px) {
  .flow-step:not(:last-child)::after { display: none; }
}
.flow-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal);
  border: 1px solid var(--signal);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.flow-step h3 { font-size: 17px; margin-bottom: 8px; color: var(--ink-text); }
.flow-step p { font-size: 14.5px; color: var(--slate); }

/* ---------------- modules ---------------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .module-grid { grid-template-columns: 1fr; } }

.module-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.module-card:hover { border-color: var(--signal); transform: translateY(-2px); }
.module-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin-bottom: 14px;
}
.module-card .icon-wrap {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(63,205,187,0.12);
  color: var(--signal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.module-card .icon-wrap svg { width: 22px; height: 22px; }
.module-card h3 { font-size: 19px; margin-bottom: 10px; color: var(--ink-text); }
.module-card p { color: var(--slate); font-size: 14.5px; flex: 1; }
.module-card .module-for {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--slate-soft);
}
.module-card .module-for b { color: var(--ink-text); font-weight: 600; }

/* ---------------- industries ---------------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .industry-grid { grid-template-columns: 1fr; } }

.industry-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.industry-card:hover { border-color: var(--signal); transform: translateY(-2px); }
.industry-card h3 { font-size: 17.5px; margin: 8px 0 10px; color: var(--ink-text); }
.industry-card p { color: var(--slate); font-size: 14px; flex: 1; }
.industry-card .module-for {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--slate-soft);
}
.industry-card .module-for:first-of-type { border-top: 1px solid var(--line); }
.industry-card .module-for + .module-for { border-top: none; padding-top: 4px; }
.industry-card .module-for b { color: var(--ink-text); font-weight: 600; }

.industry-card-more {
  background: linear-gradient(160deg, #ffffff, #f2fbf9);
  border-style: dashed;
  border-color: var(--signal);
}

/* ---------------- security ---------------- */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .security-grid { grid-template-columns: 1fr; gap: 40px; } }

.spec-list { display: flex; flex-direction: column; gap: 22px; }
.spec-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.spec-row:last-child { border-bottom: none; }
.spec-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal);
}
.spec-value { font-size: 15px; color: #E3E8EF; }
.spec-value small { display: block; color: #8b93a4; font-size: 13px; margin-top: 4px; font-family: var(--font-mono); }

.terminal {
  background: #0d1626;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
}
.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: #394358; }
.terminal-body { padding: 20px 22px; color: #9fe8db; line-height: 1.85; }
.terminal-body .c1 { color: #6b7690; }
.terminal-body .c2 { color: var(--signal-bright); }
.terminal-body .c3 { color: var(--ember); }

/* ---------------- use cases ---------------- */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 760px) { .usecase-grid { grid-template-columns: 1fr; } }
.usecase-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--paper-2);
}
.usecase-card .eyebrow { color: var(--ember); margin-bottom: 14px; }
.usecase-card .eyebrow::before { background: var(--ember); box-shadow: 0 0 0 4px rgba(242,153,74,0.18); }
.usecase-card h3 { font-size: 18px; margin-bottom: 10px; }
.usecase-card p { color: var(--slate); font-size: 14.5px; }

/* ---------------- pricing ---------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.price-card h3 { font-size: 20px; margin: 4px 0 18px; color: var(--ink-text); }
.price-card .price-desc { color: var(--slate); font-size: 14px; margin-bottom: 22px; }

.price-amount {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--ink-text);
  margin-bottom: 6px;
}
.price-amount span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  margin-left: 4px;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
  flex: 1;
}
.price-features li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink-text);
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
}

.price-card .btn { justify-content: center; }

.price-card-featured {
  border-color: var(--signal);
  background: linear-gradient(160deg, #ffffff, #f2fbf9);
  box-shadow: 0 18px 40px -18px rgba(63,205,187,0.35);
  transform: translateY(-6px);
}
@media (max-width: 980px) { .price-card-featured { transform: none; } }

.price-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------------- cta ---------------- */
.cta-band {
  background: linear-gradient(120deg, #0c1526, #142238);
  color: #fff;
  border-radius: 24px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(63,205,187,0.25), transparent 55%);
}
.cta-band h2 { font-size: 30px; max-width: 480px; position: relative; z-index: 1; color: #fff; }
.cta-band p { color: #AEB8C7; margin-top: 10px; max-width: 460px; position: relative; z-index: 1; }
.cta-actions { display: flex; gap: 14px; position: relative; z-index: 1; flex-wrap: wrap; }

/* ---------------- footer ---------------- */
.footer {
  background: var(--ink);
  color: #8b93a4;
  padding: 56px 0 34px;
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-brand p { color: #6b7690; margin-top: 14px; max-width: 260px; font-size: 13.5px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C4CCD9;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a:hover { color: #fff; }
.footer-powered {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-soft);
}
.powered-logo {
  height: 22px;
  width: auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------- utility ---------------- */
.text-center { text-align: center; margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  .link-packet, .boot-line { animation: none !important; }
}

/* ---------------- blazor framework ---------------- */
#blazor-error-ui {
  color-scheme: light only;
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  background: #b32121;
  padding: 1rem 1rem 1rem 1.5rem;
  color: white;
  border-radius: 8px;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}
