:root {
  --bg: #0e1114;
  --bg-soft: #151b22;
  --paper: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef2f7;
  --muted: #9dacbd;
  --accent: #f0aa72;
  --accent-deep: #cb6b2a;
  --good: #86d5ac;
  --danger: #ff8d84;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  --radius: 26px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(240, 170, 114, 0.12), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(135, 213, 172, 0.12), transparent 18%),
    linear-gradient(180deg, #0c1013 0%, #13171d 100%);
}

.shell {
  width: min(1500px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.hero,
.panel,
.pill,
button,
input,
select,
pre {
  border-radius: var(--radius);
}

.hero,
.panel,
button,
input,
select,
pre {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  padding: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 0.98;
}

h1 { font-size: clamp(3rem, 7vw, 5.8rem); max-width: 9ch; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.15rem; margin: 0 0 12px; }

.lede {
  max-width: 34rem;
  margin: 18px 0 0;
  line-height: 1.6;
  color: #cad5df;
}

.hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__status,
.hero__metrics,
.stats,
.auth__grid,
.columns,
.search__form,
.assistant__actions,
.chips,
.plans__grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

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

.metric {
  min-width: 180px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  background: rgba(255,255,255,0.025);
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.7rem;
}

.layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.panel {
  padding: 22px;
}

.panel--wide {
  grid-column: 1 / -1;
}

.panel__head {
  margin-bottom: 18px;
}

.stack {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

input,
select {
  width: 100%;
  padding: 13px 16px;
  color: var(--text);
  background: rgba(10, 13, 16, 0.62);
}

button {
  padding: 13px 16px;
  color: #131313;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  font-weight: 700;
  cursor: pointer;
}

.meta-text {
  color: var(--muted);
  line-height: 1.5;
}

.columns {
  align-items: start;
}

.columns > div {
  flex: 1 1 260px;
}

.list,
.result-list,
.assistant-log {
  display: grid;
  gap: 10px;
}

.card,
.result,
.assistant-item {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  background: rgba(255,255,255,0.025);
}

.result__meta,
.card__meta,
.plan__features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.plan {
  flex: 1 1 240px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.plan__price {
  margin-top: 12px;
  font-size: 2rem;
  font-family: "Fraunces", Georgia, serif;
}

.plan__features {
  display: grid;
  gap: 6px;
  margin: 14px 0;
}

.plan button {
  width: 100%;
}

.assistant-log {
  min-height: 170px;
  max-height: 280px;
  overflow: auto;
}

pre {
  padding: 16px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d6e3ef;
}

@media (max-width: 1100px) {
  .hero,
  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 18px, 100%);
    padding-top: 12px;
  }

  .search__form,
  .assistant__actions,
  .auth__grid,
  .columns {
    flex-direction: column;
  }
}
