@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #09090b;
  --bg-card: #0c0c0f;
  --bg-subtle: #18181b;
  --bg-elevated: #1c1c20;

  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-light: #71717a;

  --accent: #fafafa;
  --accent-hover: #e4e4e7;
  --accent-muted: #a1a1aa;

  --border: #27272a;
  --border-strong: #3f3f46;
  --danger: #ef4444;

  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --max-width: 1080px;
}

/* ----------------------------------------
   Base
---------------------------------------- */
html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.noscript-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--danger);
  color: #fff;
  padding: 16px 20px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 99999;
}

.noscript-warning a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
}

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

section {
  padding: 72px 0;
}

.section-tight {
  padding: 48px 0;
}

.section-dark {
  padding: 72px 0;
}

.section-contrast {
  background: var(--bg-subtle);
  padding: 56px 24px;
  margin: 48px 0;
}

/* ----------------------------------------
   Typography
---------------------------------------- */
h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--text);
  font-weight: 600;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  line-height: 1.65;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

.center {
  text-align: center;
}

a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover {
  color: var(--text);
  text-decoration-color: var(--text-light);
}

/* ----------------------------------------
   Hero
---------------------------------------- */
.stack-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding-top: 64px;
  padding-bottom: 16px;
}

.stack-hero p {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-orb {
  display: none;
}

/* ----------------------------------------
   Buttons
---------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 20px;
  margin-top: 24px;
  min-height: 40px;

  border-radius: var(--radius-md);
  border: none;
  background: var(--accent);

  color: var(--bg);
  font-weight: 600;
  font-size: 0.875rem;

  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  position: relative;
}

.btn-primary span.icon {
  font-size: 0.9rem;
}

.btn-primary::before {
  display: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
  opacity: 0.9;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  min-height: 40px;

  border-radius: var(--radius-md);
  border: none;
  background: var(--bg-subtle);
  color: var(--text-muted);

  font-size: 0.875rem;
  font-weight: 500;

  cursor: pointer;
  gap: 8px;
  margin-top: 14px;

  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-muted);
  outline-offset: 2px;
}

.micro {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ----------------------------------------
   Layout
---------------------------------------- */
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 12px;
  background: var(--bg-subtle);
  font-weight: 500;
}

.panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  position: relative;
}

.panel::before {
  display: none;
}

.panel-inner {
  position: relative;
  z-index: 1;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.kpi-card {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 14px 12px;
}

.kpi-label {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.kpi-score {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.kpi-desc {
  font-size: 0.75rem;
  margin-top: 4px;
  color: var(--text-light);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 14px;
}

/* ----------------------------------------
   Output shell
---------------------------------------- */
.section-header {
  margin-bottom: 24px;
}

.section-header p {
  margin-top: 8px;
  max-width: 640px;
}

.output-shell {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px;
  max-width: 960px;
  margin: 0 auto;
}

.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.output-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

pre {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 0;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ----------------------------------------
   CTA band
---------------------------------------- */
.cta-band {
  text-align: center;
  padding: 48px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  margin: 48px 0;
}

.cta-band h2 {
  color: var(--text);
  margin-bottom: 10px;
}

.cta-band p {
  color: var(--text-muted);
}

.cta-band .micro {
  color: var(--text-light);
}

.cta-band a {
  color: var(--text-muted);
}

.cta-band a:hover {
  color: var(--text);
}

/* ----------------------------------------
   Grids / cards
---------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 18px;
}

.feature-card h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.875rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.step-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  position: relative;
  text-align: center;
  word-wrap: break-word;
}

.step-card h3 {
  word-break: keep-all;
  hyphens: none;
}

.step-card p {
  font-size: 0.875rem;
  line-height: 1.65;
}

.step-number {
  min-width: 40px;
  width: fit-content;
  height: 40px;
  padding: 0 14px;
  background: var(--bg-subtle);
  color: var(--text);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  margin: 0 auto 14px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------
   Pricing
---------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  font-weight: 500;
}

.pricing-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.pricing-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.pricing-amount span {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 400;
  margin-left: 2px;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-list li {
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
}

.pricing-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-strong);
}

.pricing-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 10px;
}

.pill-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 14px;
  background: var(--bg-subtle);
}

/* ----------------------------------------
   Stats
---------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stat-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ----------------------------------------
   Pillars / Why
---------------------------------------- */
.section { padding: 72px 0; }

.container.narrow {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
  color: var(--text);
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 36px;
}

.lmo-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.pillar-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}

.pillar-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.pillar-mini {
  font-size: 0.78rem;
  margin-top: 12px;
  padding-top: 12px;
  color: var(--text-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.why-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
}

.why-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.why-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ----------------------------------------
   Delivery pipeline
---------------------------------------- */
.delivery-pipeline {
  margin-top: 40px;
  padding-top: 32px;
}

.pipeline-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.delivery-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
}

.delivery-card h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.delivery-card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ----------------------------------------
   Scan notification
---------------------------------------- */
.scan-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.3s ease-out forwards;
}

.scan-notification.fade-out {
  animation: fadeOutDown 0.5s ease-out forwards;
}

.scan-notification-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scan-progress {
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.scan-progress-bar {
  height: 100%;
  width: 0;
  background: var(--text);
  animation: progressBar 2.5s linear forwards;
}

@keyframes progressBar {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOutDown {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(20px); }
}

/* ----------------------------------------
   Scroll reveal
---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
  will-change: opacity, transform;
}
.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------
   Scrollbar
---------------------------------------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* Tooltips */
.tooltip { position: relative; display: inline-block; }
.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: var(--bg-elevated);
  color: var(--text);
  text-align: center;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.15s;
  font-size: 0.82rem;
}
.tooltip:hover .tooltip-text { visibility: visible; opacity: 1; }

/* ----------------------------------------
   Reduced motion
---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ----------------------------------------
   Navbar
---------------------------------------- */
.navbar {
  display: block;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar .logo-mark {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
}

.navbar .logo-text {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.navbar .nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.navbar .nav-links a {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.navbar .nav-links a:hover {
  color: var(--text);
}

.navbar .cta {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s ease;
}

.navbar .cta:hover {
  opacity: 0.9;
}

.navbar .cta span.icon {
  font-size: 0.82rem;
}

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

/* ----------------------------------------
   Footer
---------------------------------------- */
.site-footer {
  display: block;
  width: 100%;
  background: var(--bg);
  padding: 48px 24px 32px;
  margin-top: 0;
}

.site-footer .footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.site-footer .footer-column h3 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer .footer-links a {
  color: var(--text-light);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer .footer-links a:hover {
  color: var(--text);
}

.site-footer .footer-email {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-light);
}

.site-footer .footer-email a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
}

.site-footer .footer-email a:hover {
  color: var(--text);
}

.site-footer .copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  font-size: 0.78rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .site-footer .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ----------------------------------------
   Responsive
---------------------------------------- */
@media (max-width: 900px) {
  main { padding-inline: 16px; }
  section { padding: 48px 0; }

  .two-column { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .steps-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lmo-pillars-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .delivery-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .kpi-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }

  .btn-primary {
    width: auto;
    max-width: 320px;
    display: flex;
  }

  .btn-secondary {
    width: auto;
    max-width: 280px;
    display: flex;
  }

  .cta-band { margin-inline: 0; }
  .section-contrast { padding-inline: 20px; }

  .step-card { padding: 22px 18px; }

  .container.narrow { padding-inline: 20px; }

  .two-column > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .two-column .btn-secondary {
    align-self: center;
  }

  .pillar-card,
  .step-card,
  .delivery-card {
    max-width: 100%;
  }

  section .btn-primary,
  section .btn-secondary {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 420px) {
  .btn-primary {
    font-size: 0.85rem;
    padding: 10px 18px;
  }
}
