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

:root {
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --secondary: #064e3b;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

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

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--primary);
  color: var(--bg-dark) !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: var(--bg-dark) !important;
}

/* Hero */
.hero {
  padding: 160px 24px 100px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(34, 197, 94, 0.05) 100%);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-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: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--bg-dark) !important;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Grades Preview */
.grades-preview {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.grade-badge {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.grade-a { background: #22c55e; }
.grade-b { background: #84cc16; }
.grade-c { background: #eab308; }
.grade-d { background: #f97316; }
.grade-e { background: #ef4444; }

.hero-image {
  margin-top: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Features */
.features {
  padding: 100px 24px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

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

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

/* How It Works */
.how-it-works {
  padding: 100px 24px;
  background: rgba(34, 197, 94, 0.03);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 24px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  margin-bottom: 12px;
}

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

/* Metrics */
.metrics {
  padding: 100px 24px;
}

.metrics-table {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.metrics-table table {
  width: 100%;
  border-collapse: collapse;
}

.metrics-table th,
.metrics-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.metrics-table th {
  background: rgba(34, 197, 94, 0.1);
  font-weight: 600;
  color: var(--primary);
}

.metrics-table tr:last-child td {
  border-bottom: none;
}

.metrics-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--primary);
}

/* CLI Section */
.cli-section {
  padding: 100px 24px;
  background: rgba(34, 197, 94, 0.03);
}

.code-block {
  max-width: 700px;
  margin: 0 auto;
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid var(--border);
}

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

.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }

.code-title {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.terminal {
  padding: 20px;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  min-height: 280px;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prompt {
  color: var(--primary);
  font-weight: bold;
}

.typed-command {
  color: var(--text);
}

.cursor {
  color: var(--primary);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.terminal-output {
  display: none;
  margin-top: 8px;
  color: var(--text-muted);
  white-space: pre;
}

.terminal-output::first-line {
  color: var(--text);
}

/* CTA Section */
.cta-section {
  padding: 100px 24px;
  text-align: center;
}

.cta-box {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--secondary), var(--bg-card));
  border: 1px solid var(--primary);
  border-radius: 24px;
  padding: 60px 40px;
}

.cta-box h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Footer */
footer {
  padding: 60px 24px;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

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

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

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

/* Privacy Page Styles */
.page-header {
  padding: 140px 24px 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(34, 197, 94, 0.05) 100%);
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

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

.content-section {
  padding: 60px 24px;
}

.content-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
}

.content-box h2 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
  color: var(--primary);
}

.content-box h2:first-child {
  margin-top: 0;
}

.content-box p,
.content-box li {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.content-box ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-box li {
  margin-bottom: 8px;
}

/* Changelog Timeline */
.changelog-section {
  padding: 60px 24px 100px;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(34, 197, 94, 0.3) 50%, transparent 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-of-type {
  padding-bottom: 24px;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 0;
  width: 18px;
  height: 18px;
  background: var(--bg-dark);
  border: 3px solid var(--primary);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background: var(--primary);
  transform: scale(1.2);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
  border-color: var(--primary);
  transform: translateX(4px);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.version-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

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

.timeline-body h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin: 20px 0 12px;
}

.timeline-body h3:first-child {
  margin-top: 0;
}

.timeline-body ul {
  list-style: none;
  padding: 0;
}

.timeline-body li {
  color: var(--text-muted);
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.timeline-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.6;
}

.timeline-end {
  position: relative;
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 16px;
}

.timeline-dot-end {
  position: relative;
  left: -40px;
  width: 12px;
  height: 12px;
  background: var(--border);
  border: none;
  box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

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

  .content-box {
    padding: 24px;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 4px;
  }

  .timeline-dot {
    left: -30px;
    width: 14px;
    height: 14px;
  }

  .timeline-content {
    padding: 20px;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .timeline-dot-end {
    left: -30px;
    width: 10px;
    height: 10px;
  }
}
