/* ============================================
   COMMIT-AI LANDING PAGE STYLES
   Inspired by gitmoji.dev - Minimalist & Modern
   ============================================ */

:root {
  /* Colors */
  --bg-hero: #FFEB3B;
  --bg-dark: #0d0d0d;
  --bg-card: #1a1a1a;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --text-muted: #888888;
  --accent: #FF6B6B;
  --accent-hover: #FF8A8A;
  --green: #4ADE80;
  --blue: #60A5FA;
  --windows-blue: #0078D4;
  
  /* Spacing */
  --section-padding: 80px 20px;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: var(--bg-hero);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 20px 120px;
}

.nav {
  position: absolute;
  top: 20px;
  right: 30px;
}

.nav-link {
  color: var(--text-dark);
  opacity: 0.7;
  transition: var(--transition);
}

.nav-link:hover {
  opacity: 1;
}

.hero-content {
  text-align: center;
  z-index: 1;
}

.logo {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.logo-emoji {
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.tagline {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-dark);
  opacity: 0.8;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

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

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 120px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  padding: var(--section-padding);
}

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

.feature-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 107, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================
   DEMO SECTION
   ============================================ */
.demo {
  padding: var(--section-padding);
}

.demo-container {
  display: flex;
  justify-content: center;
}

.terminal {
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 700px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: #333;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

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

.terminal-title {
  flex: 1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.terminal-body {
  padding: 24px;
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  font-size: 0.9rem;
}

.terminal-line {
  margin-bottom: 12px;
  text-align: left;
}

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

.prompt {
  color: var(--green);
  margin-right: 8px;
}

.prompt-ps {
  color: var(--windows-blue);
  margin-right: 8px;
}

.generated {
  color: var(--blue);
}

.comment-text {
  color: #6A9955;
  font-style: italic;
}

.config-key {
  color: var(--blue);
}

.config-value {
  color: var(--green);
}

.terminal-copy {
  margin-left: auto;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.terminal-copy:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

/* ============================================
   INSTALL SECTION
   ============================================ */
.install {
  padding: var(--section-padding);
}

.install-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-light);
}

.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.tab-btn.windows.active {
  background: var(--windows-blue);
  border-color: var(--windows-blue);
}

.tab-content {
  display: none;
  max-width: 700px;
  margin: 0 auto;
}

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

.code-block {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px 24px;
  position: relative;
  overflow-x: auto;
  margin-bottom: 16px;
}

.code-block pre {
  margin: 0;
}

.code-block code {
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  font-size: 0.9rem;
  color: var(--green);
}

.code-block code.powershell {
  color: var(--windows-blue);
}

.code-block .copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

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

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

.install-note code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.api-setup {
  max-width: 700px;
  margin: 48px auto 0;
}

.api-setup h3 {
  text-align: left;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.api-setup .install-note {
  text-align: left;
}

.api-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.api-tab-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.api-tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-light);
}

.api-tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.api-tab-content {
  display: none;
}

.api-tab-content.active {
  display: block;
}

/* ============================================
   OPTIONS SECTION
   ============================================ */
.options {
  padding: var(--section-padding);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.option-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.option-card:hover {
  border-color: rgba(255, 107, 107, 0.3);
}

.option-flag {
  display: inline-block;
  background: rgba(96, 165, 250, 0.2);
  color: var(--blue);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.option-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  text-align: center;
  padding: 48px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
  color: var(--text-muted);
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-note {
  margin-top: 8px;
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    padding-bottom: 100px;
  }
  
  .hero-wave svg {
    height: 80px;
  }
  
  .features-grid,
  .options-grid {
    grid-template-columns: 1fr;
  }
  
  .install-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .tab-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .code-block {
    padding: 16px;
  }
  
  .code-block code {
    font-size: 0.8rem;
  }
}
