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

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

:root {
  /* Core Colors - Dark Blue Background */
  --bg-darkest: #050a14;
  --bg-dark: #0a1220;
  --bg-card: rgba(15, 25, 45, 0.85);
  --bg-card-hover: rgba(20, 35, 55, 0.95);
  --bg-elevated: rgba(20, 30, 50, 0.85);
  
  /* Accents - Purple tones */
  --accent: #7c3aed;
  --accent-light: #a855f7;
  --accent-glow: transparent;
  --accent-dim: #6d28d9;
  
  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Status */
  --success: #16a34a;
  --warning: #ca8a04;
  --error: #dc2626;
  
  /* Borders & Shadows - Subdued */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --shadow-glow: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-glow-strong: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  
  /* Design Tokens */
  --gradient-hero: linear-gradient(135deg, rgba(5, 10, 20, 0.9) 0%, rgba(10, 20, 40, 0.9) 50%, rgba(5, 10, 20, 0.9) 100%);
  --gradient-card: linear-gradient(135deg, rgba(30, 30, 35, 0.4) 0%, rgba(20, 20, 22, 0.6) 100%);
  --glass-blur: blur(12px);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-darkest);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Add a subtle dark gradient to the body background instead of the overly bright image */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 10% 20%, rgba(124, 58, 237, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 80%, rgba(56, 189, 248, 0.04) 0%, transparent 40%);
}

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; }

a { color: var(--accent-light); text-decoration: none; transition: var(--transition); }
a:hover { color: #d8b4fe; }

::selection { background: var(--accent-light); color: white; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-darkest); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Progress Bar - Softened */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent-light);
  z-index: 1001; width: 0%;
  transition: width 0.1s;
}

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(5, 10, 20, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(5, 10, 20, 0.95);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.2rem; color: var(--text-primary); font-family: 'Outfit', sans-serif;}
.nav-logo {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: white; font-size: 1rem;
}

.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  padding: 8px 16px; border-radius: 6px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary); transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); }
.nav-links .btn-download {
  background: var(--text-primary); color: var(--bg-darkest) !important;
  padding: 8px 20px; font-weight: 600; border-radius: 6px;
}
.nav-links .btn-download:hover { background: #e2e8f0; transform: translateY(-1px); }

/* Mobile Menu */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-secondary); margin: 5px 0; transition: var(--transition); border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(5, 10, 20, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 24px; flex-direction: column; gap: 8px; z-index: 999;
}
.mobile-menu.open { display: flex; animation: slideDown 0.2s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu a { padding: 12px 20px; border-radius: 6px; font-size: 1rem; color: var(--text-secondary); display: block; text-align: center; }
.mobile-menu a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 32px; border-radius: 8px;
  font-size: 1rem; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-darkest);
}
.btn-primary:hover { background: #e2e8f0; transform: translateY(-2px); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* Common Sections */
section { padding: 100px 24px; position: relative; }
.section-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-light); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -0.01em; margin-bottom: 20px;
}
.section-desc { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; line-height: 1.6; margin-bottom: 48px; }

/* Gradient Text - Softened */
.gradient-text {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--gradient-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.glass-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(15px); transition: all 0.5s ease; }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

/* Floating Hiroki Text */
.floating-hiroki {
  position: fixed;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 8rem;
  color: rgba(124, 58, 237, 0.08);
  pointer-events: none;
  z-index: 0;
  user-select: none;
  white-space: nowrap;
  transition: left 3s ease, top 3s ease;
  text-shadow: 0 0 60px rgba(124, 58, 237, 0.05);
}
@keyframes floatHiroki {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(40px, -25px) rotate(5deg); }
  50% { transform: translate(-30px, 35px) rotate(-3deg); }
  75% { transform: translate(25px, -35px) rotate(4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* --- SPECIFIC TO INDEX.HTML --- */

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 120px 24px 80px; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 24px; animation: fadeInUp 0.8s ease; }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.hero h1 { margin-bottom: 20px; animation: fadeInUp 0.8s ease 0.1s both; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-secondary); max-width: 600px; margin: 0 auto 40px; line-height: 1.6; animation: fadeInUp 0.8s ease 0.2s both; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeInUp 0.8s ease 0.3s both; }
.hero-image { margin-top: 56px; position: relative; animation: fadeInUp 0.8s ease 0.4s both; }
.hero-image img { width: 100%; max-width: 900px; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Ticker */
.ticker { overflow: hidden; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(10, 18, 32, 0.4); }
.ticker-track { display: flex; gap: 48px; animation: scroll-ticker 40s linear infinite; width: max-content; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font-size: 0.9rem; color: var(--text-muted); white-space: nowrap; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ticker-item span { color: var(--text-primary); }
@keyframes scroll-ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Features & Unique Grids */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; position: relative; z-index: 1; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; transition: var(--transition); }
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-hover); background: var(--bg-card-hover); }
.feature-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); }
.feature-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; color: var(--text-primary); }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

.unique-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.unique-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: var(--transition); }
.unique-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
.unique-badge { display: inline-block; background: rgba(255, 255, 255, 0.1); color: var(--text-primary); font-size: 0.7rem; font-weight: 600; padding: 4px 10px; border-radius: 12px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.unique-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.unique-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.unique-card code { background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text-secondary); border: 1px solid var(--border); }

/* Showcase - Galeri (Now to be moved, but kept for galeri.html) */
.showcase-tabs { display: flex; gap: 8px; background: transparent; padding: 0; margin-bottom: 32px; overflow-x: auto; border: none; }
.showcase-tab { padding: 10px 20px; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); font-weight: 500; font-size: 0.9rem; cursor: pointer; transition: var(--transition); white-space: nowrap; font-family: inherit; }
.showcase-tab.active { background: var(--text-primary); color: var(--bg-darkest); border-color: var(--text-primary); }
.showcase-tab:hover:not(.active) { color: var(--text-primary); border-color: var(--border-hover); }
.showcase-content { display: none; animation: fadeIn 0.4s ease; }
.showcase-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.showcase-image-wrapper { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card); background: var(--bg-darkest); display: flex; align-items: center; justify-content: center; }
.showcase-image-wrapper img { width: 100%; height: auto; display: block; }
.showcase-details { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.showcase-detail { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 20px; transition: var(--transition); }
.showcase-detail h4 { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }

/* Terminal Demo */
.terminal { background: #0a0e1a; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; max-width: 800px; box-shadow: var(--shadow-card); transition: var(--transition); margin: 0 auto; }
.terminal-bar { background: #0f1525; padding: 10px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: #22c55e; }
.terminal-title { flex: 1; text-align: center; font-size: 0.75rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.terminal-body { padding: 20px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; line-height: 1.7; min-height: 300px; }
.terminal-line { opacity: 0; animation: typeLine 0.1s ease forwards; }
.t-prompt { color: #a78bfa; }
.t-cmd { color: var(--text-primary); }
.t-key { color: var(--text-secondary); font-weight: 500; }
.t-val { color: var(--text-muted); }
.t-art { color: var(--accent-light); }
.t-cursor { display: inline-block; width: 8px; height: 16px; background: var(--text-secondary); vertical-align: text-bottom; animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes typeLine { from { opacity: 0; } to { opacity: 1; } }

/* Tech Stats */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.tech-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; text-align: center; transition: var(--transition); }
.tech-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.tech-value { font-size: 2.5rem; font-weight: 700; color: var(--text-primary); font-family: 'JetBrains Mono', monospace; margin-bottom: 4px; }
.tech-label { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }

/* Comparison Table */
.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.comparison-table th, .comparison-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.comparison-table th { background: rgba(0,0,0,0.2); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); }
.comparison-table td:first-child { font-weight: 500; color: var(--text-primary); }
.comparison-table td { color: var(--text-secondary); font-size: 0.9rem; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.check { color: var(--success); font-weight: 700; font-size: 1.1rem; }
.cross { color: var(--text-dim); font-size: 1.1rem; }
.highlight-col { background: rgba(255, 255, 255, 0.02); }

/* Download Section (Index) */
.download-card { position: relative; z-index: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 56px 40px; max-width: 800px; margin: 0 auto; text-align: center; }
.download-version { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.download-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.download-info { display: flex; gap: 24px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.download-info-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; transition: var(--transition); }
.faq-item:hover, .faq-item.open { border-color: var(--border-hover); }
.faq-question { width: 100%; padding: 18px 24px; background: transparent; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1rem; font-weight: 500; color: var(--text-primary); font-family: inherit; text-align: left; transition: var(--transition); }
.faq-question:hover { background: rgba(255,255,255,0.02); }
.faq-arrow { font-size: 1rem; color: var(--text-muted); transition: transform 0.3s ease; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--text-primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner { padding: 0 24px 20px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* Stats Counter Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.stat-item { padding: 24px; }
.stat-number { font-size: 3rem; font-weight: 700; font-family: 'Outfit', sans-serif; color: var(--text-primary); margin-bottom: 4px; }
.stat-label { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }

/* Palette */
.palette-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.palette-swatch { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); cursor: pointer; transition: var(--transition); background: var(--bg-card); }
.palette-swatch:hover { transform: translateY(-2px); border-color: var(--border-hover); }
.palette-color { height: 80px; position: relative; }
.palette-info { padding: 12px; }
.palette-info .name { font-weight: 500; font-size: 0.85rem; margin-bottom: 2px; }
.palette-info .hex { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-muted); }

/* --- SPECIFIC TO INDIR.HTML --- */

.hero-download { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; padding: 120px 24px 60px; }
.download-hero-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 48px; max-width: 800px; margin: 0 auto; text-align: center; backdrop-filter: blur(10px); }

.version-selector { display: flex; gap: 8px; justify-content: center; margin-bottom: 32px; background: rgba(255,255,255,0.03); padding: 4px; border-radius: 8px; border: 1px solid var(--border); }
.version-btn { padding: 10px 20px; border-radius: 6px; background: transparent; border: none; color: var(--text-muted); font-weight: 500; font-size: 0.85rem; cursor: pointer; transition: var(--transition); font-family: 'JetBrains Mono', monospace; }
.version-btn.active { background: var(--text-primary); color: var(--bg-darkest); }
.version-btn:hover:not(.active) { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.download-primary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--text-primary); color: var(--bg-darkest); font-weight: 600; font-size: 1.1rem; padding: 18px 40px; border-radius: 12px; border: none; cursor: pointer; transition: var(--transition); width: 100%; font-family: inherit; }
.download-primary-btn:hover { background: #e2e8f0; transform: translateY(-2px); }
.download-primary-btn .btn-icon { font-size: 1.2rem; }
.download-primary-btn .btn-sub { display: block; font-weight: 400; font-size: 0.8rem; opacity: 0.8; margin-top: 4px;}

.download-meta { display: flex; gap: 24px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.download-meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.download-meta-item .label { color: var(--text-secondary); font-weight: 500; }

.verify-section { padding: 80px 24px; position: relative; }
.verify-inner { max-width: 800px; margin: 0 auto; }
.verify-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; margin-bottom: 16px; }
.verify-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; }
.verify-code { background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 8px; padding: 14px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text-secondary); word-break: break-all; position: relative; cursor: pointer; transition: var(--transition); }
.verify-code:hover { border-color: var(--border-hover); background: rgba(0,0,0,0.5); }
.verify-code .copy-badge { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,0.1); color: var(--text-primary); padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 500; opacity: 0; transition: opacity 0.2s; }
.verify-code:hover .copy-badge { opacity: 1; }

.guide-section { padding: 80px 24px; max-width: 900px; margin: 0 auto; position: relative; }
.steps { counter-reset: step; }
.step { counter-increment: step; display: flex; gap: 20px; margin-bottom: 20px; padding: 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; }
.step-number { flex-shrink: 0; width: 40px; height: 40px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1rem; color: var(--text-primary); }
.step-content h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.step-content p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }
.step-content code { background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text-muted); border: 1px solid var(--border); }

.changelog-section { padding: 80px 24px; position: relative; }
.changelog-inner { max-width: 800px; margin: 0 auto; }
.changelog-entry { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; margin-bottom: 20px; }
.changelog-version { font-family: 'JetBrains Mono', monospace; color: var(--text-primary); font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.changelog-date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; font-weight: 400; }
.changelog-list { list-style: none; }
.changelog-list li { padding: 6px 0; padding-left: 24px; position: relative; color: var(--text-secondary); font-size: 0.9rem; }
.changelog-list li::before { content: '›'; position: absolute; left: 8px; color: var(--text-dim); font-weight: 600; font-size: 1rem; top: 4px; }
.changelog-list li.added { color: var(--success); }
.changelog-list li.fixed { color: var(--text-primary); }
.changelog-list li.changed { color: var(--warning); }

/* Footer */
.footer { background: var(--bg-dark); border-top: 1px solid var(--border); padding: 64px 24px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; line-height: 1.6; }
.footer-heading { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 20px; font-family: 'Outfit', sans-serif;}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { color: var(--text-dim); font-size: 0.85rem; }

/* Edition Sections (Desktop/Server) */
.edition-section { padding: 80px 24px; }
.edition-card {
  display: flex; align-items: center; gap: 48px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 48px;
}
.edition-card.reverse { flex-direction: row-reverse; }
.edition-info { flex: 1; min-width: 0; }
.edition-screenshot { flex: 1; min-width: 0; }
.edition-screenshot img {
  width: 100%; border-radius: 12px;
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.edition-features { list-style: none; margin: 0; }
.edition-features li {
  padding: 8px 0; color: var(--text-secondary); font-size: 0.95rem;
  display: flex; align-items: center; gap: 8px;
}
.edition-features li code {
  background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
  color: var(--text-muted); border: 1px solid var(--border);
}

/* Server Page */
.server-hero { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 60px; position: relative; }
.server-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.server-feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; transition: var(--transition); }
.server-feature-card:hover { transform: translateY(-4px); border-color: var(--border-hover); background: var(--bg-card-hover); }
.server-feature-icon { font-size: 2rem; margin-bottom: 16px; }
.server-feature-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.server-feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* Template Cards */
.template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.template-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; text-align: center; transition: var(--transition); }
.template-card:hover { transform: translateY(-4px); border-color: var(--border-hover); background: var(--bg-card-hover); }
.template-icon { font-size: 2.5rem; margin-bottom: 12px; }
.template-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.template-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; }
.template-card code { display: inline-block; margin-top: 12px; background: rgba(0,0,0,0.3); padding: 6px 12px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--accent-light); border: 1px solid var(--border); }

/* Muz Section */
.muz-card { background: linear-gradient(135deg, rgba(107,33,168,0.1), rgba(147,51,234,0.05)); border: 1px solid var(--accent-dim); border-radius: 20px; padding: 48px; text-align: center; max-width: 800px; margin: 0 auto; }
.muz-card code { background: rgba(0,0,0,0.4); padding: 4px 10px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; color: var(--accent-light); }
.muz-commands { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.muz-cmd { background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 8px; padding: 12px 20px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text-secondary); }

@media (max-width: 768px) {
  .edition-card, .edition-card.reverse { flex-direction: column; padding: 32px 24px; }
  .muz-card { padding: 32px 24px; }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .features-grid, .unique-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .comparison-table { font-size: 0.85rem; }
  .comparison-table th, .comparison-table td { padding: 12px 14px; }
  .download-card { padding: 40px 24px; }
}
@media (max-width: 600px) {
  section, .hero, .hero-download { padding: 80px 16px 40px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .showcase-tabs { flex-direction: column; }
  .tech-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .download-hero-card { padding: 32px 20px; }
  .version-selector { flex-wrap: wrap; }
  .version-btn { flex: 1; min-width: 80px; text-align: center; padding: 8px 12px; }
  .step { flex-direction: column; align-items: flex-start; gap: 12px;}
  .step-number { width: 36px; height: 36px; font-size: 0.9rem; }
}
