:root {
  /* Dark mode color palette */
  --bg-deep: #09090b; /* Deep almost-black base */
  --bg-app: #0d1117; /* Slightly lighter app background */
  --bg-card: rgba(255, 255, 255, 0.03); /* Subtle card bg */
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-terminal: #0a0a0c;
  
  --text-main: #f8fafc; /* Crisp white */
  --text-muted: #94a3b8; /* Slate gray */
  --text-dark: #cbd5e1;
  
  --border-light: rgba(255, 255, 255, 0.08); /* Subtle borders */
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-terminal: #27272a;
  
  /* Primary Accent: Neon Teal & Vivid Blue */
  --accent-teal: #00e5ff;
  --accent-blue: #3b82f6;
  --accent-glow: rgba(0, 229, 255, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-glow: 0 0 20px var(--accent-glow);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08) 0vw, transparent 30vw),
    radial-gradient(circle at 85% 30%, rgba(0, 229, 255, 0.08) 0vw, transparent 30vw);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-shadow: 0 0 8px var(--accent-glow);
}

.text-link {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.text-link:hover {
  color: #fff;
}

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

/* Layout Structure */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  min-height: calc(100vh - 80px); /* Account for footer */
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

/* Sticky Header */
.site-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.site-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.brand:hover {
  text-shadow: none;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.main-nav a:hover {
  color: #fff;
  text-shadow: none;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-teal);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-glow);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--accent-teal);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  box-shadow: inset 0 0 10px rgba(0,229,255,0.05);
}

.hero h1 {
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* Buttons */
.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:hover {
  text-shadow: none;
}

.btn.primary {
  background: var(--text-main);
  color: var(--bg-deep);
  box-shadow: 0 4px 14px rgba(255,255,255,0.1);
}

.btn.primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.15);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: var(--border-light);
  backdrop-filter: blur(10px);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Stats Row */
.stat-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Styling */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

/* Terminal Mac Window */
.terminal-window {
  background: var(--bg-terminal);
  border: 1px solid var(--border-terminal);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  margin: 0 auto;
  max-width: 800px;
}

.terminal-header {
  background: #18181a;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-terminal);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  flex-grow: 1;
  text-align: center;
  margin-right: 56px; /* Offset to center title */
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: #e2e8f0;
  overflow-x: auto;
}

.terminal-body pre {
  margin: 0 0 1rem 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-body pre:last-child {
  margin-bottom: 0;
}

.terminal-prompt {
  color: #10b981; /* Green */
  margin-right: 0.5rem;
  user-select: none;
}

.terminal-command {
  color: var(--accent-teal);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.bento-item-1 { grid-column: span 12; }
@media (min-width: 768px) {
  .bento-item-1, .bento-item-2, .bento-item-3 { grid-column: span 4; }
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  border: 1px solid var(--border-light);
}

.card h3 {
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
  flex-grow: 1;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.category-card {
  padding: 1.5rem;
}

.category-card .top-pick {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.category-card .top-pick p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.category-card strong {
  color: var(--text-main);
  font-weight: 600;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-dark);
}

/* Footer */
.site-footer-wrapper {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  background: rgba(9, 9, 11, 0.4);
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  color: var(--border-light);
  font-size: 0.85rem;
}

.footer-copy.solid {
  color: #64748b;
}


/* General Responsive */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  main {
    padding-top: 8rem; /* Account for taller header */
    gap: 4rem;
  }
  
  .stat-row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .terminal-title {
    display: none;
  }
}
