/* ==========================================================================
   Trediio Marketing Site - Design System CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Primary Colors - Trust & Authority */
  --color-navy: #1E3A5F;
  --color-navy-dark: #152a45;
  --color-blue: #2563EB;
  --color-blue-light: #3B82F6;
  --color-blue-50: #EFF6FF;
  
  /* Secondary Colors - Growth & Success */
  --color-emerald: #059669;
  --color-emerald-dark: #047857;
  --color-mint: #10B981;
  --color-mint-light: #D1FAE5;
  
  /* Accent Colors - Attention & Energy */
  --color-amber: #F59E0B;
  --color-amber-light: #FEF3C7;
  --color-coral: #F97316;
  --color-red: #DC2626;
  --color-red-light: #FEE2E2;
  
  /* Neutrals */
  --color-slate-900: #0F172A;
  --color-slate-700: #334155;
  --color-slate-500: #64748B;
  --color-slate-300: #CBD5E1;
  --color-slate-200: #E2E8F0;
  --color-slate-100: #F1F5F9;
  --color-slate-50: #F8FAFC;
  --color-white: #FFFFFF;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-emerald: 0 4px 14px rgba(5, 150, 105, 0.3);
  --shadow-blue: 0 4px 14px rgba(37, 99, 235, 0.2);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;
}

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

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

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-slate-700);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-blue-light);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-slate-900);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

h4 {
  font-size: var(--text-xl);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-4);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-lg {
  font-size: var(--text-lg);
}

.text-xl {
  font-size: var(--text-xl);
}

.text-muted {
  color: var(--color-slate-500);
}

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

.text-navy {
  color: var(--color-navy);
}

.text-emerald {
  color: var(--color-emerald);
}

.text-red {
  color: var(--color-red);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-16) 0;
}

.section-lg {
  padding: var(--space-24) 0;
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.flex {
  display: flex;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

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

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-slate-200);
  padding: var(--space-4) 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo:hover {
  color: var(--color-navy);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-blue) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: var(--text-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-link {
  color: var(--color-slate-700);
  font-weight: 500;
  padding: var(--space-2) 0;
  position: relative;
}

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

.nav-link.active {
  color: var(--color-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-blue);
  border-radius: var(--radius-full);
}

.nav-cta {
  margin-left: var(--space-4);
}

/* Mobile menu toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  color: var(--color-slate-700);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.dropdown-trigger svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.dropdown:hover .dropdown-trigger svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--color-slate-700);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.dropdown-item:hover {
  background: var(--color-slate-100);
  color: var(--color-blue);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.5;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-emerald);
  color: var(--color-white);
  box-shadow: var(--shadow-emerald);
}

.btn-primary:hover {
  background: var(--color-emerald-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-blue);
  border-color: var(--color-blue);
}

.btn-secondary:hover {
  background: var(--color-blue-50);
  color: var(--color-blue);
}

.btn-ghost {
  background: transparent;
  color: var(--color-slate-700);
}

.btn-ghost:hover {
  background: var(--color-slate-100);
  color: var(--color-slate-900);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-icon {
  padding: var(--space-2);
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-feature {
  background: var(--color-slate-100);
  border: none;
  padding: var(--space-8);
  text-align: center;
}

.card-feature:hover {
  background: var(--color-white);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  font-size: var(--text-2xl);
}

.card-icon-blue {
  background: var(--color-blue-50);
  color: var(--color-blue);
}

.card-icon-emerald {
  background: var(--color-mint-light);
  color: var(--color-emerald);
}

.card-icon-amber {
  background: var(--color-amber-light);
  color: var(--color-amber);
}

.card h3 {
  margin-bottom: var(--space-2);
}

.card p {
  color: var(--color-slate-500);
  margin-bottom: 0;
}

/* Problem Cards */
.card-problem {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  padding: var(--space-6);
  text-align: center;
}

.card-problem-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.card-problem p {
  font-style: italic;
  color: var(--color-slate-700);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--color-slate-50) 0%, var(--color-blue-50) 100%);
  padding: var(--space-20) 0;
  text-align: center;
}

.hero h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
  color: var(--color-navy);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-slate-500);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-form {
  display: flex;
  gap: var(--space-3);
  max-width: 500px;
  margin: 0 auto var(--space-6);
}

.hero-form input {
  flex: 1;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  color: var(--color-slate-500);
  font-size: var(--text-sm);
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-trust svg {
  width: 16px;
  height: 16px;
  color: var(--color-emerald);
}

/* --------------------------------------------------------------------------
   Forms & Inputs
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--color-slate-700);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-family);
  font-size: var(--text-base);
  color: var(--color-slate-900);
  background: var(--color-white);
  border: 2px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
  color: var(--color-slate-300);
}

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

.form-hint {
  font-size: var(--text-sm);
  color: var(--color-slate-500);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--text-sm);
  color: var(--color-red);
  margin-top: var(--space-1);
}

/* Range Slider */
.form-range {
  width: 100%;
  height: 8px;
  background: var(--color-slate-200);
  border-radius: var(--radius-full);
  outline: none;
  -webkit-appearance: none;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--color-blue);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.form-range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   Calculator
   -------------------------------------------------------------------------- */
.calculator-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.calculator-card {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.calculator-card h3 {
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.calculator-card h3 svg {
  width: 24px;
  height: 24px;
  color: var(--color-blue);
}

.result-card {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue) 100%);
  color: var(--color-white);
  position: sticky;
  top: 100px;
}

.result-card h3 {
  color: var(--color-white);
  opacity: 0.9;
}

.result-main {
  text-align: center;
  padding: var(--space-8) 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  margin-bottom: var(--space-6);
}

.result-value {
  font-size: var(--text-5xl);
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: var(--space-2);
}

.result-label {
  font-size: var(--text-lg);
  opacity: 0.8;
}

.result-details {
  display: grid;
  gap: var(--space-4);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-row-label {
  opacity: 0.8;
}

.result-row-value {
  font-weight: 600;
  font-family: var(--font-mono);
}

.result-row-value.profit {
  color: var(--color-mint);
}

.result-row-value.loss {
  color: var(--color-coral);
}

/* --------------------------------------------------------------------------
   Solution Section
   -------------------------------------------------------------------------- */
.solution-list {
  list-style: none;
  max-width: 600px;
  margin: var(--space-8) auto 0;
}

.solution-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-slate-200);
}

.solution-item:last-child {
  border-bottom: none;
}

.solution-icon {
  width: 28px;
  height: 28px;
  background: var(--color-mint-light);
  color: var(--color-emerald);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.solution-icon svg {
  width: 16px;
  height: 16px;
}

.solution-text {
  font-size: var(--text-lg);
  color: var(--color-slate-700);
}

/* --------------------------------------------------------------------------
   Coming Soon Section
   -------------------------------------------------------------------------- */
.coming-soon {
  background: var(--color-slate-100);
}

.coming-soon-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin: var(--space-6) 0;
}

.coming-soon-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-white);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-slate-700);
  border: 1px solid var(--color-slate-200);
}

.coming-soon-tag svg {
  width: 16px;
  height: 16px;
  color: var(--color-emerald);
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-slate-500);
  padding: var(--space-4) 0;
}

.breadcrumb a {
  color: var(--color-slate-500);
}

.breadcrumb a:hover {
  color: var(--color-blue);
}

.breadcrumb-separator {
  color: var(--color-slate-300);
}

.breadcrumb-current {
  color: var(--color-slate-700);
}

/* --------------------------------------------------------------------------
   Page Header
   -------------------------------------------------------------------------- */
.page-header {
  padding: var(--space-12) 0;
  background: var(--color-slate-50);
  border-bottom: 1px solid var(--color-slate-200);
}

.page-header h1 {
  margin-bottom: var(--space-2);
}

.page-header p {
  font-size: var(--text-lg);
  color: var(--color-slate-500);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Content / Article
   -------------------------------------------------------------------------- */
.content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.content h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-slate-200);
}

.content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.content h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.content ul, .content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.content li {
  margin-bottom: var(--space-2);
}

.content blockquote {
  border-left: 4px solid var(--color-blue);
  padding-left: var(--space-4);
  margin: var(--space-6) 0;
  font-style: italic;
  color: var(--color-slate-500);
}

.content code {
  font-family: var(--font-mono);
  background: var(--color-slate-100);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.content pre {
  background: var(--color-slate-900);
  color: var(--color-slate-100);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: var(--space-6) 0;
}

.content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Formula Box */
.formula-box {
  background: var(--color-blue-50);
  border: 1px solid var(--color-blue);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  text-align: center;
}

.formula-box h4 {
  color: var(--color-blue);
  margin-bottom: var(--space-3);
}

.formula {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--color-navy);
}

/* Example Box */
.example-box {
  background: var(--color-mint-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}

.example-box h4 {
  color: var(--color-emerald-dark);
  margin-bottom: var(--space-3);
}

/* Warning Box */
.warning-box {
  background: var(--color-amber-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  display: flex;
  gap: var(--space-4);
}

.warning-box svg {
  width: 24px;
  height: 24px;
  color: var(--color-amber);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-slate-200);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-family);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-slate-900);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--color-slate-400);
  transition: transform var(--transition-base);
}

.faq-question[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding-bottom: var(--space-5);
  color: var(--color-slate-600);
  display: none;
}

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

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  margin-top: var(--space-4);
  max-width: 300px;
}

.footer h4 {
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

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

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

.hidden { display: none; }

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --text-4xl: 2rem;
    --text-5xl: 2.5rem;
  }
  
  .hero {
    padding: var(--space-12) 0;
  }
  
  .hero h1 {
    font-size: var(--text-4xl);
  }
  
  .section {
    padding: var(--space-12) 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .calculator-section {
    grid-template-columns: 1fr;
  }
  
  .result-card {
    position: static;
  }
  
  .hero-form {
    flex-direction: column;
  }
  
  .hero-trust {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-slate-200);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-cta {
    margin-left: 0;
    margin-top: var(--space-4);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  h1 {
    font-size: var(--text-3xl);
  }
  
  h2 {
    font-size: var(--text-2xl);
  }
  
  .card {
    padding: var(--space-4);
  }
  
  .calculator-card {
    padding: var(--space-5);
  }
}
