:root {
  --bg: #0e0f12;
  --bg-alt: #14161a;
  --surface: #1a1c21;
  --border: #272a31;
  --border-strong: #383c46;
  --text: #f4f4f5;
  --muted: #9ca3af;
  --ember: #f97316;
  --ember-hover: #fb923c;
  --sage: #4ade80;
  --red: #ef4444;
  --blue: #60a5fa;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 15, 18, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}

.nav-s-split {
  transform-origin: 18px 30px;
  transform: rotate(-45deg);
  transition: transform 0.65s ease;
}

.brand:hover .nav-s-split {
  transform: rotate(315deg);
}

.brand-tag {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  padding-left: 0.6rem;
  border-left: 1px solid var(--border);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

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

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

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

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.52rem 1rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--ember);
  color: #111214;
}

.btn-primary:hover {
  background: var(--ember-hover);
}

.btn-sage {
  background: var(--sage);
  color: #0e1a12;
}

.btn-sage:hover {
  background: #86efac;
}

.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  background: var(--surface);
}

.btn-ghost {
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fdba74;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.45rem;
}

.section-label-sage {
  color: var(--sage);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.pill-sage {
  background: rgba(74, 222, 128, 0.1);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.28);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Hero */
.hero {
  padding: 4.5rem 0 4.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.25rem;
  align-items: center;
}

.hero h1 {
  margin: 0.85rem 0 1.1rem;
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.accent-ember {
  color: var(--ember);
}

.hero-sub {
  color: var(--muted);
  font-size: 1.04rem;
  margin: 0 0 1.75rem;
  max-width: 52ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-specs {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.83rem;
  color: var(--muted);
}

.sep {
  opacity: 0.5;
}

/* Live App Preview Card */
.hero-card {
  background: radial-gradient(circle at 12% 10%, rgba(249, 115, 22, 0.15) 0%, var(--surface) 50%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.device-title {
  font-weight: 600;
  font-size: 0.98rem;
}

.device-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.sync-loader {
  display: block;
  opacity: 0.85;
}

.card-top-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.unit-toggle {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.unit-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.room-readout {
  text-align: right;
}

.room-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.room-val {
  font-size: 1.08rem;
  font-weight: 600;
}

.chimney-hero {
  margin-bottom: 1rem;
}

.chimney-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.chimney-val {
  font-size: 2.9rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ember);
  margin-bottom: 0.75rem;
}

.chimney-val span {
  font-size: 1.4rem;
  margin-left: 0.2rem;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text);
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.chip-dot-ok   { background: var(--ember); }
.chip-dot-warn { background: #eab308; }
.chip-dot-cool { background: var(--blue); }

/* Zone Scale Bar */
.zone-scale-wrap {
  margin-bottom: 1rem;
}

.zone-pointer-track {
  position: relative;
  height: 14px;
}

.zone-pointer {
  position: absolute;
  transform: translateX(-50%);
  font-size: 10px;
  line-height: 1;
  color: #ffffff;
  transition: left 0.25s ease;
}

.zone-bar {
  display: grid;
  grid-template-columns: 18% 36% 24% 16% 6%;
  height: 7px;
  border-radius: 4px;
  overflow: hidden;
}

.zone-cool { background: #e4e4e7; }
.zone-warm { background: #facc15; }
.zone-opt  { background: #f97316; }
.zone-high { background: #ef4444; }
.zone-crit { background: #b91c1c; }

.zone-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.alerts-line {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.mini-chart-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 0.8rem;
}

.mini-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.chart-tabs {
  display: flex;
  gap: 0.3rem;
}

.chart-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}

.chart-tab.active {
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(249, 115, 22, 0.45);
  color: #fdba74;
}

.burn-svg {
  width: 100%;
  height: auto;
  display: block;
}

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

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 58ch;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color 0.15s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 0.95rem;
}

.icon-amber   { background: rgba(249, 115, 22, 0.12); color: #fb923c; }
.icon-red     { background: rgba(239, 68, 68, 0.12);  color: #f87171; }
.icon-blue    { background: rgba(96, 165, 250, 0.12); color: #60a5fa; }
.icon-neutral { background: rgba(255, 255, 255, 0.06); color: #d4d4d8; }

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* How It Works */
.diagram-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.flow-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Comparison Table */
.compare-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

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

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

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

.compare-table th.col-highlight {
  color: var(--ember);
}

.cell-yes {
  color: #f4f4f5;
  font-weight: 600;
}

.cell-no,
.cell-muted {
  color: #6b7280;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.step-num {
  display: inline-block;
  color: var(--ember);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.step-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Pricing */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.2rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.25rem;
  align-items: center;
}

.pricing-img {
  width: 100%;
  max-width: 190px;
  border-radius: 18px;
  display: block;
  border: 1px solid var(--border);
}

.pricing-body h2 {
  margin: 0.5rem 0 0.55rem;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.pricing-desc {
  margin: 0 0 1.2rem;
  color: var(--muted);
  max-width: 56ch;
  font-size: 0.96rem;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.price {
  font-size: 1.9rem;
  font-weight: 600;
}

.price small {
  font-size: 0.9rem;
  color: var(--muted);
}

.price-sub {
  color: var(--muted);
  font-size: 0.88rem;
}

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.stock-note {
  font-size: 0.84rem;
  color: var(--muted);
}

/* Coming Soon: Greenhouse */
.grovo-panel {
  background: linear-gradient(135deg, #161f1a 0%, var(--surface) 100%);
  border: 1px solid #26352c;
  border-radius: 20px;
  padding: 2.2rem;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 2.25rem;
  align-items: center;
}

.grovo-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.grovo-img {
  width: 175px;
  height: 175px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid #2d4035;
}

.grovo-copy h2 {
  margin: 0 0 0.55rem;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.grovo-copy > p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.grovo-list {
  margin: 0 0 1.35rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.grovo-list li {
  margin-bottom: 0.45rem;
}

.grovo-list strong {
  color: var(--text);
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.waitlist-form input {
  flex: 1 1 220px;
  max-width: 290px;
  padding: 0.58rem 0.9rem;
  border-radius: 9px;
  border: 1px solid #324439;
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
}

.form-note {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
  color: #86efac;
  min-height: 1.2em;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-tag {
  padding-left: 0.6rem;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .steps-grid,
  .grovo-panel,
  .pricing-card,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .grovo-media,
  .pricing-left {
    justify-self: center;
  }
}
