@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  /* Using exact tokens from globals.css */
  --background: oklch(0.98 0.005 255);
  --foreground: oklch(0.27 0.03 255);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.27 0.03 255);
  --primary: oklch(0.56 0.16 265);
  --primary-foreground: oklch(0.99 0.005 75);
  --secondary: oklch(0.95 0.01 255);
  --secondary-foreground: oklch(0.37 0.03 255);
  --muted: oklch(0.95 0.008 255);
  --muted-foreground: oklch(0.52 0.02 255);
  --border: oklch(0.91 0.008 255);
  --ring: oklch(0.56 0.16 265);
  --radius: 0.875rem;
  --primary-rgb: 67, 92, 178;

  /* Additional utility colors based on original styles */
  --primary-hover: oklch(0.52 0.15 265);
  --primary-soft: rgba(67, 92, 178, 0.08);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'IBM Plex Sans', 'Noto Sans SC', system-ui, sans-serif;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  /* Prevent body scroll, layout handles flex */
  display: flex;
  flex-direction: column;
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  outline: none;
}

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

/* TOPBAR */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 3rem;
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand-base {
  color: var(--foreground);
}

.brand-highlight {
  color: var(--primary);
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pricing-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  transition: colors 0.2s, background-color 0.2s;
}

.pricing-link:hover,
.lang-switch-btn:hover {
  color: var(--foreground);
  background-color: var(--secondary);
}

.lang-switch-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

/* CONTROL PANEL */
.control-panel {
  flex-shrink: 0;
  padding: 0.75rem 1rem 0.5rem;
  background-color: var(--background);
  z-index: 10;
  max-width: 32rem;
  /* max-w-lg */
  margin: 0 auto;
  width: 100%;
}

.pair-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-selector-container {
  flex: 1;
  min-width: 0;
  position: relative;
}

.lang-selector-trigger {
  width: 100%;
  height: 3rem;
  background-color: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.lang-selector-trigger[aria-expanded="true"] {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(166, 46, 7, 0.2);
}

.lang-selector-trigger:hover {
  background-color: var(--secondary);
}

.lang-selector-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  white-space: nowrap;
}

.lang-native {
  font-weight: 600;
  font-size: 1rem;
}

.lang-name {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.lang-selector-popover {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  width: 17.5rem;
  max-width: calc(100vw - 2rem);
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slide-down 0.15s ease-out;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-selector-popover.hidden {
  display: none;
}

.lang-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.search-icon {
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.lang-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  height: 2rem;
  font-size: 0.875rem;
  background: transparent;
  color: var(--foreground);
  outline: none;
}

.lang-search-input::placeholder {
  color: var(--muted-foreground);
}

.lang-options-list {
  list-style: none;
  max-height: 15rem;
  overflow-y: auto;
  padding: 0.25rem;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.875rem;
}

.lang-option:hover {
  background-color: var(--secondary);
}

.lang-option.selected {
  background-color: rgba(166, 46, 7, 0.1);
  /* primary/10 */
  color: var(--primary);
}

.lang-option.selected .option-name {
  color: inherit;
  opacity: 0.8;
}

.option-native {
  font-weight: 500;
}

.option-name {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.option-check {
  margin-left: auto;
  flex-shrink: 0;
}

.chevron-down {
  flex-shrink: 0;
  color: var(--muted-foreground);
}

.swap-btn {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  color: var(--muted-foreground);
  transition: all 0.2s;
}

.swap-btn:hover {
  color: var(--foreground);
  background-color: oklch(0.9 0.02 75);
  /* var(--secondary) darkened */
}

/* TALK ZONE */
.talk-zone {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem 0.75rem;
  max-width: 32rem;
  margin: 0 auto;
  width: 100%;
}

.talk-btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.talk-btn-container {
  position: relative;
}

.talk-btn {
  position: relative;
  z-index: 10;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
  user-select: none;
  touch-action: none;
}

.talk-btn:hover {
  filter: brightness(1.05);
}

.talk-btn:active,
.talk-btn.recording {
  transform: scale(0.95);
  filter: brightness(0.95);
}

.talk-btn.recording {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(166, 46, 7, 0.2), var(--shadow-lg);
  /* ring */
}

.talk-btn.busy {
  background-color: var(--muted);
  color: var(--muted-foreground);
  cursor: wait;
}

/* Animations injected by recording state logic */
.ring-ping {
  position: absolute;
  inset: -0.75rem;
  border-radius: 9999px;
  background-color: rgba(166, 46, 7, 0.1);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ring-pulse {
  position: absolute;
  inset: -0.5rem;
  border-radius: 9999px;
  background-color: rgba(166, 46, 7, 0.15);
  animation: pulse 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes ping {

  75%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

.status {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.shortcut {
  display: none;
  font-size: 0.625rem;
  /* 10px */
  color: var(--muted-foreground);
  margin-top: 0.375rem;
}

@media (min-width: 768px) {
  .shortcut {
    display: block;
  }
}

kbd {
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  background-color: var(--secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 600;
}

/* DIVIDER */
.divider-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  max-width: 32rem;
  margin: 0 auto;
  width: 100%;
}

.divider-line {
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

.clear-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  /* 10px */
  color: rgba(128, 128, 128, 0.6);
  /* muted-foreground/60 approx */
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  transition: all 0.2s;
}

.clear-btn:hover {
  color: var(--muted-foreground);
  background-color: var(--secondary);
}

/* CHAT PANEL */
.chat-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem 0.75rem 1rem;
  max-width: 32rem;
  margin: 0 auto;
  width: 100%;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
  text-align: center;
}

.empty-state p {
  color: rgba(128, 128, 128, 0.5);
  /* muted-foreground/50 approx */
  font-size: 0.75rem;
  line-height: 1.625;
  max-width: 13.75rem;
  text-wrap: balance;
}

/* TURN CARD (Chat Bubbles) generated by app.js */
.chat-turn {
  display: flex;
  width: 100%;
  animation: fade-in 200ms ease;
}

.chat-turn.side-left {
  justify-content: flex-start;
}

.chat-turn.side-right {
  justify-content: flex-end;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* The bubble card */
.turn-card {
  max-width: 82%;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.chat-turn.side-left .turn-card {
  background-color: var(--card);
  border-top-left-radius: 0.125rem;
}

.chat-turn.side-right .turn-card {
  background-color: var(--primary-soft);
  border-color: rgba(166, 46, 7, 0.15);
  /* primary/15 approx */
  border-top-right-radius: 0.125rem;
}

/* Internal contents container */
.turn-content {
  display: flex;
  flex-direction: column;
}

/* Base block padding shared across states */
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.py-2-5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.pt-2-5 {
  padding-top: 0.625rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-1-5 {
  padding-bottom: 0.375rem;
}

.pt-1-5 {
  padding-top: 0.375rem;
}

/* Status Text Styles */
.text-original {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.625;
}

.text-translated {
  font-size: 0.9375rem;
  color: var(--foreground);
  font-weight: 600;
  line-height: 1.625;
  flex: 1;
}

.text-italics {
  font-style: italic;
  font-size: 0.75rem;
  color: rgba(128, 128, 128, 0.5);
  /* muted-foreground/50 */
}

/* Phase: LISTENING */
.phase-group.listening .listening-block {
  display: block;
}

.listening-block {
  display: none;
}

.listening-indicator {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
}

.dot-wrapper {
  position: relative;
  display: flex;
  height: 0.375rem;
  width: 0.375rem;
}

.dot-ping {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background-color: rgba(166, 46, 7, 0.6);
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.dot-solid {
  position: relative;
  display: inline-flex;
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 9999px;
  background-color: var(--primary);
}

.listening-text {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Phase: TRANSLATING */
.phase-group.translating .translating-block {
  display: block;
}

.translating-block {
  display: none;
}

.translating-footer {
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.chat-turn.side-right .translating-footer {
  border-top-color: rgba(166, 46, 7, 0.1);
}

.spin-icon {
  width: 0.75rem;
  height: 0.75rem;
  color: var(--primary);
  animation: spin 1s linear infinite;
}

.translating-text {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
}

.bounce-dots {
  display: flex;
  gap: 0.125rem;
  margin-left: 0.125rem;
}

.bounce-dot {
  width: 0.125rem;
  height: 0.125rem;
  border-radius: 9999px;
  background-color: rgba(166, 46, 7, 0.5);
  animation: bounce 1s infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }

  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* Phase: RESULT */
.phase-group.result .result-block {
  display: block;
}

.result-block {
  display: none;
}

.result-footer {
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  display: flex;
  flex-direction: column;
}

.chat-turn.side-right .result-footer {
  border-top-color: rgba(166, 46, 7, 0.1);
}

.result-footer-top {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
}

.replay-btn {
  flex-shrink: 0;
  margin-top: 0.125rem;
  padding: 0.25rem;
  border-radius: 9999px;
  color: var(--primary);
  background-color: rgba(166, 46, 7, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.replay-btn:hover {
  background-color: rgba(166, 46, 7, 0.2);
}

.replay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Playing Animation State */
.phase-group.playing .replay-btn {
  animation: bg-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.phase-group.playing .play-icon {
  animation: pulse-icon 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.playing-indicator {
  display: none;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.375rem;
}

.phase-group.playing .playing-indicator {
  display: flex;
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 0.2rem;
}

.eq-bar {
  width: 2px;
  border-radius: 9999px;
  background-color: var(--primary);
  height: 3px;
}

.phase-group.playing .eq-bar {
  animation: soundBar 0.45s ease-in-out infinite alternate;
}

.playing-text {
  font-size: 0.625rem;
  color: var(--primary);
  font-weight: 500;
}

@keyframes bg-pulse {

  0%,
  100% {
    background-color: rgba(166, 46, 7, 0.1);
  }

  50% {
    background-color: rgba(166, 46, 7, 0.25);
  }
}

@keyframes pulse-icon {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

@keyframes soundBar {
  0% {
    height: 3px;
  }

  100% {
    height: 10px;
  }
}
/* ==========================
   Landing Page Overrides
========================== */

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  display: block;
  background:
    radial-gradient(1200px 500px at 10% -5%, rgba(225, 106, 75, 0.14), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(39, 119, 107, 0.1), transparent 58%),
    var(--background);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: auto;
  min-height: 3.5rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  text-decoration: none;
}

.top-nav-right {
  gap: 0.45rem;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted-foreground);
  padding: 0.42rem 0.62rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover {
  color: var(--foreground);
  background: var(--secondary);
}

.pricing-link {
  font-size: 0.8rem;
}

.landing-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.25rem 0 5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.1rem;
  align-items: stretch;
}

.hero-copy,
.hero-proof {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 36px -28px rgba(22, 20, 17, 0.4);
  padding: 1.35rem;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(225, 106, 75, 0.14);
  margin-bottom: 0.55rem;
}

.hero-title {
  font-size: clamp(1.55rem, 3.4vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 0.7rem;
  max-width: 22ch;
}

.hero-subtitle {
  color: var(--muted-foreground);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 56ch;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.72rem;
  padding: 0.62rem 1rem;
  font-size: 0.86rem;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.hero-btn:hover {
  transform: translateY(-1px);
}

.hero-btn-primary {
  color: var(--primary-foreground);
  background: linear-gradient(140deg, var(--primary), var(--primary-hover));
  box-shadow: 0 10px 18px -12px rgba(166, 46, 7, 0.65);
}

.hero-btn-secondary {
  border-color: rgba(166, 46, 7, 0.26);
  color: var(--primary);
  background: rgba(225, 106, 75, 0.08);
}

.hero-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.hero-pills li {
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--secondary-foreground);
  background: rgba(17, 56, 50, 0.08);
}

.hero-proof h2 {
  font-size: 1.08rem;
  line-height: 1.25;
  margin-bottom: 0.82rem;
}

.proof-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
}

.proof-list li {
  border-radius: 0.85rem;
  padding: 0.72rem;
  background: rgba(251, 249, 247, 0.72);
  border: 1px solid rgba(166, 46, 7, 0.12);
}

.proof-label {
  display: inline-flex;
  margin-bottom: 0.25rem;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.proof-list p {
  font-size: 0.84rem;
  color: var(--secondary-foreground);
  line-height: 1.5;
}

.section-block,
.translator-home {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-intro h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.section-intro p {
  color: var(--muted-foreground);
  max-width: 62ch;
  line-height: 1.65;
}

.translator-widget {
  border-radius: 1.25rem;
  border: 1px solid rgba(166, 46, 7, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86));
  box-shadow: 0 18px 36px -28px rgba(25, 22, 18, 0.45);
  padding: 0.5rem 0 1rem;
}

.control-panel,
.talk-zone,
.divider-container,
.chat-panel {
  max-width: 42rem;
}

.control-panel {
  padding-top: 0.82rem;
}

.talk-zone {
  padding-top: 0.75rem;
}

.talk-btn {
  width: 4.15rem;
  height: 4.15rem;
}

.status {
  margin-top: 0.1rem;
  font-size: 0.77rem;
}

.chat-panel {
  flex: none;
  min-height: 12.5rem;
  max-height: 22rem;
  overflow-y: auto;
  padding-bottom: 1.15rem;
}

.steps-grid,
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.78rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.78rem;
}

.info-card {
  border-radius: 1rem;
  border: 1px solid rgba(17, 56, 50, 0.12);
  background: rgba(255, 255, 255, 0.82);
  padding: 1rem;
}

.info-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.info-card p {
  font-size: 0.86rem;
  line-height: 1.58;
  color: var(--muted-foreground);
}

.card-index {
  display: inline-flex;
  margin-bottom: 0.5rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.pricing-preview {
  border-radius: 1.2rem;
  border: 1px solid rgba(166, 46, 7, 0.14);
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.78);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.price-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-card.highlighted {
  border-color: rgba(166, 46, 7, 0.45);
  box-shadow: 0 12px 24px -20px rgba(166, 46, 7, 0.8);
}

.price-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.67rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(166, 46, 7, 0.1);
}

.price-value {
  font-size: 1.72rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.price-value span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted-foreground);
  margin-left: 0.3rem;
}

.price-card ul {
  list-style: disc;
  padding-left: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted-foreground);
  font-size: 0.84rem;
  line-height: 1.5;
}

.faq-list {
  display: grid;
  gap: 0.55rem;
}

.faq-list details {
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  padding: 0.72rem 0.9rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.4;
}

.faq-list p {
  margin-top: 0.4rem;
  color: var(--muted-foreground);
  font-size: 0.85rem;
  line-height: 1.58;
}

.final-cta {
  border-radius: 1.25rem;
  border: 1px solid rgba(166, 46, 7, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 245, 240, 0.95), rgba(255, 251, 247, 0.92));
  padding: 1.55rem;
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.92rem);
  letter-spacing: -0.02em;
}

.final-cta p {
  margin: 0.55rem auto 0.95rem;
  max-width: 62ch;
  color: var(--muted-foreground);
  line-height: 1.6;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(166, 46, 7, 0.5);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid,
  .use-case-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    width: calc(100% - 1rem);
  }

  .nav-link {
    display: none;
  }

  .landing-shell {
    width: calc(100% - 1rem);
    gap: 2.75rem;
    padding-top: 1.2rem;
  }

  .hero-copy,
  .hero-proof,
  .pricing-preview,
  .final-cta {
    padding: 1rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .hero-btn {
    flex: 1;
    min-width: 8rem;
  }

  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .control-panel,
  .talk-zone,
  .divider-container,
  .chat-panel {
    max-width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .lang-selector-trigger {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .lang-selector-popover {
    width: min(18rem, calc(100vw - 2rem));
  }

  .talk-btn {
    width: 3.65rem;
    height: 3.65rem;
  }
}

/* ==========================
   Hero First Fold Tweaks
========================== */

.hero-live {
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: start;
}

.hero-live-panel {
  border-radius: 1.25rem;
  border: 1px solid rgba(166, 46, 7, 0.16);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 36px -28px rgba(22, 20, 17, 0.4);
  padding: 0.95rem;
}

.hero-copy {
  padding: 1rem 1.1rem;
}

.hero-title {
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero-actions {
  margin-top: 0.75rem;
}

.hero-pills {
  margin-top: 0.75rem;
}

.hero-live-head h2 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.hero-live-head p {
  color: var(--muted-foreground);
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.hero-live-panel .translator-widget {
  border-radius: 1rem;
  padding-top: 0.15rem;
}

.hero-live-panel .control-panel,
.hero-live-panel .talk-zone,
.hero-live-panel .divider-container,
.hero-live-panel .chat-panel {
  max-width: 100%;
}

.hero-live-panel .control-panel {
  padding-top: 0.55rem;
  padding-bottom: 0.35rem;
}

.hero-live-panel .talk-zone {
  padding-top: 0.35rem;
  padding-bottom: 0.5rem;
}

.hero-live-panel .talk-btn {
  width: 3.4rem;
  height: 3.4rem;
}

.hero-live-panel .chat-panel {
  min-height: clamp(18rem, 40vh, 30rem);
  max-height: min(58vh, 42rem);
  padding-top: 0.5rem;
}

.hero-live-panel.conversation-mode .hero-live-head p {
  display: none;
}

.hero-live-panel.conversation-mode .hero-live-head {
  margin-bottom: 0.2rem;
}

.hero-live-panel.conversation-mode .translator-widget {
  padding-top: 0;
}

.hero-live-panel.conversation-mode .control-panel {
  padding-top: 0.35rem;
  padding-bottom: 0.28rem;
}

.hero-live-panel.conversation-mode .chat-panel {
  min-height: clamp(22rem, 52vh, 38rem);
  max-height: min(70vh, 52rem);
}

@media (max-width: 980px) {
  .hero-live {
    grid-template-columns: 1fr;
  }

  .hero-live-panel {
    padding: 0.8rem;
  }

  .hero-live-panel .chat-panel {
    min-height: clamp(16rem, 34vh, 24rem);
    max-height: min(54vh, 34rem);
  }

  .hero-live-panel.conversation-mode .chat-panel {
    min-height: clamp(20rem, 48vh, 32rem);
    max-height: min(68vh, 40rem);
  }
}

@media (max-width: 760px) {
  .hero-copy {
    padding: 0.9rem;
  }

  .hero-live-panel .talk-btn {
    width: 3.2rem;
    height: 3.2rem;
  }

  .hero-live-panel .chat-panel {
    min-height: 14rem;
    max-height: 44vh;
  }

  .hero-live-panel.conversation-mode .chat-panel {
    min-height: 18rem;
    max-height: 58vh;
  }
}

/* ==========================
   Visual Refresh
========================== */

h1,
h2,
h3,
.brand-mark {
  font-family: 'IBM Plex Sans', 'Noto Sans SC', system-ui, sans-serif;
  font-weight: 600;
}

.hero-live {
  position: relative;
}

.hero-live::before,
.hero-live::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
}

.hero-live::before {
  width: 340px;
  height: 340px;
  right: -100px;
  top: -90px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.22), rgba(var(--primary-rgb), 0));
}

.hero-live::after {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(24, 151, 142, 0.18), rgba(24, 151, 142, 0));
}

.hero-copy,
.hero-live-panel,
.section-block,
.pricing-preview,
.final-cta {
  backdrop-filter: blur(3px);
}

.hero-title {
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  line-height: 1.02;
}

.hero-subtitle {
  max-width: 60ch;
}

.hero-metrics {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.metric-card {
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 255, 0.95));
  border-radius: 0.8rem;
  padding: 0.5rem 0.55rem;
}

.metric-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--foreground);
}

.metric-label {
  margin-top: 0.12rem;
  font-size: 0.7rem;
  color: var(--muted-foreground);
  line-height: 1.35;
}

.live-signal {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.live-signal span {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.9), rgba(24, 151, 142, 0.75));
  animation: signalPulse 1s ease-in-out infinite;
}

.live-signal span:nth-child(1) {
  height: 5px;
  animation-delay: 0s;
}

.live-signal span:nth-child(2) {
  height: 10px;
  animation-delay: 0.08s;
}

.live-signal span:nth-child(3) {
  height: 15px;
  animation-delay: 0.16s;
}

.live-signal span:nth-child(4) {
  height: 9px;
  animation-delay: 0.24s;
}

@keyframes signalPulse {
  0%,
  100% {
    transform: scaleY(0.75);
    opacity: 0.72;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.visual-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: -2.1rem;
}

.band-link {
  width: 48px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.12), rgba(var(--primary-rgb), 0.45), rgba(var(--primary-rgb), 0.12));
}

.band-node {
  border-radius: 999px;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 20px -18px rgba(10, 17, 35, 0.7);
}

.node-a,
.node-c {
  width: 9px;
  height: 9px;
}

.node-b {
  width: 14px;
  height: 14px;
}

.section-block,
.pricing-preview {
  border: 1px solid rgba(15, 27, 58, 0.08);
  border-radius: 1.15rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(252, 253, 255, 0.82));
}

.info-card {
  border-color: rgba(23, 48, 112, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.92));
  box-shadow: 0 10px 20px -18px rgba(19, 33, 66, 0.38);
}

.info-card h3 {
  font-weight: 600;
}

.section-kicker {
  background: rgba(var(--primary-rgb), 0.12);
}

.lang-selector-trigger[aria-expanded="true"] {
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.22);
}

.lang-option.selected {
  background-color: rgba(var(--primary-rgb), 0.12);
}

.talk-btn.recording {
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2), var(--shadow-lg);
}

.dot-ping {
  background-color: rgba(var(--primary-rgb), 0.58);
}

.translating-text,
.spin-icon,
.playing-text,
.replay-btn,
.listening-text,
.card-index,
.price-badge {
  color: var(--primary);
}

.replay-btn {
  background-color: rgba(var(--primary-rgb), 0.12);
}

.replay-btn:hover {
  background-color: rgba(var(--primary-rgb), 0.2);
}

.chat-turn.side-right .turn-card {
  background-color: rgba(var(--primary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.chat-turn.side-right .translating-footer,
.chat-turn.side-right .result-footer {
  border-top-color: rgba(var(--primary-rgb), 0.18);
}

.bounce-dot,
.eq-bar {
  background-color: rgba(var(--primary-rgb), 0.72);
}

@media (max-width: 980px) {
  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .visual-band {
    margin-top: -1.6rem;
  }
}

@media (max-width: 760px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .visual-band {
    margin-top: -1.1rem;
  }

  .section-block,
  .pricing-preview {
    padding: 0.85rem;
  }
}
