/* MeasurIQ Design System & Production Stylesheet
   Aligned with MeasurIQ Android theme tokens (AppColors & AppSemanticColors) */

:root {
  color-scheme: light;
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Site Daylight tokens */
  --bg: #fcfcf8;
  --bg-elevated: #ffffff;
  --bg-muted: #f1f3ee;
  --bg-subtle: #e7ebe3;
  --text: #111816;
  --text-muted: #48524f;
  --text-subtle: #66736f;
  --border: #dce2da;
  --border-strong: #c2ccc1;

  /* Brand & Blueprint accents */
  --brand: #256a5f;
  --brand-hover: #1c534a;
  --brand-ink: #ffffff;
  --brand-soft: rgba(37, 106, 95, 0.1);

  --blueprint-bg: #050d1e;
  --blueprint-surface: #0b162c;
  --blueprint-surface-2: #10203d;
  --blueprint-border: rgba(125, 180, 255, 0.16);
  --blueprint-cyan: #00d4c8;
  --blueprint-azure: #1d8cf8;

  /* Semantic tokens */
  --success: #12633a;
  --success-bg: #cfeedb;
  --info: #155ea8;
  --info-bg: #d7e9ff;
  --caution: #7a4f00;
  --caution-bg: #ffe2a8;
  --warning: #b3261e;
  --warning-bg: #ffdad6;
  --sync: #315d7c;
  --sync-bg: #d7e7f2;

  /* Shadows & Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 22, 0.04), 0 1px 3px rgba(17, 24, 22, 0.06);
  --shadow-md: 0 10px 28px -8px rgba(17, 24, 22, 0.09), 0 4px 12px -4px rgba(17, 24, 22, 0.05);
  --shadow-lg: 0 24px 56px -14px rgba(4, 14, 39, 0.35);

  --nav-height: 70px;
  --container-max: 1180px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1214;
  --bg-elevated: #121c20;
  --bg-muted: #182529;
  --bg-subtle: #1f2f34;
  --text: #eaf2ef;
  --text-muted: #adc0ba;
  --text-subtle: #7f948e;
  --border: rgba(179, 192, 188, 0.14);
  --border-strong: rgba(179, 192, 188, 0.26);

  --brand: #00d4c8;
  --brand-hover: #2be6db;
  --brand-ink: #041b1a;
  --brand-soft: rgba(0, 212, 200, 0.12);

  --success: #6fe0a0;
  --success-bg: #0d4427;
  --info: #8ec5ff;
  --info-bg: #0a3866;
  --caution: #ffc14d;
  --caution-bg: #4a3100;
  --warning: #ff8a80;
  --warning-bg: #5c1410;
  --sync: #8ec6ea;
  --sync-bg: #1a3a4f;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 14px 32px -10px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

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

a {
  color: inherit;
}

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

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--blueprint-cyan);
  color: #041514;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
}

/* ========================
   Sticky Navigation Header
   ======================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(5, 13, 30, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(125, 180, 255, 0.14);
  color: #f1f5f9;
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  color: #ffffff;
  flex-shrink: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(0, 212, 200, 0.28);
  box-shadow: 0 0 18px rgba(0, 212, 200, 0.2);
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 212, 200, 0.14);
  color: var(--blueprint-cyan);
  border: 1px solid rgba(0, 212, 200, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: #cbd5e1;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 212, 200, 0.45);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blueprint-cyan), var(--blueprint-azure));
  color: #031521;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 212, 200, 0.25);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  z-index: 99;
  background: rgba(5, 13, 30, 0.97);
  backdrop-filter: blur(18px);
  padding: 20px 24px 36px;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.mobile-drawer a.active {
  border-color: rgba(0, 212, 200, 0.4);
  color: var(--blueprint-cyan);
}

@media (max-width: 1080px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
}

/* ========================
   Buttons & Shared UI
   ======================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blueprint-cyan), var(--blueprint-azure));
  color: #031521;
  box-shadow: 0 10px 24px -6px rgba(0, 212, 200, 0.42);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-brand {
  background: var(--brand);
  color: var(--brand-ink);
}

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

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.28);
  color: #f1f5f9;
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 212, 200, 0.45);
}

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

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.section {
  padding: 88px 0;
}

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

.section-header {
  max-width: 700px;
  margin-bottom: 48px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-lead {
  margin: 0;
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .section-header {
    margin-bottom: 32px;
  }
}

/* ========================
   Blueprint Hero Section
   ======================== */

.hero {
  position: relative;
  background:
    radial-gradient(circle at 76% 24%, rgba(0, 212, 200, 0.18), transparent 46%),
    radial-gradient(circle at 20% 80%, rgba(29, 140, 248, 0.16), transparent 45%),
    linear-gradient(165deg, #040b1a 0%, #07142b 58%, #0a1f33 100%);
  color: #f8fafc;
  padding: 64px 0 76px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 212, 200, 0.18);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(96, 165, 250, 0.065) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(96, 165, 250, 0.065) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 92%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 52px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero {
    padding: 48px 0 60px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 212, 200, 0.1);
  border: 1px solid rgba(0, 212, 200, 0.28);
  color: #99f6e4;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blueprint-cyan);
  box-shadow: 0 0 0 4px rgba(0, 212, 200, 0.22);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 4.4vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #ffffff;
}

.hero h1 .accent-gradient {
  background: linear-gradient(92deg, #43f3e6 0%, #5bb2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0 0 30px;
  font-size: 1.12rem;
  color: #cbd5e1;
  max-width: 560px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  max-width: 560px;
}

@media (max-width: 560px) {
  .hero-proof {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.proof-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.proof-item span {
  font-size: 0.82rem;
  color: #94a3b8;
}

/* ========================
   Interactive Device Frame
   ======================== */

.device-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.device-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
}

.device-switch-btn {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.device-switch-btn[aria-selected="true"] {
  background: rgba(0, 212, 200, 0.16);
  color: var(--blueprint-cyan);
}

.phone-shell {
  width: 100%;
  max-width: 356px;
  background: linear-gradient(180deg, #1b2436 0%, #0d1320 100%);
  border-radius: 38px;
  padding: 11px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow:
    0 32px 64px -16px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.phone-screen {
  background: #fcfcf8;
  color: #111816;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #48524f;
  background: #f6f8f3;
}

.phone-camera {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #0f172a;
}

.phone-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px;
  background: #f6f8f3;
  border-bottom: 1px solid #e4e9e1;
}

.phone-appbar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.98rem;
  color: #111816;
}

.phone-appbar-title img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: #cfeedb;
  color: #12633a;
}

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

.phone-panel {
  display: none;
  flex-direction: column;
  gap: 10px;
  animation: panelFade 0.2s ease;
}

.phone-panel.active {
  display: flex;
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-mini-card {
  background: #ffffff;
  border: 1px solid #e3e8e0;
  border-radius: 14px;
  padding: 12px;
}

.app-mini-card.teal {
  background: linear-gradient(135deg, #256a5f 0%, #194d45 100%);
  color: #ffffff;
  border-color: transparent;
}

.app-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.app-kpi {
  background: #f1f3ee;
  border-radius: 11px;
  padding: 9px 10px;
}

.app-kpi small {
  display: block;
  font-size: 0.68rem;
  color: #48524f;
  font-weight: 600;
}

.app-kpi strong {
  font-size: 0.96rem;
  color: #111816;
}

.app-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eef1ec;
  font-size: 0.78rem;
}

.app-list-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.status-tag {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.status-tag.approved {
  background: #cfeedb;
  color: #12633a;
}

.status-tag.draft {
  background: #ffe2a8;
  color: #7a4f00;
}

.status-tag.info {
  background: #d7e9ff;
  color: #155ea8;
}

.calc-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.calc-mini-tile {
  background: #ffffff;
  border: 1px solid #e3e8e0;
  border-radius: 12px;
  padding: 10px;
}

.calc-mini-tile span {
  display: block;
  font-size: 0.77rem;
  font-weight: 700;
  color: #111816;
}

.calc-mini-tile small {
  font-size: 0.68rem;
  color: #48524f;
}

/* Signature MeasurIQ Floating Bottom Navigation (center Home FAB) */
.phone-bottom-nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: #ffffff;
  border-top: 1px solid #e3e8e0;
  padding: 7px 6px 9px;
}

.phone-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 0;
}

.phone-nav-item.active {
  color: #256a5f;
}

.phone-nav-item.active svg {
  stroke-width: 2.5;
}

.phone-nav-home {
  width: 42px;
  height: 42px;
  margin: -18px auto 0;
  border-radius: 50%;
  background: #e7ebe3;
  color: #48524f;
  border: 3px solid #fcfcf8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.phone-nav-home.active {
  background: #256a5f;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(37, 106, 95, 0.35);
}

/* ========================
   Architecture Metrics Bar
   ======================== */

.metrics-strip {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

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

@media (max-width: 840px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-box {
  padding: 8px 12px;
  border-left: 3px solid var(--brand);
}

.metric-box strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.metric-box span {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ========================
   Live Calculator Workbench
   ======================== */

.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.calc-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.16s ease;
}

.calc-tab:hover {
  border-color: var(--brand);
  color: var(--text);
}

.calc-tab[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}

.workbench {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.workbench.active {
  display: grid;
}

@media (max-width: 900px) {
  .workbench {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

@media (max-width: 520px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}

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

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

.field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.field-label span.unit-hint {
  font-weight: 600;
  color: var(--text-subtle);
  font-size: 0.78rem;
}

.input-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-row:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.input-row input,
.input-row select {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
}

.input-row select {
  width: auto;
  min-width: 76px;
  border-left: 1px solid var(--border);
  background: var(--bg-muted);
  cursor: pointer;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  border-color: var(--brand);
  color: var(--text);
}

.chip-btn.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.output-card {
  background: linear-gradient(160deg, #061024 0%, #0b1933 100%);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(0, 212, 200, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.output-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
}

.copy-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-mini-btn:hover {
  border-color: var(--blueprint-cyan);
  color: var(--blueprint-cyan);
}

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

@media (max-width: 460px) {
  .output-metrics {
    grid-template-columns: 1fr;
  }
}

.output-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-md);
  padding: 14px;
}

.output-tile.highlight {
  background: rgba(0, 212, 200, 0.1);
  border-color: rgba(0, 212, 200, 0.34);
}

.output-tile small {
  display: block;
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 4px;
}

.output-tile strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
}

.output-tile.highlight strong {
  color: var(--blueprint-cyan);
}

.output-tile span.sub {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  color: #cbd5e1;
}

.formula-box {
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.84rem;
  color: #cbd5e1;
}

.formula-box code {
  display: block;
  font-family: var(--font-mono);
  color: #99f6e4;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

/* ========================
   Bento Feature Grid
   ======================== */

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

@media (max-width: 960px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

.bento-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.bento-card.wide {
  grid-column: span 2;
}

@media (max-width: 620px) {
  .bento-card.wide {
    grid-column: span 1;
  }
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.bento-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.bento-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 6px;
}

.pill {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ========================
   Workflow Timeline & Security
   ======================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 940px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

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

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

@media (max-width: 860px) {
  .security-grid {
    grid-template-columns: 1fr;
  }
}

.sec-list {
  display: grid;
  gap: 14px;
}

.sec-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.sec-item strong {
  display: block;
  font-size: 0.96rem;
  margin-bottom: 3px;
}

.sec-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ========================
   FAQ Accordion & CTA
   ======================== */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.faq-trigger:hover {
  background: var(--bg-muted);
}

.faq-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--brand);
}

.faq-panel {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

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

.cta-banner {
  background:
    radial-gradient(circle at 85% 20%, rgba(0, 212, 200, 0.2), transparent 50%),
    linear-gradient(145deg, #050d1e 0%, #0b1b34 100%);
  color: #f8fafc;
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  border: 1px solid rgba(0, 212, 200, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 640px) {
  .cta-banner {
    padding: 32px 22px;
  }
}

.cta-banner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
}

.cta-banner p {
  margin: 0;
  color: #cbd5e1;
  max-width: 560px;
}

/* ========================
   Subpages (Legal / Support)
   ======================== */

.page-hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(0, 212, 200, 0.14), transparent 45%),
    linear-gradient(165deg, #050d1e 0%, #0a1830 100%);
  color: #f8fafc;
  padding: 48px 0 44px;
  border-bottom: 1px solid rgba(0, 212, 200, 0.16);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #94a3b8;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--blueprint-cyan);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-hero p.lead {
  margin: 0;
  max-width: 680px;
  color: #cbd5e1;
  font-size: 1.04rem;
}

.meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.24);
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
}

.doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  padding: 48px 0 76px;
  align-items: start;
}

@media (max-width: 900px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0 56px;
  }
}

.toc-card {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

@media (max-width: 900px) {
  .toc-card {
    position: static;
  }
}

.toc-card h2 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}

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

.toc-list a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.toc-list a:hover {
  background: var(--bg-muted);
  color: var(--brand);
}

.doc-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .doc-card {
    padding: 22px 18px;
  }
}

.doc-card h2 {
  margin: 34px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

.doc-card h2:first-of-type {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}

.doc-card h3 {
  margin: 20px 0 8px;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--text);
}

.doc-card p,
.doc-card li {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.doc-card strong {
  color: var(--text);
}

.doc-card ul,
.doc-card ol {
  padding-left: 20px;
}

.doc-card li {
  margin-bottom: 8px;
}

.doc-card a.text-link {
  color: var(--brand);
  font-weight: 600;
  text-underline-offset: 3px;
}

.callout {
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 18px 0;
  border: 1px solid var(--border);
  background: var(--bg-muted);
}

.callout.info {
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
}

.callout.warn {
  border-left: 4px solid var(--caution);
  background: var(--caution-bg);
  color: var(--caution);
}

.callout.warn strong,
.callout.warn p {
  color: inherit;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

@media (max-width: 720px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

.compare-box {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 18px;
  background: var(--bg);
}

.compare-box.danger {
  border-color: rgba(179, 38, 30, 0.35);
}

.compare-box h3 {
  margin-top: 0;
}

/* Support form */
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  padding: 48px 0 76px;
}

@media (max-width: 880px) {
  .support-grid {
    grid-template-columns: 1fr;
    padding: 32px 0 56px;
  }
}

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ========================
   Footer
   ======================== */

.site-footer {
  background: #050d1e;
  color: #cbd5e1;
  border-top: 1px solid rgba(125, 180, 255, 0.14);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-bottom: 40px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--blueprint-cyan);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Toast notification */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: #0b1933;
  color: #f8fafc;
  border: 1px solid rgba(0, 212, 200, 0.45);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ========================
   100x UX Enhancements
   ======================== */

/* Hero Telemetry Chips cleanly placed below phone frame */
.device-telemetry-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hero-float-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 19, 40, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 200, 0.28);
  color: #cbd5e1;
  font-size: 0.74rem;
  font-weight: 700;
}

.mini-action-btn {
  border: 1px solid #256a5f;
  background: rgba(37, 106, 95, 0.1);
  color: #256a5f;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mini-action-btn:hover {
  background: #256a5f;
  color: #ffffff;
}

.calc-mini-tile {
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.calc-mini-tile:hover {
  border-color: #256a5f;
  transform: translateY(-1px);
}

/* Range Slider Sync in Calculators */
.range-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.range-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
  cursor: pointer;
  height: 6px;
}

/* Dynamic CAD Blueprint SVG inside Output Card */
.blueprint-schematic {
  background: rgba(3, 9, 22, 0.72);
  border: 1px solid rgba(0, 212, 200, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.blueprint-schematic-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #7dd3fc;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.blueprint-schematic svg {
  width: 100%;
  height: 116px;
  display: block;
}

/* Sample BOQ Builder Panel */
.boq-builder {
  margin-top: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .boq-builder {
    padding: 18px 16px;
  }
}

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

.boq-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

.boq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.boq-table th {
  text-align: left;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-subtle);
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
}

.boq-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.boq-rate-input {
  width: 104px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
}

.boq-del-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-weight: 700;
}

.boq-del-btn:hover {
  border-color: var(--warning);
  color: var(--warning);
}

.boq-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
}

.boq-total-display {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--brand);
}

/* Bento Mini-UI Embedded Previews */
.bento-preview {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.bento-flow-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bento-flow-node {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.76rem;
}

.bento-flow-node strong {
  display: block;
  font-size: 0.78rem;
}

.bento-bar-row {
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
}

.bento-bar-label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

.bento-bar-track {
  height: 7px;
  border-radius: 999px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.bento-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
}

.pdf-sheet-mini {
  background: #ffffff;
  color: #111816;
  border: 1px solid #d5dcd3;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 4px 12px rgba(17, 24, 22, 0.06);
  font-size: 0.76rem;
}

.pdf-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #256a5f;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

/* Owner Web Portal Preview Card */
.portal-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .portal-card {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
}

.portal-browser-mock {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: #071122;
  color: #f1f5f9;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.portal-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #0d1a31;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.75rem;
}

.portal-dots {
  display: flex;
  gap: 6px;
}

.portal-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.45);
}

.portal-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

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

@media (max-width: 500px) {
  .portal-stat-grid {
    grid-template-columns: 1fr;
  }
}

.portal-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
}

.portal-stat small {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
}

.portal-stat strong {
  font-size: 1rem;
  color: #ffffff;
}

/* Modal Dialog (Early Access & Web Portal) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(4, 10, 24, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 500px;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

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

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Scroll Reveal */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Print / A4 BOQ Export Styling */
@media print {
  .site-header,
  .hero,
  .metrics-strip,
  .calc-tabs,
  .workbench,
  .bento-grid,
  .steps-grid,
  #capabilities,
  #workflow,
  #portal,
  #security,
  #faq,
  .cta-banner,
  .site-footer,
  .boq-del-btn,
  .no-print {
    display: none !important;
  }
  .boq-builder {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
}
