:root {
  --bg: #0b0f17;
  --bg-elev: #111827;
  --bg-card: #131b2b;
  --bg-code: #0a0f18;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.26);
  --text: #e6edf7;
  --muted: #8b9bb4;
  --accent: #00bc97;
  --accent-hover: #00d4aa;
  --accent-soft: rgba(0, 188, 151, 0.14);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.14);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.14);
  --info: #38bdf8;
  --info-soft: rgba(56, 189, 248, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/bg-ira.webp') left bottom / cover no-repeat;
  opacity: 0.30;
}
.bg-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 42% at 50% 0%, rgba(0, 188, 151, 0.14), rgba(56, 189, 248, 0.04) 55%, transparent 80%),
    radial-gradient(ellipse 48% 52% at 54% 44%, rgba(11, 15, 23, 0.72) 0%, rgba(11, 15, 23, 0.48) 65%, rgba(11, 15, 23, 0.18) 100%),
    linear-gradient(to bottom, rgba(11, 15, 23, 0.52) 0%, rgba(11, 15, 23, 0.18) 55%, rgba(11, 15, 23, 0.32) 100%);
}

main { flex: 1; position: relative; z-index: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
code, pre { font-family: var(--font-mono); }
code {
  font-size: 0.88em;
  background: rgba(148, 163, 184, 0.11);
  padding: 0.12em 0.38em;
  border-radius: 5px;
  color: #cfe4ff;
}
pre {
  margin: 0;
  padding: 14px 16px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}
pre code { background: none; padding: 0; color: #dbeafe; font-size: inherit; }

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

.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ==================== TOPBAR ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 23, 0.82);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 188, 151, 0.32);
}

.brand-tag {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

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

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 10px 5px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.user-pill:hover { border-color: var(--border-strong); }
.user-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ==================== BUTTONS & BADGES ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.08s, color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  color: #04130f;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); color: #04130f; }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover:not(:disabled) { background: #1a2438; border-color: rgba(148, 163, 184, 0.42); color: var(--text); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover:not(:disabled) { background: rgba(148, 163, 184, 0.08); color: var(--text); }

.btn-danger-ghost {
  background: transparent;
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.28);
}
.btn-danger-ghost:hover:not(:disabled) { background: var(--danger-soft); color: #fecaca; }

.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-xs { padding: 4px 9px; font-size: 12px; }
.btn-block { width: 100%; }

.copy-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.09);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.copy-btn:hover { color: var(--text); border-color: var(--border-strong); background: rgba(148, 163, 184, 0.16); }
.copy-btn.copied { color: var(--accent); border-color: rgba(0, 188, 151, 0.45); }

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(148, 163, 184, 0.16);
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.plan-free { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; }
.plan-pro { background: var(--accent-soft); color: var(--accent); }
.plan-unlimited { background: var(--info-soft); color: var(--info); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.status-ok { background: var(--accent-soft); color: #34d399; }
.status-failed { background: var(--danger-soft); color: #fca5a5; }
.status-revoked { background: rgba(148, 163, 184, 0.14); color: var(--muted); }

/* ==================== HERO & LANDING ==================== */
.hero {
  padding: 68px 20px 36px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
  margin: 0 auto 16px;
  max-width: 1000px;
  font-size: clamp(38px, 7.5vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.hero-code-title {
  font-family: var(--font-mono);
  font-weight: 800;
}
.hero-arrow {
  color: var(--muted);
  font-weight: 400;
}

/* the name: iRA - the letters ira is made of, in iRidium Assistant */
.hero-brand { font-weight: 800; }
.hero-dash { color: var(--muted); font-weight: 400; }
.hero-brand-name { font-weight: 600; }
.hero-brand-name b { color: var(--accent); font-weight: 800; }

.features {
  list-style: none;
  margin: 8px auto 28px;
  padding: 0;
  max-width: 1120px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}
.feature {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.feature-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }
/* the main one: across, bigger */
.feature-main {
  padding: 22px 24px;
  border-color: rgba(0, 188, 151, 0.35);
  background: linear-gradient(180deg, var(--accent-soft), var(--bg-card));
}
.feature-main .feature-title { font-size: clamp(48px, 10vw, 96px); line-height: 1; letter-spacing: -0.04em; margin-bottom: 14px; }
.badge-exp {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; vertical-align: 2px;
  background: var(--warn-soft); color: var(--warn); font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
}
.feature p.feature-note { margin-top: 8px; font-size: 13px; }
.feature-more { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.feature-more li + li { margin-top: 4px; }
.buy-count { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.buy-count input { width: 84px; padding: 6px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg-code); color: var(--text); font: inherit; font-size: 15px; }
.feature-main p { color: var(--text); font-size: 17px; font-weight: 500; }

.hero-lead {
  margin: 0 auto 12px;
  max-width: 700px;
  font-size: 19px;
  color: var(--text);
  font-weight: 500;
}
.hero-sublead {
  margin: 0 auto 30px;
  max-width: 700px;
  font-size: 15.5px;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.why-q {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.why-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ==================== JSX COMPONENT EXAMPLES ==================== */
.comp-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.comp-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 15, 24, 0.55);
}
.comp-tab {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 13px 20px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.comp-tab:hover { color: var(--text); }
.comp-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.comp-body {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 0;
}
.comp-code-col {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.comp-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.jsx-pre {
  flex: 1;
  font-size: 12.8px;
  line-height: 1.62;
}
.tok-tag { color: #34d399; }
.tok-attr { color: #93c5fd; }
.tok-str { color: #fcd34d; }
.tok-num { color: #f472b6; }
.tok-fn { color: #c4b5fd; }
.tok-cmt { color: #64748b; font-style: italic; }

.comp-preview-col {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
}
.comp-preview-frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  background: var(--bg-code);
}
.comp-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.comp-preview-info h3 { margin: 0 0 6px; font-size: 16px; }
.comp-preview-info p { margin: 0 0 14px; font-size: 13.5px; }

.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
/* a slide's green label is its title; the h2 under it says more */
.section-head .eyebrow {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.section-more { display: flex; justify-content: center; margin-top: 28px; }
.section-head p { margin: 0 auto; max-width: 600px; color: var(--muted); }

/* ==================== CLI CARD ==================== */
.cli-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cli-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 15, 24, 0.55);
}

.cli-tab {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 13px 20px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.cli-tab:hover { color: var(--text); }
.cli-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.cli-steps { padding: 20px; display: grid; gap: 18px; }
.cli-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* ==================== SHOWCASE GALLERY ==================== */
.showcase-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-chip {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.filter-chip:hover { color: var(--text); border-color: var(--border-strong); }
.filter-chip.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(0, 188, 151, 0.42);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.showcase-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 188, 151, 0.45);
  box-shadow: var(--shadow);
}
.showcase-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-code);
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  width: 100%;
  display: block;
}
.showcase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.showcase-card:hover .showcase-thumb img { transform: scale(1.03); }
.showcase-play-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(11, 15, 23, 0.84);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 188, 151, 0.45);
  color: #6ee7b7;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.showcase-meta {
  padding: 13px 15px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex: 1;
}
.showcase-title { font-size: 14px; font-weight: 600; color: var(--text); }
.showcase-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.showcase-actions {
  padding: 0 15px 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.showcase-dl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.1);
  color: #dbeafe;
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.showcase-dl:hover {
  background: var(--accent-soft);
  border-color: rgba(0, 188, 151, 0.4);
  color: #6ee7b7;
}

/* ==================== PRICING ==================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.pricing-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.price-featured {
  border-color: rgba(0, 188, 151, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 188, 151, 0.2), var(--shadow);
}
.price-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  color: #04130f;
  background: var(--accent);
  padding: 3px 9px;
  border-radius: 999px;
}
.price-ribbon-muted { color: var(--muted); background: rgba(148, 163, 184, 0.14); }
.price-val.accent { color: var(--accent); }
.price-val {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 6px;
}
.price-val span { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-head p { margin: 0; font-size: 14px; color: var(--muted); }

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
  font-size: 14px;
}
.price-list li {
  padding-left: 20px;
  position: relative;
  color: #cbd5e1;
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ==================== AUTH ==================== */
.auth-wrap {
  padding: 56px 20px;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-code);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
}

.auth-tab {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.auth-tab.active { background: var(--bg-card); color: var(--text); }

.auth-card h2 { margin: 0 0 6px; font-size: 22px; }
.auth-sub { margin: 0 0 20px; font-size: 14px; color: var(--muted); }

.field { margin-bottom: 15px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #cbd5e1;
}
.field input, .token-create-row input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-code);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus, .token-create-row input:focus { border-color: var(--accent); }

.form-error {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  font-size: 13px;
}

.field-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; font-size: 13.5px; color: var(--muted); cursor: pointer; line-height: 1.45; }
.field-check input { width: 16px; height: 16px; margin: 1px 0 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.field-check a { color: var(--accent); }
.auth-foot { margin: 18px 0 0; text-align: center; font-size: 13px; }

/* ==================== DASHBOARD ==================== */
.dash { padding: 36px 20px 64px; }
.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.dash-head h1 { margin: 0 0 4px; font-size: 28px; letter-spacing: -0.02em; }
.dash-head-actions { display: flex; align-items: center; gap: 10px; }

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.server-status.online .status-dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.server-status.offline .status-dot { background: var(--warn); }

.dash-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.quota-headline {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.quota-sep { color: var(--muted); font-weight: 400; font-size: 22px; }
.quota-month { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }

.progress-track {
  margin: 16px 0 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #34d399);
  transition: width 0.35s ease, background 0.25s ease;
}
.progress-fill.warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.progress-fill.danger { background: linear-gradient(90deg, #ef4444, #f87171); }
.progress-fill.unlimited { background: linear-gradient(90deg, var(--info), var(--accent)); }

.quota-hint { margin: 0; font-size: 13px; color: var(--muted); }

.tx-strip {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}
.tx-strip-label { color: var(--muted); font-weight: 600; }
.tx-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tx-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #6ee7b7;
  border: 1px solid rgba(0, 188, 151, 0.28);
}

/* ==================== MODALS (LIGHTBOX & BUY PACK) ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 8, 14, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.preview-dialog {
  width: 100%;
  max-width: 1120px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
  box-shadow: var(--shadow);
}
.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.preview-bar-left, .preview-bar-right, .preview-downloads {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.preview-mode-switch {
  display: inline-flex;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}
.preview-mode-switch .btn {
  background: transparent;
  color: var(--muted);
  border: none;
}
.preview-mode-switch .btn.active {
  background: var(--accent-soft);
  color: #6ee7b7;
}
.preview-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 76vh;
  background: var(--bg-code);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.preview-stage iframe, .preview-stage img {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.preview-stage img { object-fit: contain; }
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.lightbox-desc { margin: 10px 0 0; font-size: 13.5px; }

.buy-dialog {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.buy-pack-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 188, 151, 0.08);
  border: 1px solid rgba(0, 188, 151, 0.34);
  margin: 12px 0 14px;
}
.buy-pack-title { font-weight: 700; font-size: 15px; }
.buy-pack-price { font-size: 22px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.buy-body p { margin: 0 0 10px; font-size: 13.5px; }

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 16px;
}
.mini-val { font-size: 22px; font-weight: 700; }
.mini-key { font-size: 12px; color: var(--muted); }

.cli-hint-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-code);
  border: 1px solid var(--border);
}
.cli-hint-inline code {
  background: none;
  padding: 0;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-section { margin-bottom: 20px; }
.section-bar { margin-bottom: 16px; }
.section-bar h2 { margin: 0 0 4px; font-size: 18px; }
.section-bar p { margin: 0; font-size: 13px; }

.token-create-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.token-create-row input { flex: 1; }

.new-token-banner {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 188, 151, 0.08);
  border: 1px solid rgba(0, 188, 151, 0.36);
}
.new-token-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.new-token-banner p { margin: 0 0 10px; font-size: 13px; }
.token-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 8px;
}
.token-copy-row code {
  background: none;
  padding: 0;
  font-size: 12.5px;
  color: #6ee7b7;
  word-break: break-all;
}

/* ==================== TABLES ==================== */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.data-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(148, 163, 184, 0.03); }
.col-actions { text-align: right; }
.actions-cell { display: flex; justify-content: flex-end; gap: 6px; }
.empty-cell { text-align: center; color: var(--muted); padding: 28px 12px !important; }

.proj-name { font-weight: 600; color: var(--text); }
.build-id-sub { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.artifacts-list { display: flex; flex-wrap: wrap; gap: 6px; }
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: #6ee7b7;
  border: 1px solid rgba(0, 188, 151, 0.3);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.dl-btn:hover:not(:disabled) { background: rgba(0, 188, 151, 0.24); border-color: var(--accent); }
.dl-btn:disabled { opacity: 0.6; cursor: wait; }
.dl-size { color: var(--muted); font-weight: 500; }

.build-error-msg {
  font-size: 12.5px;
  color: #fca5a5;
  max-width: 340px;
  word-break: break-word;
}
.warnings-toggle {
  margin-top: 6px;
  font-size: 12px;
  color: var(--warn);
}
.warnings-toggle summary { cursor: pointer; }
.warnings-toggle ul {
  margin: 6px 0 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12px;
}

/* ==================== FOOTER & TOASTS ==================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 13px;
  position: relative;
  z-index: 1;
}
.footer-link { color: var(--muted); text-decoration: none; }
.footer-link:hover { color: var(--accent); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: grid;
  gap: 8px;
  max-width: 360px;
}
.toast {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  color: var(--text);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  box-shadow: var(--shadow);
  animation: toastIn 0.18s ease-out;
}
.toast.error { border-left-color: var(--danger); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .comp-body { grid-template-columns: 1fr; }
  .comp-code-col { border-right: none; border-bottom: 1px solid var(--border); }
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid, .pricing-two { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .token-create-row { flex-direction: column; }
  .topbar-inner { gap: 8px; }
  #nav-user-email { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ==================== SLIDES ==================== */
/* the landing is slides: each a screen tall, the scroll settling on them (proximity: a taller one still scrolls) */
html.landing { scroll-snap-type: y proximity; scroll-padding-top: 64px; }
.slide {
  position: relative;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
}
.slide > .container { width: 100%; }
.slide-hero .hero { padding-top: 40px; padding-bottom: 72px; }

/* each slide's items come in one after another as it is shown (app.js: html.js-reveal, .slide.in, --i) */
.js-reveal .slide [data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(6px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.7s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js-reveal .slide.in [data-reveal] { opacity: 1; transform: none; filter: none; }

/* the name: the letters ira is made of light up in turn */
.hero-brand-name .w { white-space: nowrap; }
.hero-brand-name b { display: inline-block; animation: ira-letter 4.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes ira-letter {
  0%, 70%, 100% { text-shadow: none; transform: none; }
  80% { text-shadow: 0 0 22px rgba(0, 188, 151, 0.75); transform: translateY(-3px); }
}

/* the story: Studio by hand - and what if a bit of it were automated */
.story { max-width: 720px; margin: 8px auto 30px; text-align: left; }
.story-lead { margin: 0 0 14px; font-size: clamp(17px, 2vw, 20px); color: var(--text); }
.story-turn { margin: 0 0 16px; font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; color: var(--accent); }
.story-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.story-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius);
  background: rgba(19, 27, 43, 0.78); backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--muted); font-size: 15px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.story-list li:hover { border-color: rgba(0, 188, 151, 0.4); transform: translateX(4px); }
.story-list strong { color: var(--text); }
.story-ico {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); font-size: 17px;
}

/* jsx => irpz!, big; the arrow moves */
.section-head .big-title { font-size: clamp(48px, 9vw, 104px); line-height: 1; letter-spacing: -0.04em; margin-bottom: 18px; }
.big-title .hero-arrow { display: inline-block; animation: ira-arrow 2.4s ease-in-out infinite; }
@keyframes ira-arrow { 0%, 100% { transform: translateX(-6px); opacity: 0.6; } 50% { transform: translateX(6px); opacity: 1; color: var(--accent); } }

/* down to the next slide */
.slide-next {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); color: var(--muted); font-size: 18px;
  animation: ira-bob 2s ease-in-out infinite;
}
.slide-next:hover { color: var(--accent); border-color: var(--accent); }
@keyframes ira-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }

/* the dots: which slide is shown, a click goes to one */
.slide-dots {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 20;
  display: flex; flex-direction: column; gap: 10px;
}
.slide-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: transparent;
  transition: height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.slide-dots button:hover { border-color: var(--accent); }
.slide-dots button.active { height: 26px; background: var(--accent); border-color: var(--accent); }
#view-home[hidden] .slide-dots { display: none; }
.nav-links a.active { color: var(--text); }

@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; max-width: 720px; }
  .slide-dots { display: none; }
}
@media (max-width: 640px) {
  .slide { min-height: 0; }
  .slide-next { display: none; }
  .slide-hero .hero { padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-brand-name b, .big-title .hero-arrow, .slide-next { animation: none; }
}

/* ==================== EMAIL VERIFICATION & PASSWORD RESET ==================== */
.field-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-label-row label { margin-bottom: 6px; }
.field-link { font-size: 12.5px; color: var(--accent); text-decoration: none; }
.field-link:hover { text-decoration: underline; }
.form-notice {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 188, 151, 0.36);
  color: #ccfbef;
  font-size: 13px;
}
.verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.verify-banner strong { display: block; margin-bottom: 2px; }
.verify-banner p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 640px; }
.verify-banner b { color: var(--text); font-weight: 600; }
