/* ============================================
   ASPHALT PRO CALC - PREMIUM STYLESHEET v2
   Refined: Mobile-first, Clean spacing, Professional SaaS
   ============================================ */

/* CSS Variables */
:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-tertiary: #1a1a1d;
  --bg-card: rgba(26, 26, 29, 0.85);
  --bg-glass: rgba(26, 26, 29, 0.55);
  --border-glass: rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --text-primary: #f5f5f7;
  --text-secondary: #bdbdc5;
  --text-muted: #a0a0aa;
  --accent-orange: #ff6b00;
  --accent-orange-light: #ff8533;
  --accent-orange-dark: #cc5500;
  --accent-glow: rgba(255, 107, 0, 0.1);
  --success: #34c759;
  --warning: #ff9500;
  --danger: #ff3b30;
  --info: #0a84ff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.35);
  --shadow-subtle: 0 0 20px rgba(255, 107, 0, 0.06);
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --section-gap: 70px;
  --section-padding: 24px;
}

/* Light Mode */
[data-theme="light"] {
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f0f2;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.04);
  --text-primary: #1d1d1f;
  --text-secondary: #424245;
  --text-muted: #86868b;
  --accent-glow: rgba(255, 107, 0, 0.07);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-subtle: 0 0 20px rgba(255, 107, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  will-change: auto;
  width: 100%;
}

input, select, textarea, button { 
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea { font-family: inherit; outline: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,107,0,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-orange); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes mobileNavIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fadeInUp { animation: fadeInUp 0.4s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.3s ease forwards; }
.animate-scaleIn { animation: scaleIn 0.3s ease forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }

.delay-1 { animation-delay: 0.05s; opacity: 0; }
.delay-2 { animation-delay: 0.1s; opacity: 0; }
.delay-3 { animation-delay: 0.15s; opacity: 0; }
.delay-4 { animation-delay: 0.2s; opacity: 0; }
.delay-5 { animation-delay: 0.25s; opacity: 0; }
.delay-6 { animation-delay: 0.3s; opacity: 0; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-floating {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px var(--section-padding);
  transition: all var(--transition-base);
  background: transparent;
}

.nav-floating.scrolled {
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--border-glass);
  padding: 10px var(--section-padding);
}

[data-theme="light"] .nav-floating.scrolled {
  background: rgba(245, 245, 247, 0.88);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width var(--transition-base);
  border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

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

.btn-theme {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 0.9rem;
}

.btn-theme:hover {
  background: var(--accent-orange);
  color: white;
  border-color: var(--accent-orange);
}

/* Buttons */
.btn-primary {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  box-shadow: 0 2px 12px rgba(255, 107, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.35);
}

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

.btn-secondary {
  padding: 10px 20px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent-orange);
}

.btn-outline {
  padding: 10px 20px;
  background: transparent;
  color: var(--accent-orange);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--accent-orange);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  background: var(--accent-orange);
  color: white;
}

.btn-large {
  padding: 13px 28px;
  font-size: 0.95rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.mobile-menu-btn.active { background: var(--accent-orange); color: white; border-color: var(--accent-orange); }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 62px;
  background: rgba(10, 10, 11, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  padding: 20px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  animation: mobileNavIn 0.3s ease;
}

.mobile-nav.active { display: flex; }

.mobile-nav a {
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  min-height: 48px;
}

.mobile-nav a:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.mobile-nav a:active { background: var(--accent-glow); color: var(--accent-orange); }

[data-theme="light"] .mobile-nav { background: rgba(245, 245, 247, 0.98); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 100px var(--section-padding) 50px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 107, 0, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 50%, rgba(255, 107, 0, 0.03) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 107, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 70%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  display: none;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-orange);
  border-radius: 50%;
  opacity: 0.2;
  animation: float 6s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.hero-left { padding-top: 20px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-orange);
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-orange);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.65;
}

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

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-avatars { display: flex; align-items: center; }

.trust-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
}

.trust-avatar:first-child { margin-left: 0; }

.trust-text { font-size: 0.82rem; color: var(--text-muted); }
.trust-text strong { color: var(--text-primary); font-weight: 700; }

/* Hero Calculator Card */
.hero-calculator { position: relative; }

.calc-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg), var(--shadow-subtle);
}

.calc-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.calc-card-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.calc-card-title { font-size: 1.05rem; font-weight: 700; }
.calc-card-subtitle { font-size: 0.78rem; color: var(--text-muted); }

/* Calculator Tabs */
.calc-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--bg-tertiary);
  padding: 3px;
  border-radius: 10px;
}

.calc-tab {
  flex: 1;
  padding: 9px 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.calc-tab.active {
  background: var(--accent-orange);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.25);
}

.calc-tab:hover:not(.active) {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.02);
}

/* Form Elements */
.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  height: 44px;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.form-input::placeholder { color: var(--text-muted); }

.form-select { appearance: none; cursor: pointer; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Shape Selector */
.shape-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.shape-btn {
  flex: 1;
  padding: 10px 8px;
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.shape-btn.active {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: var(--accent-glow);
}

.shape-btn:hover:not(.active) {
  border-color: var(--text-muted);
  color: var(--text-secondary);
}

/* Unit Toggle */
.unit-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.unit-toggle-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--bg-primary);
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition-base);
  border: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.toggle-switch.active { background: var(--accent-orange); }

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition-base);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.toggle-switch.active::after { transform: translateX(20px); }

/* Calc Result */
.calc-result {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.08), rgba(255, 107, 0, 0.02));
  border: 1px solid rgba(255, 107, 0, 0.12);
  border-radius: var(--radius-md);
}

.calc-result-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.calc-result-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.calc-result-unit {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.calc-result-breakdown {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.calc-breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.calc-breakdown-item span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section {
  padding: var(--section-gap) var(--section-padding);
  position: relative;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--accent-glow);
  border: 1px solid rgba(255, 107, 0, 0.12);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

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

.section-title .highlight {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
  contain: layout;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 0, 0.2);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.12), rgba(255, 107, 0, 0.04));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ============================================
   CALCULATOR SECTION
   ============================================ */
.calc-section {
  background: var(--bg-secondary);
  padding: 65px var(--section-padding);
}

.calc-main-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.calc-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.calc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.calc-panel-title { font-size: 1.1rem; font-weight: 700; }

.calc-panel-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.calc-action-btn {
  padding: 7px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.calc-action-btn:hover {
  background: var(--accent-orange);
  color: white;
  border-color: var(--accent-orange);
}

/* Sidebar Results */
.calc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.result-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.result-card-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.result-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.result-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.result-value.small { font-size: 1.2rem; }

.result-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Preset Buttons */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.preset-btn {
  padding: 9px 6px;
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.preset-btn:hover,
.preset-btn.active {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: var(--accent-glow);
}

/* Range Slider */
.range-container { margin-bottom: 14px; }

.range-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.range-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-orange);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent-orange);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
  transition: transform var(--transition-fast);
}

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

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--accent-orange);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: 60px var(--section-padding);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 0, 0.2);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 0, 0.15);
}

.testimonial-stars {
  color: var(--warning);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-name { font-weight: 700; font-size: 0.9rem; }
.testimonial-role { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover { border-color: rgba(255, 107, 0, 0.08); }

.faq-question {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  gap: 12px;
  min-height: 52px;
}

.faq-question:hover { color: var(--accent-orange); }

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  background: var(--accent-orange);
  color: white;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 20px 16px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.88rem;
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 0, 0.15);
}

.blog-image {
  height: 180px;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
}

.blog-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,11,0.7) 100%);
}

.blog-content { padding: 20px; }

.blog-tag {
  display: inline-block;
  padding: 3px 8px;
  background: var(--accent-glow);
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-title { color: var(--accent-orange); }

.blog-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.06), rgba(255, 107, 0, 0.01));
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--section-padding);
}

.cta-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.cta-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.65;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info-title { font-weight: 700; margin-bottom: 3px; font-size: 0.92rem; }
.contact-info-text { font-size: 0.85rem; color: var(--text-secondary); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.form-textarea:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 60px var(--section-padding) 28px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand { max-width: 280px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent-orange);
  color: white;
  border-color: var(--accent-orange);
}

.footer-column h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-legal a:hover { color: var(--accent-orange); }

/* ============================================
   STICKY MOBILE CTA - DISABLED
   ============================================ */
.sticky-cta {
  display: none !important;
}

/* ============================================
   CONTENT PAGES
   ============================================ */
.page-header {
  padding: 110px var(--section-padding) 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 107, 0, 0.05) 0%, transparent 60%);
}

.page-title {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.page-title .highlight {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--section-padding) 80px;
}

.page-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--text-primary);
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text-primary);
}

.page-content p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.page-content ul,
.page-content ol {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
  padding-left: 22px;
  font-size: 0.92rem;
}

.page-content li { margin-bottom: 6px; }

.page-content a {
  color: var(--accent-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover { color: var(--accent-orange-light); }
.page-content strong { color: var(--text-primary); }

.page-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.breadcrumbs a:hover { color: var(--accent-orange); }
.breadcrumbs .current { color: var(--text-secondary); }

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  top: 76px;
  right: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}

.toast {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  animation: slideInRight 0.3s ease;
  backdrop-filter: blur(12px);
  word-break: break-word;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }
.toast.removing { animation: fadeIn 0.2s ease reverse forwards; }

/* ============================================
   HISTORY PANEL
   ============================================ */
.history-panel {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-glass);
  z-index: 2000;
  transition: right var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.history-panel.active { right: 0; }

.history-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.history-title { font-size: 1rem; font-weight: 700; }

.history-close {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.history-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.history-item:hover { border-color: rgba(255, 107, 0, 0.15); }
.history-item-date { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 4px; }
.history-item-result { font-size: 1rem; font-weight: 700; color: var(--accent-orange); }
.history-item-details { font-size: 0.78rem; color: var(--text-secondary); margin-top: 3px; }

.history-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.history-overlay.active { opacity: 1; visibility: visible; }

/* Used By Section */
.used-by-section {
  padding: 50px var(--section-padding);
  background: var(--bg-primary);
}

.used-by-label {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 28px;
}

.used-by-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.4;
}

.used-by-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* How It Works Grid */
.how-it-works-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Print */
@media print {
  .nav-floating, .sticky-cta, .footer, .hero-bg,
  .calc-action-btn, .btn-primary, .btn-secondary { display: none !important; }
  body { background: white !important; color: black !important; padding-bottom: 0 !important; }
  .calc-panel, .result-card { border: 1px solid #ddd !important; background: white !important; }
}

/* ============================================
   RESPONSIVE DESIGN - TABLET
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .hero-left { padding-top: 0; }

  .calc-main-grid {
    grid-template-columns: 1fr;
  }
  
  .calc-sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .calc-sidebar > div:last-child { grid-column: 1 / -1; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .how-it-works-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  
  /* Used By */
  .used-by-grid { gap: 28px; }
  .used-by-brand { font-size: 1rem; }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-gap: 50px;
    --section-padding: 18px;
  }
  
  /* Nav */
  .nav-links { display: none; }
  .nav-actions .btn-primary { display: none; }
  .mobile-menu-btn { display: flex; }
  
  /* Hero */
  .hero { padding: 90px var(--section-padding) 40px; }
  .hero-title { font-size: 1.85rem; letter-spacing: -0.6px; }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 22px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary { width: 100%; justify-content: center; padding: 13px 20px; }
  
  /* Sections */
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: 1.6rem; }
  .section-desc { font-size: 0.9rem; }
  
  /* Grids */
  .features-grid,
  .how-it-works-grid,
  .testimonials-grid,
  .blog-grid { grid-template-columns: 1fr; gap: 14px; }
  
  .stats-grid { grid-template-columns: 1fr; gap: 10px; }
  .stat-card { padding: 22px 14px; }
  .stat-number { font-size: 1.8rem; }
  .stat-label { font-size: 0.78rem; }
  
  /* Cards */
  .feature-card, .testimonial-card { padding: 22px; }
  .blog-content { padding: 16px; }
  .blog-image { height: 150px; }
  
  /* Calculator */
  .calc-card { padding: 18px; }
  .calc-panel { padding: 18px; }
  .calc-panel-actions { width: 100%; }
  .calc-action-btn { padding: 6px 9px; font-size: 0.7rem; }
  
  .calc-sidebar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .calc-sidebar > div:last-child { grid-column: auto; }
  .result-card { padding: 16px; }
  .result-value { font-size: 1.4rem; }
  .result-value.small { font-size: 1.05rem; }
  
  .form-row { grid-template-columns: 1fr; }
  .preset-grid { grid-template-columns: repeat(2, 1fr); }
  
  .calc-tabs { gap: 3px; }
  .calc-tab { padding: 8px 5px; font-size: 0.72rem; }
  
  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .footer { padding: 40px var(--section-padding) 24px; }
  
  /* Pages */
  .page-header { padding: 90px var(--section-padding) 36px; }
  .page-title { font-size: 1.65rem; }
  .page-content { padding: 0 var(--section-padding) 60px; }
  .page-card { padding: 22px; }
  
  /* Contact */
  .contact-grid { gap: 20px; }
  .contact-form { padding: 22px; }
  
  /* Mobile nav */
  .mobile-nav { padding: 16px; top: 60px; }
  .mobile-nav a { padding: 12px 16px; font-size: 0.95rem; min-height: 46px; }
  
  /* Toast */
  .toast-container { right: 10px; left: 10px; max-width: none; }
  
  /* History */
  .history-panel { width: 100%; right: -100%; }
  
  /* Used By */
  .used-by-grid { gap: 24px; }
  .used-by-brand { font-size: 0.9rem; }

  .hero-particles,
  .hero-grid { display: none; }
}

/* ============================================
   RESPONSIVE DESIGN - SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
  :root { 
    --section-padding: 16px; 
    --section-gap: 45px;
  }
  
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.88rem; }
  
  .calc-card { padding: 16px; }
  .calc-panel { padding: 16px; }
  .calc-panel-header { flex-direction: column; align-items: flex-start; }
  .calc-panel-actions { width: 100%; justify-content: flex-start; }
  
  .shape-selector { flex-wrap: wrap; }
  .shape-btn { flex: 1 1 calc(50% - 3px); padding: 10px 6px; font-size: 0.75rem; }
  
  .unit-toggle { flex-wrap: wrap; justify-content: center; }
  .unit-toggle-label { font-size: 0.72rem; }
  
  .preset-grid { grid-template-columns: repeat(2, 1fr); }
  
  .calc-sidebar { grid-template-columns: 1fr; }
  .calc-sidebar > div:last-child { grid-column: auto; }
  
  .stats-grid { grid-template-columns: 1fr; gap: 8px; }
  .stat-number { font-size: 1.5rem; }
  
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary { font-size: 0.88rem; padding: 12px 16px; }
  
  .blog-grid { gap: 12px; }
  .blog-image { height: 130px; }
  
  .contact-form, .page-card { padding: 18px; }
  
  .footer-grid { gap: 24px; }
  .footer-legal { flex-wrap: wrap; gap: 14px; }
  
  .cta-title { font-size: 1.5rem; }
  .cta-desc { font-size: 0.9rem; }
  
  /* Used By */
  .used-by-grid { gap: 16px; }
  .used-by-brand { font-size: 0.75rem; }
  .used-by-label { font-size: 0.7rem; margin-bottom: 20px; }
}


/* ============================================
   PROFESSIONAL FIXES: accessibility, calculator UX, print
   ============================================ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--warning);
  outline-offset: 3px;
}

.toggle-switch {
  position: relative;
  border: 1px solid var(--border-glass);
}

.toggle-switch[role="switch"] {
  display: inline-block;
}

.field-help {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.35;
  margin-top: 6px;
}

.project-notes {
  min-height: 76px;
  resize: vertical;
}

.formula-note,
.material-recommendation {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 0, 0.18);
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.5;
}

.material-recommendation {
  border-color: rgba(52, 199, 89, 0.22);
  background: rgba(52, 199, 89, 0.08);
}

.estimate-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.estimate-action-btn {
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 8px;
  font-size: 0.82rem;
}

.with-waste-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.72rem;
  margin-left: 4px;
}

.hidden-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

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

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

@media print {
  .nav-floating,
  .mobile-nav,
  .hero,
  #features,
  #faq,
  .footer,
  .estimate-actions,
  .btn-primary,
  .btn-secondary {
    display: none !important;
  }
  .calc-section,
  .calc-main-grid,
  .calc-panel,
  .calc-sidebar,
  .result-card {
    display: block !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #111 !important;
    border-color: #ddd !important;
  }
  body { background: #fff !important; color: #111 !important; }
}
