:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --bg-elev: #111720;
  --ink: #e6edf3;
  --muted: #9aa7b2;
  --accent: #4dd6c8;
  --accent-2: #f2a93b;
  --line: #1f2937;
  --glass: rgba(19, 27, 36, 0.7);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --radius: 18px;
}

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

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.2;
  z-index: -2;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(77, 214, 200, 0.25), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(242, 169, 59, 0.15), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(77, 214, 200, 0.1), transparent 55%);
  z-index: -1;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(8, 12, 18, 0.7);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
  background: #0b0f14;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}

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

.cta {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cta.primary {
  background: linear-gradient(120deg, var(--accent), #6be3d3);
  color: #0b0f14;
  border: none;
}

.cta.ghost {
  background: transparent;
  border-color: var(--muted);
  color: var(--muted);
}

.cta:hover {
  transform: translateY(-1px);
}

.hero {
  padding: 90px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

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

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: var(--radius);
}

.meta-label {
  font-size: 12px;
  color: var(--muted);
}

.meta-value {
  font-weight: 600;
}

.hero-panel {
  background: var(--bg-elev);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 22, 30, 0.85);
}

.panel-logo {
  display: grid;
  place-items: center;
  padding: 18px 0 0;
}

.panel-logo img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.status {
  color: var(--accent);
  font-weight: 600;
}

.panel-body {
  padding: 18px;
  display: grid;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.log-line {
  color: #c3d0dc;
}

.log-line.muted {
  color: #6f7f8f;
}

.panel-footer {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.chip {
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--accent-2);
  font-weight: 600;
}

.section {
  padding: 80px 0;
}

.section-title {
  margin-bottom: 32px;
}

.section-title h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.features article {
  background: var(--glass);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: var(--radius);
  min-height: 140px;
}

.features h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.features p {
  color: var(--muted);
}

.chat-demo {
  position: relative;
}

.chat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  align-items: start;
}

.chat-window {
  background: var(--bg-elev);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 22, 30, 0.85);
}

.chat-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  color: var(--ink);
  max-height: 360px;
  overflow-y: auto;
}

.chat-message {
  display: flex;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 21, 29, 0.9);
  display: grid;
  gap: 8px;
}

.chat-message.user .chat-bubble {
  background: rgba(27, 215, 191, 0.12);
  border-color: rgba(77, 214, 200, 0.4);
}

.chat-list {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
}

.chat-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
}

.merch {
  position: relative;
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.merch-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.merch-art {
  height: 180px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(86, 108, 255, 0.3), rgba(27, 215, 191, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.04em;
  overflow: hidden;
}

.merch-art-image {
  background: #f6f7fb;
  padding: 10px;
}

.merch-art-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.merch-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.merch-actions .price {
  font-weight: 600;
}

.merch-size-field {
  display: grid;
  gap: 6px;
}

.merch-size-field label {
  font-size: 13px;
  color: var(--muted);
}

.merch-size-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 14, 20, 0.9);
  color: var(--text);
  padding: 10px 38px 10px 12px;
  font: inherit;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.merch-size-field select:focus-visible {
  outline: 2px solid rgba(27, 215, 191, 0.5);
  outline-offset: 1px;
}

.merch-card .cta[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.how {
  background: rgba(12, 17, 23, 0.8);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.flow-card {
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(15, 22, 30, 0.9);
}

.flow-card h4 {
  margin-bottom: 8px;
}

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

.stack-item {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.demo {
  position: relative;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.demo-form {
  background: var(--bg-elev);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 24px;
  display: grid;
  gap: 16px;
}

.demo-form.pulse {
  box-shadow: 0 0 0 2px rgba(77, 214, 200, 0.5), var(--shadow);
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

.demo-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.demo-form input,
.demo-form textarea {
  background: #0c1117;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink);
  font-family: inherit;
}

.demo-form input:focus,
.demo-form textarea:focus {
  outline: 2px solid rgba(77, 214, 200, 0.5);
}

.fine-print {
  font-size: 12px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

@media (max-width: 800px) {
  .nav {
    display: none;
  }
  .hero {
    padding-top: 70px;
  }
}
