/* ==========================================================================
   Design System & Tokens: GajToSqFt Web Application
   ========================================================================== */

:root {
  --primary: #0f766e;
  --primary-hover: #0d9488;
  --primary-light: #ccfbf1;
  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
  --bg-main: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.75);
  --bg-card-alt: rgba(15, 23, 42, 0.6);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-light: rgba(255, 255, 255, 0.1);
  --border-primary: rgba(15, 118, 110, 0.4);
  --shadow-glow: 0 10px 30px -10px rgba(15, 118, 110, 0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Button Links & High Contrast Text */
a, a:visited {
  color: #2dd4bf;
  text-decoration: none;
}

a.btn, .btn, .btn-primary, .tool-suite-card a {
  display: inline-block !important;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%) !important;
  color: #ffffff !important;
  border: 1px solid #2dd4bf !important;
  padding: 8px 18px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.35) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

a.btn:hover, .btn:hover, .btn-primary:hover, .tool-suite-card a:hover {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(45, 212, 191, 0.5) !important;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 32px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  border-color: rgba(15, 118, 110, 0.5);
}

/* Badges & Typography */
.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(15, 118, 110, 0.2);
  border: 1px solid rgba(15, 118, 110, 0.5);
  color: #2dd4bf;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.badge-tag {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: #fff;
  line-height: 1.25;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.brand-logo .highlight {
  color: var(--accent-gold);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #2dd4bf;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.custom-select-sm {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  color: #2dd4bf;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

/* Hero Section & Grid */
.hero-section {
  position: relative;
  padding: 60px 0 80px;
}

.hero-bg-shapes {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.25) 0%, rgba(15, 23, 42, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.card-header h1 {
  margin-bottom: 8px;
}

.card-header .subtitle {
  margin-bottom: 24px;
}

/* Form Controls */
.input-group-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.input-field-container label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.input-box input {
  width: 100%;
  padding: 16px 80px 16px 20px;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: #fff;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-box input:focus {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.15);
}

.unit-label {
  position: absolute;
  right: 20px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
}

/* Slider */
.slider-container {
  background: rgba(15, 23, 42, 0.5);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.slider-header span:last-child {
  color: #2dd4bf;
}

.custom-range {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #334155;
  outline: none;
  accent-color: var(--primary-hover);
  cursor: pointer;
}

/* Presets & Buttons */
.preset-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.preset-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 4px;
  width: 100%;
}

.btn-pill {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pill:hover, .btn-pill.active {
  background: var(--primary);
  border-color: #2dd4bf;
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.4);
}

.btn-swap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed var(--accent-gold);
  color: var(--accent-gold);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-swap:hover {
  background: rgba(245, 158, 11, 0.2);
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.res-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.res-card.highlight-card {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.3) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(45, 212, 191, 0.5);
}

.res-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.res-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

.res-card.highlight-card .res-val {
  color: #2dd4bf;
}

.res-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* SVG Interactive Canvas Box */
.diagram-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.diagram-header {
  margin-bottom: 20px;
}

.diagram-header h3 {
  margin-bottom: 4px;
}

.interactive-canvas-container {
  flex: 1;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 320px;
}

.interactive-canvas-container svg {
  width: 100%;
  height: 100%;
  max-height: 340px;
}

.diagram-legend {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.legend-color.plot-color {
  background: rgba(15, 118, 110, 0.6);
  border: 1px solid #2dd4bf;
}

.legend-color.grid-color {
  background: rgba(245, 158, 11, 0.6);
  border: 1px solid var(--accent-gold);
}

/* Section Common Styling */
.content-section {
  padding: 80px 0;
}

.content-section.bg-alt {
  background: rgba(15, 23, 42, 0.5);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-title {
  max-width: 700px;
  margin: 0 auto 48px;
}

.text-center {
  text-align: center;
}

.section-title h2 {
  margin-bottom: 12px;
}

/* Section 2: Visual Math */
.visual-math-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.formula-box {
  background: rgba(15, 23, 42, 0.8);
  border-left: 4px solid var(--accent-gold);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
}

.formula-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.formula-eq {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.interactive-tile-control {
  margin: 24px 0 16px;
}

.tile-input-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0;
}

.val-badge {
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
}

.micro-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.live-math-breakdown {
  background: rgba(15, 118, 110, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.3);
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.grid-diagram-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.hint-tag {
  font-size: 0.8rem;
  color: var(--accent-gold);
}

.tile-matrix-canvas {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-matrix-canvas svg {
  width: 100%;
  height: 100%;
  max-height: 280px;
}

.tile-stats-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tile-stats-bar strong {
  color: #2dd4bf;
}

/* Section 3: Plot Matrix Tabs */
.plot-selector-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.tab-btn {
  padding: 12px 20px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover, .tab-btn.active {
  background: var(--primary);
  border-color: #2dd4bf;
  color: #fff;
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.4);
}

.blueprint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.spec-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.95rem;
}

.spec-list strong {
  color: #2dd4bf;
}

.blueprint-canvas-box {
  background: #0284c715;
  border: 1px solid #0284c740;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.blueprint-canvas-box svg {
  width: 100%;
  height: 100%;
  max-height: 280px;
}

.table-container {
  margin-top: 36px;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.custom-table th, .custom-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
}

.custom-table th {
  background: rgba(15, 23, 42, 0.8);
  color: #2dd4bf;
  font-weight: 700;
}

.custom-table tr.highlight-row {
  background: rgba(15, 118, 110, 0.15);
}

/* Section 4: Drawer */
.drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: center;
}

.control-field {
  margin-bottom: 20px;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.field-val {
  color: var(--accent-gold);
}

.drawer-calc-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.calc-row.main-result {
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  font-size: 1.1rem;
  font-weight: 700;
}

.txt-primary { color: #2dd4bf; }
.txt-gold { color: var(--accent-gold); }

.drawer-canvas-container {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
}

.canvas-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.aspect-tag {
  color: var(--accent-gold);
  font-weight: 600;
}

.drawer-canvas-container svg {
  width: 100%;
  height: 100%;
  max-height: 280px;
}

/* Section 5: Toggle */
.toggle-bar-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.btn-toggle {
  padding: 14px 28px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-toggle.active {
  background: var(--primary);
  border-color: #2dd4bf;
  color: #fff;
  box-shadow: 0 4px 20px rgba(15, 118, 110, 0.5);
}

.toggle-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.tip-card {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid var(--accent-gold);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-top: 20px;
  font-size: 0.9rem;
}

.toggle-svg-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.toggle-svg-box svg {
  width: 100%;
  height: 100%;
  max-height: 240px;
}

/* Section 6: Regional */
.state-select-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.state-select-header label {
  font-weight: 600;
  font-size: 1.05rem;
}

.custom-select-sm {
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(45, 212, 191, 0.5);
  color: #fff;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  margin-right: 12px;
}

.custom-select {
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid var(--border-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.regional-calc-header {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.reg-calc-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.reg-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 200px;
}

.reg-input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.regional-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.unit-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.unit-card:hover {
  transform: translateY(-4px);
  border-color: #2dd4bf;
}

.unit-card h4 {
  color: var(--accent-gold);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.unit-card .unit-equiv {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

/* 23 Tools Grid Suite */
.tools-grid-suite {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.tool-suite-card {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tool-suite-card:hover {
  transform: translateY(-4px);
  border-color: #2dd4bf;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.25);
}

.tool-card-head {
  margin-bottom: 16px;
}

.mini-diagram-box {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.mini-svg-canvas {
  width: 100%;
  max-height: 140px;
  display: block;
}

.tool-suite-card h3 {
  font-size: 1.15rem;
  margin: 4px 0 8px;
  color: #fff;
}

.tool-suite-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tool-mini-calc {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 16px;
}

.mini-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.mini-input-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.mini-input-box {
  display: flex;
  align-items: center;
}

.mini-input-box input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  outline: none;
}

.mini-input-box input:focus {
  border-color: #2dd4bf;
}

.mini-res-box {
  background: rgba(15, 118, 110, 0.15);
  border-left: 3px solid #2dd4bf;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.88rem;
}

.mini-res-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #2dd4bf;
}

/* FAQs Accordion */
.faq-accordion-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-display);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--accent-gold);
}

.faq-answer {
  padding: 0 24px 24px;
  display: none;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
.footer {
  background: #090d16;
  border-top: 1px solid var(--border-light);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;

}

.footer-brand p {
  margin-top: 12px;
  max-width: 320px;
  font-size: 0.9rem;
}

.footer-links h4 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #2dd4bf;
}

.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid, .visual-math-grid, .blueprint-grid, .drawer-grid, .toggle-view-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.6rem; }
  .results-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
