@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/Playfair_Display/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/Playfair_Display/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/fonts/lora/Lora-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/fonts/lora/Lora-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Semantic Color System (Deep Obsidian Ink - Default Dark) */
  --bg-app: #0D0D0C;
  --bg-surface: #1C1C1B;
  --bg-surface-hover: #2A2A29;
  --bg-surface-2: #232321; /* Added from source */
  
  --txt-primary: #f0f0f0;
  --txt-secondary: #a3a3a3;
  --txt-tertiary: #52525b;
  
  --accent: #6366f1; /* Indigo (kept for other elements) */
  --accent-2: #6fb391; /* Green (New) */
  --accent-gold: #d39a47; /* Gold (New) */
  
  --accent-soft: rgba(99, 102, 241, 0.1);
  --accent-glow: rgba(99, 102, 241, 0.15);
  --accent-cursive: #6fb391; /* Default Green for Dark Mode */
  
  /* Container Variables */
  --container-bg: rgba(255, 255, 255, 0.02);
  --container-border: rgba(255, 255, 255, 0.05);
  
  /* Background Gradients (Dark) */
  --bg-gradient-1: rgba(111,179,145,0.12); /* Greenish */
  --bg-gradient-2: rgba(211,154,71,0.12);  /* Goldish */
  
  --border: #262626;
  --border-light: #3f3f46;
  
  --bg: var(--bg-app);
  --surface: var(--bg-surface);
  --surface-hover: var(--bg-surface-hover);
  --text: var(--txt-primary);
  --text-muted: var(--txt-secondary);

  --btn-bg: var(--bg-surface-2);
  --btn-border: var(--border);
  --btn-primary-bg: linear-gradient(135deg, rgba(211,154,71,0.18), rgba(111,179,145,0.18));
  --btn-primary-border: rgba(211,154,71,0.4);
  --btn-primary-border-hover: rgba(211,154,71,0.45);
  --btn-primary-text: var(--text);
  --btn-primary-shadow: none;

  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 4px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --header-h: 72px;
  --gap: 12px;
}

[data-theme="light"] {
  /* Warm Stone */
  --bg-app: #E8E6E2;
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #F8F7F4;
  --bg-surface-2: #F1EFEA; /* Adapted light surface */
  
  --txt-primary: #121212;
  --txt-secondary: #3F3F3B;
  --txt-tertiary: #71717a;
  
  --accent-cursive: #B45309; /* Burnt Orange for Light Mode */
  
  /* Container Variables (Light Mode) */
  --container-bg: rgba(255, 255, 255, 0.24); /* Subtle lift */
  --container-border: transparent; /* Remove hard line */
  
  /* Background Gradients (Light - Adapted) */
  --bg-gradient-1: rgba(111,179,145,0.10); /* Greenish - subtle */
  --bg-gradient-2: rgba(211,154,71,0.10);  /* Goldish - subtle */
  
  --border: #D6D4CF;
  --border-light: #d4d4d8;

  --btn-bg: #FFFFFF;
  --btn-border: #DCDbd8;
  /* Light mode: Solid Black Button with depth */
  --btn-primary-bg: #18181b; 
  --btn-primary-border: #18181b;
  --btn-primary-border-hover: #000;
  --btn-primary-text: #FFFFFF;
  --btn-primary-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  
  /* New Background from Hobbyboard Website */
  background: radial-gradient(1200px 800px at 20% -10%, var(--bg-gradient-1), transparent),
              radial-gradient(800px 800px at 90% 10%, var(--bg-gradient-2), transparent),
              var(--bg);
  background-attachment: fixed;
  
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* Global Grain Texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04; /* Increased slightly to match source */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

h1, h2, h3, .brand-text {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Header */
.topbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1200px;
  height: 64px;
  background: rgba(24, 24, 27, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 20px;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0,0,0,0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-mark {
  display: flex;
  gap: 4px;
  height: 24px;
  align-items: center;
}

.brand-mark span {
  width: 6px;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-mark span:nth-child(1) { height: 100%; }
.brand-mark span:nth-child(2) { height: 60%; }
.brand-mark span:nth-child(3) { height: 80%; }

.brand:hover .brand-mark span:nth-child(1) { height: 60%; }
.brand:hover .brand-mark span:nth-child(2) { height: 100%; }
.brand:hover .brand-mark span:nth-child(3) { height: 40%; }

.brand-text {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}

/* Controls (Common) */
.icon-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  transition: all 0.2s;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.icon-btn:hover { background: var(--bg-surface-hover); }
.icon { width: 20px; height: 20px; fill: currentColor; }

.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Desktop Controls (Inline) */
.desktop-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 32px;
  margin-left: 40px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-links.desktop-only {
    display: none;
  }
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.nav-item {
  padding: 12px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}


/* Grid */
.content { 
  padding: 24px; 
  padding-top: 80px; /* Reduced from 110px */
  max-width: 1200px; 
  margin: 0 auto; 
  min-height: 100vh; 
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  min-height: calc(100vh - 120px);
  padding: 20px 0;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 64px;
  line-height: 1.25; /* Increased line-height to prevent clipping */
  margin: 0 0 16px;
  padding-bottom: 8px; /* Added padding for descenders */
  font-style: italic;
  background: linear-gradient(to right, var(--text), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-cursive {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--accent-cursive); /* Updated to use variable */
  margin: 0 0 32px;
  font-weight: 400;
}

.hero-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.hero-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero-cta-sub {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  line-height: 1.2;
  position: relative;
  padding-left: 14px;
}

.hero-cta-sub::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 1px;
  background: var(--text-muted);
  opacity: 0.8;
}

.hero-actions .btn-secondary {
  align-self: flex-start;
}

/* Base Button Style */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
  width: fit-content;
}

/* Primary Button Style */
.btn-primary {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-border);
  color: var(--btn-primary-text, var(--text)); /* Use text var with fallback */
  box-shadow: var(--btn-primary-shadow, 0 0 0 0 rgba(0, 0, 0, 0), 0 0 0 0 rgba(0, 0, 0, 0));
  position: relative;
}

.btn-primary:hover {
  transform: translateY(-1px);
  border-color: var(--btn-primary-border-hover);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(211, 154, 71, 0.55);
  box-shadow: 0 0 0 2px rgba(211, 154, 71, 0.12), 0 8px 24px rgba(111, 179, 145, 0.18);
  opacity: 0.9;
  pointer-events: none;
}

/* Secondary Button Style */
.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: var(--btn-primary-border-hover);
}

/* Sizing */
.btn-lg {
  padding: 10px 24px;
  font-size: 14px;
  text-align: center;
  min-height: 44px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-visual {
  flex: 1.2;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.hero-image-container {
  position: relative;
  border-radius: 12px;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.hero-image-container:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

[data-theme="light"] .hero-image-container {
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
}

.hero-image {
  max-width: 100%;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--border);
}

.hero-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

@media (max-width: 960px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding-top: 40px;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 48px;
  }
  
  .hero-image-container {
    transform: none;
    margin-top: 20px;
  }
  
  .hero-image-container:hover {
    transform: none;
  }
}

/* Mobile Controls & Drawer */
.mobile-controls {
  display: none;
}

@media (max-width: 768px) {
  .desktop-controls { display: none; }
  .mobile-controls { display: block; }
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  transition: visibility 0.3s;
  visibility: visible;
}

.drawer.hidden {
  visibility: hidden;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.drawer:not(.hidden) .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.drawer-content {
  width: 300px;
  max-width: 80vw;
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(100%);
  pointer-events: auto;
  box-shadow: -10px 0 30px rgba(0,0,0,0.2);
}

.drawer:not(.hidden) .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  font-family: 'Playfair Display', serif;
}

.drawer-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
}

.drawer-body {
  flex: 1;
}

.setting-item label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Mobile Theme Button */
.mobile-theme-btn {
  width: 100%;
  justify-content: flex-start;
  padding: 12px 20px;
  gap: 12px;
  font-size: 16px;
}

.theme-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

.mobile-theme-btn .icon-sun { display: none; }
[data-theme="dark"] .mobile-theme-btn .icon-sun { display: block; }
[data-theme="dark"] .mobile-theme-btn .icon-moon { display: none; }

/* Tabbed Browser Showcase */
.showcase {
  padding: 20px 0;
}

.showcase .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  background: var(--container-bg); /* Use variable */
  border: 1px solid var(--container-border); /* Use variable */
  border-radius: 24px;
}

.showcase-header {
  text-align: center;
  margin-bottom: 32px;
}

.showcase-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  margin: 0 0 16px;
  color: var(--text);
  letter-spacing: 0.04em; /* Increased for legibility */
  padding-bottom: 4px;
}

.showcase-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Tabs */
.browser-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.browser-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 99px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative; /* For pseudo-element */
  overflow: hidden; /* Contain progress bar */
}

.browser-tab:hover {
  background: var(--bg-surface-hover);
  color: var(--text);
}

.browser-tab.active {
  background: var(--bg-surface-2);
  color: var(--text);
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Progress Bar for Auto-Play */
.browser-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent-gold);
  width: 0%;
  /* Animate width to 100% over 4s (matching JS interval) */
  animation: progress 4s linear forwards; 
}

/* Pause animation on hover */
.browser-showcase:hover .browser-tab.active::after {
  animation-play-state: paused;
}

@keyframes progress {
  from { width: 0%; }
  to { width: 100%; }
}

/* Browser Frame */
.browser-frame {
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

[data-theme="light"] .browser-frame {
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.15);
}

.browser-chrome {
  background: var(--bg-surface);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
}
.traffic-light.red { background: #ff5f56; }
.traffic-light.yellow { background: #ffbd2e; }
.traffic-light.green { background: #27c93f; }

.browser-address {
  margin-left: 12px;
  background: var(--bg-app);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: monospace;
  width: 100%;
  max-width: 300px;
  text-align: center;
  opacity: 0.6;
}

/* Images */
.browser-content {
  position: relative;
  width: 100%;
  /* Maintain aspect ratio based on screenshot (approx 16:10 or 16:9). 
     Assuming 16:10 for now, or let image dictate height */
  aspect-ratio: 16/10; 
}

.browser-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  display: block;
}

.browser-img.active {
  opacity: 1;
  position: relative; /* Let the active one dictate height */
}

/* Feature Cards Section */
.features {
  padding: 20px 0; /* Reduced from 80px */
}

.features .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  background: var(--container-bg); /* Use variable */
  border: 1px solid var(--container-border); /* Use variable */
  border-radius: 24px;
}

.features-header {
  text-align: center;
  margin-bottom: 48px;
}

.features-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  margin: 0 0 16px;
  color: var(--text);
  letter-spacing: 0.04em;
}

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

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s ease;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-card:hover {
  border-color: var(--accent-gold);
}

.feature-card h3 {
  font-family: 'Lora', serif; /* Lora font */
  font-size: 18px;
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Get Started Section */
.get-started {
  padding: 20px 0 80px; /* Adjust spacing */
}

.get-started .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px;
  background: var(--container-bg);
  border: 1px solid var(--container-border);
  border-radius: 24px;
}

.get-started-header {
  text-align: center;
  margin-bottom: 40px;
}

.get-started-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  margin: 0 0 24px;
  color: var(--text);
  letter-spacing: 0.03em;
}

.os-switcher {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.os-switcher::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

@media (max-width: 480px) {
  .os-switcher {
    border-radius: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .os-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}

.os-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.os-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.os-btn.active .os-icon {
  opacity: 1;
}

.detected-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-soft);
  color: var(--accent-2);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  font-weight: 700;
}

.os-btn:hover {
  color: var(--text);
}

.os-btn.active {
  background: var(--bg-surface-hover);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-weight: 600;
}

.install-content {
  display: grid;
  gap: 24px;
  animation: fadeIn 0.3s ease;
}

.install-content.hidden {
  display: none;
}

.install-option h4 {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.code-block {
  background: #1e1e1e; /* Terminal dark bg always */
  border: 1px solid #333;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.code-header {
  background: #2d2d2d;
  padding: 8px 16px;
  font-size: 12px;
  color: #888;
  font-family: monospace;
  border-bottom: 1px solid #333;
}

.code-block pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #e5e5e5;
  white-space: pre-wrap;
  word-break: break-all;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: #888;
  padding: 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s;
}

.copy-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.copy-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.install-note {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
}

.install-note a {
  color: var(--accent-gold); /* Or standard link color */
  text-decoration: underline;
}

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

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  background: transparent;
  border: none;
  border-radius: 0;
}

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

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--text);
  margin-right: 8px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.2s;
}

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

.heart {
  color: #ff5f56;
}

.footer-center a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dotted var(--border);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-link {
    margin: 0 10px;
  }
}

/* Documentation Layout */
.docs-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  position: relative;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 100px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 24px;
  border-right: 1px solid var(--border);
}

.sidebar-group {
  margin-bottom: 32px;
}

.sidebar-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 8px;
}

.sidebar-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  transition: all 0.2s ease;
  display: block;
  padding: 4px 0;
}

.sidebar-links a:hover,
.sidebar-links a.active {
  color: var(--text);
  transform: translateX(4px);
}

.sidebar-links a.active {
  color: var(--accent-cursive); /* Use accent */
  font-weight: 500;
}

.docs-content {
  max-width: 800px; /* Optimal reading width */
  padding-bottom: 80px;
}

.docs-content section {
  margin-bottom: 60px;
  scroll-margin-top: 120px; /* For header offset */
}

.docs-content h1 {
  font-size: 48px;
  margin-bottom: 24px;
}

.docs-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.docs-content h3 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif; /* Keep H3 simpler */
  font-weight: 600;
}

.docs-content p, .docs-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.docs-content strong {
  color: var(--text);
  font-weight: 600;
}

/* Callouts */
.callout {
  padding: 20px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  margin: 24px 0;
}

.callout.info {
  border-left: 4px solid var(--accent-gold);
}

/* Params Table */
.params-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.params-table th,
.params-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.params-table th {
  color: var(--text);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.params-table code {
  background: var(--bg-surface);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-family: monospace;
  color: var(--accent-cursive);
}

.docs-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 60px 0;
}

@media (max-width: 960px) {
  .docs-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .docs-sidebar {
    display: none; /* Hide sidebar on mobile for now, relied on intro/top TOC if implemented */
  }
  
  /* Alternative Mobile TOC (if sidebar hidden) */
  /* Could be styled as details/summary here */
}

/* About Page Specific */
.about-page {
  padding-bottom: 100px;
}

.about-hero {
  text-align: center;
  padding: 80px 0 40px;
}

.section-spacing {
  margin-top: 100px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.glass-card {
  background: var(--container-bg);
  border: 1px solid var(--container-border);
  padding: 32px;
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

.simple-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.simple-list li {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-muted);
}

.simple-list li strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

/* Stack Grid */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.stack-item {
  border-left: 1px solid var(--border);
  padding-left: 20px;
}

.stack-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.stack-item p {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

/* Principles Grid */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.principle-card h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text);
}

/* Details Grid */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.detail-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 16px;
  transition: transform 0.2s ease;
}

.detail-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
}

.detail-item strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

.detail-item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* FAQ Page */
.faq-page {
  padding-bottom: 100px;
}

.vibe-check {
  display: flex;
  gap: 24px;
  margin: 60px 0 80px;
  position: relative;
  overflow: hidden;
  border-color: var(--accent-gold); /* Highlight this card */
}

.vibe-check::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gold);
}

.vibe-icon {
  font-size: 40px;
  flex-shrink: 0;
  padding-top: 4px;
}

.vibe-title {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 24px;
  margin: 0 0 16px;
  color: var(--text);
}

.vibe-content p {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--text-muted);
}

.vibe-footer {
  font-size: 14px;
  margin-top: 16px;
  opacity: 0.7;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.qa-item {
  padding-left: 24px;
  border-left: 1px solid var(--border);
  transition: border-color 0.2s;
}

.qa-item:hover {
  border-left-color: var(--accent-2); /* Green hover */
}

.question {
  font-family: 'Lora', serif;
  font-size: 28px; /* Big headers */
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.3;
}

.answer p {
  font-size: 18px; /* Readable body */
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 12px;
  max-width: 650px;
}

.answer-note {
  font-style: italic;
  font-size: 16px !important;
  opacity: 0.8;
}

.highlight-link {
  color: var(--accent-gold);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
  font-weight: 500;
}

.highlight-link:hover {
  border-bottom-color: var(--accent-gold);
  color: var(--text);
}

/* Contact Page */
.contact-page {
  padding-bottom: 100px;
}

.contact-header {
  text-align: center;
  margin: 60px 0 80px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  justify-content: center;
}

.social-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.social-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.2);
}

.social-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

.social-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.social-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.social-action {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

/* Brand Hover Colors */
.social-card.home:hover { border-color: var(--accent-gold); }
.social-card.home:hover .social-icon { color: var(--accent-gold); }

.social-card.github:hover { border-color: #6e5494; } /* Subtle purple/grey for dark mode compat */
.social-card.github:hover .social-icon { color: var(--text); }

.social-card.linkedin:hover { border-color: #0077b5; }
.social-card.linkedin:hover .social-icon { color: #0077b5; }

.social-card.bluesky:hover { border-color: #0560ff; }
.social-card.bluesky:hover .social-icon { color: #0560ff; }

.social-card.yc:hover { border-color: #ff6600; }
.social-card.yc:hover .social-icon { color: #ff6600; }

@media (max-width: 600px) {
  .social-grid {
    grid-template-columns: 1fr 1fr;
  }
}
