:root {
  --bg: #050f0d;
  --panel: #071210;
  --panel-2: #0b1715;
  --card: rgba(255, 255, 255, 0.035);
  --card-strong: rgba(255, 255, 255, 0.065);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4fff9;
  --muted: #8fb1a9;
  --muted-2: #63837c;
  --accent: #05e09b;
  --accent-soft: rgba(5, 224, 155, 0.14);
  --danger: #ff6b61;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-y: auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 5% 0%, rgba(5, 224, 155, 0.13), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(5, 224, 155, 0.05), transparent 28%),
    linear-gradient(120deg, #06120f 0%, #030707 100%);
}

.menu-preview-item {
  align-items: flex-start;
}

.menu-preview-item div {
  display: grid;
  gap: 5px;
}

.menu-preview-item small {
  color: var(--muted);
  line-height: 1.35;
}

.menu-preview-item span {
  white-space: nowrap;
}
.page {
  width: min(1280px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.85fr);
  gap: 56px;
  padding: 42px 28px;
  align-items: start;
}

.hero {
  padding: 0 0 56px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(5, 224, 155, 0.28);
  font-size: 14px;
  font-weight: 800;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

h1 {
  margin: 34px 0 24px;
  max-width: 720px;
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.065em;
  font-weight: 950;
}

.lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.content-section {
  margin-top: 48px;
}

.content-section h2 {
  margin: 0 0 20px;
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 142px;
  padding: 24px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
}

.card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
}

.card span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

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

.slot {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(5, 224, 155, 0.1);
  border: 1px solid rgba(5, 224, 155, 0.26);
  font-weight: 800;
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.menu-preview-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
}

.menu-preview-item strong {
  font-size: 15px;
}

.menu-preview-item span {
  color: var(--accent);
  font-weight: 900;
  white-space: nowrap;
}

.assistant {
    position: sticky;
    top: 24px;

    height: calc(100vh - 48px);
    min-height: 0;

    padding: 24px;
    border-radius: 28px;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.04),
        rgba(255,255,255,0.02)
    );

    border: 1px solid var(--border);
    box-shadow: 0 34px 90px rgba(0,0,0,.38);

    display: grid;
    grid-template-rows: auto minmax(220px, 1fr);

    gap: 18px;

    overflow: hidden;
}

.voice-box {
    padding: 24px;
    border-radius: 22px;

    background: rgba(0,0,0,.28);
    border: 1px solid var(--border);

    text-align: center;

    overflow: hidden;
}

.orb {
  width: 150px;
  height: 150px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 26%, #e5fff4, transparent 24%),
    radial-gradient(circle at 70% 76%, #071310, transparent 46%),
    linear-gradient(145deg, #b9cabe, #17251f);
  box-shadow:
    inset -28px -28px 40px rgba(0, 0, 0, 0.55),
    inset 22px 20px 35px rgba(255, 255, 255, 0.22),
    0 28px 65px rgba(0, 0, 0, 0.46);
}

.orb.live {
  animation: pulse 1.25s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      inset -28px -28px 40px rgba(0, 0, 0, 0.55),
      inset 22px 20px 35px rgba(255, 255, 255, 0.22),
      0 28px 65px rgba(0, 0, 0, 0.46);
  }

  50% {
    transform: scale(1.045);
    box-shadow:
      inset -28px -28px 40px rgba(0, 0, 0, 0.55),
      inset 22px 20px 35px rgba(255, 255, 255, 0.22),
      0 0 70px rgba(5, 224, 155, 0.18);
  }
}

.wave {
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

.wave span {
  width: 4px;
  height: 10px;
  border-radius: 99px;
  background: rgba(5, 224, 155, 0.28);
}

.wave span:nth-child(2),
.wave span:nth-child(4) {
  height: 18px;
}

.wave span:nth-child(3) {
  height: 24px;
}

.voice-box h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.035em;
}

#status {
  margin: 12px 0 28px;
  color: var(--muted);
}

.controls {
  display: grid;
  grid-template-columns: 1.3fr 0.95fr;
  gap: 12px;
}

button {
  border: 0;
  border-radius: 14px;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}

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

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

#start {
  color: #001b13;
  background: var(--accent);
}

#stop {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.examples {
  margin-top: 26px;
  display: grid;
  gap: 10px;
}

.example {
  padding: 14px 16px;
  border-radius: 14px;
  text-align: left;
  color: var(--muted);
  background: rgba(255,255,255,0.035);
  border: 1px dashed rgba(255,255,255,0.08);
}

.log-panel {
    min-height: 220px;

    padding: 20px;
    border-radius: 22px;

    background: rgba(0,0,0,.28);
    border: 1px solid var(--border);

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
}

.log-head span:last-child {
  color: var(--accent);
}

.tool-events {
    flex: 1;
    min-height: 0;

    overflow-y: auto;

    display: grid;
    gap: 12px;
    align-content: start;

    padding-right: 4px;
}

.empty-state {
  color: var(--muted-2);
  padding: 14px 0;
}

.tool-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}

.tool-card.pending {
  border-color: rgba(5, 224, 155, 0.3);
}

.tool-card.success {
  border-color: rgba(5, 224, 155, 0.55);
}

.tool-card-title {
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 900;
}

.tool-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
}

.tool-row:last-child {
  border-bottom: 0;
}

.tool-label {
  color: var(--muted);
}

.tool-value {
  color: var(--text);
  text-align: right;
}

.menu-item {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.05);
}

.menu-item strong {
  display: block;
  margin-bottom: 5px;
}

.menu-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .page {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 18px;
  }

  .assistant {
    position: static;
    height: auto;
    min-height: 720px;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 22px 14px;
  }

  h1 {
    font-size: clamp(46px, 15vw, 68px);
  }

  .cards,
  .menu-list {
    grid-template-columns: 1fr;
  }

  .assistant {
    padding: 18px;
    border-radius: 22px;
    min-height: 680px;
  }

  .voice-box {
    padding: 28px 18px;
  }

  .orb {
    width: 124px;
    height: 124px;
  }

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

  .card {
    min-height: auto;
  }
}