/* ==========================================================================
   Lumenwatch — design tokens
   ========================================================================== */

:root {
  --bg: #0b0e14;
  --bg-elevated: #12161f;
  --bg-card: #161b26;
  --text: #e8ecf3;
  --text-dim: #8b93a7;
  --text-faint: #5b6478;

  --amber: #ff9d3d;
  --amber-soft: rgba(255, 157, 61, 0.14);
  --teal: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, 0.14);

  --line: #232838;
  --line-soft: #1a1f2c;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --pad-x: clamp(20px, 5.5vw, 80px);
  --section-py: clamp(60px, 9vw, 120px);

  --font-display: 'Bricolage Grotesque', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  max-width: 1440px;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
input, textarea { font: inherit; color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: #0b0e14;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: #14100a;
}
.btn-primary:hover { transform: translateY(-1px); background: #ffad5c; }
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-text {
  padding: 12px 4px;
  color: var(--text-dim);
}
.btn-text:hover { color: var(--amber); }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.logo-mark {
  width: 22px; height: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
}
.logo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255, 157, 61, 0.6);
  animation: dot-pulse 2.4s ease-out infinite;
}
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 157, 61, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 157, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 157, 61, 0); }
}
.site-nav { display: flex; gap: 28px; margin-right: auto; }
.site-nav a { color: var(--text-dim); font-size: 15px; font-weight: 500; transition: color 0.15s ease; }
.site-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta-secondary { font-size: 14px; padding: 10px 16px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px var(--pad-x) 20px;
  border-top: 1px solid var(--line-soft);
}
.mobile-nav a { padding: 12px 0; color: var(--text-dim); border-bottom: 1px solid var(--line-soft); }
.mobile-nav.open { display: flex; }
.mobile-cta { justify-content: center; margin-top: 14px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: calc(var(--section-py) * 0.9) var(--pad-x) var(--section-py);
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.06;
  margin-bottom: 22px;
}
.hero-sub {
  color: var(--text-dim);
  font-size: clamp(16px, 1.6vw, 18px);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-meta { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }

/* Console */
.console {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}
.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.console-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: background 0.3s ease;
}
.status-dot.firing { background: var(--amber); animation: dot-pulse 1.6s ease-out infinite; }
.status-dot.resolved { background: var(--teal); animation: none; }
.console-service { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.console-log {
  list-style: none;
  padding: 18px;
  min-height: 280px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
}
.console-log li {
  display: flex;
  gap: 10px;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(6px);
  animation: log-in 0.4s ease forwards;
}
@keyframes log-in { to { opacity: 1; transform: none; } }
.console-log .t { color: var(--text-faint); flex-shrink: 0; }
.console-log .tag {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.tag-firing { background: var(--amber-soft); color: var(--amber); }
.tag-resolved { background: var(--teal-soft); color: var(--teal); }
.tag-info { background: var(--line-soft); color: var(--text-dim); }

/* ==========================================================================
   Trust bar
   ========================================================================== */

.trust-bar {
  padding: 36px var(--pad-x);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}
.trust-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 20px; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 4vw, 48px); }
.trust-logos span {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.trust-logos span:hover { opacity: 1; }

/* ==========================================================================
   Section head
   ========================================================================== */

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; }
section > .section-head + * { }

.features, .how, .pricing { padding: var(--section-py) var(--pad-x); }

/* ==========================================================================
   Features
   ========================================================================== */

.feature-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--amber); }
.feature-card:nth-child(even):hover { border-color: var(--teal); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--amber-soft);
  color: var(--amber);
  margin-bottom: 18px;
}
.feature-card:nth-child(even) .feature-icon { background: var(--teal-soft); color: var(--teal); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); font-size: 15px; line-height: 1.6; }

/* ==========================================================================
   How it works — timeline
   ========================================================================== */

.timeline {
  max-width: 1280px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  gap: 20px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--line);
}
.timeline-step { flex: 1; position: relative; }
.step-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}
.timeline-step:nth-child(even) .step-index { color: var(--teal); }
.timeline-step h3 { font-size: 18px; margin-bottom: 8px; }
.timeline-step p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }

/* ==========================================================================
   Stats
   ========================================================================== */

.stats { background: var(--bg-elevated); padding: var(--section-py) var(--pad-x); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stats-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.stat-label { color: var(--text-dim); font-size: 14px; }

/* ==========================================================================
   Testimonial
   ========================================================================== */

.testimonial { padding: var(--section-py) var(--pad-x); }
.testimonial blockquote { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonial p {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 24px;
}
.testimonial p::before { content: '\201C'; color: var(--amber); }
.testimonial p::after { content: '\201D'; color: var(--amber); }
.testimonial footer { display: flex; flex-direction: column; gap: 2px; }
.testimonial-name { font-weight: 600; }
.testimonial-role { color: var(--text-faint); font-size: 14px; }

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card-featured { border-color: var(--amber); background: linear-gradient(180deg, var(--amber-soft), var(--bg-card) 40%); }
.price-badge {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--amber);
  color: #14100a;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.price-card h3 { font-size: 18px; margin-bottom: 12px; }
.price { font-family: var(--font-display); font-size: 38px; font-weight: 700; margin-bottom: 4px; }
.price span { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text-faint); }
.price-note { color: var(--text-faint); font-size: 13.5px; margin-bottom: 18px; }
.price-features { list-style: none; margin-bottom: 28px; flex-grow: 1; }
.price-features li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--text-dim);
  font-size: 14.5px;
  border-top: 1px solid var(--line-soft);
}
.price-features li:first-child { border-top: none; }
.price-features li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.price-cta { justify-content: center; width: 100%; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { padding: var(--section-py) var(--pad-x); }
.contact-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
}
.contact-copy h2 { font-size: clamp(28px, 3.2vw, 38px); margin: 10px 0 16px; line-height: 1.2; }
.contact-copy p { color: var(--text-dim); font-size: 15.5px; line-height: 1.6; max-width: 40ch; }

.contact-form { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.form-field input, .form-field textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-faint); }
.form-field textarea { min-height: 120px; resize: vertical; }

.form-field-hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  left: -9999px;
}

.form-submit { width: 100%; justify-content: center; }
.form-submit:disabled { opacity: 0.6; cursor: default; }
.form-success { color: var(--teal); font-size: 14.5px; margin-top: 16px; }
.form-note { color: var(--text-faint); font-size: 13px; margin-top: 16px; line-height: 1.5; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--bg-elevated); border-top: 1px solid var(--line-soft); padding: var(--section-py) var(--pad-x) 40px; }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand p { color: var(--text-faint); font-size: 14px; margin-top: 14px; max-width: 32ch; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14.5px; margin-bottom: 12px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { max-width: 1280px; margin: 0 auto; border-top: 1px solid var(--line-soft); padding-top: 24px; }
.footer-bottom p { color: var(--text-faint); font-size: 13px; }

/* ==========================================================================
   Reveal animations
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .logo-dot, .status-dot.firing { animation: none !important; box-shadow: none !important; }
  .console-log li { animation: none !important; opacity: 1 !important; transform: none !important; }
  .btn-primary:hover, .feature-card:hover { transform: none !important; }
}

/* ==========================================================================
   Responsive — tablet
   ========================================================================== */

@media (max-width: 1100px) {
  .site-nav { display: none; }
  .header-actions { display: none; }
  .burger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .console { max-width: 560px; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .timeline { flex-direction: column; gap: 28px; }
  .timeline::before { top: 0; bottom: 0; left: 19px; right: auto; width: 1px; height: auto; }
  .timeline-step { display: flex; gap: 16px; align-items: flex-start; }
  .timeline-step .step-index { margin-bottom: 0; flex-shrink: 0; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }

  .contact-inner { grid-template-columns: 1fr; }
  .contact-copy p { max-width: none; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Responsive — mobile
   ========================================================================== */

@media (max-width: 760px) {
  .header-inner { padding: 14px var(--pad-x); }
  .feature-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .console-log { min-height: 220px; font-size: 12px; }
  .trust-logos { gap: 18px 28px; }
}
