/* ==========================================================================
   NYLASTRA AI DESIGN SYSTEM
   Nylastra FargoSUP™ - Predictive Maintenance for Smart Office Infrastructure
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Nylastra Clean Light Color Palette */
  --bg-page: #f8fafd;
  --bg-card: #ffffff;
  --bg-card-subtle: #f6f8fc;
  --bg-input: #ffffff;
  --bg-hover: #f1f5f9;

  /* Typography Colors */
  --text-title: #212b36;
  --text-heading: #243757;
  --text-body: #2d446c;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-white: #ffffff;

  /* Nylastra Brand Blues & Accents */
  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-primary-light: #eff6ff;
  --brand-primary-subtle: #dbeafe;
  --brand-indigo: #4f46e5;
  
  --border-light: #e2e8f0;
  --border-blue: #bbd1f0;
  --border-focus: #2563eb;

  /* Status Colors */
  --status-emerald: #10b981;
  --status-emerald-bg: #ecfdf5;
  --status-emerald-border: #a7f3d0;
  --status-amber: #f59e0b;
  --status-amber-bg: #fffbeb;
  --status-amber-border: #fde68a;
  --status-rose: #ef4444;
  --status-rose-bg: #fef2f2;
  --status-rose-border: #fecaca;
  --status-cyan: #0284c7;
  --status-cyan-bg: #f0f9ff;
  --status-cyan-border: #bae6fd;

  /* Fonts */
  --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  /* Shadows */
  --shadow-card: 0 17px 34px 0 rgba(145, 158, 171, 0.16);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(145, 158, 171, 0.12);
  --shadow-hover: 0 20px 40px -10px rgba(37, 99, 235, 0.15);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-page);
}

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

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-title);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 0.75rem;
  text-align: center;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-title);
}

p {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.6;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  outline: none;
  font-family: var(--font-main);
}

.btn-primary {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-title);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-card-subtle);
  border-color: var(--border-blue);
  transform: translateY(-2px);
}

.btn-outline-blue {
  background: transparent;
  color: var(--brand-primary);
  border: 1px solid var(--border-blue);
}

.btn-outline-blue:hover {
  background: var(--brand-primary-light);
  border-color: var(--brand-primary);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

/* Nylastra Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-blue {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary-subtle);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--status-emerald);
  border-radius: 50%;
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-title);
}

.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.brand-logo-text {
  letter-spacing: -0.03em;
}

.brand-accent {
  color: var(--brand-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-body);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--brand-primary);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-login-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-body);
  transition: var(--transition);
}

.nav-login-link:hover {
  color: var(--brand-primary);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 3.5rem;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #eef5ff 0%, var(--bg-page) 65%);
}

.hero-content {
  max-width: 920px;
  margin: 0 auto;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--text-body);
  margin-bottom: 2.2rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

/* Hero Stats Strip */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 1.75rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  margin-bottom: 3rem;
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
  border-right: 1px solid var(--border-light);
}

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

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.stat-number.blue {
  color: var(--brand-primary);
}

.stat-number.emerald {
  color: var(--status-emerald);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sections */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-subtle {
  background-color: var(--bg-card-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.fullwidth-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-pill-tag {
  display: inline-block;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary-subtle);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  letter-spacing: 0.04em;
}

.fullwidth-heading .title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.fullwidth-heading .desc {
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* Interactive Dashboard (The Digital Twin Component) */
.dashboard-mockup-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card-subtle);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.dash-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-body);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}

.dash-tab-btn.active {
  background: #ffffff;
  color: var(--brand-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Building Campus Header Banner */
.building-visual-banner {
  position: relative;
  height: 190px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
  transition: background-image 0.5s ease;
}

.building-visual-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(33, 43, 54, 0.2) 0%, rgba(33, 43, 54, 0.85) 100%);
}

.banner-meta-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  flex-wrap: wrap;
  gap: 1rem;
}

.banner-title-group h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.banner-title-group p {
  color: #e2e8f0;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.banner-telemetry-chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.banner-chip {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-title);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Subsystems Grid */
.subsystems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  padding: 1.75rem;
  background: #f8fafd;
}

.equipment-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.equipment-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-blue);
  box-shadow: var(--shadow-md);
}

.equipment-card.warning-state {
  border-color: var(--status-amber-border);
  background: var(--status-amber-bg);
}

.equipment-card.alert-state {
  border-color: var(--status-rose-border);
  background: var(--status-rose-bg);
}

.card-header-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.equip-type-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
}

.equip-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-title);
}

.health-badge {
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.health-badge.optimal {
  background: var(--status-emerald-bg);
  color: var(--status-emerald);
  border: 1px solid var(--status-emerald-border);
}

.health-badge.warning {
  background: var(--status-amber-bg);
  color: var(--status-amber);
  border: 1px solid var(--status-amber-border);
}

.health-badge.critical {
  background: var(--status-rose-bg);
  color: var(--status-rose);
  border: 1px solid var(--status-rose-border);
}

.telemetry-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  padding: 0.75rem;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.metric-box {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.metric-value {
  font-size: 0.95rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-title);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.fill-emerald {
  background: var(--status-emerald);
}

.fill-amber {
  background: var(--status-amber);
}

.fill-rose {
  background: var(--status-rose);
}

.diagnostic-note {
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 3px solid var(--brand-primary);
  border: 1px solid var(--border-light);
  border-left-width: 3px;
}

.diagnostic-note.warn {
  border-left-color: var(--status-amber);
  background: #ffffff;
}

.dash-footer-strip {
  padding: 1rem 1.75rem;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.ticker-text {
  font-family: var(--font-mono);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

/* 3-Card Grid (Structure, Understand & Accessibility) */
.structure-understand-accessibility {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.structure-understand-accessibility .card {
  background: #f6f8fc;
  border: 1px solid #bbd1f0;
  border-radius: 20px;
  padding: 2.25rem !important;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.structure-understand-accessibility .card:hover {
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.nylastra-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(187, 209, 240, 0.4);
}

.nylastra-card-icon.emerald {
  color: var(--status-emerald);
}

.nylastra-card-icon.indigo {
  color: var(--brand-indigo);
}

.nylastra-card-title {
  color: #212b36;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.nylastra-card-desc {
  color: #2d446c;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.nylastra-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nylastra-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: #ffffff;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  color: var(--text-body);
}

/* Interactive ROI Calculator Section (Light Theme) */
.calc-container-light {
  background: #ffffff;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-card);
}

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

.calc-control-group {
  margin-bottom: 1.8rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.calc-label-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-title);
}

.calc-label-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-primary);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--brand-primary-hover);
}

.calc-results-card-light {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.calc-result-lead {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.calc-hero-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.calc-breakdown-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  text-align: left;
}

.breakdown-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-title);
}

.breakdown-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Protocols Banner */
.protocols-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-top: 3.5rem;
}

.protocol-tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-title);
}

.protocol-tag svg {
  width: 20px;
  height: 20px;
  color: var(--brand-primary);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-blue);
}

.pricing-card.featured {
  border: 2px solid var(--brand-primary);
  box-shadow: var(--shadow-hover);
}

.pricing-badge-top {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-full);
}

.price-title {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.price-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.price-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-feature-list {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.price-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 0.85rem;
}

.price-feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--status-emerald);
  flex-shrink: 0;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(33, 43, 54, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.modal-dialog {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modal-enter 0.3s ease;
}

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.45rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-title);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Modern Footer */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 4.5rem 0 2.5rem;
  background: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand-p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-title);
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-body);
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
  .structure-understand-accessibility, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
