:root {
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --bg-dark-section: #0f0f17;
  --bg-card: #ffffff;
  --bg-card2: #f3f3f9;
  --border: rgba(0,0,0,0.07);
  --border-med: rgba(0,0,0,0.12);
  --purple: #7c3aed;
  --purple-light: #8b5cf6;
  --pink: #db2777;
  --text: #0f0f17;
  --muted: #6b6b8a;
  --muted-light: #9999bb;
  --danger: #dc2626;
  --success: #16a34a;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08), 0 12px 40px rgba(0,0,0,0.07);
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 60%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 28px;
  width: auto;
  display: block;
}

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

.nav a {
  font-size: 14px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--text); background: var(--bg-soft); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; font-family: inherit; font-weight: 500;
  transition: all 0.15s; white-space: nowrap; text-decoration: none;
}

.btn-ghost-nav {
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  padding: 7px 14px;
  border-radius: var(--radius-xs);
  font-weight: 500;
}
.btn-ghost-nav:hover { color: var(--text); background: var(--bg-soft); }

.btn-nav-cta {
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 12px rgba(124,58,237,0.3);
}
.btn-nav-cta:hover { opacity: 0.9; box-shadow: 0 4px 20px rgba(124,58,237,0.4); }

.btn-primary-lg {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  gap: 8px;
  box-shadow: 0 4px 24px rgba(124,58,237,0.35);
  border: none;
}
.btn-primary-lg:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 6px 32px rgba(124,58,237,0.45); }

.btn-ghost-lg {
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-med);
}
.btn-ghost-lg:hover { color: var(--text); background: #ededf5; }

.btn-plan-outline {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-med);
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-plan-outline:hover { background: var(--bg-soft); border-color: #aaaacc; }

/* ── HERO ── */
.hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--bg);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow-1 {
  width: 600px; height: 300px;
  background: rgba(124,58,237,0.1);
  top: -40px; left: calc(50% - 400px);
}
.hero-glow-2 {
  width: 500px; height: 250px;
  background: rgba(219,39,119,0.08);
  top: 20px; right: calc(50% - 400px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.07);
  border: 1px solid rgba(124,58,237,0.2);
  color: #7c3aed;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px; height: 7px;
  background: #7c3aed;
  border-radius: 999px;
  box-shadow: 0 0 6px rgba(124,58,237,0.6);
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 720px;
  color: var(--text);
}

.hero-subtitle {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 36px;
}

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

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.avatars { display: flex; }
.avatar {
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 2px solid #fff;
  margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }
.av1 { background: linear-gradient(135deg, #7c3aed, #6366f1); }
.av2 { background: linear-gradient(135deg, #db2777, #f97316); }
.av3 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.av4 { background: linear-gradient(135deg, #16a34a, #84cc16); }

.social-proof-text { font-size: 14px; color: var(--muted); }
.social-proof-text strong { color: var(--text); }

/* demo card */
.demo-card {
  margin-top: 56px;
  border-radius: var(--radius);
  border: 1px solid var(--border-med);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.demo-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.demo-dots { display: flex; gap: 6px; }
.ddot { width: 10px; height: 10px; border-radius: 999px; }
.ddot.red { background: #ff5f57; }
.ddot.yellow { background: #febc2e; }
.ddot.green { background: #27c840; }

.demo-card-title {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}

.demo-card-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  background: rgba(22,163,74,0.08);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(22,163,74,0.2);
}

.pulse-dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 999px;
  animation: pulse-anim 2s infinite;
}
@keyframes pulse-anim { 0%,100%{opacity:1} 50%{opacity:0.3} }

.demo-card-body {
  display: grid;
  grid-template-columns: 1fr auto;
}

.demo-output {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.demo-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.demo-block { display: flex; flex-direction: column; gap: 4px; }

.demo-block-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}

.demo-block-content { font-size: 13px; color: var(--muted); }

.demo-decision {
  font-size: 13px;
  color: var(--text);
  padding: 3px 0;
}
.demo-decision.muted { color: var(--muted); }

.demo-task {
  font-size: 13px;
  color: var(--muted);
  padding: 3px 0;
}

.task-who {
  display: inline-block;
  background: rgba(124,58,237,0.08);
  color: #7c3aed;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  margin-right: 6px;
}

.demo-stats {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  min-width: 140px;
}

.demo-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  border-bottom: 1px solid var(--border);
}
.demo-stat:last-child { border-bottom: none; }

.demo-stat-val {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.demo-stat-label {
  font-size: 11px;
  color: var(--muted-light);
  text-align: center;
  margin-top: 4px;
  line-height: 1.3;
}

/* ── SECTIONS ── */
.section { padding: 88px 0; }

.section-dark {
  background: var(--bg-dark-section);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section-soft { background: var(--bg-soft); }

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--text);
}
.section-title.light { color: #f0f0ff; }

.section-sub {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 48px;
  line-height: 1.65;
  max-width: 540px;
}
.section-sub.light { color: #8888aa; }

/* features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(124,58,237,0.25);
  box-shadow: 0 4px 24px rgba(124,58,237,0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.fi-purple { background: rgba(124,58,237,0.08); color: #7c3aed; border: 1px solid rgba(124,58,237,0.15); }
.fi-pink   { background: rgba(219,39,119,0.08);  color: #db2777; border: 1px solid rgba(219,39,119,0.15); }
.fi-blue   { background: rgba(37,99,235,0.08);   color: #2563eb; border: 1px solid rgba(37,99,235,0.15); }
.fi-orange { background: rgba(249,115,22,0.08);  color: #f97316; border: 1px solid rgba(249,115,22,0.15); }

.feature-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

/* playground */
.playground {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.playground-left,
.playground-right {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 22px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #9999bb;
  margin-bottom: 8px;
}
.field-label-mt { margin-top: 12px; }

.prompt-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f0f0ff;
  font-family: inherit;
  font-size: 14px;
  padding: 12px;
  resize: vertical;
  min-height: 130px;
  line-height: 1.5;
}
.prompt-input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124,58,237,0.2);
}
.prompt-input::placeholder { color: #444466; }

.playground-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 14px 0;
}

.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8888aa;
  cursor: pointer;
  user-select: none;
}
.toggle-label input { display: none; }
.toggle {
  width: 34px; height: 18px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.2s;
}
.toggle-label input:checked + .toggle { background: #7c3aed; }
.toggle-label input:checked + .toggle::after { transform: translateX(16px); }

.playground-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.field-error { font-size: 12px; color: #f87171; margin-top: 8px; }

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 10px;
}
.status-label { color: #8888aa; font-weight: 500; }
.status-text { font-family: ui-monospace, monospace; font-size: 12px; }
.status-idle { color: #666688; }
.status-running { color: #a78bfa; }
.status-error { color: #f87171; }
.status-success { color: #34d399; }

.blinking-dot::after { content: "…"; animation: blink 1.1s infinite steps(1, start); }
@keyframes blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }

.log-panel {
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.07);
  min-height: 150px;
  max-height: 240px;
  overflow-y: auto;
  padding: 10px 12px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.log-line { margin: 0; white-space: pre-wrap; }
.log-line + .log-line { margin-top: 3px; }
.log-prefix { color: #2a2a44; }
.log-system { color: #7878cc; }
.log-error { color: #f87171; }
.log-faint { color: #2a2a44; }

.pg-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #555577;
  padding: 8px 12px;
  background: rgba(124,58,237,0.05);
  border-radius: var(--radius-xs);
  border: 1px dashed rgba(124,58,237,0.2);
}

/* infra */
.infra-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.infra-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.infra-num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.infra-label { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.pricing-card {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.pricing-featured {
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 0 50px rgba(124,58,237,0.12);
}

.plan-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.plan-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7878aa;
}

.plan-price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #f0f0ff;
}

.plan-period { font-size: 16px; font-weight: 400; color: #7878aa; }

.plan-desc { font-size: 13px; color: #7878aa; line-height: 1.5; }

.plan-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.plan-features li {
  font-size: 13px;
  color: #aaaacc;
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #7c3aed;
  font-weight: 700;
  font-size: 12px;
}

/* faq */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 26px;
  box-shadow: var(--shadow);
}
.faq-item h3 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.faq-item p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.65; }

/* contact */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-links { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #8888aa;
  transition: color 0.15s;
}
.contact-link:hover { color: #f0f0ff; }
.contact-icon { width: 20px; text-align: center; }

.contact-right { padding-top: 60px; }

.contact-cta-card {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(124,58,237,0.3);
  padding: 30px;
  box-shadow: 0 0 40px rgba(124,58,237,0.08);
}
.contact-cta-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; color: #f0f0ff; }
.contact-cta-card p { font-size: 14px; color: #8888aa; margin: 0 0 22px; line-height: 1.55; }

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-nav { display: flex; gap: 20px; }
.footer-nav a { font-size: 13px; color: var(--muted); transition: color 0.15s; }
.footer-nav a:hover { color: var(--text); }

.footer-copy { font-size: 13px; color: var(--muted-light); }

/* modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-med);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  padding: 28px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.modal-header h2 { margin: 0; font-size: 20px; font-weight: 700; }

.modal-close {
  width: 28px; height: 28px;
  border: none;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: #e5e5ee; color: var(--text); }

.modal-text { font-size: 14px; color: var(--muted); margin: 0 0 16px; }

.text-input {
  width: 100%;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-med);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
}
.text-input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
  background: #fff;
}

.field-error { font-size: 12px; color: var(--danger); margin-top: 8px; }

.modal-footer { margin-top: 20px; display: flex; gap: 10px; }

/* responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .infra-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-section { grid-template-columns: 1fr; }
  .contact-right { padding-top: 0; }
  .playground { grid-template-columns: 1fr; }
  .demo-card-body { grid-template-columns: 1fr; }
  .demo-stats { flex-direction: row; border-left: none; border-top: 1px solid var(--border); }
  .demo-stat { border-bottom: none; border-right: 1px solid var(--border); }
  .demo-stat:last-child { border-right: none; }
}

@media (max-width: 600px) {
  .hero { padding: 52px 0 44px; }
  .hero-title { font-size: 30px; }
  .hero-subtitle { font-size: 15px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 28px; }
  .nav { display: none; }
  .faq-grid { grid-template-columns: 1fr; }
  .infra-cards { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { flex-wrap: wrap; gap: 12px; }
  .site-header { position: static; }
}
