/* NextGen BloX — Customer-facing site styles */
:root {
  --bg: #121212;
  --bg-soft: #1a1a1a;
  --bg-card: #1e1e1e;
  --bg-card-hover: #252525;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e3e3e3;
  --text-muted: #9e9e9e;
  --accent: #29b6f6;
  --accent-soft: rgba(41, 182, 246, 0.14);
  --accent-strong: #039be5;
  --chart-red: #ff5555;
  --chart-yellow: #ffcc00;
  --chart-blue: #4488ff;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1080px;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 76px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 50% at 50% -5%, rgba(41, 182, 246, 0.07), transparent 55%),
    var(--bg);
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: #4fc3f7; }

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(18, 18, 18, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-link:hover { opacity: 0.9; text-decoration: none; }

.logo-img { height: 40px; width: auto; max-width: min(240px, 55vw); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.nav a:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}

.btn-primary {
  background: linear-gradient(180deg, #42a5f5, #1e88e5);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(30, 136, 229, 0.25);
}

.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(30, 136, 229, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: rgba(41, 182, 246, 0.5);
  text-decoration: none;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(52, 211, 153, 0.18);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin: 0 0 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 54ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.hero-trust {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.hero-visual {
  margin: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-metrics-row {
  margin-top: 1.75rem;
}

.hero-metrics-row .hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: none;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.visual-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.visual-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.visual-card figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.hero-panel {
  background: linear-gradient(180deg, rgba(21, 28, 40, 0.96), rgba(16, 22, 32, 0.98));
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.hero-metrics {
  display: grid;
  gap: 0.85rem;
}

.metric {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.metric strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.metric span { font-size: 0.95rem; color: var(--text-muted); line-height: 1.45; }

/* Sections */
section { padding: 4.5rem 0; }

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
  border-block: 1px solid var(--border);
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.65rem;
}

section h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.section-intro {
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 2.25rem;
  font-size: 1.05rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 1.5rem 1.55rem;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.card:hover {
  border-color: rgba(41, 182, 246, 0.28);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.08rem;
}

.card p, .card li { color: var(--text-muted); font-size: 0.98rem; margin: 0; }
.card ul { margin: 0.5rem 0 0; padding-left: 1.15rem; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.tag-muted {
  background: rgba(154, 168, 188, 0.12);
  color: var(--text-muted);
}

/* Feature table */
.table-wrap {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.feature-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.feature-table th,
.feature-table td {
  text-align: left;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.feature-table tr:last-child td { border-bottom: none; }
.feature-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.feature-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}

.feature-table td:first-child { color: var(--text); }
.feature-table td:last-child { text-align: right; white-space: nowrap; }

.badge {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.badge-included {
  background: rgba(41, 182, 246, 0.16);
  color: #81d4fa;
}

.badge-optional {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
}

.badge-suite {
  background: rgba(154, 168, 188, 0.14);
  color: #c5d0de;
}

/* Waitlist */
.waitlist {
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  padding: 2rem;
  max-width: 520px;
  box-shadow: var(--shadow);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.waitlist-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.waitlist-form input[type="email"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

.waitlist-form input:focus {
  outline: 2px solid rgba(52, 211, 153, 0.45);
  outline-offset: 1px;
}

.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.consent input { margin-top: 0.2rem; accent-color: var(--accent); }

.form-note { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

.form-success, .form-error {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.form-success {
  background: rgba(41, 182, 246, 0.12);
  border: 1px solid rgba(41, 182, 246, 0.35);
  color: #81d4fa;
}

.form-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.form-success.visible, .form-error.visible { display: block; }

/* FAQ */
.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.35rem;
}

.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.faq-item p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }

/* Legal pages */
.legal-page { padding: 3rem 0 4rem; max-width: 72ch; }
.legal-page h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.2rem; margin: 2rem 0 0.75rem; color: var(--text); }
.legal-page p, .legal-page li { color: var(--text-muted); }
.legal-page ul { padding-left: 1.2rem; }

.placeholder {
  background: rgba(255, 200, 80, 0.08);
  border: 1px dashed rgba(255, 200, 80, 0.35);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: #e8c878;
  font-size: 0.85em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.75rem 0;
  margin-top: 1rem;
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 38ch;
  margin: 0.65rem 0 0;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a { color: var(--text-muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--text); text-decoration: none; }

.footer-copy {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Diagram */
.diagram {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 1.35rem 1.5rem;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
  overflow-x: auto;
}

.diagram .hl { color: var(--accent); font-weight: 600; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.dashboard-shot-wide {
  grid-column: 1 / -1;
}

.dashboard-shot {
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.dashboard-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.dashboard-shot figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { max-width: none; }
  section h2 { max-width: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) - 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1rem;
    background: rgba(12, 16, 23, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    text-align: center;
  }

  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .hero { padding-top: 3.5rem; }
  .waitlist { padding: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-primary:hover, .card:hover { transform: none; }
}
