:root {
  --bg: #f6f8fc;
  --bg-elev: #edf2f8;
  --bg-card: #ffffff;
  --bg-card-solid: #ffffff;
  --border: #dbe3ee;
  --border-strong: rgba(217, 119, 6, 0.45);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --amber: #e5a93b;
  --amber-hover: #d89a28;
  --amber-text: #b45309;
  --amber-soft: rgba(229, 169, 59, 0.15);
  --emerald: #059669;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --coral: #e11d48;
  --coral-soft: #fff1f2;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.05);
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 620px at 85% -6%, rgba(229, 169, 59, 0.12), transparent 58%),
    radial-gradient(960px 560px at 8% 12%, rgba(16, 185, 129, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 16px;
}

.container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #0f172a;
  padding: 2px;
}

.brand-mark svg {
  width: 34px;
  height: 34px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--text);
}

.brand-text small {
  font-size: 11px;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 10px;
  transition: color 0.18s ease, background 0.18s ease;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  border-radius: 10px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.phone-link:hover {
  border-color: var(--border);
  background: rgba(15, 23, 42, 0.04);
}

.phone-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 0 4px var(--emerald-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
}

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

.btn[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.btn-primary {
  background: var(--amber);
  color: #090c12;
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.22);
}

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

.btn-outline {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--border-strong);
  background: rgba(229, 169, 59, 0.08);
}

.btn-ghost {
  background: #f8fafc;
  border-color: var(--border);
  color: var(--text);
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--amber-text);
  background: var(--amber-soft);
}

.mobile-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  z-index: 59;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  padding: 20px 16px 32px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer a,
.mobile-drawer button {
  min-height: 48px;
  justify-content: flex-start;
}

/* Sections */
.section {
  padding: 78px 0;
  position: relative;
}

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

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-text);
  background: var(--amber-soft);
  border: 1px solid rgba(217, 119, 6, 0.28);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
}

/* Hero */
.hero {
  padding: 46px 0 68px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--emerald-soft);
  border: 1px solid rgba(5, 150, 105, 0.28);
  color: #065f46;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.3vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 26px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
}

/* Hero single-field form */
.quick-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.quick-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--amber);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(229, 169, 59, 0.22);
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--text-dim);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
  min-height: 44px;
  padding-top: 4px;
}

.consent-row input[type='checkbox'] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 2px 0 0;
  accent-color: var(--amber);
  cursor: pointer;
}

.consent-row a {
  color: var(--amber-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
}

.form-status.ok {
  color: var(--emerald);
}

.form-status.err {
  color: #be123c;
}

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

.proof-chip {
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.proof-chip strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--amber-text);
}

.proof-chip span {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Hero media monitor */
.hero-stage {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow);
  position: relative;
}

.stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.stage-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.stage-dots i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #cbd5e1;
}

.stage-dots i:first-child {
  background: var(--emerald);
}

.stage-video-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  aspect-ratio: 16 / 9;
  background: #090e18;
}

.stage-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
  background: rgba(6, 10, 17, 0.78);
  border: 1px solid rgba(229, 169, 59, 0.48);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.video-zoom-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(6, 10, 17, 0.84);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.video-zoom-btn:hover {
  border-color: var(--amber);
  background: rgba(15, 23, 38, 0.96);
}

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

.telemetry-cell {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
}

.telemetry-cell small {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.telemetry-cell strong {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}

.telemetry-cell strong.ok {
  color: var(--emerald);
}

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

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.compare-pain {
  background: var(--coral-soft);
  border: 1px solid #fecdd3;
  border-radius: 12px;
  padding: 14px;
}

.compare-gain {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 14px;
}

.compare-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.compare-pain .compare-tag {
  color: #be123c;
}

.compare-gain .compare-tag {
  color: #047857;
}

.compare-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--text);
}

.compare-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

/* Product Showcase */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter-tab {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
}

.filter-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.filter-tab.active {
  background: var(--amber);
  color: #090c12;
  border-color: var(--amber);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.product-card.hidden-by-filter {
  display: none;
}

.product-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #090e18;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.product-media video,
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.product-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--amber-text);
  background: var(--amber-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.product-time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald);
}

.product-body h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.24;
  color: var(--text);
}

.product-body > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: #334155;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber);
}

.product-roi {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.25);
  font-size: 13.5px;
  color: #065f46;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-note-banner {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* Calculator */
.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
  align-items: start;
}

.calc-panel,
.calc-result {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.calc-result {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}

.slider-group {
  margin-bottom: 20px;
}

.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
}

.slider-head output {
  font-family: var(--font-mono);
  color: var(--amber-text);
  font-weight: 700;
}

input[type='range'] {
  width: 100%;
  accent-color: var(--amber-hover);
  height: 28px;
  cursor: pointer;
}

.calc-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 22px;
}

.module-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.module-check:has(input:checked) {
  border-color: var(--amber);
  background: var(--amber-soft);
}

.module-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--amber-hover);
}

.deploy-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.deploy-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
}

.deploy-option:has(input:checked) {
  border-color: var(--emerald);
  background: var(--emerald-soft);
}

.deploy-option input {
  accent-color: var(--emerald);
}

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

.kpi-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.kpi-box small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.kpi-box strong {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--amber-text);
}

.kpi-box strong.emerald {
  color: var(--emerald);
}

/* Integrations & Security */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stack-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.stack-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.stack-card p {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: #334155;
}

/* Steps & Packages */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--amber-text);
  margin-bottom: 10px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.step-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

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

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.tier-card.featured {
  border-color: var(--amber);
  background: linear-gradient(180deg, rgba(229, 169, 59, 0.12), #ffffff);
  box-shadow: var(--shadow);
}

.tier-price {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--amber-text);
}

.tier-card h3 {
  margin: 0;
  font-size: 20px;
}

.tier-card > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

.tier-card .btn {
  margin-top: auto;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  min-height: 54px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-trigger span.icon {
  font-family: var(--font-mono);
  color: var(--amber-text);
  font-size: 20px;
  flex-shrink: 0;
}

.faq-panel {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 15px;
}

.faq-item.open .faq-panel {
  display: block;
}

/* Lead CTA Section */
.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: stretch;
}

.contact-panel,
.lead-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.contact-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.contact-cards {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.contact-item {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.contact-item small {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 3px;
}

.contact-item strong,
.contact-item a {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--bg-elev);
  color: var(--text-muted);
  font-size: 13.5px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

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

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

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
}

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

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
}

.modal.open {
  display: flex;
}

.modal-dialog {
  width: min(760px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.modal-head h3 {
  margin: 0;
  font-size: 20px;
  color: var(--text);
}

.modal-close {
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f1f5f9;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.modal-video-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.modal-video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Legal pages */
.legal-main {
  padding: 48px 0 72px;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 44px);
  max-width: 880px;
  box-shadow: var(--shadow-sm);
}

.legal-card h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--text);
}

.legal-meta {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 24px;
}

.legal-card h2 {
  margin: 26px 0 10px;
  font-size: 19px;
  color: var(--text);
}

.legal-card p,
.legal-card li {
  color: var(--text-muted);
  font-size: 15px;
}

.legal-card a {
  color: var(--amber-text);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1120px) {
  .main-nav {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .hero-grid,
  .calc-layout,
  .lead-grid {
    grid-template-columns: 1fr;
  }
  .calc-result {
    position: static;
  }
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stack-grid,
  .tiers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .products-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .header-actions .phone-link {
    display: none;
  }
}

@media (max-width: 580px) {
  .section {
    padding: 54px 0;
  }
  .header-inner {
    gap: 10px;
    min-height: 68px;
  }
  .mobile-drawer {
    top: 68px;
  }
  .brand-text small {
    display: none;
  }
  .header-actions .btn-primary {
    display: none;
  }
  .quick-form-row,
  .hero-proofs,
  .telemetry-strip,
  .calc-modules-grid,
  .deploy-switch,
  .kpi-grid,
  .steps-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
