/* ==========================================================================
   ROOKERY TECHNOLOGIES — ZERO-DEPENDENCY STATIC PRODUCTION STYLESHEET
   Optimized for instant first paint on 3G/4G cellular networks
   ========================================================================== */
:root {
  --bg-dark: #0F172A;
  --bg-darker: #090E1A;
  --bg-card-dark: #1E293B;
  --bg-sandstone: #FAF8F5;
  --bg-sandstone-warm: #F3EFEA;
  --bg-white: #FFFFFF;
  --text-dark: #0F172A;
  --text-muted-dark: #475569;
  --text-light: #F8FAFC;
  --text-muted-light: #CBD5E1;
  --text-subtle-light: #94A3B8;
  --accent-amber: #D97706;
  --accent-amber-bright: #F59E0B;
  --accent-emerald: #10B981;
  --accent-sky: #38BDF8;
  --accent-rose: #F43F5E;
  --border-dark: #334155;
  --border-light: #E2E8F0;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.16);
  --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.28);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-sandstone);
  color: var(--text-dark);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select {
  font-family: inherit;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-amber-bright);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.75rem;
  }
}

.mono {
  font-family: var(--font-mono);
}

.hidden {
  display: none !important;
}

/* Architectural Blueprint Grids */
.grid-bg-light {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

.grid-bg-dark {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

@keyframes flowPulse {
  0% { stroke-dashoffset: 24; }
  100% { stroke-dashoffset: 0; }
}

.energy-line-active {
  stroke-dasharray: 6 6;
  animation: flowPulse 1.1s linear infinite;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.8);
  color: var(--text-light);
}

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

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: var(--accent-amber);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
}

.brand-logo {
  height: 2.5rem;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted-light);
}

.desktop-nav a:hover {
  color: var(--bg-white);
}

@media (min-width: 900px) {
  .desktop-nav {
    display: flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.btn-primary-sm {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  background: var(--accent-amber);
  color: var(--bg-dark);
  border: none;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

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

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  border-radius: var(--radius-md);
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  color: var(--text-light);
  cursor: pointer;
}

@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-drawer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  padding: 0.75rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-drawer a {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted-light);
}

.mobile-drawer a:hover {
  background: var(--bg-card-dark);
  color: var(--bg-white);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 7.25rem 0 4.5rem;
  background-color: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 9rem 0 6.5rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.35rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.1rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.55rem;
  }
}

.gradient-highlight {
  background: linear-gradient(90deg, #F59E0B, #FCD34D, #10B981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--text-muted-light);
  max-width: 40rem;
  margin-bottom: 1.85rem;
  line-height: 1.65;
}

@media (min-width: 640px) {
  .hero-lead {
    font-size: 1.125rem;
  }
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 640px) {
  .hero-cta-group {
    flex-direction: row;
  }
}

.btn-hero-primary {
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-md);
  background: var(--accent-amber);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: background 0.2s ease;
}

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

.btn-hero-secondary {
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-card-dark);
  border: 1px solid #475569;
  color: var(--bg-white);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s ease;
}

.btn-hero-secondary:hover {
  background: #283548;
}

.hero-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .telemetry-val {
    font-size: 1.6rem;
  }
}

.telemetry-lbl {
  font-size: 0.75rem;
  color: var(--text-subtle-light);
  margin-top: 0.2rem;
}

/* Hero Schematic Card */
.blueprint-card {
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 640px) {
  .blueprint-card {
    padding: 1.85rem;
  }
}

.blueprint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-dark);
}

.badge-emerald {
  padding: 0.3rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.svg-frame {
  background: var(--bg-dark);
  border: 1px solid #1E293B;
  border-radius: var(--radius-lg);
  padding: 0.85rem;
}

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

.blueprint-specs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.15rem;
  font-size: 0.78rem;
}

.blueprint-specs .spec-box {
  text-align: center;
  min-width: 14rem;
}

.spec-box {
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-dark);
  border: 1px solid #1E293B;
}

/* ==========================================================================
   SHARED SECTION HEADERS & LAYOUTS
   ========================================================================== */
.section-pad {
  padding: 4.5rem 0;
}

@media (min-width: 1024px) {
  .section-pad {
    padding: 6.5rem 0;
  }
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-amber);
  display: block;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 0.65rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.9rem;
  }
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted-dark);
  max-width: 46rem;
  margin-top: 1rem;
  line-height: 1.65;
}

@media (min-width: 640px) {
  .section-desc {
    font-size: 1.08rem;
  }
}

/* ==========================================================================
   PILLAR TRIFECTA SECTION
   ========================================================================== */
.trifecta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.75rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .trifecta-grid {
    grid-template-columns: 5fr 7fr;
  }
}

.pillar-tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pillar-tab-btn {
  width: 100%;
  text-align: left;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pillar-tab-btn:hover {
  background: var(--bg-white);
}

.pillar-tab-btn.active {
  border: 2px solid var(--accent-amber);
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
}

.pillar-tab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.pillar-num {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: #F1F5F9;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
}

.pillar-tab-btn.active .pillar-num {
  background: rgba(217, 119, 6, 0.14);
  color: var(--accent-amber);
}

.pillar-detail-panel {
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  border: 1px solid #1E293B;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 640px) {
  .pillar-detail-panel {
    padding: 2.5rem;
  }
}

.pillar-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.75rem 0;
}

.pillar-metric-box {
  padding: 0.9rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #1E293B;
  list-style: none;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted-light);
}

.check-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.2);
  color: var(--accent-amber-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ==========================================================================
   DEPLOYMENT CORRIDORS SECTION
   ========================================================================== */
.corridors-section {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
}

.corridors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.75rem;
}

@media (min-width: 1024px) {
  .corridors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.corridor-card-dark {
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--radius-xl);
  padding: 1.85rem;
  border: 1px solid #1E293B;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.corridor-card-light {
  background: var(--bg-sandstone);
  color: var(--text-dark);
  border-radius: var(--radius-xl);
  padding: 1.85rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .corridor-card-dark, .corridor-card-light {
    padding: 2.35rem;
  }
}

.corridor-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pill-amber {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(217, 119, 6, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--accent-amber-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pill-slate {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bg-dark);
  color: var(--bg-white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.chip-dark {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
}

.chip-dark.highlight {
  color: var(--accent-amber-bright);
}

.chip-light {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dark);
}

.corridor-footer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.8rem;
}

/* ==========================================================================
   INTERACTIVE SIMULATOR SECTION
   ========================================================================== */
.simulator-section {
  background: var(--bg-dark);
  color: var(--text-light);
  border-top: 1px solid #1E293B;
  border-bottom: 1px solid #1E293B;
}

.sim-header-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 1024px) {
  .sim-header-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.algo-control-card {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.switch-track {
  width: 3.75rem;
  height: 2.1rem;
  border-radius: var(--radius-full);
  background: var(--accent-emerald);
  border: none;
  padding: 0.22rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.25s ease;
}

.switch-track.off {
  background: #475569;
}

.switch-knob {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transform: translateX(1.65rem);
  transition: transform 0.25s ease;
}

.switch-track.off .switch-knob {
  transform: translateX(0);
}

.scenario-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .scenario-bar {
    grid-template-columns: repeat(5, 1fr);
  }
}

.scen-btn {
  padding: 0.8rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  background: var(--bg-card-dark);
  color: var(--text-muted-light);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scen-btn:hover {
  color: var(--bg-white);
}

.scen-btn.active {
  border: 2px solid var(--accent-amber-bright);
  background: rgba(217, 119, 6, 0.22);
  color: var(--bg-white);
  font-weight: 700;
}

.scen-btn.span-full-mobile {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .scen-btn.span-full-mobile {
    grid-column: span 1;
  }
}

.sim-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .sim-dashboard-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.sim-panel {
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .sim-panel {
    padding: 2rem;
  }
}

.zone-bars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .zone-bars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.zone-card {
  background: rgba(15, 23, 42, 0.85);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid #1E293B;
}

.zone-header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.76rem;
  margin-bottom: 0.45rem;
}

.progress-track {
  width: 100%;
  height: 0.45rem;
  background: #1E293B;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease, background-color 0.3s ease;
}

.sim-metrics-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.runtime-card {
  background: linear-gradient(145deg, #1E293B, #0F172A);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.runtime-big-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0.65rem 0 0.85rem;
}

.runtime-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
}

@media (min-width: 640px) {
  .runtime-number {
    font-size: 3rem;
  }
}

.savings-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.savings-box {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
  border: 1px solid #1E293B;
}

/* ==========================================================================
   DIASPORA ASSURANCE & RESIDENCE CONFIGURATOR
   ========================================================================== */
.diaspora-section {
  background: var(--bg-sandstone-warm);
}

.trust-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.75rem;
}

@media (min-width: 640px) {
  .trust-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .trust-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.trust-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.estimator-shell {
  margin-top: 3.5rem;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.estimator-top {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 1.75rem;
  border-bottom: 1px solid #1E293B;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .estimator-top {
    padding: 2.25rem 2.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.tier-selector-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tier-btn {
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  background: var(--bg-card-dark);
  color: var(--text-muted-light);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tier-btn.active {
  background: var(--accent-amber);
  color: var(--bg-dark);
  font-weight: 700;
}

.estimator-body {
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .estimator-body {
    padding: 2.5rem;
    grid-template-columns: 7fr 5fr;
  }
}

.est-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1.35rem;
}

@media (min-width: 640px) {
  .est-specs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.est-spec-tile {
  padding: 0.95rem;
  border-radius: var(--radius-lg);
  background: var(--bg-sandstone);
  border: 1px solid var(--border-light);
}

.est-summary-box {
  background: var(--bg-sandstone-warm);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.est-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #CBD5E1;
}

.btn-dark-full {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-dark);
  color: var(--bg-white);
  border: none;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-dark-full:hover {
  background: var(--bg-card-dark);
}

/* ==========================================================================
   CTA BANNER & FOOTER
   ========================================================================== */
.cta-banner {
  padding: 4.5rem 0;
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
}

.site-footer {
  background: var(--bg-darker);
  color: var(--text-subtle-light);
  border-top: 1px solid #1E293B;
  padding: 3.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #1E293B;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.875rem;
}

.footer-list a:hover {
  color: var(--bg-white);
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  color: var(--bg-white);
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.2s ease;
}

.linkedin-link:hover {
  border-color: var(--accent-amber-bright);
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: #64748B;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==========================================================================
   CONSULTATION MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  background: var(--bg-white);
  color: var(--text-dark);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 34rem;
  padding: 1.75rem;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 640px) {
  .modal-card {
    padding: 2.25rem;
  }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: #F1F5F9;
  color: var(--text-muted-dark);
  font-weight: 700;
  cursor: pointer;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.35rem;
}

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

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #334155;
  margin-bottom: 0.35rem;
}

.field-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid #CBD5E1;
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 0.875rem;
}

.field-input:focus {
  border-color: var(--accent-amber);
  outline: none;
}
