:root {
  --bg-color: #0d1117;
  --sidebar-bg: #161b22;
  --header-bg: rgba(22, 27, 34, 0.8);
  --accent-color: #58a6ff;
  --accent-glow: rgba(88, 166, 255, 0.3);
  --text-main: #c9d1d9;
  --text-heading: #f0f6fc;
  --border-color: #30363d;
  --nav-hover: rgba(48, 54, 61, 0.5);
  --code-bg: #1f2428;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header & Top Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  justify-content: space-between;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-heading);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-container img {
  height: 28px;
}

.phase-nav {
  display: flex;
  gap: 1.25rem;
}

.phase-nav a {
  text-decoration: none;
  color: #8b949e;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}

.phase-nav a:hover,
.phase-nav a.active {
  color: var(--accent-color);
  background-color: var(--nav-hover);
}

/* Layout */
.layout {
  display: flex;
  margin-top: 64px;
  min-height: calc(100vh - 64px);
}

/* Sidebar */
aside {
  width: 280px;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  padding: 2.5rem 1.25rem;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #8b949e;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  font-weight: 600;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: #8b949e;
  font-size: 0.9rem;
  transition: all 0.2s;
  margin-bottom: 2px;
}

.sidebar-link i {
  width: 16px;
  height: 16px;
}

.sidebar-link:hover {
  background-color: var(--nav-hover);
  color: var(--text-heading);
}

.sidebar-link.active {
  background-color: rgba(88, 166, 255, 0.1);
  color: var(--accent-color);
  font-weight: 600;
}

/* Main Content */
main {
  flex: 1;
  padding: 4rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.content h1 {
  font-size: 2.75rem;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.content .lead {
  font-size: 1.2rem;
  color: #8b949e;
  margin-bottom: 2.5rem;
}

.content h2 {
  font-size: 1.75rem;
  color: var(--text-heading);
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: #adbac7;
}

.content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content li {
  margin-bottom: 0.75rem;
  color: #adbac7;
}

/* Code Blocks */
pre {
  background-color: #0d1117;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin: 2rem 0;
  overflow-x: auto;
  position: relative;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
}

code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
}

/* Callouts - NO THICK BORDERS */
.callout {
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.08), rgba(88, 166, 255, 0.03));
  border: 1px solid rgba(88, 166, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.callout i {
  color: var(--accent-color);
  flex-shrink: 0;
  margin-top: 3px;
}


/* Footer / CTA Buttons */
.cta-container {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #0d1117;
}

.btn-primary:hover {
  background-color: #79c0ff;
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-secondary {
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--nav-hover);
}


.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 180, 0.4);
}

.card h4 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  aside {
    display: none;
  }

  main {
    padding: 2rem 1.5rem;
  }

  .phase-nav {
    display: none;
  }
}

/* Premium CTA Funnel Section */
.premium-cta {
  margin-top: 5rem;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(88, 166, 255, 0.02));
  border: 1px solid rgba(88, 166, 255, 0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
}

.premium-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.cta-icon {
  width: 72px;
  height: 72px;
  background: var(--accent-color);
  color: #0d1117;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 25px rgba(88, 166, 255, 0.2);
}

.cta-text h3 {
  font-size: 1.75rem;
  margin-bottom: 0.8rem;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.cta-text p {
  font-size: 1.1rem;
  color: #8b949e;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .premium-cta {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem;
    gap: 2rem;
  }
  .cta-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}

footer {
  margin-top: 5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

footer p {
  color: #6e7681;
  font-size: 0.9rem;
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  text-decoration: underline;
}