/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

:root {
  /* TypeTaster Color Palette */
  --primary: #2563eb;      /* Modern blue */
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #059669;    /* Emerald */
  --secondary-dark: #047857;
  --accent: #dc2626;       /* Red */
  --accent-dark: #b91c1c;
  --highlight: #f59e0b;    /* Amber */
  --highlight-subtle: #fef3c7;
  --text: #111827;         /* Gray 900 */
  --text-muted: #6b7280;   /* Gray 500 */
  --text-light: #9ca3af;   /* Gray 400 */
  --bg: #ffffff;           /* Pure white */
  --bg-alt: #f9fafb;       /* Gray 50 */
  --bg-card: #ffffff;
  --border: #e5e7eb;       /* Gray 200 */
  --border-light: #f3f4f6; /* Gray 100 */
  --success: #1FBF75;
  --warning: #FFB020;
  --error: #E5484D;
  --shadow-sm: 0 1px 2px 0 rgba(12, 34, 61, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(12, 34, 61, 0.1), 0 2px 4px -2px rgba(12, 34, 61, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(12, 34, 61, 0.1), 0 4px 6px -4px rgba(12, 34, 61, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(12, 34, 61, 0.1), 0 8px 10px -6px rgba(12, 34, 61, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
  --font-playfair: 'Playfair Display', serif;
  --font-poppins: 'Poppins', sans-serif;
  --font-roboto: 'Roboto', sans-serif;
  --font-montserrat: 'Montserrat', sans-serif;
  --font-dancing: 'Dancing Script', cursive;
  --font-fira: 'Fira Code', monospace;
  --font-merriweather: 'Merriweather', serif;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Subtle background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.02) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(5, 150, 105, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-brand:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.nav-logo {
  width: 32px;
  height: 32px;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 50%, var(--bg) 100%);
  overflow: hidden;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* replaced with .bg-parallax */

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}

.btn-primary::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 ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Extension Mockup */
.extension-mockup {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

.mockup-window {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
}

.mockup-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.mockup-title {
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.mockup-content {
  padding: 20px;
  space: 16px;
}

.mockup-search {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.mockup-search input,
.mockup-search select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  background: white;
}

.mockup-fonts {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 16px;
  max-height: 120px;
  overflow: hidden;
}

.font-item {
  padding: 6px 8px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.font-item.active {
  background: var(--primary);
  color: white;
}

.font-item:not(.active):hover {
  background: white;
}

.mockup-pairing {
  margin-bottom: 16px;
}

.pairing-label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.pairing-item {
  background: rgba(0, 102, 204, 0.02);
  border: 1px solid rgba(0, 102, 204, 0.1);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: 'Merriweather', serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-weight {
  position: relative;
}

.weight-label {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.weight-label span {
  color: var(--primary);
  font-weight: 600;
}

.weight-slider {
  height: 6px;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) 50%, #ddd 50%, #ddd 100%);
  border-radius: 3px;
  position: relative;
  margin-bottom: 12px;
}

.weight-slider::after {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: var(--shadow-md);
}

.weight-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text-light);
}

.weight-labels .active {
  color: var(--primary);
  font-weight: 600;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.feature-description {
  color: var(--text-muted);
  line-height: 1.6;
}

/* How it Works */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-alt);
}

.steps {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  flex: 1;
  min-width: 160px;
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -24px;
  top: 32px;
  color: var(--primary);
  font-size: 24px;
  font-weight: bold;
}

.step-number {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  font-size: 24px;
  font-weight: bold;
  box-shadow: var(--shadow-lg);
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.step-description {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Install Section */
.install {
  padding: 100px 0;
  background: white;
}

.install-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.install-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.install-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.install-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.install-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.install-feature svg {
  color: var(--accent);
}

.install-note {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 12px;
  text-align: center;
}

/* Browser Mockup */
.browser-mockup {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.browser-header {
  background: var(--bg-alt);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.browser-controls {
  display: flex;
  gap: 6px;
}

.browser-controls span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-light);
}

.browser-controls span:first-child {
  background: #ff5f57;
}

.browser-controls span:nth-child(2) {
  background: #ffbd2e;
}

.browser-controls span:last-child {
  background: #28ca42;
}

.browser-url {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex: 1;
}

.browser-content {
  padding: 24px;
}

.extension-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.extension-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.extension-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.extension-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.extension-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--accent);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Footer */
.footer {
  background: var(--text);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
}

.footer-logo {
  width: 32px;
  height: 32px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content,
  .install-content {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  
  .step:not(:last-child)::after {
    content: '↓';
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    bottom: -32px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .install-features {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
}

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

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

.feature-card {
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* Floating animation for background elements */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(1deg);
  }
  66% {
    transform: translateY(10px) rotate(-0.5deg);
  }
}

/* Font Classes */
.font-inter { font-family: var(--font-sans); }
.font-playfair { font-family: var(--font-playfair); }
.font-poppins { font-family: var(--font-poppins); }
.font-roboto { font-family: var(--font-roboto); }
.font-montserrat { font-family: var(--font-montserrat); }
.font-dancing { font-family: var(--font-dancing); }
.font-fira { font-family: var(--font-fira); }
.font-merriweather { font-family: var(--font-merriweather); }

/* Special Text Effects */
.highlight-text {
  background: linear-gradient(45deg, var(--accent), var(--highlight));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  transition: all 0.3s ease;
}

.rainbow-text {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow 3s ease-in-out infinite;
}

@keyframes rainbow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.dancing-large {
  font-size: 1.2em;
  transform: rotate(-2deg);
  display: inline-block;
  animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-2deg); }
  25% { transform: rotate(1deg); }
  75% { transform: rotate(-1deg); }
}

/* Hero Logo Showcase */
.hero-logo-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.hero-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  transition: all 0.3s ease;
  animation: logoFloat 4s ease-in-out infinite;
}

.hero-logo:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 20px 40px rgba(58, 134, 255, 0.3);
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}


.logo-text-animation .font-demo {
  position: absolute;
  font-size: 2rem;
  font-weight: 700;
  opacity: 0;
  animation: textRotate 8s infinite;
  transition: opacity 0.5s ease;
  left: 0;
  right: 0;
  text-align: left;
}

@keyframes textRotate {
  0%, 15% { opacity: 1; transform: translateY(0); }
  20%, 100% { opacity: 0; transform: translateY(20px); }
}

/* Hero Title Enhancements */
.hero-title .hero-word {
  display: inline-block;
  margin-right: 0.3em;
  animation: wordBounce 2s ease-in-out infinite;
}

.hero-title .hero-word:nth-child(1) { animation-delay: 0.1s; }
.hero-title .hero-word:nth-child(2) { animation-delay: 0.2s; }
.hero-title .hero-word:nth-child(3) { animation-delay: 0.3s; }

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

/* Font Preview Ticker */
.font-preview-ticker {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 16px 0;
  margin: 24px 0;
  overflow: hidden;
  position: relative;
}

.ticker-content {
  display: flex;
  gap: 40px;
  animation: ticker 20s linear infinite;
  white-space: nowrap;
}

.ticker-font {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.ticker-font:hover {
  opacity: 1;
  transform: scale(1.1);
}

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

/* Stat Animations */
.stat-bounce { animation: statBounce 2s ease-in-out infinite; }
.stat-pulse { animation: statPulse 2s ease-in-out infinite; }
.stat-wiggle { animation: statWiggle 2s ease-in-out infinite; }

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

@keyframes statPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes statWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  75% { transform: rotate(-2deg); }
}

/* Font Showcase Section */
.font-showcase {
  padding: 100px 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

/* replaced with .bg-parallax */

.showcase-header {
  text-align: center;
  margin-bottom: 80px;
}

.showcase-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.showcase-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.font-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

.example-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.example-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--highlight));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.example-card:hover::before {
  transform: scaleX(1);
}

.example-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.example-text {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.2;
}

.example-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.live-demo {
  text-align: center;
  position: relative;
}

.demo-text {
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}


.morph-word {
  position: absolute;
  font-size: 4rem;
  font-weight: 700;
  opacity: 0;
  animation: morphAnimation 10s infinite;
}

@keyframes morphAnimation {
  0%, 16% { opacity: 1; transform: translateY(0) rotate(0deg); }
  20%, 100% { opacity: 0; transform: translateY(20px) rotate(2deg); }
}

.demo-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Section Title Enhancements */
.section-title .title-word,
.install-title .title-word {
  display: inline-block;
  margin-right: 0.3em;
  transition: all 0.3s ease;
}

.section-title .title-word:hover,
.install-title .title-word:hover {
  transform: scale(1.1) rotate(2deg);
  color: var(--primary);
}


/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading states */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Focus states */
.btn:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Parallax background shapes converted to real elements */
.bg-parallax {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
  filter: blur(0);
}
.hero .bg-parallax {
  top: -10%;
  right: -10%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 30% 30%, var(--highlight) 0%, var(--accent) 60%, transparent 70%);
  border-radius: 50%;
  opacity: 0.10;
}
.font-showcase .bg-parallax {
  top: -30%;
  left: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle at 70% 70%, var(--secondary) 0%, var(--primary) 60%, transparent 70%);
  border-radius: 50%;
  opacity: 0.06;
}

.hero-content, .font-showcase .container { position: relative; z-index: 1; }

/* Accessibility contrast tweak */
.ticker-font { color: #2563eb; } /* slightly darker blue */

/* Ticker overflow fix */
.ticker-content { min-width: max-content; }

/* Better focus states for keyboard users */
.nav-link:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Ensure images don't exceed container width */
img { max-width: 100%; height: auto; }
