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

/* ========================================================================= */
/* CSS CUSTOM PROPERTIES - DESIGN SYSTEM VARIABLES */
/* ========================================================================= */
:root {
  /* Color System - Primary Blues */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  /* Gray Scale */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Accent Colors */
  --accent-emerald: #10b981;
  --accent-purple: #8b5cf6;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;

  /* Add these to your color variables */
  --teal-600: #1e6b8c;
  --teal-700: #155570;

  /* Spacing Scale */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem; /* 24px */
  --space-8: 2rem; /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem; /* 48px */
  --space-16: 4rem; /* 64px */
  --space-20: 5rem; /* 80px */

  /* Typography Scale */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Font Families */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace;

  /* Border Radius */
  --radius-sm: 0.125rem; /* 2px */
  --radius-base: 0.25rem; /* 4px */
  --radius-lg: 0.5rem; /* 8px */
  --radius-xl: 0.75rem; /* 12px */
  --radius-2xl: 1rem; /* 16px */

  /* Shadows */
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-base: 0.2s ease-out;
  --transition-slow: 0.3s ease-out;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-500) 0%,
    var(--primary-600) 100%
  );
  --gradient-button: linear-gradient(
    135deg,
    var(--teal-600) 0%,
    var(--teal-700) 100%
  );

  --gradient-hero: linear-gradient(135deg, #ffffff 0%, var(--gray-50) 100%);
  --gradient-features: linear-gradient(
    135deg,
    var(--gray-50) 0%,
    var(--gray-100) 100%
  );
  --gradient-cta: linear-gradient(
    135deg,
    var(--gray-800) 0%,
    var(--gray-900) 100%
  );

  /* Header Height */
  --header-height: 80px;
}

/* ========================================================================= */
/* CSS RESET AND BASE STYLES */
/* ========================================================================= */

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================================================= */
/* TYPOGRAPHY */
/* ========================================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-bold);
  line-height: 1.2;
  color: var(--gray-900);
  letter-spacing: -0.025em;
}

h1 {
  font-size: 3.5rem;
  font-weight: var(--font-extrabold);
}
h2 {
  font-size: 2.5rem;
  font-weight: var(--font-bold);
}
h3 {
  font-size: 1.75rem;
  font-weight: var(--font-semibold);
}

p {
  color: var(--gray-600);
  font-weight: var(--font-normal);
}

/* ========================================================================= */
/* HEADER/NAVIGATION */
/* ========================================================================= */

.header {
  /* background: rgba(255, 255, 255, 0.95); */
  background: rgb(248, 251, 248, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  margin: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-10);
  max-width: none;
  width: 100%;
  height: 100%;
}

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

.nav-link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
  cursor: pointer;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

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

.logo a {
  text-decoration: none;
  display: block;
  /* Inherit the gradient styling from parent */
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity var(--transition-fast);
}

.logo a:hover {
  opacity: 0.8;
}

.nav-cta {
  /* background: var(--gradient-primary); */
  background: var(--gradient-button);
  color: white;
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

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

@media (max-width: 768px) {
  .nav-cta {
    display: none;
  }
}

/* Scroll behavior for nav links */
#overview,
#features {
  scroll-margin-top: var(--header-height);
}

/* ========================================================================= */
/* LAYOUT STRUCTURE */
/* ========================================================================= */

.slide {
  min-height: 100vh;
  background: #ecefec;
  display: flex;
  align-items: start;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.slide:last-child {
  margin-bottom: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-10);
  width: 100%;
}

/* ========================================================================= */
/* HERO SECTION */
/* ========================================================================= */

/* Add new sage green color variables */
:root {
  --sage-50: #f6f7f5;
  --sage-100: #e8eae5;
  --sage-200: #d3d6cc;
  --sage-300: #b4baa6;
  --sage-400: #919980;
  --sage-500: #717a61;
  --sage-600: #57624b;
  --sage-700: #454d3c;
  --sage-800: #394032;
  --sage-900: #32372b;
}

/* Hero section - centered layout */
.hero-section.hero-modern {
  width: 100%;
  height: 700px;
  background: #ecefec;
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

/* Hero container */
.hero-container {
  max-width: 1400px;
  width: 100%;
  height: 100%;
  position: relative;
  padding: var(--space-8) var(--space-8);
  text-align: center;
}

/* Hero content wrapper */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

/* Hero text content - centered at top */
.hero-text-content {
  width: 100%;
  /* max-width: 800px; */
  text-align: center;
}

.hero-title {
  font-size: 4rem;
  font-weight: var(--font-extrabold);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: var(--gray-900);
  /* letter-spacing: -0.02em; */
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: var(--space-6);
  color: var(--gray-600);
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  /* background: var(--gradient-primary); */
  background: var(--gradient-button);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.125rem;
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 3;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2xl);
}

/* Hero image container - centered below text */
.hero-image-container {
  max-width: 870px;
  width: 100%;
  position: relative;
  z-index: 2;
  border-radius: 24px; /* Rounded top corners for laptop screen */
  padding: 12px; /* Thicker top/side padding, minimal bottom */
  background: linear-gradient(
    145deg,
    #4a5568 0%,
    #2d3748 50%,
    #1a202c 100%
  ); /* Laptop bezel gradient */
  box-shadow: var(--shadow-2xl), 0 8px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    /* Subtle inner highlight */ inset 0 -1px 0 rgba(0, 0, 0, 0.2); /* Inner shadow for depth */

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Add laptop bezel effect with pseudo-elements */
.hero-image-container::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  height: 6px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border-radius: 12px;
  z-index: 1;
}

.hero-image-container img {
  width: 100%;
  height: auto;
  border-radius: 12px; /* Slightly less rounded for screen effect */
  border: none; /* Remove existing border */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3),
    /* Subtle screen border */ var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.1); /* Screen reflection */
  object-fit: cover;
  /* max-height: 500px; */
  position: relative;
  z-index: 2;
  transition: box-shadow 0.3s ease;
}

@media (max-width: 768px) {
  .hero-container {
    padding: var(--space-12) var(--space-4);
  }

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

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-cta {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-image-container img {
    max-height: 350px;
  }
}

/* ========================================================================= */
/* CTA/SIGNUP SECTION */
/* ========================================================================= */

.features-section {
  background: var(--gradient-cta);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section {
  background: var(--gradient-cta);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      var(--primary-600) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 80% 20%, var(--accent-purple) 0%, transparent 50%);
  opacity: 0.1;
  z-index: 1;
}

.cta-section h3 {
  color: white;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 2;
}

.cta-subtitle {
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  opacity: 0.9;
  position: relative;
  z-index: 2;
  color: var(--gray-200);
}

/* FORM STYLING */
.signup-form {
  max-width: 420px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: var(--space-6);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 2;
  animation: formSlideUp 0.8s ease-out 0.3s both;
}

@keyframes formSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: var(--space-3);
  text-align: left;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--gray-700);
  font-weight: var(--font-semibold);
  font-size: var(--text-xs);
  transition: color var(--transition-fast);
  position: static;
  transform: none;
  background: none;
  padding: 0;
  border-radius: 0;
}

.form-label-text {
  font-size: var(--text-xs);
  color: var(--gray-600);
  margin-bottom: var(--space-1);
  line-height: 1.4;
  font-style: normal;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: var(--space-2);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: var(--text-xs);
  font-family: var(--font-primary);
  transition: all var(--transition-base);
  background: var(--gray-50);
  position: relative;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-500);
  background: white;
  box-shadow: 0 0 0 3px var(--primary-100);
  transform: translateY(-2px);
}

.form-group input:focus + label,
.form-group select:focus + label {
  color: var(--primary-600);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--accent-rose);
  background: #fef2f2;
  animation: shake 0.5s ease-in-out;
}

.checkbox-group {
  margin-bottom: var(--space-4);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-bottom: 0;
}

.checkbox-label input[type='checkbox'] {
  width: auto;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-text {
  color: var(--gray-700);
  font-weight: var(--font-normal);
}

.checkbox-text a {
  color: var(--primary-600);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.checkbox-text a:hover {
  color: var(--primary-700);
}

.checkbox-group input[type='checkbox'].error {
  outline: 2px solid var(--accent-rose);
  outline-offset: 2px;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.error-message {
  color: var(--accent-rose);
  font-size: var(--text-xs);
  margin-top: var(--space-1);
  font-weight: var(--font-medium);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.error-message:not(:empty)::before {
  content: '⚠️';
  font-size: var(--text-xs);
}

.submit-btn {
  width: 100%;
  background: var(--gradient-primary);
  color: white;
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.submit-btn:hover:not(:disabled)::before {
  left: 100%;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2xl);
}

.submit-btn:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-base);
}

.recaptcha-notice {
  font-size: var(--text-xs);
  color: var(--gray-400);
  font-weight: var(--font-normal);
  text-align: left;
}

.recaptcha-notice a {
  color: var(--primary-400);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.message {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  text-align: center;
  display: none;
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  animation: messageSlideIn 0.5s ease-out;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.success {
  background: linear-gradient(135deg, var(--accent-emerald) 10%, #059669 90%);
  color: white;
  border: 1px solid var(--accent-emerald);
  box-shadow: var(--shadow-lg);
}

.message.success::before {
  content: '✅ ';
  margin-right: var(--space-2);
}

.message.error {
  background: linear-gradient(135deg, var(--accent-rose) 10%, #e11d48 90%);
  color: white;
  border: 1px solid var(--accent-rose);
  box-shadow: var(--shadow-lg);
}

.message.error::before {
  content: '⚠ ';
  margin-right: var(--space-2);
}

.form-group input:valid:not(:placeholder-shown),
.form-group select:valid:not([value='']) {
  border-color: var(--accent-emerald);
  background: #f0fdf4;
}

.form-group input:valid:not(:placeholder-shown) + label,
.form-group select:valid:not([value='']) + label {
  color: var(--accent-emerald);
}

/* ========================================================================= */
/* FOOTER */
/* ========================================================================= */

.footer-slide {
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
  text-align: center;
  min-height: auto;
  padding: var(--space-20) 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.footer-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    var(--primary-100) 0%,
    transparent 60%
  );
  opacity: 0.3;
  z-index: 1;
}

.footer-slide .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.footer p {
  margin-bottom: var(--space-2);
  color: var(--gray-700);
  opacity: 0.9;
  font-weight: var(--font-medium);
}

.footer-links {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-400);
}

.footer-links a {
  color: var(--primary-600);
  text-decoration: none;
  margin: 0 var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: all var(--transition-fast);
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:hover {
  color: var(--primary-700);
  transform: translateY(-1px);
}

/* ========================================================================= */
/* LEGAL PAGE STYLES */
/* ========================================================================= */

.legal-main {
  padding-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  background: var(--gray-50);
  position: relative;
}

.legal-main .container {
  padding-top: var(--space-16);
  padding-bottom: var(--space-20);
  animation: fadeInUp 0.8s ease-out;
}

.legal-section {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  margin-bottom: var(--space-12);
  box-shadow: var(--shadow-base);
  scroll-margin-top: calc(var(--header-height) + var(--space-6));
  animation: fadeInUp 0.8s ease-out;
  transition: box-shadow var(--transition-base);
}

.legal-section:hover {
  box-shadow: var(--shadow-md);
}

.legal-section-header {
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-8);
}

.legal-section h2 {
  color: var(--gray-900);
  margin-bottom: var(--space-3);
  font-size: 2rem;
  font-weight: var(--font-bold);
}

.last-updated {
  color: var(--gray-500);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  font-style: italic;
  margin: 0;
}

.legal-content {
  line-height: 1.8;
  color: var(--gray-700);
  font-size: var(--text-sm);
}

.legal-content h3 {
  color: var(--gray-900);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  padding-top: var(--space-2);
  border-top: 1px solid var(--gray-100);
}

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

.legal-content h4 {
  color: var(--gray-800);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-content p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
  font-size: var(--text-sm);
}

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

.legal-content li {
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

.legal-content li strong {
  color: var(--gray-900);
  font-weight: var(--font-semibold);
}

.legal-content a {
  color: var(--primary-600);
  text-decoration: underline;
  transition: color var(--transition-fast);
  font-weight: var(--font-medium);
}

.legal-content a:hover {
  color: var(--primary-700);
  text-decoration: none;
}

.contact-info {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: var(--space-6) 0;
}

.contact-info p {
  margin-bottom: var(--space-2);
  font-weight: var(--font-medium);
}

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

.legal-footer {
  background: var(--gradient-cta);
  color: white;
  text-align: center;
  padding: var(--space-12) 0;
  margin-top: var(--space-16);
  position: relative;
  overflow: hidden;
}

.legal-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    var(--primary-600) 0%,
    transparent 60%
  );
  opacity: 0.1;
  z-index: 1;
}

.legal-footer .container {
  position: relative;
  z-index: 2;
}

.legal-footer p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-2);
  font-weight: var(--font-medium);
}

.footer-home-link {
  color: var(--primary-200);
  text-decoration: none;
  font-weight: var(--font-semibold);
  transition: color var(--transition-fast);
  position: relative;
  display: inline-block;
  margin-top: var(--space-2);
}

.footer-home-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width var(--transition-base);
}

.footer-home-link:hover {
  color: white;
}

.footer-home-link:hover::after {
  width: 100%;
}

.home-link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  position: relative;
}

.home-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.home-link:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

.home-link:hover::after {
  width: 80%;
}

.legal-toc {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-12);
  box-shadow: var(--shadow-base);
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
  z-index: 10;
}

.legal-toc h3 {
  color: var(--gray-900);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
  text-align: center;
}

.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.legal-toc-link {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.legal-toc-link:hover {
  color: var(--primary-700);
  background: var(--primary-50);
  transform: translateY(-1px);
}

/* ========================================================================= */
/* GLOBAL INTERACTIONS AND ANIMATIONS */
/* ========================================================================= */

html {
  scroll-behavior: smooth;
}

button,
.btn {
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.nav-link,
.hero-cta,
.nav-cta,
.submit-btn {
  will-change: transform;
}

.container {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

::selection {
  background: var(--primary-200);
  color: var(--primary-900);
}

::-moz-selection {
  background: var(--primary-200);
  color: var(--primary-900);
}

*:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

button:focus,
.nav-cta:focus,
.hero-cta:focus,
.submit-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-200);
}

a:not(.nav-link):not(.nav-cta) {
  position: relative;
  transition: color var(--transition-fast);
}

a:not(.nav-link):not(.nav-cta):hover {
  color: var(--primary-600);
}

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

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: var(--shadow-md);
  }
  50% {
    box-shadow: var(--shadow-lg), 0 0 20px rgba(245, 158, 11, 0.3);
  }
}

.hero-cta,
.nav-cta,
.submit-btn {
  transition: all var(--transition-base);
}

.hero-cta:hover,
.nav-cta:hover,
.submit-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2xl);
}

.hero-cta:active,
.nav-cta:active,
.submit-btn:active {
  transform: translateY(-1px);
  transition: transform 0.1s;
}

.hero-cta::after,
.nav-cta::after,
.submit-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.hero-cta:active::after,
.nav-cta:active::after,
.submit-btn:active::after {
  width: 300px;
  height: 300px;
}

.submit-btn:disabled {
  position: relative;
  color: transparent;
}

.submit-btn:disabled::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body {
  animation: pageLoad 0.5s ease-out;
}

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

.grecaptcha-badge {
  visibility: hidden;
}

/* ========================================================================= */
/* ACCESSIBILITY PRESERVED MEDIA QUERIES */
/* ========================================================================= */

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

  .hero-image {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

@media print {
  .header,
  .nav,
  .hero-urgency,
  .signup-form,
  .footer-links {
    display: none;
  }

  .slide {
    break-inside: avoid;
    margin-bottom: var(--space-8);
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }

  .hero-title,
  .section-header h2 {
    color: black;
  }

  .legal-section {
    break-inside: avoid;
    margin-bottom: var(--space-8);
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }

  .legal-content {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
  }

  .legal-section h2,
  .legal-content h3,
  .legal-content h4 {
    color: black;
  }

  .legal-content a {
    color: black;
    text-decoration: underline;
  }

  .contact-info {
    background: white;
    border: 1px solid var(--gray-400);
  }
}
