:root {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --surface-dark: #0f172a;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --ok-bg: #ecfdf5;
  --ok-border: #a7f3d0;
  --ok-txt: #047857;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* Header & Navigation */
header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.nav-cta {
  background: var(--surface-dark);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}
.nav-links a.nav-cta:hover { background: #1e293b; color: #fff; }

/* Hero */
.hero {
  padding: 68px 0 56px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 80% 20%, #eff6ff 0%, transparent 55%);
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok-txt);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

h1 {
  font-size: 2.55rem;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -0.025em;
  font-weight: 800;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  font-weight: 700;
}

.section-head { max-width: 680px; margin-bottom: 34px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

p.lead {
  font-size: 1.07rem;
  color: var(--muted);
  margin-bottom: 26px;
}

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--primary-hover); }

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { background: var(--bg-alt); }

.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-md);
}
.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}
.hero-caption {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--subtle);
  padding: 12px 4px 2px;
}

/* Metrics Bar */
.metrics-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.metric-item strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.metric-item span { font-size: 0.87rem; color: var(--muted); }

/* Sections */
.section { padding: 68px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 32px;
  align-items: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card h3 { font-size: 1.08rem; margin-bottom: 9px; font-weight: 700; }
.card p { color: var(--muted); font-size: 0.93rem; }
.card ul { margin-top: 14px; padding-left: 18px; color: var(--muted); font-size: 0.9rem; }
.card ul li { margin-bottom: 6px; }

/* Architecture / Photo Split */
.media-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.media-card img { width: 100%; height: auto; display: block; }
.media-card-body { padding: 18px 22px; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--border); }

.step-list { list-style: none; display: grid; gap: 18px; margin-top: 20px; }
.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 18px;
  border-radius: 12px;
}
.step-num {
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-item h4 { font-size: 0.98rem; margin-bottom: 4px; }
.step-item p { font-size: 0.89rem; color: var(--muted); }

/* Regions Table */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.92rem; }
th, td { padding: 14px 20px; border-bottom: 1px solid var(--border); }
th { background: var(--bg-alt); font-weight: 600; color: var(--text); font-size: 0.83rem; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }
.tag-ok {
  display: inline-block;
  background: var(--ok-bg);
  color: var(--ok-txt);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 2px 9px;
  border-radius: 999px;
}

/* Interactive Calculator */
.calc-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.calc-controls { display: grid; gap: 20px; margin: 18px 0; }
.calc-row label { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.94rem; margin-bottom: 8px; }
.calc-row input[type="range"] { width: 100%; accent-color: var(--primary); }
.calc-summary {
  background: var(--surface-dark);
  color: #fff;
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.calc-total { font-size: 2rem; font-weight: 800; }
.calc-sub { font-size: 0.85rem; color: #94a3b8; }

/* Pricing */
.price { font-size: 2.1rem; font-weight: 800; margin: 12px 0; color: var(--text); letter-spacing: -0.02em; }
.price span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.card.featured { border: 2px solid var(--primary); position: relative; }
.featured-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Code & Docs */
pre {
  background: var(--surface-dark);
  color: #e2e8f0;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 14px 0 24px;
  border: 1px solid #1e293b;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

/* FAQ Accordion */
.faq-list { display: grid; gap: 12px; }
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}
details.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 0.97rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item p { margin-top: 12px; color: var(--muted); font-size: 0.92rem; }

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 52px 0 32px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-col h4 { color: var(--text); font-size: 0.9rem; margin-bottom: 12px; font-weight: 700; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--subtle);
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2rem; }
}
