:root {
  --bg: #0a0a0b;
  --bg-elevated: #111113;
  --bg-code: #0d0d0f;
  --surface: #18181b;
  --border: #27272a;
  --border-subtle: #1e1e21;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --green: #25d366;
  --green-dim: #1a9e4a;
  --green-glow: rgba(37, 211, 102, 0.12);
  --purple: #a78bfa;
  --purple-dim: rgba(167, 139, 250, 0.15);
  --amber: #fbbf24;
  --cyan: #22d3ee;
  --pink: #f472b6;
}

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

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  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)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

code,
.mono {
  font-family: "JetBrains Mono", monospace;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

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

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

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

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

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

.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--green);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--bg);
}

nav .links {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav .links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}

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

.btn-github {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text) !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.btn-github:hover {
  border-color: var(--text-muted);
  background: var(--bg-elevated);
}

/* ---- HERO ---- */
.hero {
  padding: 180px 0 120px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--green-glow) 0%, transparent 70%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px 6px 8px;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

h1 {
  font-size: clamp(3rem, 7vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease 0.1s both;
}

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

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
  font-weight: 300;
  animation: fadeUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.3s both;
}

.btn-primary {
  background: var(--green);
  color: #000;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.15s,
    box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.3);
  color: #000;
  opacity: 1;
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    border-color 0.2s,
    background 0.2s;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background: var(--bg-elevated);
  opacity: 1;
}

/* ---- SDKS BAR ---- */
.sdk-bar {
  margin-top: 40px;
  animation: fadeUp 0.6s ease 0.4s both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.sdk-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.sdk-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.sdk-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: border-color 0.2s;
  cursor: default;
}

.sdk-pill.active {
  border-color: var(--green);
  color: var(--text);
}

.sdk-pill.soon {
  opacity: 0.45;
}

.sdk-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-elixir {
  background: #9b6dff;
}

.dot-ts {
  background: #3178c6;
}

.dot-python {
  background: #fbbf24;
}

.dot-go {
  background: #00add8;
}

/* ---- CODE SHOWCASE ---- */
.showcase {
  padding: 80px 0;
}

.showcase-intro {
  text-align: center;
  margin-bottom: 48px;
}

.code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.code-block {
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  animation: fadeUp 0.6s ease both;
}

.code-block:nth-child(1) {
  animation-delay: 0.1s;
}

.code-block:nth-child(2) {
  animation-delay: 0.2s;
}

.code-block:nth-child(3) {
  animation-delay: 0.3s;
}

.code-block:nth-child(4) {
  animation-delay: 0.4s;
}

.code-block.full-width {
  grid-column: 1 / -1;
}

.code-header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.code-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 500;
}

.label-oss {
  background: rgba(37, 211, 102, 0.1);
  color: var(--green);
}

.label-paid {
  background: var(--purple-dim);
  color: var(--purple);
}

.label-rest {
  background: rgba(251, 191, 36, 0.1);
  color: var(--amber);
}

.code-body {
  padding: 20px;
  overflow-x: auto;
}

.code-body pre {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.hl-module {
  color: #fbbf24;
}

.hl-func {
  color: #60a5fa;
}

.hl-string {
  color: var(--green);
}

.hl-atom {
  color: #f472b6;
}

.hl-comment {
  color: var(--text-muted);
  font-style: italic;
}

.hl-pipe {
  color: #71717a;
}

.hl-key {
  color: var(--cyan);
}

.hl-num {
  color: #fbbf24;
}

.hl-method {
  color: #60a5fa;
}

.hl-keyword {
  color: #c084fc;
}

.hl-type {
  color: #fbbf24;
}

.hl-prop {
  color: var(--cyan);
}

/* ---- HOW IT WORKS ---- */
.how-it-works {
  padding: 100px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 56px;
}

.step {
  background: var(--bg);
  padding: 40px 32px;
}

.step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 300;
}

/* ---- FEATURES ---- */
.features {
  padding: 100px 0;
}

.section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 36px 32px;
  transition: background 0.3s;
}

.feature-card:hover {
  background: var(--bg-elevated);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.fi-green {
  background: rgba(37, 211, 102, 0.1);
  color: var(--green);
}

.fi-purple {
  background: var(--purple-dim);
  color: var(--purple);
}

.fi-amber {
  background: rgba(251, 191, 36, 0.1);
  color: var(--amber);
}

.fi-cyan {
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
}

.fi-pink {
  background: rgba(244, 114, 182, 0.1);
  color: var(--pink);
}

.fi-white {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 300;
}

/* ---- PRICING ---- */
.pricing {
  padding: 100px 0;
}

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

.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--green);
  background: linear-gradient(to bottom,
      rgba(37, 211, 102, 0.04),
      var(--bg-elevated));
}

.price-tier {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.price-card.featured .price-tier {
  color: var(--green);
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

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

.price-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.price-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.price-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 16px;
  font-style: italic;
  line-height: 1.5;
}

.price-btn {
  padding: 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s;
  display: block;
}

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

.price-btn-outline:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.price-btn-fill {
  background: var(--green);
  color: #000;
}

.price-btn-fill:hover {
  opacity: 1;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.25);
}

/* ---- AI PRICING TABLE ---- */
.ai-pricing {
  margin-top: 48px;
  text-align: center;
}

.ai-pricing-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.ai-pricing-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.ai-table {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.85rem;
}

.ai-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border-subtle);
}

.ai-table-row:last-child {
  border-bottom: none;
}

.ai-table-row.header {
  background: var(--surface);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.ai-table-cell {
  padding: 12px 16px;
  display: flex;
  align-items: center;
}

.ai-table-cell:not(:last-child) {
  border-right: 1px solid var(--border-subtle);
}

.ai-table-row:not(.header) .ai-table-cell:first-child {
  color: var(--text);
  font-weight: 500;
}

.ai-table-row:not(.header) .ai-table-cell:nth-child(2),
.ai-table-row:not(.header) .ai-table-cell:nth-child(3) {
  font-family: "JetBrains Mono", monospace;
  color: var(--text-secondary);
}

/* ---- WAITLIST ---- */
.waitlist {
  padding: 100px 0;
}

.waitlist-box {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-box h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.waitlist-box p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 32px;
}

.waitlist-form {
  display: flex;
  gap: 10px;
}

.waitlist-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-input::placeholder {
  color: var(--text-muted);
}

.waitlist-input:focus {
  border-color: var(--green);
}

.waitlist-btn {
  background: var(--green);
  color: #000;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.2s;
  white-space: nowrap;
  font-family: "Outfit", sans-serif;
}

.waitlist-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.3);
}

.waitlist-btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.waitlist-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.waitlist-success {
  display: none;
  padding: 16px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 10px;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---- FOOTER ---- */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-subtle);
}

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

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

.footer-left span {
  color: var(--text-secondary);
}

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

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

.footer-links a:hover {
  color: var(--text);
  opacity: 1;
}

/* ---- FLASH MESSAGES ---- */
.flash {
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.flash-info {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  color: var(--green);
}

.flash-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.flash-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  padding: 0 4px;
}

/* ---- FORMS ---- */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-actions {
  margin-top: 8px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.input {
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.input::placeholder {
  color: var(--text-muted);
}

.input:focus {
  border-color: var(--green);
}

.input.input-error {
  border-color: #ef4444;
}

.input-error-msg {
  font-size: 0.78rem;
  color: #ef4444;
}

.btn {
  background: var(--green);
  color: #000;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  transition:
    transform 0.15s,
    box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.3);
}

/* ---- RADIO ---- */
.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s;
  font-size: 0.95rem;
  color: var(--text);
}

.radio-label:has(input:checked) {
  border-color: var(--green);
  background: rgba(37, 211, 102, 0.04);
}

.radio-label input[type="radio"] {
  accent-color: var(--green);
}

/* ---- SIGNUP PAGE ---- */
.signup-page {
  padding: 140px 0 80px;
  min-height: 100vh;
}

.signup-container {
  max-width: 480px;
  margin: 0 auto;
}

.signup-container h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  animation: none;
}

.signup-container .section-desc {
  margin-bottom: 32px;
}

.plan-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.plan-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 24px;
}

/* ---- WELCOME PAGE ---- */
.welcome-page {
  padding: 140px 0 80px;
  min-height: 100vh;
}

.welcome-container {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.welcome-container h1 {
  font-size: 2rem;
  margin-bottom: 12px;
  animation: none;
}

.welcome-container .section-desc {
  margin: 0 auto 32px;
}

.api-key-box {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
}

.api-key-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--green);
  word-break: break-all;
}

.api-key-warning {
  font-size: 0.82rem;
  color: #ef4444;
  margin-bottom: 32px;
  font-weight: 500;
}

.code-example {
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  margin-top: 24px;
}

.code-example pre {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-secondary);
  overflow-x: auto;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  transition: border-color 0.2s;
}

.copy-btn:hover {
  border-color: var(--text-muted);
}

/* Inline variant of .copy-btn for destructive actions (e.g. revoke): the base
   class is absolutely positioned for code blocks, so inline use overrides the
   position here instead of with a style attribute. */
.btn-inline-danger {
  position: static;
  color: #ef4444;
}

.btn-inline-danger:hover {
  border-color: #ef4444;
}

/* ---- DASHBOARD: USAGE METERS ---- */
.meter-row {
  margin-bottom: 20px;
  text-align: left;
}

.meter-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.meter {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  height: 8px;
  overflow: hidden;
}

.meter-fill {
  background: var(--green);
  height: 100%;
  transition: width 0.3s;
}

.meter-fill.warn {
  background: var(--amber);
}

.meter-warning {
  color: var(--amber);
  font-size: 0.82rem;
  margin-top: 6px;
}

/* ---- DASHBOARD: PLAN CARDS ---- */
.plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 8px;
  text-align: left;
}

.plan-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* Keep the Subscribe button pinned to the card bottom so it aligns across
   cards regardless of tag rows ("Current plan" / "Your pick"). */
.plan-card form {
  margin-top: auto;
}

.plan-card.current {
  border-color: var(--green);
}

.plan-tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 5px;
  max-width: fit-content;
  background: rgba(37, 211, 102, 0.1);
  color: var(--green);
  margin-right: 6px;
}

/* ---- DOCS PAGE ---- */
.docs-container {
  max-width: 720px;
  text-align: left;
}

.docs-container h1 {
  text-align: left;
}

.docs-container .section-desc {
  margin-left: 0;
}

.docs-container h3 {
  margin-top: 40px;
  margin-bottom: 12px;
}

.docs-copy {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 16px;
}

/* ---- ACCESSIBILITY + QUIET ACTIONS ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.btn-quiet {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: "Outfit", sans-serif;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.btn-quiet:hover {
  color: var(--text);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .code-grid {
    grid-template-columns: 1fr;
  }

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

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

  .plan-cards {
    grid-template-columns: 1fr;
  }

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

  nav .links a:not(.btn-github) {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .ai-table-cell {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}