/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Cosmic Blue Theme Colors - Inspired by Arise */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1629;
  --bg-tertiary: #1a2332;
  --bg-card: rgba(26, 35, 50, 0.8);
  --bg-card-light: rgba(42, 55, 80, 0.6);
  
  /* Blue Gradient Colors */
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);
  --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  --gradient-tertiary: linear-gradient(135deg, #1e40af 0%, #3730a3 50%, #581c87 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #6366f1 100%);
  --gradient-cosmic: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e40af 100%);
  
  /* Accent Colors */
  --accent-primary: #4f46e5;
  --accent-secondary: #3b82f6;
  --accent-tertiary: #6366f1;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-error: #ef4444;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  
  /* Border Colors */
  --border-primary: rgba(255, 255, 255, 0.1);
  --border-secondary: rgba(79, 70, 229, 0.3);
  --border-hover: rgba(59, 130, 246, 0.4);
  
  /* Shadow Colors */
  --shadow-primary: rgba(10, 14, 26, 0.6);
  --shadow-secondary: rgba(79, 70, 229, 0.2);
  --shadow-glow: 0 0 50px rgba(79, 70, 229, 0.3);
  
  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  /* 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.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-3xl: 3rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base typography */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Animated Geometric Background - Arise Style */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.floating-geometry {
  position: absolute;
  opacity: 0.6;
  animation: cosmic-float 20s ease-in-out infinite;
  filter: blur(1px);
}

.geo-1 {
  width: 120px;
  height: 120px;
  background: var(--gradient-primary);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.geo-2 {
  width: 80px;
  height: 80px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  top: 20%;
  right: 10%;
  animation-delay: 2.5s;
}

.geo-3 {
  width: 100px;
  height: 100px;
  background: var(--gradient-tertiary);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  top: 40%;
  left: 15%;
  animation-delay: 5s;
}

.geo-4 {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  transform: rotate(45deg);
  top: 60%;
  right: 20%;
  animation-delay: 7.5s;
}

.geo-5 {
  width: 90px;
  height: 90px;
  background: var(--gradient-cosmic);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  bottom: 20%;
  left: 10%;
  animation-delay: 10s;
}

.geo-6 {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  bottom: 30%;
  right: 15%;
  animation-delay: 12.5s;
}

.geo-7 {
  width: 110px;
  height: 110px;
  background: var(--gradient-secondary);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  top: 70%;
  left: 60%;
  animation-delay: 15s;
}

.geo-8 {
  width: 85px;
  height: 85px;
  background: var(--gradient-tertiary);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  top: 30%;
  left: 70%;
  animation-delay: 17.5s;
}

@keyframes cosmic-float {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-30px) translateX(20px) rotate(90deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-60px) translateX(-10px) rotate(180deg);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-30px) translateX(-30px) rotate(270deg);
    opacity: 0.7;
  }
}

.starfield {
  position: absolute;
  width: 100%;
  height: 100%;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ffffff;
  border-radius: 50%;
  animation: twinkle 4s ease-in-out infinite;
}

.star:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.star:nth-child(2) { top: 20%; left: 20%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 30%; left: 30%; animation-delay: 1s; }
.star:nth-child(4) { top: 40%; left: 40%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 50%; left: 50%; animation-delay: 2s; }
.star:nth-child(6) { top: 60%; left: 60%; animation-delay: 2.5s; }
.star:nth-child(7) { top: 70%; left: 70%; animation-delay: 3s; }
.star:nth-child(8) { top: 80%; left: 80%; animation-delay: 3.5s; }
.star:nth-child(9) { top: 15%; left: 85%; animation-delay: 0.2s; }
.star:nth-child(10) { top: 25%; left: 75%; animation-delay: 0.7s; }
.star:nth-child(11) { top: 35%; left: 65%; animation-delay: 1.2s; }
.star:nth-child(12) { top: 45%; left: 55%; animation-delay: 1.7s; }
.star:nth-child(13) { top: 55%; left: 45%; animation-delay: 2.2s; }
.star:nth-child(14) { top: 65%; left: 35%; animation-delay: 2.7s; }
.star:nth-child(15) { top: 75%; left: 25%; animation-delay: 3.2s; }
.star:nth-child(16) { top: 85%; left: 15%; animation-delay: 3.7s; }
.star:nth-child(17) { top: 5%; left: 45%; animation-delay: 0.3s; }
.star:nth-child(18) { top: 95%; left: 55%; animation-delay: 0.8s; }
.star:nth-child(19) { top: 12%; left: 78%; animation-delay: 1.3s; }
.star:nth-child(20) { top: 88%; left: 22%; animation-delay: 1.8s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
}

/* Cosmic Card Effect */
.cosmic-card {
  background: var(--bg-card);
  backdrop-filter: blur(30px);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-2xl);
  box-shadow: 
    0 20px 60px var(--shadow-primary),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.cosmic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.1), transparent);
  transition: all var(--transition-slow);
}

.cosmic-card:hover::before {
  left: 100%;
}

.cosmic-card:hover {
  border-color: var(--border-secondary);
  box-shadow: 
    0 25px 80px var(--shadow-primary),
    var(--shadow-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-8px);
}

/* Cosmic Input Effect */
.cosmic-input {
  background: rgba(26, 35, 50, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.cosmic-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 
    0 0 40px rgba(79, 70, 229, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: rgba(26, 35, 50, 0.95);
}

.cosmic-input::placeholder {
  color: var(--text-muted);
}

/* Cosmic Button Effect */
.cosmic-btn {
  background: var(--bg-card-light);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
}

.cosmic-btn:hover:not(:disabled) {
  background: rgba(79, 70, 229, 0.2);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.3);
}

/* Cosmic Gradient Button Effects */
.cosmic-gradient-btn {
  background: var(--gradient-primary);
  border: none;
  position: relative;
  overflow: hidden;
  color: white;
}

.cosmic-gradient-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all var(--transition-slow);
}

.cosmic-gradient-btn:hover::before {
  left: 100%;
}

.cosmic-gradient-btn:hover {
  box-shadow: 
    0 0 40px rgba(79, 70, 229, 0.6),
    0 0 80px rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
}

.cosmic-gradient-btn-sm {
  background: var(--gradient-secondary);
  border: none;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
  color: white;
}

.cosmic-gradient-btn-sm:hover {
  box-shadow: 
    0 0 40px rgba(59, 130, 246, 0.5),
    0 0 60px rgba(99, 102, 241, 0.4);
  transform: translateY(-3px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--border-primary);
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: rgba(10, 14, 26, 0.95);
  box-shadow: 0 8px 32px var(--shadow-primary);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.logo:hover {
  color: var(--accent-secondary);
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.4);
  position: relative;
}

.logo-diamond {
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
  border-radius: 2px;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--font-size-sm);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-secondary);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(79, 70, 229, 0.1);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
  background: rgba(79, 70, 229, 0.1);
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
  border-radius: 1px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(30px);
  border-top: 1px solid var(--border-primary);
  box-shadow: 0 8px 32px var(--shadow-primary);
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
}

.mobile-nav.show {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-links {
  list-style: none;
  padding: var(--space-4) 0;
  margin: 0;
}

.mobile-nav-link {
  display: block;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  padding: var(--space-3) var(--space-6);
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--text-primary);
  background: rgba(79, 70, 229, 0.1);
  border-left-color: var(--accent-primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-24) 0 var(--space-20);
  padding-top: 120px;
}

.hero-header {
  text-align: center;
  margin-bottom: var(--space-16);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title {
  font-size: clamp(var(--font-size-4xl), 5vw, var(--font-size-6xl));
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  animation: cosmic-glow-text 6s ease-in-out infinite alternate;
}

@keyframes cosmic-glow-text {
  from {
    text-shadow: 0 0 30px rgba(79, 70, 229, 0.3);
  }
  to {
    text-shadow: 0 0 60px rgba(59, 130, 246, 0.5);
  }
}

.hero-highlight {
  background: var(--gradient-primary);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: cosmic-gradient-shift 6s ease infinite;
}

@keyframes cosmic-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  max-width: 1400px;
  margin: 0 auto;
}

/* Input/Output Sections */
.input-section,
.output-section {
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  animation: cosmic-float-in 1.5s ease-out;
}

.output-section {
  display: flex;
  flex-direction: column;
}

@keyframes cosmic-float-in {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-section::before,
.output-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-secondary);
  background-size: 200% 100%;
  animation: cosmic-gradient-shift 6s ease infinite;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.section-header h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
}

.character-count {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.character-count.warning {
  color: var(--warning);
}

.character-count.error {
  color: var(--error);
}

.text-input-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.text-input {
  width: 100%;
  min-height: 240px;
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-base);
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
}

.input-controls {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.mode-selector {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mode-selector label {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.mode-select {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  cursor: pointer;
  min-width: 160px;
}

.mode-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--bg-card-light);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
  backdrop-filter: blur(20px);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(79, 70, 229, 0.1);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-bypass {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  font-size: var(--font-size-lg);
  font-weight: 600;
  border-radius: var(--radius-xl);
}

.btn-copy {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-xs);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

.btn.loading .loading-spinner {
  display: block;
}

.btn.loading .btn-text {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Output Section */
.output-content-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.output-area-wrapper {
  position: relative;
  flex: 1;
  min-height: 300px;
}

.output-area {
  width: 100%;
  height: 100%;
  padding: var(--space-5);
  border: 2px dashed var(--border-primary);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-secondary);
  overflow-y: auto;
  transition: all var(--transition-normal);
}

.output-area.has-content {
  border-style: solid;
  border-color: var(--accent-primary);
  background: rgba(26, 35, 50, 0.9);
  color: var(--text-primary);
}

.output-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
}

.placeholder-icon {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-4);
  color: var(--text-dim);
}

.output-placeholder p {
  font-size: var(--font-size-lg);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.output-placeholder small {
  font-size: var(--font-size-sm);
  color: var(--text-dim);
}

/* Stats Section */
.stats-section {
  padding: var(--space-20) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  text-align: center;
}

.stat-item {
  padding: var(--space-6);
  animation: cosmic-pulse-glow 6s ease-in-out infinite alternate;
}

@keyframes cosmic-pulse-glow {
  from {
    box-shadow: 
      0 20px 60px var(--shadow-primary),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  to {
    box-shadow: 
      0 25px 80px var(--shadow-primary),
      0 0 50px rgba(79, 70, 229, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

.stat-number {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Introduction Section */
.intro-section {
  padding: var(--space-20) 0;
}

.section-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-12);
  line-height: 1.6;
}

.section-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-12);
}

.intro-features {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.intro-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-4) var(--space-6);
  transition: all var(--transition-normal);
}

.intro-feature:hover {
  color: var(--text-primary);
  transform: translateY(-4px);
}

.intro-feature .feature-icon {
  color: var(--accent-success);
  font-size: var(--font-size-base);
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.4));
}

/* Section Header Centered */
.section-header-centered {
  text-align: center;
  margin-bottom: var(--space-16);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* How It Works Section */
.how-it-works-section {
  padding: var(--space-20) 0;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-16);
  position: relative;
}

.step {
  text-align: center;
  padding: var(--space-6);
  transition: all var(--transition-normal);
  position: relative;
}

.step:hover {
  transform: translateY(-6px);
}

.step-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-6);
}

.step-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  background: var(--gradient-secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 700;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
  z-index: 2;
}

.step-icon-bg {
  width: 64px;
  height: 64px;
  background: rgba(79, 70, 229, 0.2);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  color: var(--accent-secondary);
  transition: all var(--transition-normal);
}

.step:hover .step-icon-bg {
  box-shadow: 0 0 40px rgba(79, 70, 229, 0.5);
  transform: scale(1.15);
}

.step h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.step p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.connector-line {
  width: 100%;
  height: 3px;
  background: var(--gradient-tertiary);
  opacity: 0.6;
  animation: cosmic-pulse 5s ease-in-out infinite;
}

@keyframes cosmic-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Features Section */
.features-section {
  padding: var(--space-20) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.feature-card {
  padding: var(--space-8);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(79, 70, 229, 0.2);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  color: var(--accent-secondary);
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
  transform: scale(1.15);
}

.feature-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  padding: var(--space-20) 0;
}

.faq-container {
  max-width: 800px;
  margin: var(--space-16) auto 0;
}

.faq-item {
  margin-bottom: var(--space-4);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  border-color: var(--border-secondary);
}

.faq-item.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 40px rgba(79, 70, 229, 0.3);
}

.faq-question {
  padding: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.faq-question:hover {
  background: rgba(79, 70, 229, 0.05);
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(79, 70, 229, 0.2);
  border-radius: 50%;
  color: var(--accent-primary);
  transition: all var(--transition-normal);
  font-size: var(--font-size-lg);
  font-weight: 400;
}

.faq-item.active .faq-toggle {
  background: var(--accent-primary);
  color: white;
  transform: rotate(45deg);
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.4);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
  padding: 0 var(--space-6);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 var(--space-6) var(--space-6);
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.6;
  padding-top: var(--space-2);
}

/* Footer */
.footer {
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(30px);
  border-top: 1px solid var(--border-primary);
  padding: var(--space-12) 0 var(--space-8);
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-8);
}

.footer-main {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.footer-description {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-secondary);
}

.footer-bottom {
  border-top: 1px solid var(--border-primary);
  padding-top: var(--space-6);
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: var(--font-size-xl);
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top.visible:hover {
  box-shadow: 0 0 50px rgba(79, 70, 229, 0.6);
  transform: translateY(-6px) scale(1.1);
}

/* Notification System */
.notification {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  max-width: 400px;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-card);
  backdrop-filter: blur(30px);
  border: 1px solid var(--border-primary);
  border-left: 4px solid var(--info);
  border-radius: var(--radius-lg);
  transform: translateX(100%);
  transition: all var(--transition-normal);
  z-index: 10000;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: 0 20px 60px var(--shadow-primary);
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  border-left-color: var(--success);
}

.notification-error {
  border-left-color: var(--error);
}

.notification-warning {
  border-left-color: var(--warning);
}

.notification-info {
  border-left-color: var(--info);
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-flash {
  animation: successFlash 0.5s ease;
}

@keyframes successFlash {
  0%, 100% {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.6);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 800px;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .step-connector {
    display: none;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    padding: 100px 0 var(--space-16);
  }

  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }

  .input-section,
  .output-section {
    padding: var(--space-6);
  }

  .input-controls {
    flex-direction: column;
  }

  .section-title {
    font-size: var(--font-size-3xl);
  }

  .steps-container {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .intro-features {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .scroll-to-top {
    bottom: var(--space-6);
    right: var(--space-6);
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-3);
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
  }

  .input-section,
  .output-section {
    padding: var(--space-4);
  }

  .text-input {
    min-height: 200px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .notification {
    top: var(--space-4);
    right: var(--space-4);
    left: var(--space-4);
    max-width: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .floating-geometry,
  .star {
    animation: none;
  }
}