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

:root {
  --bg: #faf9fc;
  --surface: #ffffff;
  --surface-alt: #f3f0f9;
  --accent: #6b5ce7;
  --accent-hover: #5a4bd6;
  --accent-light: #ede9fe;
  --accent-text: #4c3db5;
  --text: #1a1025;
  --text-sub: #4a3f5c;
  --text-muted: #8077a0;
  --border: #e8e0f0;
  --border-light: #f0ecf5;
  --nav-bg: rgba(250, 249, 252, 0.85);
  --plan-highlight-bg: var(--accent-light);
  --toggle-active-bg: var(--surface);
  --toggle-active-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --slider-thumb-border: var(--surface);

  --editor-bg: #1a1025;
  --editor-surface: #241a33;
  --editor-border: #332844;
  --editor-text: #cdd6f4;
  --editor-muted: #7f849c;

  --mint: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  --agent-claude: #8b5cf6;
  --agent-deepseek: #3b82f6;
  --agent-gemini: #10b981;
  --agent-minimax: #ec4899;

  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
  --font-data: 'Space Grotesk', monospace;
  --font-mono: 'JetBrains Mono', monospace;

  --max-w: 1080px;
}

[data-theme="dark"] {
    --bg: #110d18;
    --surface: #1a1425;
    --surface-alt: #1e1730;
    --accent: #8b7cf8;
    --accent-hover: #a09afb;
    --accent-light: rgba(139, 124, 248, 0.1);
    --accent-text: #b4a8fc;
    --text: #e8e0f4;
    --text-sub: #b0a4c8;
    --text-muted: #7a6f96;
    --border: #2a2238;
    --border-light: #211a2e;
    --nav-bg: rgba(17, 13, 24, 0.85);
    --plan-highlight-bg: rgba(139, 124, 248, 0.08);
    --toggle-active-bg: var(--surface-alt);
    --toggle-active-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --slider-thumb-border: var(--bg);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }


.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-heading);
  transition: all 0.15s ease-out;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(107, 92, 231, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

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

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


.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.03em;
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-body);
}

.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: #fff !important; }

.theme-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.theme-switch:hover { background: var(--text-muted); }

.theme-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: opacity 0.2s ease;
  z-index: 1;
}

.icon-sun {
  left: 5px;
  opacity: 1;
  color: #fff;
}

.icon-moon {
  right: 5px;
  opacity: 0.5;
  color: #7a6f96;
  transition: color 0.15s, opacity 0.15s;
}

.theme-switch:hover .icon-moon {
  opacity: 1;
}

.theme-switch:hover .icon-moon path {
  stroke: #fff;
}

.theme-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

[data-theme="dark"] .theme-switch {
  background: var(--accent);
}

[data-theme="dark"] .theme-switch-knob {
  transform: translateX(20px);
}

[data-theme="dark"] .icon-sun {
  opacity: 0.6;
}

[data-theme="dark"] .icon-sun circle,
[data-theme="dark"] .icon-sun line {
  stroke: #fff;
}

[data-theme="dark"] .icon-moon {
  opacity: 1;
  color: #e8e0f4;
}


.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 9rem 1.5rem 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--accent-text);
  background: var(--accent-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero h1 .accent-dot { color: var(--accent); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-sub);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 4rem;
}


.hero-visual {
  max-width: 720px;
  margin: 0 auto;
}

.editor-mock {
  background: var(--editor-bg);
  border-radius: 16px;
  border: 1px solid var(--editor-border);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), 0 30px 80px rgba(0, 0, 0, 0.4);
}

.editor-titlebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--editor-surface);
  border-bottom: 1px solid var(--editor-border);
}

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

.editor-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.editor-dots span:first-child { background: #f38ba8; }
.editor-dots span:nth-child(2) { background: #f9e2af; }
.editor-dots span:last-child { background: #a6e3a1; }

.editor-filename {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--editor-muted);
}

.editor-body {
  padding: 0.75rem 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--editor-text);
}

.editor-line {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  position: relative;
}

.editor-line[data-agent="claude"] { background: rgba(139, 92, 246, 0.07); }
.editor-line[data-agent="deepseek"] { background: rgba(59, 130, 246, 0.07); }
.editor-line[data-agent="gemini"] { background: rgba(16, 185, 129, 0.07); }
.editor-line[data-agent="minimax"] { background: rgba(236, 72, 153, 0.07); }

.line-num {
  width: 2.5rem;
  text-align: right;
  color: var(--editor-muted);
  opacity: 0.4;
  font-size: 0.72rem;
  user-select: none;
  flex-shrink: 0;
}

.line-gutter {
  width: 3px;
  height: 100%;
  min-height: 1.75em;
  margin: 0 0.75rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.agent-claude { background: var(--agent-claude); }
.agent-deepseek { background: var(--agent-deepseek); }
.agent-gemini { background: var(--agent-gemini); }
.agent-minimax { background: var(--agent-minimax); }

code { font-family: inherit; color: var(--editor-text); }
.kw { color: #cba6f7; }
.fn { color: #89b4fa; }
.ty { color: #a6e3a1; }
.num { color: #fab387; }

.cursor {
  position: absolute;
  width: 2px;
  height: 1.2em;
}

.cursor::after {
  content: attr(data-name);
  position: absolute;
  top: -1.5em;
  left: 0;
  font-size: 0.6rem;
  font-family: var(--font-body);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  white-space: nowrap;
  font-weight: 600;
}

.cursor-claude { background: var(--agent-claude); right: 12rem; }
.cursor-claude::after { background: var(--agent-claude); color: #fff; }

.cursor-deepseek { background: var(--agent-deepseek); right: 4rem; }
.cursor-deepseek::after { background: var(--agent-deepseek); color: #fff; }

.cursor-minimax { background: var(--agent-minimax); right: 6rem; }
.cursor-minimax::after { background: var(--agent-minimax); color: #fff; }

@keyframes blink-slow {
  0%, 45%, 100% { opacity: 1; }
  50%, 95% { opacity: 0; }
}

@keyframes blink-med {
  0%, 40%, 100% { opacity: 1; }
  45%, 90% { opacity: 0; }
}

@keyframes blink-fast {
  0%, 50%, 100% { opacity: 1; }
  55%, 92% { opacity: 0; }
}

.cursor-claude { animation: blink-slow 1.8s ease infinite; animation-delay: 0.3s; }
.cursor-deepseek { animation: blink-med 1.4s ease infinite; animation-delay: 0.9s; }
.cursor-minimax { animation: blink-fast 2.1s ease infinite; animation-delay: 0.1s; }

.editor-chat {
  border-top: 1px solid var(--editor-border);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: #120c1a;
}

.chat-msg {
  font-size: 0.78rem;
  font-family: var(--font-body);
  display: flex;
  gap: 0.5rem;
}

.chat-name {
  font-weight: 600;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.chat-text { color: var(--editor-muted); }
.chat-deepseek .chat-name { color: var(--agent-deepseek); }
.chat-claude .chat-name { color: var(--agent-claude); }


.providers {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border-light);
}

.providers p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-family: var(--font-heading);
}

.provider-list {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-data);
  color: var(--text-muted);
}

.provider-list span:last-child { color: var(--accent); }


.features {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

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

.feature-card {
  padding: 0;
}

.feature-num {
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 1.65;
}


.how-it-works {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--border-light);
}

.how-it-works h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
  text-align: center;
}

.how-it-works h2 .accent-dot { color: var(--accent); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.step-num {
  font-family: var(--font-data);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-sub);
  font-size: 0.9rem;
}


.pricing {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.pricing h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.pricing h2 .accent-dot { color: var(--accent); }

.pricing-sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.pricing-toggle {
  display: inline-flex;
  background: var(--surface-alt);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 2.5rem;
}

.toggle-btn {
  padding: 0.5rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.toggle-btn.active {
  background: var(--toggle-active-bg);
  color: var(--text);
  box-shadow: var(--toggle-active-shadow);
}

.save-badge {
  font-size: 0.65rem;
  font-family: var(--font-heading);
  background: var(--mint);
  color: #fff;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 0.3rem;
  text-transform: uppercase;
}

.slider-container {
  max-width: 460px;
  margin: 0 auto 2rem;
}

.price-slider {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: grab;
  border: 3px solid var(--slider-thumb-border);
  box-shadow: 0 2px 8px rgba(107, 92, 231, 0.3);
  transition: transform 0.1s;
}

.price-slider::-webkit-slider-thumb:active {
  transform: scale(1.15);
  cursor: grabbing;
}

.price-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: grab;
  border: 3px solid var(--slider-thumb-border);
  box-shadow: 0 2px 8px rgba(107, 92, 231, 0.3);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-data);
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.pricing-display {
  margin-bottom: 3rem;
}

.price-amount {
  font-family: var(--font-data);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.price-dollar {
  font-size: 1.5rem;
  vertical-align: top;
  margin-right: 2px;
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.credits-display {
  font-size: 1.05rem;
  color: var(--accent-text);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.credits-display strong {
  font-family: var(--font-data);
  font-weight: 700;
}

.usage-estimates {
  display: flex;
  gap: 3rem;
  justify-content: center;
}

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

.estimate span {
  font-family: var(--font-data);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.estimate label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}


.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  text-align: left;
}

.tier h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.tier h3 span {
  font-family: var(--font-data);
  color: var(--accent);
  font-weight: 700;
}

.tier p {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.6;
}

.tier-accent {
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
}


.waitlist {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.waitlist h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.waitlist h2 .accent-dot { color: var(--accent); }

.waitlist > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto;
}

.waitlist-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s;
}

.waitlist-form input:focus { border-color: var(--accent); }
.waitlist-form input::placeholder { color: var(--text-muted); }

.waitlist-note {
  font-size: 0.85rem;
  color: var(--mint);
  margin-top: 1rem;
  font-weight: 500;
}


.footer {
  border-top: 1px solid var(--border-light);
  padding: 2rem 1.5rem;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

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


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}


@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
  .features-grid, .steps, .pricing-tiers { grid-template-columns: 1fr; }
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .usage-estimates { flex-direction: column; gap: 1rem; }
  .editor-body { overflow-x: auto; }
  .waitlist-form { flex-direction: column; }
}
