:root {
  --bg: #050814;
  --bg-alt: #0a0f1f;
  --card: #111827;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: #1f2933;
  --chip-bg: #111827;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--text);
}

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

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */

.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.subtitle {
  color: var(--muted);
  max-width: 640px;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.btn.primary:hover {
  background: #4338ca;
  border-color: #4338ca;
  transform: translateY(-1px);
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.9);
  border-color: var(--border);
  color: var(--text);
}

.btn.secondary:hover {
  background: #111827;
  border-color: #374151;
  transform: translateY(-1px);
}

/* Sections */

.section {
  padding: 3.5rem 0;
}

.section.alt {
  background: rgba(15, 23, 42, 0.75);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

.stacked-on-mobile {
  align-items: flex-start;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1.25rem 1.2rem;
  border: 1px solid var(--border);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.centered-cta {
  margin-top: 2rem;
  text-align: center;
}

.left-on-desktop {
  text-align: left;
}

ul {
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.5;
}

.how-billing {
  margin-top: 2rem;
}

/* Chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.chip {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Form */

.apply-form {
  margin-top: 1.5rem;
  background: var(--card);
  border-radius: 0.9rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border);
  max-width: 720px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
}

.form-field label {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.form-field input,
.form-field textarea {
  padding: 0.6rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: #020617;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-actions {
  margin-top: 0.5rem;
}

.small {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Footer */

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

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Prototype Shell */

.prototype-body {
  background: radial-gradient(circle at top, #020617 0, #020617 55%, #000 100%);
}

.prototype-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
}

.prototype-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proto-logo {
  font-weight: 600;
  font-size: 0.95rem;
}

.proto-tag {
  font-size: 0.85rem;
  color: var(--muted);
}

.app-shell {
  max-width: 1120px;
  margin: 1.5rem auto 2rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.5rem;
}

.app-sidebar {
  background: #020617;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.app-sidebar-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.app-nav-btn {
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.app-nav-btn.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
}

.app-main {
  min-height: 520px;
}

.app-view {
  display: none;
}

.app-view.is-active {
  display: block;
}

.app-view-header h1 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.app-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.app-card {
  background: #020617;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 1.1rem 1rem;
}

.app-card-wide {
  grid-column: 1 / -1;
}

.app-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.app-card h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.app-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Stats */

.app-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.app-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.app-stat-value {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Table */

.app-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.app-table th,
.app-table td {
  padding: 0.45rem 0.4rem;
}

.app-table thead tr {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.app-table tbody tr:not(:last-child) {
  border-bottom: 1px solid rgba(31, 41, 55, 0.7);
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-size: 0.85rem;
  cursor: pointer;
}

/* Pills */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid transparent;
}

.pill-green {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.3);
  color: #bbf7d0;
}

.pill-amber {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fef3c7;
}

.pill-purple {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.3);
  color: #e9d5ff;
}

.pill-blue {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.3);
  color: #dbeafe;
}

.pill-pink {
  background: rgba(236, 72, 153, 0.18);
  border-color: rgba(236, 72, 153, 0.3);
  color: #fce7f3;
}

.pill-gray {
  background: rgba(156, 163, 175, 0.18);
  border-color: rgba(156, 163, 175, 0.3);
  color: #e5e7eb;
}

.pill-soft {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
}

.pill-soft-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

/* Lists / Timeline */

.app-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.app-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.app-list span {
  color: var(--muted);
}

.app-list strong {
  font-weight: 500;
}

.app-actions-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.app-timeline {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.app-timeline li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.app-timeline-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 0.3rem;
}

/* Audit view */

.audit-question {
  margin-bottom: 0.75rem;
}

.audit-question label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.fake-input {
  background: #020617;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.app-body {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Roadmap */

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

.roadmap-column h2 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.roadmap-item {
  background: #020617;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  padding: 0.7rem 0.7rem;
  margin-bottom: 0.6rem;
}

.roadmap-item h3 {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
}

.roadmap-item p {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Blueprints */

.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

/* Prototype disclaimer */

.prototype-disclaimer {
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.95);
}

.prototype-disclaimer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 1.1rem;
  display: flex;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.prototype-disclaimer-inner strong {
  font-weight: 600;
  color: var(--text);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .two-column,
  .cards,
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .app-sidebar-title {
    width: 100%;
  }

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

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

  .prototype-disclaimer-inner {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .apply-form {
    padding: 1.25rem 1rem;
  }
}
