/* ==========================================================================
   RIDGEWELL SUPPLY CO., LLC - BRAND & DESIGN SYSTEM
   ========================================================================== */

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

:root {
  /* Color Palette matching Electric Blue Logo */
  --bg-dark: #07090e;
  --bg-surface: #0d111a;
  --bg-card: rgba(16, 22, 34, 0.65);
  --bg-card-hover: rgba(25, 34, 52, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-glow: rgba(37, 59, 255, 0.35);

  --accent-blue: #253bff;
  --accent-blue-light: #4f63ff;
  --accent-cyan: #00f0ff;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  
  --gradient-primary: linear-gradient(135deg, #253bff 0%, #00f0ff 100%);
  --gradient-dark: linear-gradient(180deg, rgba(7, 9, 14, 0.8) 0%, #07090e 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(37, 59, 255, 0.18) 0%, transparent 70%);

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --glow-shadow: 0 0 30px rgba(37, 59, 255, 0.3);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Ambient Lighting */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 59, 255, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  animation: floatGlow 18s ease-in-out infinite alternate;
}

.ambient-glow-2 {
  position: absolute;
  top: 40%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
  filter: blur(90px);
  animation: floatGlow 15s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* Layout Utilities */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 6rem 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(37, 59, 255, 0.12);
  border: 1px solid rgba(37, 59, 255, 0.3);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 680px;
  margin-bottom: 3rem;
}

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

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 10px 25px -5px rgba(37, 59, 255, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(37, 59, 255, 0.75);
}

.nav-links a.btn-primary {
  color: #ffffff !important;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.nav-links a.btn-primary:hover {
  color: #ffffff !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background-color: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--glass-border);
  padding: 0.85rem 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo img {
  height: 60px;
  width: auto;
  object-fit: cover;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: block;
}

.brand-svg-fallback {
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.brand-title-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: #07090e;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.brand-title-text span {
  font-size: 0.65rem;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding-top: 10rem;
  padding-bottom: 6rem;
  position: relative;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(37, 59, 255, 0.1);
  border: 1px solid rgba(37, 59, 255, 0.25);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 2rem;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

/* Hero Stats Bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.stat-item {
  text-align: center;
  border-right: 1px solid var(--glass-border);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Enhanced Model Comparison Cards */
.model-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}

.model-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.traditional-card {
  background: linear-gradient(180deg, rgba(22, 16, 24, 0.75) 0%, rgba(13, 17, 26, 0.88) 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.traditional-card:hover {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 15px 35px -10px rgba(239, 68, 68, 0.15);
}

.ridgewell-card {
  background: linear-gradient(160deg, rgba(37, 59, 255, 0.18) 0%, rgba(13, 17, 26, 0.95) 100%);
  border: 1.5px solid rgba(37, 59, 255, 0.55);
  box-shadow: 0 0 45px rgba(37, 59, 255, 0.25);
}

.ridgewell-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 55px rgba(0, 240, 255, 0.35);
  transform: translateY(-4px);
}

.model-card-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--gradient-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(37, 59, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.model-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-success {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.model-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.model-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 2rem;
}

.model-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

.model-item-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.model-item-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.highlight-row {
  background: rgba(37, 59, 255, 0.08);
  border: 1px solid rgba(37, 59, 255, 0.22);
}

.highlight-row:hover {
  background: rgba(37, 59, 255, 0.16);
  border-color: rgba(0, 240, 255, 0.4);
}

.item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.icon-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.icon-success {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.item-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.item-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.item-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Revenue Calculator Section */
.calculator-box {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.range-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.range-label {
  font-weight: 600;
  color: var(--text-main);
}

.range-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

input[type="range"] {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(37, 59, 255, 0.8);
  cursor: pointer;
  transition: var(--transition);
}

.calc-results {
  background: linear-gradient(135deg, rgba(37, 59, 255, 0.12) 0%, rgba(0, 240, 255, 0.05) 100%);
  border: 1px solid rgba(37, 59, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
}

.result-heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.result-amount {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.result-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

.breakdown-item .b-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

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

/* Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 59, 255, 0.5);
  box-shadow: 0 15px 30px -10px rgba(37, 59, 255, 0.2);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(37, 59, 255, 0.15);
  border: 1px solid rgba(37, 59, 255, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Testimonials / Client Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.review-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--accent-blue);
}

.reviewer-info h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;

}

.reviewer-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-stars {
  color: #fbbf24;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 3px;
}

.review-quote {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.review-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
}

/* Contact & Consultation Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(37, 59, 255, 0.12);
  border: 1px solid rgba(37, 59, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-details h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.info-details p, .info-details a {
  color: var(--text-main);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(20px);
}

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 15px rgba(37, 59, 255, 0.25);
}

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

/* Legal Documents Modal & Drawer System */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.legal-modal {
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  background: #0d111a;
  border: 1px solid var(--glass-border-glow);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 1.5rem 2rem;
  background: rgba(16, 22, 34, 0.9);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-tabs {
  display: flex;
  gap: 1rem;
}

.modal-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-tab-btn.active {
  color: var(--text-main);
  background: rgba(37, 59, 255, 0.2);
  border: 1px solid rgba(37, 59, 255, 0.4);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 2.5rem 2rem;
  overflow-y: auto;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-section {
  display: none;
}

.legal-section.active {
  display: block;
}

.legal-section h2 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.legal-section h3 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-section p, .legal-section ul {
  margin-bottom: 1.25rem;
}

.legal-section ul {
  padding-left: 1.5rem;
}

.legal-box {
  background: rgba(37, 59, 255, 0.08);
  border-left: 4px solid var(--accent-blue);
  padding: 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

/* Footer */
footer {
  background: #040609;
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1.25rem;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(16, 185, 129, 0.95);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-weight: 600;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-title { font-size: 3rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
  .model-grid { grid-template-columns: 1fr; }
  .calculator-box { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .services-grid, .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .modal-tabs { flex-wrap: wrap; }
}
