:root {
  --bg: #08090c;
  --bg-2: #11131a;
  --panel: #ffffff;
  --panel-soft: #f6f7f2;
  --ink: #111314;
  --muted: #646a70;
  --dark-muted: #a8b0bb;
  --line: #dfe3dc;
  --dark-line: rgba(255, 255, 255, 0.12);
  --accent: #11a88e;
  --accent-dark: #08715f;
  --gold: #f0b84e;
  --violet: #8d55ff;
  --coral: #e25f4d;
  --radius: 8px;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.32);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: #f6f8fb;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, rgba(17, 168, 142, 0.12), transparent 48%),
    var(--bg);
}

button,
input,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  border: 0;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.page {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 740px;
  padding: 30px 28px 56px;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 184, 78, 0.55), rgba(17, 168, 142, 0.55), transparent);
  z-index: -1;
}

.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 9, 12, 0.15), rgba(8, 9, 12, 0.92)),
    linear-gradient(120deg, rgba(141, 85, 255, 0.16), transparent 44%),
    linear-gradient(260deg, rgba(17, 168, 142, 0.14), transparent 48%);
  z-index: -1;
}

.topbar,
.hero-grid,
.examples-section,
.result-section,
.chain-section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand,
.nav-links,
.hero-actions,
.brand-text,
.account-widget,
.trust-line,
.result-head,
.actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 13px;
  text-decoration: none;
}

.brand-mark,
.drop-icon {
  display: grid;
  place-items: center;
}

.brand-mark {
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(255, 207, 102, 0.24);
  border-radius: 14px;
  background: #07100e;
  box-shadow: 0 14px 34px rgba(19, 161, 143, 0.14);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-text {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 18px;
  line-height: 1;
}

.brand-text small,
.system-status,
.nav-links a {
  color: var(--dark-muted);
  font-size: 12px;
  font-weight: 720;
}

.nav-links {
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: #fff;
}

.system-status {
  padding: 8px 10px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  color: #dff9f2;
  background: rgba(17, 168, 142, 0.12);
}

.account-widget {
  min-height: 46px;
  gap: 12px;
  padding: 6px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.account-copy {
  display: grid;
  gap: 2px;
  min-width: 138px;
  padding: 0 4px 0 8px;
}

.account-copy span {
  color: var(--dark-muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.15;
}

.account-copy strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.15;
}

.google-slot {
  min-height: 34px;
}

.google-slot:empty {
  display: none;
}

.account-btn {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  color: #07100e;
  background: #f8f2d8;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.buy-btn {
  color: #07100e;
  background: #f0b84e;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 70px;
  align-items: center;
  padding-top: 96px;
}

.intro {
  max-width: 720px;
  animation: riseIn 620ms ease both;
}

.eyebrow,
.panel-kicker,
.compare-label {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro h1,
.section-copy h2 {
  margin: 0;
  color: #fff;
  font-weight: 860;
  letter-spacing: 0;
}

.intro h1 {
  max-width: 690px;
  margin-top: 18px;
  font-size: 76px;
  line-height: 0.95;
}

.intro p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  color: #d1d7df;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-link,
.text-link,
.primary-btn,
.secondary-btn,
.download-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.hero-link {
  padding: 0 22px;
  color: #07100e;
  background: #f8f2d8;
}

.text-link {
  min-height: 44px;
  color: #d6dde8;
}

.trust-line {
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.trust-line span,
.chain-flow span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: #e3e9ee;
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 760;
}

.trust-line span {
  padding: 10px 12px;
}

.upload-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(17, 19, 26, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: riseIn 760ms 90ms ease both;
}

.panel-kicker {
  color: #dff9f2;
}

.drop-zone {
  position: relative;
  display: grid;
  min-height: 246px;
  padding: 28px 22px;
  border: 1px dashed rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  place-items: center;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--accent);
  background: rgba(17, 168, 142, 0.11);
  transform: translateY(-2px);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.drop-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: #07100e;
  background: #dff9f2;
}

.drop-icon svg {
  width: 28px;
  height: 28px;
}

.drop-title {
  max-width: 100%;
  color: #fff;
  font-size: 23px;
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.drop-meta {
  margin-top: 8px;
  color: var(--dark-muted);
  font-size: 13px;
  font-weight: 760;
}

.smart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.smart-mode,
.gpu-toggle {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.smart-mode {
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  color: #dff9f2;
}

.smart-mode span {
  font-size: 14px;
  font-weight: 850;
}

.smart-mode small {
  color: var(--dark-muted);
  font-size: 12px;
  font-weight: 820;
}

.gpu-toggle {
  gap: 9px;
  padding: 0 12px;
  color: #e4e9ef;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.gpu-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  transition: background 160ms ease;
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease;
}

.gpu-toggle input:checked + .toggle-track {
  background: var(--accent);
}

.gpu-toggle input:checked + .toggle-track::after {
  transform: translateX(16px);
}

.primary-btn {
  color: #07100e;
  background: #f8f2d8;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #fff5c5;
  box-shadow: 0 16px 34px rgba(240, 184, 78, 0.18);
}

.primary-btn:disabled {
  cursor: wait;
  opacity: 0.68;
}

.signal-ribbon {
  position: absolute;
  left: 50%;
  bottom: 34px;
  display: flex;
  width: min(760px, calc(100% - 56px));
  height: 76px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.62;
}

.signal-ribbon span {
  width: 7px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
  animation: meter 1.8s ease-in-out infinite;
}

.signal-ribbon span:nth-child(2n) {
  animation-delay: -0.35s;
}

.signal-ribbon span:nth-child(3n) {
  animation-delay: -0.9s;
}

.signal-ribbon span:nth-child(4n) {
  animation-delay: -1.25s;
}

.examples-section,
.chain-section {
  padding: 82px 0;
}

.section-copy {
  max-width: 720px;
}

.section-copy h2 {
  margin-top: 12px;
  font-size: 48px;
  line-height: 1;
}

.section-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: #c4ccd7;
  font-size: 17px;
  line-height: 1.55;
}

.example-tabs {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.example-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  color: #cbd4df;
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
  font-weight: 840;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.example-tab:hover,
.example-tab.is-active {
  color: #07100e;
  background: #f8f2d8;
  transform: translateY(-1px);
}

.example-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.example-audio,
.audio-card {
  padding: 16px;
  border-radius: var(--radius);
}

.example-audio {
  border: 1px solid var(--dark-line);
  background: rgba(255, 255, 255, 0.045);
}

.audio-card {
  border: 1px solid #e1e5dc;
  background: #fff;
}

.audio-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.audio-card-head h3 {
  margin: 3px 0 0;
  color: inherit;
  font-size: 19px;
  line-height: 1.2;
}

.example-audio .audio-card-head h3 {
  color: #fff;
}

.result-section {
  padding: 18px 0 28px;
}

.result-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.result-head {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.result-head h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.result-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.warning-line {
  max-width: 790px;
  color: var(--coral) !important;
}

.comparison-list {
  display: grid;
  gap: 16px;
}

.result-panel .compare-label {
  color: #667068;
}

.state-pill,
.clip-pill {
  padding: 8px 11px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 850;
}

.state-pill,
.clip-pill {
  color: #5d3900;
  background: rgba(240, 184, 78, 0.22);
}

.clip-pill.neutral {
  color: #38443f;
  background: rgba(143, 160, 152, 0.2);
}

.waveform {
  display: block;
  width: 100%;
  height: 112px;
  border: 1px solid #202720;
  border-radius: var(--radius);
  background: #0d1110;
}

audio {
  width: 100%;
  margin-top: 16px;
  accent-color: var(--accent);
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.secondary-btn,
.download-btn {
  min-width: 190px;
  padding: 0 18px;
}

.secondary-btn {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.download-btn {
  border: 1px solid transparent;
  color: #fff;
  background: var(--accent-dark);
}

.download-btn.is-disabled {
  pointer-events: none;
  color: #7c847d;
  background: #e5e9e0;
}

.status-line {
  min-height: 22px;
  margin: 18px 0 0;
  color: #cbd3dc;
  font-size: 14px;
  font-weight: 720;
}

.status-line.is-error {
  color: #ff8a78;
}

.chain-section {
  padding-bottom: 110px;
}

.chain-flow {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.chain-flow span {
  padding: 11px 13px;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes meter {
  0%,
  100% {
    height: 18px;
    opacity: 0.45;
  }
  50% {
    height: 68px;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 70px;
  }

  .upload-panel {
    width: min(520px, 100%);
  }

  .intro h1 {
    font-size: 58px;
  }

  .example-compare {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 20px 0 42px;
  }

  .topbar,
  .hero-grid,
  .examples-section,
  .result-section,
  .chain-section {
    width: min(100% - 28px, 1160px);
  }

  .topbar,
  .nav-links {
    align-items: flex-start;
  }

  .topbar {
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .account-widget {
    width: 100%;
    justify-content: space-between;
  }

  .hero-grid {
    padding-top: 48px;
  }

  .intro h1 {
    font-size: 43px;
    line-height: 1;
  }

  .intro p:not(.eyebrow),
  .section-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .section-copy h2 {
    font-size: 34px;
    line-height: 1.05;
  }

  .smart-row,
  .actions {
    grid-template-columns: 1fr;
  }

  .smart-row {
    display: grid;
  }

  .gpu-toggle {
    justify-content: center;
  }

  .secondary-btn,
  .download-btn {
    width: 100%;
  }

  .result-panel {
    padding: 16px;
  }

  .signal-ribbon {
    display: none;
  }
}
