/* ========================================
   AntigleForge - Premium Motion Design
   Ender/Diamond Theme with Animations
   ======================================== */

/* CSS Variables */
:root {
  /* Colors - Ender/Diamond Inspired */
  --primary: #06b6d4;
  --primary-dark: #0891b2;
  --primary-light: #22d3ee;
  --secondary: #a78bfa;
  --accent: #f59e0b;
  --danger: #ef4444;
  --success: #10b981;
  
  /* Background */
  --bg-body: #0a0a0f;
  --bg-surface: #111118;
  --bg-card: #16161f;
  --bg-elevated: #1c1c28;
  --bg-hover: #242435;
  --bg-input: #12121a;
  
  /* Text */
  --text-primary: #f0f1f4;
  --text-secondary: #b0b5be;
  --text-muted: #808892;
  
  /* Border */
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(6, 182, 212, 0.3);
  --border-active: rgba(6, 182, 212, 0.5);
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(6, 182, 212, 0.15);
  --shadow-glow-strong: 0 0 40px rgba(6, 182, 212, 0.25);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-heading: 'Oxanium', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Consolas', 'Monaco', monospace;
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index */
  --z-navbar: 100;
  --z-modal: 200;
  --z-perf-indicator: 300;
}

/* Performance Mode Variables */
.performance-mode {
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-glow: none;
  --shadow-glow-strong: none;
  --transition-fast: 0s;
  --transition-normal: 0s;
  --transition-slow: 0s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.performance-mode *,
.performance-mode *::before,
.performance-mode *::after {
  animation: none !important;
  transition: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ========================================
   Scroll Animation Classes
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

.performance-mode .reveal,
.performance-mode .reveal-left,
.performance-mode .reveal-right,
.performance-mode .reveal-scale {
  opacity: 1;
  transform: none;
}

/* ========================================
   Performance Mode Indicator
   ======================================== */
.perf-indicator {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  z-index: var(--z-perf-indicator);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.perf-indicator.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ========================================
   Container
   ======================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ========================================
   Navbar - Glassmorphism
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(12, 12, 20, 0.92);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.5), 0 0 60px rgba(6, 182, 212, 0.04);
  z-index: var(--z-navbar);
  animation: navbarSlideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes navbarSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.performance-mode .navbar {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--bg-body);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform var(--transition-fast);
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.brand-logo-sm {
  width: 30px;
  height: 30px;
}

.brand-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  color: white;
  font-size: 0;
  overflow: hidden;
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
}

.performance-mode .brand-icon {
  animation: none;
}

.brand-icon::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg-body);
  border-radius: calc(var(--radius-md) - 2px);
}

.brand-icon svg {
  position: relative;
  z-index: 1;
}

.brand-icon-sm {
  width: 30px;
  height: 30px;
  animation: none;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.brand-text-sm {
  font-size: 1rem;
}

.brand-accent {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

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

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

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

.nav-link.active {
  color: var(--primary-light);
  background: rgba(6, 182, 212, 0.12);
}

.nav-link.active::after {
  width: 60%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-social:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  transform: scale(1.1);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: var(--radius-md);
}

.hamburger:hover {
  background: var(--bg-hover);
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   Hero Section - Premium Motion
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--space-lg) 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Animated grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  animation: gridFloat 20s linear infinite;
}

@keyframes gridFloat {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

.performance-mode .hero-grid {
  background-image: none;
  animation: none;
}

/* Glow orbs with animation */
.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 60%);
  filter: blur(80px);
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.performance-mode .hero-glow {
  opacity: 0.2;
  animation: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: 20%;
  right: 20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.08) 0%, transparent 60%);
  filter: blur(60px);
  animation: glowPulse2 5s ease-in-out infinite;
}

@keyframes glowPulse2 {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.15); }
}

.performance-mode .hero-glow-2 {
  opacity: 0;
  animation: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 650px;
  animation: heroContentReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.5px;
  animation: badgeFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

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

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.performance-mode .badge-dot {
  animation: none;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  letter-spacing: 1px;
}

.title-line {
  display: block;
  animation: titleLineReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.title-line:nth-child(1) {
  animation-delay: 0.5s;
}

.title-line:nth-child(2) {
  animation-delay: 0.65s;
}

@keyframes titleLineReveal {
  from {
    opacity: 0;
    transform: translateY(30px) skewY(2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) skewY(0);
  }
}

.title-accent {
  background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: titleLineReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both,
             gradientShift 4s ease infinite;
}

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

.performance-mode .title-accent {
  animation: titleLineReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
  background-size: 100% auto;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: heroDescReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

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

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: heroActionsReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.95s both;
}

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

/* ========================================
   Buttons - Premium Hover Effects
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 400;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
}

.performance-mode .btn-primary {
  background: var(--primary);
  box-shadow: none;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
}

.performance-mode .btn-primary:hover {
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.performance-mode .btn-secondary:hover {
  transform: none;
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: var(--space-3xl) 0;
}

.section-dark {
  background: var(--bg-surface);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.5px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ========================================
   Tools Grid - Premium Cards
   ======================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tool-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

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

.tool-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(6, 182, 212, 0.06), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.tool-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-glow);
}

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

.tool-card:hover::after {
  opacity: 1;
}

.performance-mode .tool-card:hover {
  transform: none;
  box-shadow: none;
}

.tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(-3deg);
}

.tool-icon-purple {
  background: rgba(167, 139, 250, 0.12);
  color: var(--secondary);
}

.tool-icon-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

.tool-icon-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--primary);
}

.tool-icon-orange {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent);
}

.tool-icon-green {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.tool-icon-red {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.tool-icon-pink {
  background: rgba(236, 72, 153, 0.12);
  color: #ec4899;
}

.tool-icon-yellow {
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
}

.tool-icon-lime {
  background: rgba(132, 204, 22, 0.12);
  color: #84cc16;
}

.tool-icon-teal {
  background: rgba(20, 184, 166, 0.12);
  color: #14b8a6;
}

.tool-icon-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.tool-icon-crimson {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.tool-icon-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.tool-info {
  flex: 1;
  min-width: 0;
}

.tool-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.tool-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tool-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  opacity: 0;
  color: var(--primary);
  transition: all var(--transition-fast);
}

.tool-card:hover .tool-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ========================================
   Features Grid
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.05), transparent 40%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

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

.performance-mode .feature-card:hover {
  transform: none;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  transition: transform var(--transition-fast);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-5deg);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-nav {
  display: flex;
  gap: var(--space-lg);
}

.footer-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
}

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

/* Footer Social Links */
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  color: var(--primary);
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .footer-social {
    justify-content: center;
  }
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
  padding-top: 64px;
}

/* ========================================
   Tool Page Styles
   ======================================== */
.tool-page {
  padding: var(--space-2xl) 0;
}

.tool-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.tool-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.5px;
}

.tool-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto;
}

.tool-container {
  max-width: 700px;
  margin: 0 auto;
}

.tool-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.tool-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--primary);
}

.tool-card-header svg {
  width: 18px;
  height: 18px;
}

/* Form Elements */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

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

/* Output Display */
.output-display {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  word-break: break-all;
  min-height: 60px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

/* FAQ Section */
.faq-section {
  margin-top: var(--space-2xl);
}

.faq-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-weight: 400;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--bg-hover);
}

.faq-arrow {
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 20px 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  display: none;
}

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

/* ========================================
   UUID Generator Specific
   ======================================== */
.uuid-display {
  font-family: var(--font-mono);
  font-size: 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  word-break: break-all;
  text-align: center;
  margin: 16px 0;
  color: var(--primary-light);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.6;
}

.uuid-count {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

.uuid-count label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.uuid-count input {
  width: 70px;
  padding: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-align: center;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.uuid-count input:focus {
  outline: none;
  border-color: var(--primary);
}

.uuid-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.uuid-history {
  margin-top: var(--space-lg);
}

.uuid-history h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.uuid-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

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

.uuid-history-item button {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.uuid-history-item button:hover {
  background: rgba(6, 182, 212, 0.1);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 900px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .navbar-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: var(--space-md);
    display: none;
  }
  
  .navbar-nav.active {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .footer-top {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }
  
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px var(--space-md) 60px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .tool-card {
    padding: 16px;
  }
  
  .tool-icon {
    width: 40px;
    height: 40px;
  }
}

/* ========================================
   Command Generator Specific
   ======================================== */
.edition-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-lg);
  justify-content: center;
}

.edition-tag {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.edition-tag.bedrock {
  background: rgba(6, 182, 212, 0.15);
  color: var(--primary);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.edition-tag.java {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.version-tag {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 400;
  background: rgba(167, 139, 250, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.cmd-info {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: 0.85rem;
  line-height: 1.6;
}

.cmd-info p {
  margin-bottom: 8px;
}

.cmd-info p:last-child {
  margin-bottom: 0;
  color: var(--text-secondary);
}

.cmd-info code {
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.cmd-info strong {
  color: var(--text-primary);
}

/* Selector Styles */
.selector-container {
  position: relative;
}

.selector-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
}

.selector-filter-toggle.active {
  background: rgba(6, 182, 212, 0.15);
  color: var(--primary);
  border-color: var(--primary);
}

.selector-filters {
  display: none;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 10px;
}

.selector-filters.expanded {
  display: block;
  animation: slideDown 0.2s ease;
}

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

.selector-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.selector-filter-row:last-child {
  margin-bottom: 0;
}

.selector-filter-row label {
  min-width: 70px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-select-sm,
.form-input-sm {
  padding: 6px 10px;
  font-size: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.form-select-sm {
  min-width: 120px;
}

.form-input-sm {
  width: 80px;
}

.form-select-sm:focus,
.form-input-sm:focus {
  outline: none;
  border-color: var(--primary);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 400;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}