/* Gemini Spark — autoresearch.lol inspired layout */

:root {
  --bg-primary: #0b0f1a;
  --bg-secondary: #0f172a;
  --bg-card: #111827;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #4285f4;
  --accent-light: #6ea8fe;
  --accent-dark: #1d4ed8;
  --purple: #8b5cf6;
  --violet: #a78bfa;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --border-color: #1e293b;
  --border-accent: rgba(66, 133, 244, 0.25);
  --glow-accent: rgba(66, 133, 244, 0.1);
  --max-width: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", monospace;
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 15, 26, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  height: 64px;
}

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

.nav-logo canvas {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.nav-logo-text span {
  background: linear-gradient(135deg, var(--accent-light), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

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

.nav-cta {
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent-light) !important;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(66, 133, 244, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 133, 244, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-bg-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--glow-accent) 0%, transparent 65%);
  pointer-events: none;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 28px;
  background: rgba(139, 92, 246, 0.08);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.hero-title {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.hero-title .gradient {
  background: linear-gradient(135deg, var(--accent-light), var(--accent), var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .subtitle {
  display: block;
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
  margin-top: 14px;
}

.hero-desc {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(66, 133, 244, 0.35);
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.hero-meta-item {
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.6);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-meta-item strong {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 4px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 26px;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 96px 24px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-title .gradient {
  background: linear-gradient(135deg, var(--accent-light), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Loop panel */
.loop-panel {
  background: var(--bg-secondary);
}

.loop-snapshot {
  max-width: var(--max-width);
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
}

.loop-snapshot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.loop-snapshot-header span:last-child {
  color: var(--cyan);
}

.loop-snapshot-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.loop-snapshot-body .prompt {
  color: var(--violet);
}

.loop-snapshot-body .status {
  color: var(--cyan);
  margin-top: 12px;
}

/* Overview */
.overview {
  background: var(--bg-primary);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.overview-card {
  background: var(--bg-card);
  padding: 36px 28px;
}

.overview-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.overview-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Task examples */
.examples {
  background: var(--bg-secondary);
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.example-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.2s;
}

.example-card:hover {
  border-color: var(--border-accent);
}

.example-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 100px;
}

.example-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* How it works */
.how-it-works {
  background: var(--bg-primary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.step-card {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 28px 22px;
  background: var(--bg-card);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-light);
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Use cases */
.use-cases {
  background: var(--bg-secondary);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.use-case-card {
  background: var(--bg-card);
  padding: 40px 28px;
}

.use-case-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.use-case-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Pillars */
.pillars {
  background: var(--bg-primary);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.pillar-card {
  text-align: center;
  padding: 36px 24px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(66, 133, 244, 0.06) 0%, transparent 100%);
}

.pillar-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* FAQ */
.faq {
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-question:hover {
  background: #1a2332;
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--text-muted);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  background: var(--bg-card);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* CTA */
.cta-section {
  text-align: center;
  background: var(--bg-primary);
}

.disclaimer {
  margin-top: 32px;
  font-size: 12px;
  color: var(--text-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 24px;
  background: var(--bg-secondary);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

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

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .examples-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
  }

  .nav-links.open { display: flex; }
  .mobile-menu-btn { display: block; }

  .overview-grid,
  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid,
  .examples-grid,
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats { gap: 24px; }
}
