:root {
  --bg: #0a0a0a;
  --bg-raised: #111111;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --bg-input: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #eaeaea;
  --text-muted: #8a8a8e;
  --accent: #e3b567;
  --accent-strong: #f0c988;
  --accent-dim: rgba(227, 181, 103, 0.14);
  --accent-ink: #17130a;
  --good: #4ade80;
  --good-bg: rgba(74, 222, 128, 0.12);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.12);
  --bad: #f87171;
  --bad-bg: rgba(248, 113, 113, 0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --blur: blur(16px);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: "Inter", -apple-system, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.4em;
  text-wrap: balance;
}

a {
  color: var(--accent);
}

svg[data-lucide] {
  display: inline-block;
  vertical-align: -3px;
  width: 1em;
  height: 1em;
  stroke-width: 2;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px 120px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar .brand {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
}

.topbar nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

.topbar nav a.active {
  color: var(--text);
  font-weight: 600;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  padding: 28px;
  margin-bottom: 20px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: var(--bg-input);
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  transition: transform 0.1s, background 0.15s, border-color 0.15s, opacity 0.15s;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  width: 100%;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-primary:active {
  transform: scale(0.98);
}

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.btn-danger {
  background: rgba(248, 113, 113, 0.15);
  color: var(--bad);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.22);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.badge-urgent {
  background: var(--bad-bg);
  color: var(--bad);
  border-color: rgba(248, 113, 113, 0.25);
}

.badge-live {
  background: var(--good-bg);
  color: var(--good);
  border-color: rgba(74, 222, 128, 0.25);
}

.badge-warn {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: rgba(251, 191, 36, 0.25);
}

.badge-muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border-color: var(--border);
}

.price {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.3rem;
  color: var(--text);
}

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

.error-banner {
  background: var(--bad-bg);
  color: var(--bad);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.empty {
  text-align: center;
  color: var(--text-muted);
  padding: 56px 16px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Admin dashboard: wider layout, tables, filter bars */

.wrap-wide {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 20px 120px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filters select,
.filters input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  background: var(--bg-input);
  color: var(--text);
  font-family: inherit;
}

.btn-sm {
  padding: 8px 14px;
  min-height: unset;
  font-size: 0.85rem;
}

kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 0.76rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--text);
}

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  padding: 18px 20px;
}

.stat-tile .label {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.stat-tile .value {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.6rem;
}

/* Public marketing site */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  max-width: 1180px;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.site-header .brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

.site-header nav a.cta {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.site-header nav a.cta:hover {
  background: var(--accent-strong);
}

.hero {
  background: radial-gradient(ellipse 900px 500px at 50% -10%, rgba(227, 181, 103, 0.1), transparent), var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 96px 24px 100px;
  text-align: center;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(227, 181, 103, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero p.lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-ctas .btn {
  width: auto;
  min-width: 200px;
}

.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 96px 24px;
}

.section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 14px;
}

.section .section-lede {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.trust-item {
  text-align: center;
}

.trust-item .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 18px;
}

.trust-item h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.trust-item p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.band {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.band .section h2 {
  color: var(--text);
}

.band .section-lede {
  color: var(--text-muted);
}

.trade-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}

.trade-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.trade-card h3 {
  margin-bottom: 8px;
}

.trade-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--text-muted);
}

/* Multi-step intake form */

.step-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.step-dot.active {
  background: var(--accent);
}

.step-dot.done {
  background: var(--good);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.option-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-card);
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}

.option-card:hover {
  border-color: var(--border-strong);
}

.option-card.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent-strong);
}

.urgent-flag {
  border: 1.5px solid rgba(248, 113, 113, 0.35);
  background: var(--bad-bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}

/* Feature split section (homepage): sticky text + CSS phone mockup */

.feature-split {
  max-width: 1140px;
  margin: 0 auto;
  padding: 120px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.feature-split-text {
  position: sticky;
  top: 120px;
}

.feature-split-text .hero-kicker {
  margin-bottom: 20px;
}

.feature-split-text h2 {
  text-align: left;
  font-size: 2.1rem;
  margin-bottom: 18px;
}

.feature-split-text p {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 28px;
}

.feature-split-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-split-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.feature-split-list svg {
  flex-shrink: 0;
  color: var(--accent);
}

.phone-mockup {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 300px;
  height: 610px;
  border-radius: 44px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #161616, #0d0d0d);
  box-shadow: var(--shadow), 0 0 0 6px rgba(255, 255, 255, 0.02);
  padding: 14px;
  position: relative;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 64px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-screen .screen-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 8px;
}

.chat-bubble {
  align-self: flex-start;
  max-width: 85%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.chat-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-bubble.chat-bubble-accent {
  background: var(--accent-dim);
  border-color: rgba(227, 181, 103, 0.3);
  color: var(--accent-strong);
}

@media (max-width: 860px) {
  .feature-split {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 72px 24px;
  }

  .feature-split-text {
    position: static;
  }

  .phone-frame {
    width: 260px;
    height: 530px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-bubble {
    transition: none;
  }
}
