/* =========================================================
   GitGo Official Documentation & Showcase Site
   Matches the exact design system, colors, and layout of GitGo
   ========================================================= */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Exact GitGo Surface Color Palette */
  --surface-950: #0a0a0f;
  --surface-900: #12141f;
  --surface-800: #1a1d2e;
  --surface-700: #3f455d;
  --surface-600: #545c7c;
  --surface-500: #69739b;
  --surface-400: #878faf;
  --surface-300: #a5abc3;
  --surface-200: #c3c7d7;
  --surface-100: #e1e3eb;

  /* Accent Color Palette */
  --accent-600: #4f46e5;
  --accent-500: #6366f1;
  --accent-400: #7b8cfc;
  --accent-300: #a0b4ff;

  /* Status Colors */
  --success-500: #22c55e;
  --success-400: #4ade80;
  --danger-500: #ef4444;
  --danger-400: #f87171;
  --warning-500: #f59e0b;
  --warning-400: #fbbf24;

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #a855f7 100%);
  --gradient-text: linear-gradient(90deg, #7b8cfc 0%, #c084fc 50%, #f472b6 100%);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(26, 29, 46, 0.8);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--surface-950);
  color: var(--surface-100);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow {
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.85rem 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-600), #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--surface-400);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, var(--accent-600), var(--accent-500));
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: rgba(63, 69, 93, 0.4);
  color: var(--surface-100);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(63, 69, 93, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Hero Section */
.hero {
  padding: 5rem 0 3rem;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-300);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--surface-400);
  max-width: 720px;
  margin: 0 auto 2.25rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-screenshot-frame {
  max-width: 1050px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.15);
  overflow: hidden;
  background: var(--surface-900);
}

.hero-screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Glassmorphism Panel */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.25s ease;
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Live Replica Desktop Simulator Section */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-tag {
  color: var(--accent-400);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--surface-400);
  font-size: 1.05rem;
}

/* GitGo Interactive Desktop Window */
.gitgo-app-window {
  background: var(--surface-950);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  height: 600px;
}

/* GitGo Sidebar Replica */
.gitgo-app-sidebar {
  width: 250px;
  background: rgba(18, 20, 31, 0.95);
  border-r: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-titlebar {
  height: 42px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
  font-weight: 700;
  font-size: 0.9rem;
}

.sidebar-btn-container {
  padding: 0.75rem;
}

.sidebar-new-btn {
  width: 100%;
  padding: 0.5rem;
  background: linear-gradient(135deg, var(--accent-600), var(--accent-500));
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
}

.sidebar-nav-list {
  flex: 1;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-nav-item {
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--surface-300);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  border: none;
  text-align: left;
}

.sidebar-nav-item:hover, .sidebar-nav-item.active {
  background: rgba(99, 102, 241, 0.15);
  color: #fff;
}

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

.sidebar-settings-btn {
  width: 100%;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--surface-400);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.sidebar-settings-btn:hover {
  color: #fff;
}

/* GitGo Main Screen Replica */
.gitgo-app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface-950);
}

.main-topbar {
  height: 42px;
  background: var(--surface-900);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.topbar-tabs {
  display: flex;
  gap: 0.5rem;
}

.tab-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: var(--surface-400);
  cursor: pointer;
}

.tab-pill.active {
  background: var(--accent-500);
  color: #fff;
}

.main-view-container {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Replica View Components */
.view-content {
  width: 100%;
  max-width: 580px;
  display: none;
}

.view-content.active {
  display: block;
}

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

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-400);
  margin-bottom: 1.25rem;
}

.feature-icon-box svg {
  width: 24px;
  height: 24px;
}

.feature-h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.feature-p {
  color: var(--surface-400);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Technical Matrix Table */
.spec-matrix {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-900);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.spec-matrix th, .spec-matrix td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.95rem;
}

.spec-matrix th {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-weight: 700;
}

.spec-matrix td {
  color: var(--surface-300);
}

.spec-matrix code {
  font-family: var(--font-mono);
  color: var(--accent-400);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* FAQ Accordion */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-card {
  background: var(--surface-900);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-q {
  padding: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-a {
  padding: 0 1.25rem 1.25rem;
  color: var(--surface-400);
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  font-size: 0.95rem;
}

.faq-card.active .faq-a {
  display: block;
}

/* Terminal Console Styling */
.terminal-box {
  background: var(--surface-950);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  height: 200px;
  overflow-y: auto;
}

.terminal-line {
  margin-bottom: 0.35rem;
  word-break: break-all;
}

.log-info { color: var(--accent-400); }
.log-success { color: var(--success-400); }
.log-danger { color: var(--danger-400); }

/* Code Blocks */
.code-wrapper {
  background: var(--surface-950);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--surface-200);
  overflow-x: auto;
  position: relative;
}

.copy-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--surface-700);
  color: var(--surface-200);
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
}

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  background: #06060a;
  border-top: 1px solid var(--glass-border);
  color: var(--surface-500);
  font-size: 0.9rem;
}

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

/* Responsive Rules */
@media (max-width: 900px) {
  .gitgo-app-window {
    flex-direction: column;
    height: auto;
  }
  .gitgo-app-sidebar {
    width: 100%;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .nav-links {
    display: none;
  }
}
