/* ==============================================================================
   Power Grid HaYTooL - Official Portal Stylesheet
   Modern, Ultra-Premium, Dual-Theme (Dark / Light) Design System
   ============================================================================== */

/* --- Root Design Tokens (Dark Theme Default) --- */
:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  /* Color Palette - Dark Mode */
  --bg-page: #080C14;
  --bg-surface: #0E1424;
  --bg-surface-elevated: #151D33;
  --bg-card: rgba(18, 25, 45, 0.75);
  --bg-card-hover: rgba(26, 36, 65, 0.9);
  --bg-glass: rgba(14, 20, 36, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-focus: #3B82F6;

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-invert: #080C14;

  --primary: #3B82F6;
  --primary-hover: #2563EB;
  --primary-glow: rgba(59, 130, 246, 0.35);

  --accent-cyan: #06B6D4;
  --accent-green: #10B981;
  --accent-green-glow: rgba(16, 185, 129, 0.3);
  --accent-amber: #F59E0B;
  --accent-amber-glow: rgba(245, 158, 11, 0.3);
  --accent-red: #EF4444;
  --accent-purple: #8B5CF6;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 35px var(--primary-glow);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Light Theme Token Overrides --- */
[data-theme="light"] {
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F1F5F9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(248, 250, 252, 1);
  --bg-glass: rgba(255, 255, 255, 0.8);
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.15);
  --border-focus: #2563EB;

  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-invert: #FFFFFF;

  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-glow: rgba(37, 99, 235, 0.2);

  --accent-cyan: #0284C7;
  --accent-green: #059669;
  --accent-green-glow: rgba(5, 150, 105, 0.2);
  --accent-amber: #D97706;
  --accent-amber-glow: rgba(217, 119, 6, 0.2);
  --accent-red: #DC2626;
  --accent-purple: #7C3AED;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 35px var(--primary-glow);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Subtle Animated Ambient Background Grid */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 20%, var(--primary-glow) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, var(--accent-green-glow) 0%, transparent 45%);
  pointer-events: none;
  z-index: -2;
  opacity: 0.65;
  transition: opacity var(--transition-smooth);
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}

/* Typography Helpers */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

/* --- Container & Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / Navigation Bar --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px var(--primary-glow));
}

.nav-brand .brand-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 8px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-full);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.nav-link.nav-portal-link {
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.nav-link.nav-portal-link:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-amber);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.hero-pill-link {
  display: inline-block;
  text-decoration: none;
}

.hero-pill-link:hover .hero-pill {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Toggle Buttons */
.btn-control {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-control:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-normal);
}

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

/* --- Hero Section --- */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-desc {
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--text-secondary);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Power Cat Mascot Showcase */
.mascot-wrapper {
  margin: 16px auto 0;
  display: flex;
  justify-content: center;
}

.mascot-card {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  max-width: 680px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.mascot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-amber), var(--primary));
}

.mascot-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 16px 40px var(--primary-glow);
}

.mascot-img {
  width: 135px;
  height: 135px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(59, 130, 246, 0.5);
  flex-shrink: 0;
  transition: transform var(--transition-smooth);
}

.mascot-card:hover .mascot-img {
  transform: scale(1.05) rotate(1deg);
}

.mascot-speech {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mascot-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mascot-quote {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

/* --- Interactive Smart GPU Simulation Widget --- */
.smart-gpu-showcase {
  margin: 60px 0 100px;
}

.widget-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.widget-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-amber), var(--accent-red));
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.widget-title-group h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.widget-title-group p {
  font-size: 0.95rem;
}

.active-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}

.active-plan-badge.badge-eco {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 16px var(--accent-green-glow);
}

.active-plan-badge.badge-balanced {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 16px var(--accent-amber-glow);
}

.active-plan-badge.badge-apex {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}

/* Slider Controls */
.slider-container {
  margin: 32px 0 24px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.slider-labels .load-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--primary);
}

.gpu-slider {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  outline: none;
  -webkit-appearance: none;
  background: linear-gradient(to right, 
    var(--accent-green) 0%, 
    var(--accent-green) 10%, 
    var(--accent-amber) 10%, 
    var(--accent-amber) 30%, 
    var(--accent-red) 30%, 
    var(--accent-red) 100%);
  cursor: pointer;
}

.gpu-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--primary);
  box-shadow: 0 0 14px var(--primary-glow);
  cursor: grab;
  transition: transform var(--transition-fast);
}

.gpu-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
}

/* Simulation Metrics Grid */
.sim-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.metric-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: left;
}

.metric-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Live Toast Simulation Notification */
.sim-toast {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 340px;
  z-index: 10;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-smooth);
}

.sim-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.sim-toast-icon {
  font-size: 1.6rem;
}

.sim-toast-text {
  font-size: 0.85rem;
  line-height: 1.3;
}

.sim-toast-title {
  font-weight: 700;
  color: var(--text-primary);
}

.sim-toast-desc {
  color: var(--text-secondary);
}

/* --- Section Headings --- */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

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

/* --- Features Grid (Bento Style) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card.highlight {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3,
.feature-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Screenshot Showcase Tabs & Lightbox --- */
.gallery-container {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.gallery-tabs {
  display: flex;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.gallery-tab {
  padding: 16px 24px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.gallery-tab:hover {
  color: var(--text-primary);
}

.gallery-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--bg-surface-elevated);
}

.gallery-view {
  padding: 32px;
  text-align: center;
  background: var(--bg-page);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-view img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  cursor: zoom-in;
  transition: transform var(--transition-smooth);
}

.gallery-view img:hover {
  transform: scale(1.015);
}

.gallery-caption {
  margin-top: 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Modal Lightbox for Images */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 2rem;
  color: #FFFFFF;
  cursor: pointer;
  border: none;
  background: transparent;
}

/* --- Comparison Table Section --- */
.compare-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-md);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th, .compare-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.compare-table th {
  background: var(--bg-surface);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
}

.compare-table tr:hover td {
  background: var(--bg-surface-elevated);
}

/* --- FAQ Section --- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 20px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.faq-item h3,
.faq-item h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

/* --- Download CTA Section --- */
.download-section {
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-surface) 100%);
  border-top: 1px solid var(--border-subtle);
  padding: 100px 0;
  text-align: center;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.download-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 36px 0 20px;
}

.system-reqs {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-page);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-brand strong {
  color: var(--text-primary);
  font-weight: 700;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

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

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

/* --- Trust Badges (Hero) --- */
.hero-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.trust-badge:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--text-primary);
}

/* --- Scenario Highlights (Simulator) --- */
.scenario-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.scenario-item {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.scenario-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.scenario-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.scenario-badge.badge-idle {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.scenario-badge.badge-work {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.scenario-badge.badge-game {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.scenario-item p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* --- Developer Manifesto & E-E-A-T Section --- */
.manifesto-section {
  padding: 60px 0;
}

.manifesto-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.manifesto-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-amber));
}

.manifesto-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 36px;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.manifesto-item {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.manifesto-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.manifesto-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.manifesto-item h3,
.manifesto-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.manifesto-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.manifesto-item code {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.manifesto-footer {
  text-align: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.manifesto-author {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.1);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: inline-block;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-section {
    padding: 50px 0 30px;
  }
  
  .widget-card,
  .manifesto-card {
    padding: 24px 18px;
  }

  .faq-grid,
  .manifesto-grid,
  .scenario-highlights {
    grid-template-columns: 1fr;
  }
}
