:root {
  --bg: #08111e;
  --bg-card: #111a2d;
  --border: #20304a;
  --border-strong: #2f4568;
  --fg: #f5f7fb;
  --fg-muted: #a8b0c4;
  --accent: #ff8a2d;
  --accent-soft: rgba(255, 138, 45, 0.12);
  --radius-card: 20px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top, #142039 0%, #08111e 48%, #04101a 100%);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(8, 17, 30, 0.92);
}

.topbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 145px;
  height: 104px;
}

.brand-tag {
  color: var(--fg-muted);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.hero {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 3.2vw, 3.8rem);
  line-height: 1.02;
}

.lede {
  margin: 18px 0 26px;
  color: var(--fg-muted);
  max-width: 680px;
  font-size: 1rem;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.voice-instructions {
  margin: 18px 0 0;
  color: var(--fg-muted);
  text-align: left;
  font-size: 0.95rem;
  display: block;
  overflow-wrap: anywhere;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cta-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 138, 45, 0.45);
}

.cta-pill.primary {
  background: linear-gradient(135deg, rgba(255, 138, 45, 0.95), rgba(255, 185, 80, 0.95));
  color: #08111e;
  border-color: transparent;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #08111e;
}

.cta-pill.recording .dot {
  background: #08111e;
  box-shadow: 0 0 0 4px rgba(255, 138, 45, 0.35);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; }
}

.status {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  color: var(--fg-muted);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.transcript {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.footer {
  margin: 28px auto 0;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--fg-muted);
  text-decoration: underline;
}

.row {
  display: grid;
  gap: 10px;
  padding: 18px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.row.assistant {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 138, 45, 0.14);
}

.row.user {
  background: rgba(10, 28, 55, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

.role {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.text {
  font-size: 1rem;
  color: var(--fg);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .app-main {
    padding: 28px 16px 40px;
  }

  .hero {
    padding: 24px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }
}
