/* ----------------------------------------------------
   PGit CLI Landing Page Style Sheet
   Aesthetic: Dark-Tech / Minimalist Developer Tool (Borderless Edition)
   ---------------------------------------------------- */

:root {
  --bg: #09090b;
  --bg-card: #121214;
  --bg-card-hover: #18181b;
  --text: #ededed;
  --text-muted: #8e8e93;
  --accent: #10b981; /* Emerald Green */
  --accent-rgb: 16, 185, 129;
  --accent-hover: #059669;
  --accent-light: rgba(16, 185, 129, 0.1);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 0px;
  --radius-sm: 0px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

code,
pre,
.font-mono {
  font-family: var(--font-mono);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Keyboard Focus Accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.faq-trigger:focus-visible,
.btn-copy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Layout Utilities */
.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.btn-sm {
  font-size: 13px;
  padding: 6px 14px;
}

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

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

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* Header & Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

.header-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.logo-suffix {
  font-size: 11px;
  font-weight: 500;
  background-color: var(--accent-light);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 0;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.main-nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  transition: var(--transition);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.github-link {
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

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

/* Hero Section */
.hero-section {
  padding-top: 160px;
  padding-bottom: 100px;
}

.hero-grid {
  display: grid;
  grid-template-cols: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-title {
  font-size: 52px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Terminal Mockup */
.terminal-mockup {
  background-color: #0b0b0d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  height: 380px;
}

.terminal-header {
  background-color: #0f0f13;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.terminal-buttons {
  display: flex;
  gap: 6px;
}

.btn-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

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

.terminal-tabs {
  display: flex;
  gap: 4px;
}

.terminal-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition);
}

.terminal-tab:hover {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.05);
}

.terminal-tab.active {
  color: var(--accent);
  background-color: var(--accent-light);
}

.terminal-body {
  padding: 20px;
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.terminal-screen {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.terminal-screen.active {
  display: flex;
}

.terminal-line {
  color: #c7c7c7;
  white-space: pre-wrap;
}

.terminal-line .prompt {
  color: var(--accent);
  user-select: none;
}

.terminal-line.output {
  padding-left: 12px;
}

.terminal-line.output.success {
  color: #34d399;
}

.terminal-line.output.info {
  color: #60a5fa;
}

.terminal-line.output.warning {
  color: #fbbf24;
}

.terminal-line.output.error {
  color: #f87171;
}

/* Logo Wall Section */
.logo-wall-section {
  padding: 40px 0;
  background-color: #070709;
}

.logo-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.logo-item {
  color: #4b5563;
  transition: var(--transition);
  opacity: 0.6;
}

.logo-item:hover {
  color: var(--text);
  opacity: 1;
}

/* Sections General Headers */
.section-header {
  margin-bottom: 60px;
  text-align: center;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Bento Grid */
.features-section {
  padding: 120px 0;
}

.bento-grid {
  display: grid;
  grid-template-cols: repeat(3, 1fr);
  gap: 24px;
}

.bento-cell {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.bento-cell:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
  transform: translateY(-2px);
}

.col-span-2 {
  grid-column: span 2;
}

.bento-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-content {
  padding: 32px;
}

.bento-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.bento-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.bento-visual {
  padding: 0 32px 32px 32px;
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

/* File Tree Graphic */
.file-tree {
  width: 100%;
  background-color: #0b0b0d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 13px;
}

.tree-item {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tree-item.indent {
  padding-left: 20px;
}

.tree-item.private {
  color: var(--accent);
}

.badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 0;
  font-weight: 500;
  margin-left: auto;
}

.badge-success {
  background-color: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-accent {
  background-color: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

/* Shield/Store Graphic */
.shield-graphic,
.store-graphic {
  position: relative;
  margin: 20px 0;
}

.shield-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background-color: var(--accent);
  opacity: 0.15;
  filter: blur(20px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

/* Comparison Visual */
.comparison-visual {
  width: 100%;
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: 16px;
}

.comparison-pane {
  background-color: #0b0b0d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pane-header {
  background-color: #0f0f13;
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.pane-body {
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.pane-body .danger {
  color: #f87171;
}
.pane-body .clean {
  color: #34d399;
}
.pane-body .muted {
  color: var(--text-muted);
}

/* How It Works Flow */
.how-it-works-section {
  padding: 120px 0;
  background-color: #070709;
}

.steps-flow {
  display: grid;
  grid-template-cols: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.step-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  opacity: 0.8;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-code {
  background-color: #0b0b0d;
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  margin-top: 10px;
}

/* Architecture Section */
.architecture-section {
  padding: 120px 0;
}

.architecture-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.arch-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 280px;
}

.arch-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.arch-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.arch-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  max-width: 200px;
}

.connector-line {
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.15);
  position: relative;
}

.connector-line::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  border-right: 2px solid rgba(255, 255, 255, 0.15);
  transform: rotate(45deg);
}

.connector-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  font-family: var(--font-mono);
}

/* Commands Section & Explorer */
.commands-section {
  padding: 120px 0;
}

.explorer-container {
  display: grid;
  grid-template-cols: 250px 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-card);
}

.explorer-tabs {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background-color: #0f0f12;
}

.explorer-tab {
  background: transparent;
  border: none;
  text-align: left;
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  border-left: 2px solid transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.explorer-tab:hover {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.explorer-tab.active {
  color: var(--accent);
  background-color: rgba(16, 185, 129, 0.06);
  border-left: 2px solid var(--accent);
}

.explorer-detail {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-title {
  font-size: 24px;
  font-family: var(--font-mono);
  color: var(--text);
}

.detail-desc {
  font-size: 15px;
  color: var(--text-muted);
}

.detail-options-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--text);
}

.detail-option-row {
  display: flex;
  font-size: 13px;
  line-height: 1.6;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.option-name {
  width: 220px;
  font-family: var(--font-mono);
  color: var(--accent);
  flex-shrink: 0;
}

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

.detail-example {
  background-color: #0b0b0d;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius-sm);
}

/* FAQ Accordion */
.faq-section {
  padding: 120px 0;
}

.faq-accordion {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 20px;
  transition: var(--transition);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: rgba(255, 255, 255, 0.01);
}

.faq-content p {
  padding: 0 24px 20px 24px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.active .faq-content {
  max-height: 200px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Install Section & Footer */
.install-section {
  padding: 120px 0 80px 0;
  background-color: #070709;
}

.install-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.install-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.install-box {
  background-color: #0b0b0d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
  max-width: 100%;
}

.install-prompt {
  font-size: 16px;
  color: var(--text);
}

.btn-copy {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 0;
}

.btn-copy:hover {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.05);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}

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

.copyright {
  font-size: 12px;
  color: #4b5563;
}

/* Scroll Reveal Animations */
.reveal-init {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger delays for items */
.step-card:nth-child(2) {
  transition-delay: 0.1s;
}
.step-card:nth-child(3) {
  transition-delay: 0.2s;
}
.arch-card:nth-child(3) {
  transition-delay: 0.1s;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 42px;
  }

  .bento-grid {
    grid-template-cols: 1fr;
  }

  .col-span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .header-actions {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .hero-grid {
    grid-template-cols: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .steps-flow {
    grid-template-cols: 1fr;
    gap: 20px;
  }

  .architecture-layout {
    flex-direction: column;
    gap: 20px;
  }

  .arch-connector {
    max-width: 100%;
    transform: rotate(90deg);
    margin: 10px 0;
  }

  .explorer-container {
    grid-template-cols: 1fr;
  }

  .explorer-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .explorer-tab {
    padding: 12px 18px;
    white-space: nowrap;
    border-bottom: none;
    border-left: none;
  }

  .explorer-tab.active {
    border-left: none;
    border-bottom: 2px solid var(--accent);
    background-color: rgba(16, 185, 129, 0.08);
  }

  .explorer-detail {
    padding: 24px;
  }

  .detail-option-row {
    flex-direction: column;
    gap: 4px;
  }

  .option-name {
    width: 100%;
  }

  .section-title {
    font-size: 32px;
  }
}
