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

/* --- Theme Variables --- */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  /* Colors */
  --bg-main: #0b0f19;
  --bg-card: rgba(20, 26, 45, 0.6);
  --bg-card-hover: rgba(28, 37, 65, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Gradients & Accents */
  --accent-orange: #fc6d26;
  --accent-red: #e24329;
  --accent-indigo: #6366f1;
  --accent-violet: #8b5cf6;

  --grad-primary: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-red) 100%);
  --grad-secondary: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-violet) 100%);
  --grad-glow: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(252, 109, 38, 0.05) 50%, rgba(11, 15, 25, 0) 100%);

  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.8);

  --max-width: 1200px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Background glow blobs */
body::before, body::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
}

body::before {
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(252, 109, 38, 0.12) 0%, rgba(0,0,0,0) 70%);
}

body::after {
  top: 600px;
  left: -200px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(0,0,0,0) 70%);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* --- Layout Components --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 0;
}

/* Header & Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: var(--transition-fast);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  gap: 8px;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 15px -3px rgba(252, 109, 38, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -3px rgba(252, 109, 38, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* --- Sections --- */

/* Hero */
.hero {
  padding: 6rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(252, 109, 38, 0.1);
  border: 1px solid rgba(252, 109, 38, 0.2);
  color: var(--accent-orange);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Interactive Mockup Container */
.mockup-container {
  perspective: 1000px;
  display: flex;
  justify-content: center;
}

/* CSS Mockup of GitPilot Extension Popup */
.extension-mockup {
  width: 100%;
  max-width: 440px;
  height: 520px;
  background: #111625;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 13px;
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform var(--transition-normal);
}

.extension-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

/* Mockup Header */
.mockup-header {
  padding: 12px 16px;
  background: #181f33;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #fff;
}

.mockup-brand span {
  color: var(--accent-orange);
}

.mockup-user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 4px;
}

.mockup-user-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad-primary);
}

/* Mockup Search */
.mockup-search-container {
  padding: 10px 16px;
  background: #141a2c;
}

.mockup-search {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-search-placeholder {
  color: var(--text-muted);
}

.mockup-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Mockup Sidebar */
.mockup-sidebar {
  width: 80px;
  background: #141a2c;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 20px;
}

.mockup-nav-item {
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  cursor: pointer;
  width: 100%;
}

.mockup-nav-item.active {
  color: var(--accent-orange);
}

.mockup-nav-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.active .mockup-nav-icon {
  background: rgba(252, 109, 38, 0.1);
}

/* Mockup Content */
.mockup-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.mockup-branch-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-branch-card {
  background: #181f33;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mockup-branch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-branch-name {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-primary);
}

.mockup-project-name {
  font-size: 10px;
  color: var(--text-muted);
}

.mockup-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 100px;
  font-weight: 600;
}

.mockup-badge.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.mockup-badge.running {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.mockup-branch-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--text-secondary);
}

.mockup-actions {
  display: flex;
  gap: 6px;
}

.mockup-action-btn {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--text-secondary);
}

.mockup-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Features Section */
.features-section {
  position: relative;
  background: radial-gradient(80% 50% at 50% 50%, rgba(20, 26, 45, 0.3) 0%, rgba(11, 15, 25, 0) 100%);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 span {
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background var(--transition-normal);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  background: var(--grad-primary);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(252, 109, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-orange);
}

.feature-card:nth-child(2) .feature-icon {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-indigo);
}

.feature-card:nth-child(2):hover::before {
  background: var(--grad-secondary);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Security Section */
.security-section {
  background: rgba(17, 24, 39, 0.5);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.security-box {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.security-illustration {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(252, 109, 38, 0.05) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 350px;
}

.security-lock-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-indigo);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.security-illustration-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.security-illustration-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 250px;
  position: relative;
  z-index: 2;
}

.tech-tags {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
  position: relative;
  z-index: 2;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-secondary);
}

/* Call To Action Banner */
.cta-banner {
  text-align: center;
  background: linear-gradient(135deg, rgba(20, 26, 45, 0.8) 0%, rgba(11, 15, 25, 0.8) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(252, 109, 38, 0.08) 0%, rgba(99, 102, 241, 0.04) 50%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Privacy Page specific elements */
.privacy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.privacy-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}

.privacy-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
}

.privacy-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.privacy-content h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
  border-left: 3px solid var(--accent-orange);
  padding-left: 12px;
}

.privacy-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.privacy-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.privacy-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.privacy-content a {
  color: var(--accent-orange);
  text-decoration: underline;
}

.privacy-content a:hover {
  color: #fff;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  background: #090c14;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-brand span {
  color: var(--accent-orange);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .mockup-container {
    order: -1;
  }

  .extension-mockup {
    transform: none;
  }

  .security-box {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .security-illustration {
    min-height: auto;
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none; /* simple mobile simplification */
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }
}
