
:root {
  --sx-bg: #07080b;
  --sx-text: #f4f6f8;
  --sx-muted: #8d95a1;
  --sx-accent: #00fa99;
  --sx-ink: #062118;
  --sx-line: rgba(255, 255, 255, 0.08);
  --sx-font: Inter, "Segoe UI", system-ui, sans-serif;
  --sx-mono: "Cascadia Mono", "Segoe UI Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sx-bg);
  color: var(--sx-text);
  font-family: var(--sx-font);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.06em; font-size: 14px; }
.brand img { width: 22px; height: 22px; border-radius: 5px; }
.nav nav { display: flex; gap: 22px; color: var(--sx-muted); font-size: 14px; }
.nav nav a:hover { color: var(--sx-text); }
.nav .spacer { flex: 1; }
.signin { color: var(--sx-muted); font-size: 14px; }
.signin:hover { color: var(--sx-text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  border: 0;
  font-weight: 600;
  font-size: 14px;
}
.btn-green { background: var(--sx-accent); color: var(--sx-ink); }
.btn-quiet { background: #16181d; color: var(--sx-text); }
.nav .btn { padding: 8px 16px; }

.wrap { width: min(1120px, calc(100% - 56px)); margin: 0 auto; }

.hero {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 72px;
  align-items: center;
  padding: 64px 0 24px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--sx-muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 500;
}
h1 {
  margin: 0 0 18px;
  font-size: clamp(64px, 7.4vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 600;
}
.lede { margin: 0 0 28px; max-width: 38ch; color: var(--sx-muted); font-size: 17px; }
.actions { display: flex; gap: 10px; }

.shell {
  position: relative;
  height: 560px;
  display: flex;
  flex-direction: column;
  background: #0c0e12;
  color: #f2f4f7;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 14px 14px 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  --acc: #00fa99;
}
.shell button, .shell textarea, .shell input {
  font-family: inherit;
  font-size: 13px;
  color: inherit;
}
.shell-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.shell-title { color: #c2c9d4; font-weight: 600; margin-right: 10px; }
.shell .mode {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 3px 10px;
  cursor: pointer;
}
.shell .mode.on { background: color-mix(in srgb, var(--acc) 20%, transparent); color: var(--acc); }
.shell-x {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #9aa3b0;
  cursor: pointer;
  font-size: 16px;
}
.pane { display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1; padding-top: 10px; }
.pane[hidden] { display: none; }
.pickers { display: flex; gap: 8px; }
.combo { position: relative; }
.combo.grow { flex: 1; }
.combo-btn {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  border-radius: 8px;
  padding: 7px 26px 7px 10px;
  cursor: pointer;
}
.combo-btn::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  border: 4px solid transparent;
  border-top-color: #c2c9d4;
  transform: translateY(-1px);
}
.menu, .pop {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: rgba(18, 20, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px;
}
.menu button, .pop button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
}
.menu button:hover, .pop button:hover { background: rgba(0, 250, 153, 0.14); }
.pop { right: auto; width: 160px; top: 78px; left: auto; margin-left: auto; }
.agent-head { display: flex; align-items: center; justify-content: space-between; }
.agent-head span { color: #00fa99; font-weight: 650; letter-spacing: 0.04em; font-size: 12px; }
.ghost, .empty-btns button, .navrow button {
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
}
.ready { margin: 0; color: #c2c9d4; }
.agent-sub { margin: -4px 0 0; color: #c2c9d4; }
.hist, .log, .page {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-radius: 8px;
}
.hist::-webkit-scrollbar, .log::-webkit-scrollbar { width: 10px; }
.hist::-webkit-scrollbar-thumb, .log::-webkit-scrollbar-thumb { background: #2e3440; border-radius: 8px; }
.empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}
.hello, .hint { margin: 0; color: #c2c9d4; }
.hint { max-width: 28ch; }
.empty-btns { display: flex; gap: 8px; margin-top: 6px; }
.msg {
  margin: 0 8px 8px auto;
  width: fit-content;
  max-width: 86%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  white-space: pre-wrap;
}
.msg.note { margin: 8px auto 8px 8px; color: #c2c9d4; background: transparent; padding: 0; }
.log p { margin: 0 0 6px; color: #c2c9d4; }
.tools { display: flex; justify-content: space-around; }
.tools button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #c5cbd4;
  cursor: pointer;
  border-radius: 8px;
}
.tools button:hover { background: rgba(255, 255, 255, 0.06); }
.tools button, .composer button { display: inline-flex; align-items: center; justify-content: center; }
.tools img, .composer img { width: 18px; height: 18px; display: block; pointer-events: none; }
.composer {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  padding: 8px 10px;
}
.composer textarea {
  flex: 1;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  min-height: 22px;
  max-height: 72px;
}
.composer button { border: 0; background: transparent; cursor: pointer; color: #c5cbd4; }
.start {
  align-self: flex-start;
  border: 0;
  background: #00af6b;
  color: #f2f4f7;
  border-radius: 8px;
  padding: 7px 22px;
  cursor: pointer;
}
.start:disabled { opacity: 0.4; cursor: default; }
.tabs { display: flex; gap: 6px; align-items: center; }
.tab {
  background: #00af6b;
  color: #f2f4f7;
  border-radius: 8px;
  padding: 6px 10px;
}
.add, .navrow button { background: #00af6b; }
.navrow { display: flex; gap: 6px; flex-wrap: wrap; }
.url {
  width: 100%;
  border: 0;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
}
.page {
  background: #f4f5f7;
  color: #3a404a;
  padding: 16px;
}
.settings { position: relative; display: flex; flex-direction: column; min-height: 0; flex: 1; padding-top: 8px; }
.settings[hidden] { display: none !important; }
.set-title { margin: 0 0 6px; color: var(--acc, #00fa99); font-size: 12px; font-weight: 650; letter-spacing: 0.06em; }
.set-body { display: flex; gap: 8px; min-height: 0; flex: 1; }
.set-nav { width: 112px; flex: none; overflow: auto; }
.set-nav button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: #f2f4f7; border-radius: 4px; padding: 4px 8px; cursor: pointer; }
.set-nav button.on { background: rgba(0, 250, 153, 0.16); }
.set-pages { flex: 1; min-width: 0; overflow: auto; padding-right: 4px; }
.set-pages section { margin: 0; padding: 0; border: 0; }
.set-pages section[hidden] { display: none; }
.set-h { display: flex; align-items: center; gap: 8px; margin: 12px 0 6px; font-size: 12px; font-weight: 650; letter-spacing: 0.04em; }
.set-h::before { content: ""; width: 2px; height: 12px; border-radius: 1px; background: var(--acc, #00fa99); }
.set-hint, .set-pages p { margin: 0 0 6px; color: #c2c9d4; font-size: 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 6px; cursor: pointer; }
.check input { accent-color: var(--acc, #00fa99); margin-top: 2px; }
.slide { margin: 0 0 8px; }
.slide span { font-size: 12px; }
.slide .val { float: right; color: #c2c9d4; }
.slide input, #accent, #chat-font, #mic-dev, .field-in, #prompt {
  width: 100%; box-sizing: border-box; margin: 4px 0 8px;
  background: rgba(255,255,255,0.06); color: inherit; border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px; padding: 6px 8px;
}
.slide input { accent-color: var(--acc, #00fa99); padding: 0; }
#accent { width: 42px; height: 28px; padding: 2px; }
.set-pages button, .presets button, .hk-key {
  border: 0; background: rgba(255,255,255,0.1); color: inherit; border-radius: 8px; padding: 6px 10px; cursor: pointer; margin: 0 6px 6px 0;
}
.set-pages .danger { display: block; width: 100%; background: #521a1a; }
.set-pages .danger:hover { background: #7a2424; }
.hk { margin: 0 0 8px; }
.hk > span { display: block; margin-bottom: 2px; }
.hk label { margin-right: 8px; font-size: 12px; }
.saved { color: var(--acc, #00fa99) !important; }
.confirm { position: absolute; inset: 28px 12px auto; background: #12141a; border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; padding: 12px; }
.confirm[hidden] { display: none !important; }
.shell.light { background: #f4f5f7; color: #3a404a; }
.shell.light .shell-title, .shell.light .set-hint, .shell.light .set-pages p, .shell.light .slide .val { color: #6b7380; }
.shell.light .set-nav button { color: #3a404a; }
.shell.light .mode { color: #3a404a; }
.shell-note {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  margin: 0;
  background: #12141a;
  border-radius: 8px;
  padding: 8px 10px;
  color: #c2c9d4;
  text-align: center;
}

section {
  margin-top: 72px;
  padding: 48px 0 8px;
  border-top: 1px solid var(--sx-line);
}
h2 {
  margin: 0 0 16px;
  font-size: clamp(40px, 4.6vw, 60px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-weight: 600;
  max-width: 14ch;
}
.plain { margin: 0; max-width: 46ch; color: var(--sx-muted); font-size: 17px; }

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 28px;
}
.trio h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.trio p { margin: 0; color: var(--sx-muted); font-size: 15px; }

.names {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}
.fine { margin: 28px 0 0; max-width: 62ch; color: var(--sx-muted); font-size: 13px; }

.field {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 760px;
  background: #101318;
  border-radius: 14px;
  padding: 10px 10px 10px 18px;
}
.field code {
  flex: 1;
  font-family: var(--sx-mono);
  font-size: 13px;
  color: #c5cbd4;
  overflow-wrap: anywhere;
}
.field button {
  border: 0;
  background: var(--sx-accent);
  color: var(--sx-ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
}
.note { margin-top: 14px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.plan {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  background: #0e1116;
  border: 1px solid transparent;
  border-radius: 18px;
}
.plan.pro { border-color: rgba(0, 250, 153, 0.55); }
.plan h3 { margin: 0; font-size: 18px; font-weight: 600; }
.plan .blurb { margin: 8px 0 0; color: var(--sx-muted); font-size: 14px; min-height: 3em; }
.amt { margin: 16px 0 18px; font-size: 42px; letter-spacing: -0.045em; font-weight: 600; }
.amt span { font-size: 15px; color: var(--sx-muted); font-weight: 500; letter-spacing: 0; }
.plan ul { margin: 0 0 22px; padding: 0; list-style: none; color: #c5cbd4; font-size: 14px; }
.plan li { margin: 0 0 8px; }
.plan .btn { width: 100%; margin-top: auto; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 88px;
  padding: 22px 0 40px;
  color: var(--sx-muted);
  font-size: 14px;
  border-top: 1px solid var(--sx-line);
}
footer nav { display: flex; gap: 18px; }
footer a:hover { color: var(--sx-text); }

@media (max-width: 900px) {
  .nav { padding: 16px; }
  .nav nav, .signin { display: none; }
  .wrap { width: min(100% - 32px, 1120px); }
  .hero, .trio, .plans { grid-template-columns: 1fr; }
  .hero { gap: 28px; padding-top: 28px; }
  h1 { font-size: 56px; }
  .shell { height: 520px; }
}
