@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  color-scheme: light;
  --bg: #0b0d10;
  --ink: #f5f7fb;
  --muted: #a2a8b3;
  --accent: #1ed7a8;
  --accent-2: #4f8cff;
  --glass: rgba(18, 20, 27, 0.72);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(79, 140, 255, 0.22), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(30, 215, 168, 0.2), transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 32px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-name {
  font-size: 22px;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.brand-tagline {
  font-size: 13px;
  color: var(--muted);
}

.status-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--muted);
}

.main {
  display: grid;
  gap: 20px;
  flex: 1;
}

.orb-panel {
  padding: 28px 24px 22px;
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  gap: 16px;
}

.orb {
  position: relative;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.35), rgba(17, 21, 28, 0.9));
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.orb:focus-visible {
  outline: 2px solid rgba(79, 140, 255, 0.6);
  outline-offset: 4px;
}

.orb:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.orb-core {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(30, 215, 168, 0.7), rgba(79, 140, 255, 0.5));
  opacity: 0.85;
  filter: blur(0.5px);
}

.orb-label {
  position: relative;
  z-index: 2;
  font-size: 18px;
}

.orb.active .orb-core {
  animation: pulse 1.8s infinite ease-in-out;
}

.orb.active {
  border-color: rgba(30, 215, 168, 0.6);
}

@keyframes pulse {
  0% {
    transform: scale(0.96);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
  }
  100% {
    transform: scale(0.96);
    opacity: 0.7;
  }
}

.hint {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.transcript {
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: rgba(16, 18, 24, 0.65);
  border: 1px solid var(--border);
  display: grid;
  gap: 14px;
}

.transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

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

.log {
  display: grid;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 6px;
}

.log .entry {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  line-height: 1.5;
}

.log .entry strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 6px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

@media (max-width: 600px) {
  .app-shell {
    padding: 24px 16px 22px;
  }

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