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

:root {
  --bg-root: #0a0a0a;
  --bg-panel: #111111;
  --bg-surface: #1a1a1a;

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;

  --accent-primary: #3b82f6;
  --accent-secondary: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.1);

  --border: #27272a;
  --border-hover: #3f3f46;
  --code-bg: #111111;

  --scrollbar-thumb: #202020;
  --scrollbar-thumb-hover: #0e0e0e;

  --sidebar-width: 260px;
  --max-content-width: 900px;

  --radius-lg: 8px;
  --radius-md: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-root);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

h4 {
  font-size: 1rem;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  padding: 2px 5px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
}

pre {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.85rem;
}

/* Layout Wrapper */
.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar - Simplified */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-root);
  /* No transparency */
  border-right: 1px solid var(--border);
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.brand {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.brand h1 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--text-primary);
}

.brand .version {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.nav-links {
  padding: 1rem;
  flex: 1;
}

.nav-group {
  margin-bottom: 1.5rem;
}

.nav-group-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
}

.nav-item {
  display: block;
  padding: 0.4rem 0.75rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.nav-item:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
  text-decoration: none;
}

.nav-item.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  font-weight: 500;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.javadoc-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-panel);
  color: var(--text-primary);
  padding: 0.6rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.javadoc-link:hover {
  background: var(--bg-surface);
  border-color: var(--text-muted);
  text-decoration: none;
  color: var(--text-primary);
}

/* Main Content */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 3rem 4rem;
}

.content-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
}

/* Hero Section - Simplified */
.hero {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  background: none;
  /* Removed gradient */
  -webkit-text-fill-color: initial;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-secondary);
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  text-decoration: none;
}

/* Feature Grid - Cleaner */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0 0;
}

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.feature-card:hover {
  border-color: var(--border-hover);
  /* Removed transform/shadow hover effects */
}

.feature-icon {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-desc {
  font-size: 0.9rem;
  margin: 0;
}

/* Sections */
section {
  margin-bottom: 3rem;
  scroll-margin-top: 2rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: white;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    display: none;
    position: fixed;
    width: 80%;
    max-width: 300px;
    z-index: 50;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  }

  .sidebar.open {
    display: flex;
  }

  .main-content {
    padding: 2rem 1.5rem;
  }

  .mobile-toggle {
    display: flex;
  }

  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
  }

  .overlay.open {
    display: block;
  }
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--code-bg);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

