/* AI Code Buddy - Microsite Styles */
/* Apra Labs Branding */

:root {
  --apra-green: #94BA33;
  --apra-green-dark: #7a9b2a;
  --apra-green-light: #b5d957;
  --text-dark: #2c3e50;
  --text-medium: #555;
  --text-light: #777;
  --bg-light: #f8f9fa;
  --border-light: #e5e5e5;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: white;
}

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

/* Header */
.header {
  background: white;
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  width: 50px;
  height: 50px;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.logo-tagline {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

.logo-tagline a {
  color: var(--apra-green);
  text-decoration: none;
  font-weight: 600;
}

.logo-tagline a:hover {
  text-decoration: underline;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: var(--text-medium);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--apra-green);
}

.btn-primary {
  background: linear-gradient(135deg, var(--apra-green) 0%, var(--apra-green-dark) 100%);
  color: white !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(148, 186, 51, 0.3);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f8fef0 0%, #ffffff 100%);
  padding: 80px 0;
  border-bottom: 1px solid var(--border-light);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-medium);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.btn-large {
  background: linear-gradient(135deg, var(--apra-green) 0%, var(--apra-green-dark) 100%);
  color: white;
  padding: 16px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(148, 186, 51, 0.4);
}

.btn-secondary-large {
  background: white;
  color: var(--apra-green);
  padding: 16px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid var(--apra-green);
  transition: all 0.2s;
  display: inline-block;
}

.btn-secondary-large:hover {
  background: var(--apra-green);
  color: white;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 32px;
  color: var(--apra-green);
  font-weight: 800;
}

.stat span {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

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

.browser-window {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  overflow: hidden;
  width: 100%;
  max-width: 600px;
}

.browser-bar {
  background: #f5f5f5;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
  flex: 1;
  background: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-light);
  font-family: monospace;
}

.terminal-demo {
  background: #1e1e1e;
  padding: 20px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  min-height: 200px;
}

.terminal-line {
  color: #d4d4d4;
  margin-bottom: 10px;
}

.terminal-line.error {
  color: #f48771;
}

.terminal-line.success {
  color: #73c991;
}

.terminal-button {
  background: linear-gradient(135deg, var(--apra-green) 0%, var(--apra-green-dark) 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  display: inline-block;
  margin: 10px 0;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

/* Sections */
.section-title {
  font-size: 40px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-dark);
}

/* Features */
.features {
  padding: 80px 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-medium);
  line-height: 1.6;
}

/* Quick Start */
.quick-start {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fef0 0%, #ffffff 100%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.step {
  text-align: center;
  position: relative;
}

.step::after {
  content: '→';
  position: absolute;
  right: -20px;
  top: 15px;
  font-size: 24px;
  color: var(--apra-green-light);
  font-weight: 700;
}

.step:last-child::after {
  display: none;
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--apra-green) 0%, var(--apra-green-dark) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 15px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.step p {
  color: var(--text-medium);
  font-size: 14px;
  line-height: 1.5;
}

.quick-start-cta {
  text-align: center;
}

/* Providers */
.providers {
  padding: 80px 0;
  background: white;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.provider-card {
  background: var(--bg-light);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.provider-card:hover {
  border-color: var(--apra-green);
  background: white;
}

.provider-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.provider-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--border-light);
  color: var(--text-medium);
}

.provider-tag.best { background: #ffd700; color: #333; }
.provider-tag.popular { background: #4a90e2; color: white; }
.provider-tag.free { background: #28c840; color: white; }
.provider-tag.privacy { background: #8e44ad; color: white; }

/* Documentation */
.documentation {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fef0 0%, #ffffff 100%);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.doc-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid var(--border-light);
  transition: all 0.2s;
}

.doc-card:hover {
  border-color: var(--apra-green);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.doc-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.doc-card p {
  color: var(--text-medium);
  line-height: 1.6;
}

/* Feedback */
.feedback {
  padding: 80px 0;
  background: white;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feedback-card {
  background: var(--bg-light);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
}

.feedback-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.feedback-card p {
  color: var(--text-medium);
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-secondary {
  background: white;
  color: var(--apra-green);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--apra-green);
  display: inline-block;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--apra-green);
  color: white;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-brand p {
  color: #aaa;
  margin-bottom: 8px;
}

.footer-brand a {
  color: var(--apra-green);
  text-decoration: none;
}

.footer-tagline {
  font-style: italic;
  margin-top: 15px !important;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-column h4 {
  margin-bottom: 15px;
  color: var(--apra-green);
}

.footer-column a {
  display: block;
  color: #aaa;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 30px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

.footer-bottom p {
  margin-bottom: 8px;
}

.footer-bottom a {
  color: var(--apra-green);
  text-decoration: none;
}

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

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

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

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

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .provider-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

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

  .features-grid,
  .steps,
  .provider-grid,
  .docs-grid,
  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .step::after {
    display: none;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* Feature Highlight Section */
.feature-highlight {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0f7e6 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.feature-highlight-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--apra-green) 0%, var(--apra-green-dark) 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(148, 186, 51, 0.3);
}

.feature-highlight-title {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.feature-highlight-subtitle {
  font-size: 22px;
  color: var(--text-medium);
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.feature-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.highlight-card {
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 30px 25px;
  transition: all 0.3s ease;
  text-align: center;
}

.highlight-card:hover {
  border-color: var(--apra-green);
  box-shadow: 0 8px 24px rgba(148, 186, 51, 0.15);
  transform: translateY(-4px);
}

.highlight-icon {
  font-size: 3em;
  margin-bottom: 15px;
}

.highlight-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.highlight-card p {
  color: var(--text-medium);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.highlight-pattern {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--apra-green);
  font-weight: 600;
  display: inline-block;
}

@media (max-width: 968px) {
  .feature-highlight-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .feature-highlight-title {
    font-size: 36px;
  }

  .feature-highlight-subtitle {
    font-size: 18px;
  }
}
