:root {
  --bg: #07111d;
  --bg-deep: #040913;
  --panel: rgba(9, 19, 33, 0.64);
  --panel-strong: rgba(8, 17, 29, 0.84);
  --line: rgba(130, 215, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #edf4ff;
  --muted: #9fb4c9;
  --cyan: #57d4ff;
  --cyan-strong: #00c6ff;
  --teal: #45f0c5;
  --amber: #ff9f43;
  --amber-soft: rgba(255, 159, 67, 0.22);
  --danger: #ff5c7a;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  height: 100%;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(0, 198, 255, 0.18), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(255, 159, 67, 0.16), transparent 22%),
    linear-gradient(180deg, #08101b 0%, #040913 52%, #07111d 100%);
  font-family: "Manrope", sans-serif;
}

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

button,
select,
input {
  font: inherit;
}

#scene,
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#scene {
  z-index: 0;
}

.noise {
  z-index: 1;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

.support-screen {
  position: relative;
  z-index: 2;
}

.micro-label,
.eyebrow,
.status-pill,
.contact-strip a {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.micro-label,
.eyebrow {
  color: var(--muted);
  font-size: 0.73rem;
}

.support-screen {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.support-shell {
  width: min(1240px, 100%);
  min-height: min(820px, calc(100vh - 48px));
  padding: 28px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: stretch;
}

.support-copy,
.assistant-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 30, 50, 0.62), rgba(6, 15, 27, 0.74));
  backdrop-filter: blur(18px);
}

.support-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}

.support-copy h1 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.support-text {
  margin: 22px 0 0;
  max-width: 32rem;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
}

.contact-strip a:hover {
  border-color: rgba(87, 212, 255, 0.3);
}

.assistant-shell {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.eyebrow,
.micro-label,
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.ghost-link:hover,
.contact-card:hover,
.quick-card:hover,
.service-card:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #03101f;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 16px 36px rgba(0, 198, 255, 0.28);
  font-weight: 800;
}

.button.secondary {
  border-color: rgba(87, 212, 255, 0.28);
  background: rgba(11, 21, 36, 0.6);
  color: var(--text);
}

.button-wide {
  width: 100%;
}

.glass-card,
.service-card,
.quick-card,
.contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 30, 50, 0.8), rgba(6, 15, 27, 0.8));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.glass-card::before,
.service-card::before,
.quick-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 35%, transparent 66%, rgba(255, 255, 255, 0.08));
  opacity: 0.5;
  pointer-events: none;
}

.assistant-shell,
.ghost-link {
  font-size: 0.98rem;
}

.support-matrix strong,
.assistant-topline strong,
.transcript-head strong {
  display: block;
  margin-top: 8px;
}

.assistant-topline,
.transcript-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.72rem;
}

.status-pill.idle {
  border: 1px solid rgba(87, 212, 255, 0.18);
}

.status-pill.connecting {
  color: #151515;
  background: linear-gradient(135deg, #ffe082, #ffb74d);
}

.status-pill.connected {
  color: #03291c;
  background: linear-gradient(135deg, #97ffd9, #42ffb3);
}

.status-pill.error {
  color: white;
  background: linear-gradient(135deg, #ff7895, #ff406b);
}

.assistant-stage {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 10px 0 4px;
}

.voice-orb {
  position: relative;
  width: 220px;
  height: 220px;
}

.voice-orb-core,
.voice-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.voice-orb-core {
  inset: 36px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(87, 212, 255, 0.5) 18%, rgba(10, 24, 42, 0.6) 60%, rgba(4, 10, 19, 0.95) 100%),
    linear-gradient(135deg, rgba(255, 159, 67, 0.2), rgba(0, 198, 255, 0.26));
  box-shadow:
    inset 0 0 60px rgba(255, 255, 255, 0.18),
    0 0 80px rgba(0, 198, 255, 0.22),
    0 0 120px rgba(255, 159, 67, 0.14);
}

.voice-ring {
  border: 1px solid rgba(87, 212, 255, 0.25);
  animation: orbit 14s linear infinite;
}

.ring-b {
  inset: 14px;
  border-color: rgba(255, 159, 67, 0.22);
  animation-direction: reverse;
  animation-duration: 10s;
}

.ring-c {
  inset: 26px;
  border-style: dashed;
  animation-duration: 18s;
}

.voice-orb.speaking .voice-orb-core {
  animation: pulse-core 1.1s ease-in-out infinite;
}

.voice-orb.speaking .voice-ring {
  border-color: rgba(69, 240, 197, 0.48);
}

.wave-bars {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 52px;
  margin-top: 20px;
}

.wave-bars span {
  width: 6px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--amber));
  opacity: 0.45;
}

.wave-bars.active span {
  animation: equalize 0.8s ease-in-out infinite;
}

.wave-bars.active span:nth-child(2) { animation-delay: 0.08s; }
.wave-bars.active span:nth-child(3) { animation-delay: 0.16s; }
.wave-bars.active span:nth-child(4) { animation-delay: 0.24s; }
.wave-bars.active span:nth-child(5) { animation-delay: 0.32s; }

.assistant-actions {
  display: grid;
  gap: 14px;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.toggle-row input {
  accent-color: var(--cyan);
}

.assistant-settings {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-top: 18px;
  align-items: end;
}

.assistant-settings label {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.assistant-settings select {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 1px solid rgba(87, 212, 255, 0.22);
  border-radius: 14px;
  background: var(--panel-strong);
  color: var(--text);
  padding: 0 14px;
}

.ghost-link {
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  align-self: center;
}

.transcript-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding-right: 8px;
  flex: 1;
}

.transcript-list.compact {
  max-height: 220px;
}

.transcript-list::-webkit-scrollbar {
  width: 9px;
}

.transcript-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.transcript-empty {
  margin: auto 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.transcript-entry {
  display: flex;
}

.transcript-entry.user {
  justify-content: flex-end;
}

.transcript-entry.model {
  justify-content: flex-start;
}

.transcript-bubble {
  max-width: min(100%, 34rem);
  padding: 16px 18px;
  border-radius: 22px;
  line-height: 1.65;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.transcript-entry.user .transcript-bubble {
  background: linear-gradient(135deg, rgba(0, 198, 255, 0.3), rgba(69, 240, 197, 0.22));
  border: 1px solid rgba(87, 212, 255, 0.24);
}

.transcript-entry.model .transcript-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.transcript-speaker {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transcript-bubble p:last-child {
  margin-bottom: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes orbit {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.04); }
  to { transform: rotate(360deg) scale(1); }
}

@keyframes pulse-core {
  0%, 100% { transform: scale(1); filter: saturate(1); }
  50% { transform: scale(1.08); filter: saturate(1.35); }
}

@keyframes equalize {
  0%, 100% { height: 12px; opacity: 0.45; }
  50% { height: 48px; opacity: 1; }
}

@media (max-width: 1120px) {
  .support-shell {
    grid-template-columns: 1fr;
  }

  .assistant-settings {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .support-screen {
    padding: 12px;
  }

  .support-shell {
    min-height: auto;
    padding: 14px;
  }

  .support-copy,
  .assistant-shell {
    padding: 20px;
  }

  .support-copy h1 {
    font-size: clamp(2.4rem, 16vw, 4rem);
  }

  .assistant-settings {
    grid-template-columns: 1fr;
  }

  .voice-orb {
    width: 170px;
    height: 170px;
  }
}
