:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --surface-alt: #F2F1EC;
  --surface-studio: #F6F5F0;
  --ink: #11161C;
  --ink-secondary: #47515C;
  --ink-muted: #646E78;
  --border: #E5E3DC;
  --border-strong: #D3CFC4;
  --gold: #F5B800;
  --gold-hover: #E0A800;
  --gold-soft: #FEF6DB;
  --gold-ink: #8E6200;
  --emerald: #15803D;
  --emerald-soft: #DCFCE7;
  --amber: #B45309;
  --amber-soft: #FEF3C7;
  --slate-soft: #ECEBE5;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(17, 22, 28, 0.04), 0 4px 14px rgba(17, 22, 28, 0.04);
  --shadow-md: 0 8px 30px rgba(17, 22, 28, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

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

.brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.ew-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ew-badge:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

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

.site-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

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

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: #E3AA00;
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

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

.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero-section {
  padding: 56px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: var(--gold-soft);
  border: 1px solid #F2D883;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 26px;
  font-size: 17px;
  color: var(--ink-secondary);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.point-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  border: 1px solid #C89400;
  flex-shrink: 0;
}

.hero-visual-card {
  background: var(--surface-studio);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.hero-visual-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-secondary);
}

.hero-visual-caption strong {
  color: var(--ink);
}

/* Metric Bar */
.metric-bar {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.metric-item {
  padding: 20px 24px;
  border-right: 1px solid var(--border);
}

.metric-item:last-child {
  border-right: none;
}

.metric-val {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.metric-label {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 3px;
}

/* Sections */
.section {
  padding: 72px 0;
}

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

.section-header {
  max-width: 660px;
  margin-bottom: 36px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-ink);
  margin-bottom: 8px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-header p {
  margin: 0;
  font-size: 16px;
  color: var(--ink-secondary);
}

/* Family Showcase */
.family-banner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.family-banner-media {
  background: var(--surface-studio);
}

.family-banner-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.family-banner-body {
  padding: 28px 32px 28px 4px;
}

.family-banner-body h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.family-banner-body p {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--ink-secondary);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px;
}

/* Hardware Grid */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card,
.package-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card.featured,
.package-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-md);
}

.card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
}

.card-badge-subtle {
  background: var(--surface-alt);
  color: var(--ink-secondary);
  border: 1px solid var(--border);
}

.card-title {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
  padding-right: 92px;
}

.card-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-ink);
  margin-bottom: 16px;
}

.card-price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 6px;
}

.card-price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}

.card-summary {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.check-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.check-list li {
  position: relative;
  padding-left: 20px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  border: 1px solid #C89400;
}

/* Comparison & Street Install */
.comparison-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.table-scroll {
  overflow-x: auto;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comp-table th,
.comp-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.comp-table th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  background: #F8F7F3;
}

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

.comp-table .col-canary {
  background: #FFFDF3;
  font-weight: 600;
  color: var(--ink);
}

.comp-table th.col-canary {
  color: var(--gold-ink);
  background: var(--gold-soft);
}

.engineering-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.install-photo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.install-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.install-caption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.engineering-callouts {
  display: grid;
  gap: 14px;
}

.callout-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.callout-card h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.callout-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
}

/* Specs */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.spec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.spec-card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: #F8F7F3;
  font-size: 14px;
  font-weight: 700;
}

.spec-rows {
  display: grid;
}

.spec-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-key {
  font-weight: 600;
  color: var(--ink-muted);
}

.spec-val {
  color: var(--ink);
  font-weight: 500;
}

/* Banbury Pilot Map */
.pilot-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  align-items: stretch;
}

.map-card,
.telemetry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-card {
  display: flex;
  flex-direction: column;
}

.map-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-dot.hub { background: var(--ink); }
.legend-dot.live { background: var(--emerald); }
.legend-dot.offline { background: var(--amber); }
.legend-dot.planned { background: #94A3B8; }

#pilotMap {
  width: 100%;
  height: 440px;
  background: #EFECE4;
}

.telemetry-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gateway-box {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #F8F7F3;
  border: 1px solid var(--border);
}

.gateway-box-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
}

.status-pill.live {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.status-pill.offline {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-pill.planned {
  background: var(--slate-soft);
  color: var(--ink-secondary);
}

.gateway-metrics {
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.node-roster {
  display: grid;
  gap: 10px;
}

.node-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.node-item:hover {
  border-color: var(--gold);
}

.node-name {
  font-size: 13.5px;
  font-weight: 700;
}

.node-sub {
  font-size: 12px;
  color: var(--ink-muted);
}

.osem-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-ink);
  text-decoration: none;
}

.osem-link:hover {
  text-decoration: underline;
}

/* Enquiry Section */
.enquiry-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.enquiry-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.enquiry-copy p {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--ink-secondary);
}

.enquiry-meta {
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.enquiry-form {
  display: grid;
  gap: 14px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #C89400;
  box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.22);
  background: var(--surface);
}

.form-feedback {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
}

.form-feedback.ok {
  display: block;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid #86EFAC;
}

.form-feedback.err {
  display: block;
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  font-size: 13px;
  color: var(--ink-muted);
}

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

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-secondary);
  font-weight: 600;
}

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

/* Map markers */
.ca-map-pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(17, 22, 28, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
}

.ca-hub-pin {
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--gold);
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 10px rgba(17, 22, 28, 0.28);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1040px) {
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .family-banner {
    grid-template-columns: 1fr;
  }
  .family-banner-body {
    padding: 4px 24px 24px;
  }
  .pilot-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  .hero-grid,
  .engineering-split,
  .specs-grid,
  .cards-3,
  .enquiry-shell {
    grid-template-columns: 1fr;
  }
  .metric-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-item {
    border-bottom: 1px solid var(--border);
  }
  .metric-item:nth-child(2n) {
    border-right: none;
  }
  .metric-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-width: 560px) {
  .cards-4,
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .enquiry-shell {
    padding: 24px 20px;
  }
  .ew-badge {
    display: none;
  }
}
