/* Moltgrowth — slick dark UI with orange accent */

:root {
  --bg: #050508;
  --bg-elevated: #0c0c10;
  --surface: #12121a;
  --surface-hover: #18181f;
  --border: #1e1e28;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --muted: #6b6b76;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.15);
  --accent-glow: rgba(249, 115, 22, 0.4);
  --gradient-start: #f97316;
  --gradient-mid: #fb923c;
  --gradient-end: #fdba74;
  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Ambient background */
.noise {
  position: fixed;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.gradient-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -200px;
  right: -100px;
}

.gradient-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.15) 0%, transparent 70%);
  bottom: 20%;
  left: -100px;
}

.gradient-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(253, 186, 116, 0.1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  animation: orb-float 20s ease-in-out infinite;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -15px); }
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header — glass */
.header {
  position: sticky;
  top: 0;
  padding: 1rem 0;
  background: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo:hover {
  color: var(--text);
  opacity: 0.9;
}

.logo-icon {
  font-size: 1.25rem;
}

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

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  color: var(--accent) !important;
}

.nav-cta:hover {
  color: var(--gradient-mid) !important;
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--accent-soft);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  max-width: 520px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.terminal-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 420px;
}

.terminal-header {
  display: flex;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}

.terminal-dot:nth-child(1) { background: #ef4444; }
.terminal-dot:nth-child(2) { background: #eab308; }
.terminal-dot:nth-child(3) { background: #22c55e; }

.terminal-code {
  display: block;
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--text);
}

.terminal-prompt {
  color: var(--muted);
  margin-right: 0.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  color: #fff;
  box-shadow: 0 2px 12px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gradient-mid), var(--gradient-end));
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

.btn-glow:hover {
  box-shadow: 0 0 30px var(--accent-glow);
}

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

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--muted);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* Sections */
.section {
  padding: 2.5rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 1.25rem;
}

.section-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-footer {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.section-footer code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: var(--surface);
  padding: 0.2em 0.45em;
  border-radius: 6px;
  color: var(--text);
}

.section-footer a {
  color: var(--accent);
  text-decoration: none;
}

.section-footer a:hover {
  text-decoration: underline;
}

/* Install section */
.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
}

.install-card pre {
  margin: 0;
  background: none;
  border: none;
  padding: 0;
}

.install-card code {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text);
}

.install-note {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.link-arrow {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.2s;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* Command grid */
.cmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cmd-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all 0.2s ease;
}

.cmd-card:hover {
  background: var(--surface-hover);
  border-color: rgba(249, 115, 22, 0.2);
  transform: translateY(-2px);
}

.cmd-card code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
  word-break: break-all;
}

.cmd-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Premium card */
.section-premium {
  padding: 2.5rem 0;
}

.premium-card {
  position: relative;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(30, 30, 40, 0.9) 50%);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  overflow: hidden;
}

.premium-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.premium-content {
  position: relative;
}

.premium-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.premium-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.premium-content p {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.premium-price {
  font-size: 1.25rem !important;
  font-weight: 700;
  color: var(--text) !important;
  margin: 1rem 0 0.25rem !important;
}

.premium-price span {
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--muted);
}

.premium-note {
  font-size: 0.8125rem !important;
  color: var(--muted) !important;
  margin-bottom: 1.5rem !important;
}

.premium-content .btn {
  margin-top: 0.5rem;
}

/* CTA section */
.section-cta {
  padding: 2.5rem 0 4rem;
  position: relative;
}

.section-cta .wrap {
  text-align: center;
}

.section-cta .btn-lg {
  box-shadow: 0 4px 24px rgba(249, 115, 22, 0.35);
}

/* Footer */
.footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: var(--accent-soft);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  width: fit-content;
}

.footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

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

.footer a:hover {
  text-decoration: underline;
}

/* Hero compact (for subpages) */
.hero-compact {
  padding: 4rem 0 5rem;
}

.hero-compact h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.hero-compact .lead {
  max-width: 600px;
}

/* Pricing page */
.section-pricing {
  padding-top: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.pricing-card-pro {
  border-color: rgba(249, 115, 22, 0.35);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.06) 0%, var(--surface) 50%);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.pricing-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem;
}

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

.pricing-alt {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.pricing-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.pricing-features li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 600;
}

.btn-block {
  width: 100%;
  margin-bottom: 0.75rem;
}

.pricing-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

/* Features grid (premium page) */
.section-features .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.feature-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* CTA section extras */
.cta-lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem;
}

.cta-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

/* Docs page */
.section-docs h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}

.section-docs h2:first-of-type {
  margin-top: 0;
}

.section-docs p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.section-docs pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

.section-docs pre code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text);
}

.section-docs ul {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 0 0 1.5rem;
}

.docs-table th,
.docs-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.docs-table th {
  font-weight: 600;
  color: var(--text);
}

.docs-table td {
  color: var(--text-secondary);
}

.docs-table code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--surface);
  padding: 0.2em 0.4em;
  border-radius: 6px;
  color: var(--text);
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    padding: 3rem 0 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .cmd-grid {
    grid-template-columns: 1fr;
  }

  .premium-card {
    padding: 1.75rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .nav {
    gap: 1rem;
  }
}
