:root {
  color-scheme: dark;
  --bg: #08090b;
  --panel: #101116;
  --panel-2: #17191f;
  --panel-3: #0c0d10;
  --ink: #f3f0e8;
  --muted: #a6a8ae;
  --quiet: #737782;
  --line: rgba(255, 255, 255, 0.1);
  --sulfur: #e9c96f;
  --acid: #7de0a7;
  --discord: #5865f2;
  --steel: #9aa4b2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 18px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.hero {
  min-height: 0;
  padding: 26px clamp(20px, 4vw, 56px) 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 30%),
    linear-gradient(90deg, rgba(233, 201, 111, 0.055), transparent 24%, transparent 76%, rgba(88, 101, 242, 0.05)),
    #08090b;
}

.nav {
  max-width: 1240px;
  margin: 0 auto 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 780;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(145deg, #fff9e8, #cac5b7);
  color: #101014;
  font-weight: 900;
}

.nav-cta,
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  font-weight: 760;
}

.nav-cta,
.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
}

.nav-cta { padding: 0 18px; }

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(500px, 0.94fr);
  gap: clamp(48px, 5.5vw, 82px);
  align-items: start;
}

.hero-copy {
  max-width: 610px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #f0d577;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p { margin-top: 0; }

h1 {
  max-width: 610px;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 4.7vw, 5.15rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 630px;
  color: #d4d1c8;
  font-size: clamp(1.08rem, 1.45vw, 1.32rem);
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary {
  padding: 0 22px;
  background: linear-gradient(180deg, #6873ff, var(--discord));
  color: white;
  box-shadow: 0 10px 34px rgba(88, 101, 242, 0.22);
}

.secondary {
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.018);
}

.product-panel {
  min-width: 0;
  max-width: 560px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    #0d0e12;
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.5);
}

.thread-shell {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    repeating-linear-gradient(135deg, rgba(233, 201, 111, 0.035) 0 1px, transparent 1px 20px),
    var(--panel);
}

.thread-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent);
  opacity: 0.42;
}

.thread-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.thread-top strong,
.thread-top span {
  display: block;
}

.thread-top span {
  margin-top: 5px;
  color: var(--muted);
}

.thread-top b {
  height: fit-content;
  padding: 7px 9px;
  border: 1px solid rgba(233, 201, 111, 0.32);
  border-radius: 4px;
  color: var(--sulfur);
  font-size: 0.78rem;
}

.model-strip {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}

.model {
  white-space: nowrap;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 720;
}

.model.active {
  color: #15110a;
  background: var(--sulfur);
  border-color: var(--sulfur);
}

.thread {
  position: relative;
  z-index: 1;
  padding: 12px 16px;
}

.message {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: #2a2e3b;
  font-weight: 850;
}

.bot-avatar {
  background: var(--acid);
  color: #06110b;
}

.message p {
  color: #e5e1d8;
  line-height: 1.45;
}

.approval {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), transparent),
    var(--panel-2);
}

.approval-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
}

.approval-head b { color: var(--sulfur); }

.route-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}

.route-meta div {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
}

.route-meta dt,
.route-meta dd {
  margin: 0;
}

.route-meta dt {
  color: var(--quiet);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.route-meta dd {
  margin-top: 4px;
  color: #ebe8df;
  font-size: 0.82rem;
  font-weight: 720;
}

.buttons,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.buttons span,
.cta-row span {
  padding: 7px 9px;
  border-radius: 4px;
  background: #272c38;
  color: #ede9df;
  font-size: 0.8rem;
  font-weight: 760;
}

.buttons span:first-child {
  background: var(--acid);
  color: #07110d;
}

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

.render-card {
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    #0d0f14;
}

.render-card.selected {
  border-color: rgba(88, 101, 242, 0.95);
  box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.5);
}

.render-card > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.render-thumb {
  position: relative;
  min-height: 54px;
  overflow: hidden;
  border-radius: 3px;
  background: #202631;
}

.render-thumb::before,
.render-thumb::after {
  content: "";
  position: absolute;
  transform: rotate(45deg);
}

.render-thumb::before {
  left: -34px;
  bottom: 24px;
  width: 118px;
  height: 118px;
  background: #2d394a;
}

.render-thumb::after {
  right: -44px;
  bottom: 34px;
  width: 128px;
  height: 128px;
  background: #4a5570;
}

.render-thumb.google { background: linear-gradient(180deg, #d5b16e 0%, #667087 48%, #16191d 100%); }
.render-thumb.gpt { background: linear-gradient(180deg, #c9d5cf 0%, #6f8381 48%, #151a1b 100%); }
.render-thumb.ideogram { background: linear-gradient(180deg, #c4b9de 0%, #6b6785 48%, #151622 100%); }
.render-thumb.krea { background: linear-gradient(180deg, #cfc2a0 0%, #6f6d62 48%, #171714 100%); }

.bottle {
  position: absolute;
  z-index: 2;
  left: calc(50% - 11px);
  bottom: 10px;
  width: 22px;
  height: 38px;
  border-radius: 10px 10px 8px 8px;
  background: linear-gradient(90deg, #1b2027, #aeb7be 50%, #262c33);
}

.bottle::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 6px;
  width: 11px;
  height: 12px;
  border-radius: 4px 4px 2px 2px;
  background: #30363e;
}

.output-copy span,
.output-copy strong {
  display: block;
}

.output-copy span {
  margin: 10px 0 5px;
  color: var(--sulfur);
  font-size: 0.84rem;
  font-weight: 820;
}

.output-copy strong {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.25;
}

.brief,
.workflow,
.stack,
.closing {
  max-width: 1240px;
  margin: 0 auto;
  padding: 84px clamp(20px, 4vw, 56px);
}

.brief {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
  gap: 42px;
}

.brief h2,
.stack h2,
.closing h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.brief p,
.workflow p,
.stack p,
.closing p,
.brief-list span,
.route-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.brief-list,
.route-grid {
  display: grid;
  gap: 12px;
}

.brief-list div,
.workflow-card,
.route-grid div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), transparent),
    #101116;
}

.brief-list b,
.brief-list span,
.route-grid b,
.route-grid span {
  display: block;
}

.brief-list b,
.route-grid b {
  margin-bottom: 8px;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metric {
  color: var(--sulfur);
  font-weight: 850;
}

.workflow-card h2 {
  margin: 12px 0;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.08;
}

.stack {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.route-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.closing {
  text-align: center;
  padding-bottom: 100px;
}

.closing p {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.closing .primary {
  margin-top: 22px;
}

@media (max-width: 980px) {
  .hero-grid,
  .brief,
  .workflow,
  .stack,
  .route-grid {
    grid-template-columns: 1fr;
  }

  .product-panel {
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 18px;
  }

  .nav {
    margin-bottom: 42px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary,
  .secondary {
    width: 100%;
  }

  .thread-top {
    display: block;
  }

  .thread-top b {
    display: inline-flex;
    margin-top: 12px;
  }

  .thread,
  .thread-top,
  .model-strip {
    padding-left: 14px;
    padding-right: 14px;
  }

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