/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0B132B;
  --ink-soft: #1C2541;
  --ink-muted: #3A506B;
  --surface: #FFFFFF;
  --surface-dim: #F7F8FA;
  --surface-border: #E8ECF1;
  --mint: #06D6A0;
  --mint-dim: rgba(6, 214, 160, 0.12);
  --coral: #FF6B6B;
  --coral-dim: rgba(255, 107, 107, 0.12);
  --blue: #4361EE;
  --blue-dim: rgba(67, 97, 238, 0.12);
  --text: #0B132B;
  --text-secondary: #5A6680;
  --text-muted: #8E99AB;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(11,19,43,0.04), 0 1px 2px rgba(11,19,43,0.06);
  --shadow-md: 0 4px 24px rgba(11,19,43,0.06), 0 1px 4px rgba(11,19,43,0.04);
  --shadow-lg: 0 12px 48px rgba(11,19,43,0.08), 0 4px 12px rgba(11,19,43,0.04);
  --shadow-glow: 0 0 60px rgba(6, 214, 160, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }

.gradient-text {
  background: linear-gradient(135deg, var(--mint) 0%, var(--blue) 50%, var(--coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 12px;
}
.section-label.light { color: rgba(6, 214, 160, 0.8); }

.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  padding: 12px 24px;
  transition: var(--transition);
}
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--ink-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--surface-border);
}
.btn-ghost:hover {
  border-color: var(--ink-muted);
  color: var(--text);
  transform: translateY(-1px);
}

.section-dark .btn-ghost {
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.15);
}
.section-dark .btn-ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--surface-border);
  padding: 10px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
}
.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links .btn { margin-left: 8px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(6, 214, 160, 0.12) 0%, transparent 70%);
}
.hero-glow-2 {
  width: 500px; height: 500px;
  top: 0; right: -100px;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
}
.hero-glow-3 {
  width: 400px; height: 400px;
  top: 200px; left: 40%;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.08) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--surface-dim);
  border: 1px solid var(--surface-border);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(6,214,160,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(6,214,160,0); }
}

.hero-title { margin-bottom: 28px; }

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
}
.hero-sub strong { color: var(--text); }

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Browser mockup */
.hero-visual { max-width: 960px; margin: 0 auto; }

.browser-frame {
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  background: var(--surface);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
}
.browser-dots {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--surface-border);
  background: var(--surface-dim);
}
.browser-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--surface-border);
}
.browser-content { padding: 0; }

/* Mock dashboard */
.mock-dashboard {
  display: flex;
  min-height: 340px;
}

.mock-sidebar {
  width: 200px;
  border-right: 1px solid var(--surface-border);
  padding: 20px 14px;
  background: rgba(247,248,250,0.5);
  flex-shrink: 0;
}
.mock-logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.mock-logo-circle {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ink);
  flex-shrink: 0;
}
.mock-logo-lines { flex: 1; }

.mock-line {
  height: 8px;
  border-radius: 4px;
  background: var(--surface-border);
  margin-bottom: 6px;
}
.mock-line.thick { height: 14px; background: var(--ink); border-radius: 6px; }
.mock-line.dim { opacity: 0.5; }
.mock-line.w-30 { width: 30%; }
.mock-line.w-50 { width: 50%; }
.mock-line.w-60 { width: 60%; }
.mock-line.w-70 { width: 70%; }
.mock-line.w-80 { width: 80%; }
.mock-line.w-90 { width: 90%; }

.mock-nav-item {
  height: 32px;
  border-radius: 8px;
  margin-bottom: 4px;
  background: transparent;
}
.mock-nav-item.active {
  background: var(--ink);
}

.mock-main {
  flex: 1;
  padding: 20px;
}

.mock-header {
  margin-bottom: 20px;
}
.mock-chips {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.mock-chip {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 500;
  background: var(--surface-dim);
  color: var(--text-muted);
  border: 1px solid var(--surface-border);
}
.mock-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

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

.mock-card {
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 14px;
  background: var(--surface);
}
.mock-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.mock-platform {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.mock-platform.chatgpt { background: #d4f5e9; color: #0a8f5d; }
.mock-platform.claude { background: #f0e4d7; color: #b45309; }
.mock-platform.gemini { background: #dde8fd; color: #3b5bdb; }

.mock-time {
  width: 40px; height: 6px;
  border-radius: 3px;
  background: var(--surface-border);
  opacity: 0.5;
}

.mock-tags {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}
.mock-tag {
  font-size: 0.55rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: var(--mint-dim);
  color: var(--ink);
  font-weight: 500;
}

/* ===== PROBLEM SECTION ===== */
.section { padding: 100px 0; }

.section-problem {
  background: var(--surface-dim);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.problem-text h2 {
  margin-bottom: 20px;
}
.problem-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.75;
}
.problem-text p strong { color: var(--coral); font-weight: 600; }

.problem-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 20px;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  min-width: 80px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== FEATURES ===== */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}

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

.feature-card {
  padding: 32px 28px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--surface-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--ink);
}

.feature-card h3 {
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== HOW IT WORKS ===== */
.section-dark {
  background: var(--ink);
  color: #fff;
}
.section-dark h2 { color: #fff; }

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step-card {
  flex: 1;
  max-width: 320px;
  padding: 32px 28px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  transition: var(--transition);
}
.step-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mint);
  margin-bottom: 16px;
}

.step-card h3 {
  margin-bottom: 10px;
  color: #fff;
}
.step-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 48px;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
  margin: 0 8px;
}

/* ===== PLATFORMS ===== */
.platforms-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 40px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  transition: var(--transition);
  min-width: 160px;
}
.platform-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}

.platform-logo {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chatgpt-bg { background: #d4f5e9; color: #0a8f5d; }
.claude-bg { background: #f0e4d7; color: #c2701a; }
.gemini-bg { background: #dde8fd; color: #3b5bdb; }
.perplexity-bg { background: #e8e0f4; color: #6c3ec7; }

.platform-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.platforms-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 32px;
}

/* ===== OPEN SOURCE ===== */
.oss-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.oss-text h2 { margin-bottom: 20px; }
.oss-text p {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.oss-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.code-window {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.3);
}
.code-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-dots {
  display: flex;
  gap: 5px;
}
.code-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.code-filename {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
}

.code-body {
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
  overflow-x: auto;
}
.code-comment { color: rgba(255,255,255,0.25); }
.code-prompt { color: var(--mint); }
.code-output { color: var(--mint); opacity: 0.7; }

/* ===== CTA ===== */
.section-cta {
  padding: 120px 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(6,214,160,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(255,107,107,0.06) 0%, transparent 50%),
    var(--surface-dim);
}
.cta-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-block h2 { margin-bottom: 16px; }
.cta-block p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--surface-border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand strong { display: block; font-size: 0.9rem; }
.footer-brand p { font-size: 0.75rem; color: var(--text-muted); margin: 0; }

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  text-decoration: none;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
}

/* ===== ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate="fade-right"] { transform: translateX(-30px); }
[data-animate="fade-left"] { transform: translateX(30px); }
[data-animate].visible {
  opacity: 1;
  transform: translate(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .mock-grid { grid-template-columns: repeat(2, 1fr); }
  .mock-card:nth-child(3) { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .oss-block { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 120px 0 60px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  .hero-sub br { display: none; }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features-grid { grid-template-columns: 1fr; }

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }
  .step-connector {
    transform: rotate(90deg);
    margin: 4px 0;
  }

  .mock-sidebar { display: none; }
  .mock-grid { grid-template-columns: 1fr; }
  .mock-card:nth-child(3) { display: block; }

  .platforms-grid { gap: 12px; }
  .platform-card { min-width: 140px; padding: 20px; }

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

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .oss-actions { flex-direction: column; }
  .oss-actions .btn { width: 100%; justify-content: center; }
}
