/* ============================================================
   AIツールナビ — Design System & Global Styles
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+JP:wght@400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors - Dark Theme */
  --bg-primary: #0B0F1A;
  --bg-secondary: #111827;
  --bg-card: #1A1F2E;
  --bg-card-hover: #232838;
  --bg-glass: rgba(26, 31, 46, 0.7);
  --bg-glass-light: rgba(255, 255, 255, 0.05);

  /* Accent Colors */
  --accent-purple: #8B5CF6;
  --accent-purple-light: #A78BFA;
  --accent-purple-dark: #6D28D9;
  --accent-cyan: #06B6D4;
  --accent-cyan-light: #22D3EE;
  --accent-cyan-dark: #0891B2;
  --accent-pink: #EC4899;
  --accent-green: #10B981;
  --accent-orange: #F59E0B;
  --accent-red: #EF4444;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
  --gradient-purple: linear-gradient(135deg, #6D28D9 0%, #A78BFA 100%);
  --gradient-cyan: linear-gradient(135deg, #0891B2 0%, #22D3EE 100%);
  --gradient-hero: linear-gradient(135deg, #0B0F1A 0%, #1a1040 40%, #0d2137 70%, #0B0F1A 100%);
  --gradient-card: linear-gradient(145deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);

  /* Text */
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-accent: #A78BFA;

  /* Borders */
  --border-default: rgba(148, 163, 184, 0.1);
  --border-hover: rgba(139, 92, 246, 0.3);
  --border-active: rgba(139, 92, 246, 0.6);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
  --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.3);

  /* 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;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --max-width: 1280px;
  --header-height: 72px;
}

/* --- Global Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--accent-purple-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-cyan-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title h2 {
  margin-bottom: var(--space-md);
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

section {
  padding: var(--space-4xl) 0;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(11, 15, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-default);
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(11, 15, 26, 0.95);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-glass-light);
}

.nav-links a.active {
  color: var(--accent-purple-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: var(--space-sm);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
  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);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow-purple);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
  background: var(--bg-glass-light);
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  opacity: 1;
}

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
}

/* --- Category Card --- */
.category-card {
  text-align: center;
  cursor: pointer;
}

.category-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: var(--gradient-card);
  border: 1px solid var(--border-default);
  transition: all var(--transition-base);
}

.category-card:hover .category-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow-purple);
}

.category-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.category-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Tool Card --- */
.tool-card {
  display: flex;
  flex-direction: column;
}

.tool-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.tool-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.tool-card-header h3 {
  font-size: 1.1rem;
}

.tool-card-header .tool-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple-light);
  font-weight: 600;
  margin-left: auto;
}

.tool-card .tool-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-glass-light);
  color: var(--text-muted);
  border: 1px solid var(--border-default);
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-default);
}

.tool-price {
  font-size: 0.9rem;
  color: var(--accent-cyan-light);
  font-weight: 600;
}

.tool-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-orange);
  font-size: 0.85rem;
}

/* --- Article Card --- */
.article-card {
  display: flex;
  flex-direction: column;
}

.article-card .article-thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: var(--gradient-card);
  margin-bottom: var(--space-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.article-card .article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-card .article-category {
  color: var(--accent-purple-light);
  font-weight: 600;
}

.article-card h3 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.article-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Grid layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-bg .orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-purple);
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.hero-bg .orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-cyan);
  bottom: 20%;
  right: 10%;
  animation-delay: -3s;
}

.hero-bg .orb-3 {
  width: 200px;
  height: 200px;
  background: var(--accent-pink);
  top: 50%;
  left: 50%;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-purple-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-xl);
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  margin-bottom: var(--space-xl);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero .hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--gradient-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  animation: rotateBg 15s linear infinite;
}

@keyframes rotateBg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  margin-bottom: var(--space-md);
}

.cta-banner p {
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Comparison Table --- */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.compare-table th,
.compare-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-default);
}

.compare-table thead th {
  background: var(--bg-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  position: sticky;
  top: 0;
}

.compare-table tbody tr {
  transition: background var(--transition-fast);
}

.compare-table tbody tr:hover {
  background: var(--bg-glass-light);
}

.compare-table td {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.compare-table .highlight {
  color: var(--accent-cyan-light);
  font-weight: 600;
}

.check-yes {
  color: var(--accent-green);
}

.check-no {
  color: var(--text-muted);
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

/* --- Rating Stars --- */
.stars {
  display: inline-flex;
  gap: 2px;
}

.star {
  color: var(--accent-orange);
  font-size: 0.9rem;
}

.star.empty {
  color: var(--text-muted);
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: var(--space-lg) 0;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-purple-light);
}

.breadcrumb .separator {
  color: var(--text-muted);
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--accent-purple-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-default);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-glass-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  border: 1px solid var(--border-default);
}

.footer-social a:hover {
  color: var(--accent-purple-light);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* --- Diagnosis --- */
.diagnosis-container {
  max-width: 700px;
  margin: 0 auto;
}

.diagnosis-step {
  display: none;
}

.diagnosis-step.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.diagnosis-progress {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.diagnosis-progress .step-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border-default);
  transition: background var(--transition-base);
}

.diagnosis-progress .step-dot.completed {
  background: var(--gradient-primary);
}

.diagnosis-question h3 {
  margin-bottom: var(--space-xl);
  font-size: 1.3rem;
}

.diagnosis-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.diagnosis-option {
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-primary);
  text-align: left;
}

.diagnosis-option:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.diagnosis-option.selected {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.1);
}

.diagnosis-result {
  text-align: center;
}

.diagnosis-result .result-icon {
  font-size: 4rem;
  margin-bottom: var(--space-xl);
}

.diagnosis-result h2 {
  margin-bottom: var(--space-md);
}

.diagnosis-result .result-tool {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
}

/* --- Simulator --- */
.simulator-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.sim-field label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

.sim-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent-purple);
}

.sim-field select {
  width: 100%;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  cursor: pointer;
}

.sim-result-card {
  text-align: center;
  padding: var(--space-2xl);
}

.sim-result-card .monthly-cost {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sim-result-card .cost-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.sim-bar-chart {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sim-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.sim-bar-label {
  width: 120px;
  font-size: 0.85rem;
  font-weight: 500;
  flex-shrink: 0;
}

.sim-bar-track {
  flex: 1;
  height: 32px;
  background: var(--bg-glass-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.sim-bar-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  transition: width 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  min-width: 60px;
}

.sim-bar.recommended .sim-bar-fill {
  background: var(--gradient-cyan);
}

.sim-bar.recommended .sim-bar-label {
  color: var(--accent-cyan-light);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- Page Header (Category pages) --- */
.page-header {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.page-header .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.page-header .orb-1 {
  width: 300px;
  height: 300px;
  background: var(--accent-purple);
  top: -50px;
  right: 10%;
}

.page-header .orb-2 {
  width: 200px;
  height: 200px;
  background: var(--accent-cyan);
  bottom: -30px;
  left: 15%;
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  margin-bottom: var(--space-md);
}

.page-header p {
  max-width: 600px;
  font-size: 1.05rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl);
    border-left: 1px solid var(--border-default);
    transition: right var(--transition-base);
    align-items: stretch;
    gap: var(--space-sm);
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-6 {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .hero {
    min-height: 80vh;
  }

  .container {
    padding: 0 var(--space-md);
  }

  section {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

/* --- Mobile nav overlay --- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
