* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg-0: #04050a;
  --bg-1: #070b14;
  --panel: rgba(15, 21, 38, 0.88);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f7ff;
  --text-white: #fff;
  --text-soft: rgba(245, 247, 255, 0.72);
  --text-dim: rgba(245, 247, 255, 0.56);
  --accent: #9f7bff;
  --accent-2: #56d6ff;
  --accent-3: #4dffa6;
  --danger: #ff5f72;
  --success: #23d18b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.56);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.34);
}
html {
  color-scheme: dark;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  display: block;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #010511;
  overflow-x: hidden;
  overflow-y: auto;
}

.container {
  position: relative;
  width: min(100%, 1200px);
  min-height: calc(100vh - 48px);
  overflow: visible;
  margin: 24px auto 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;

  min-height: 85px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.topbar-divider {
  z-index: 99;
  width: 400px;
  height: 3px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #9f7bff 0%, #56d6ff 52%, #4dffa6 100%);
  background-size: 240% 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  box-shadow: 0 0 16px rgba(159, 123, 255, 0.3);
  filter: saturate(1.08) brightness(1.02);
  animation: topbarDividerDrift 16s ease-in-out infinite;
  will-change: background-position, filter, box-shadow;
}

@keyframes topbarDividerDrift {
  0% {
    background-position: 0% 50%;
    filter: saturate(1.05) brightness(1.01);
    box-shadow: 0 0 14px rgba(159, 123, 255, 0.24);
  }
  50% {
    background-position: 100% 50%;
    filter: saturate(1.14) brightness(1.07);
    box-shadow: 0 0 18px rgba(86, 214, 255, 0.22);
  }
  100% {
    background-position: 0% 50%;
    filter: saturate(1.08) brightness(1.03);
    box-shadow: 0 0 16px rgba(77, 255, 166, 0.2);
  }
}

.topbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1200px);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-left:20px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(159, 123, 255, 0.22), rgba(86, 214, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 18px rgba(159, 123, 255, 0.18);
}
.brand-text { font-size: 0.96rem; }
.brand-logo {
  height: 27px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}
.main-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  padding: 24px;
}
.page-section,
.processing-section,
.download-section,
.error-section {
  width: 100%;
  scroll-margin-top: 100px;
}
.section-card {margin-bottom: 24px;}
.section-card--magic {}
.section-card--warning {
  position: relative;
  width: min(100%, 1480px);
  padding: 10px 29px 10px 32px;
  border: 2px solid rgba(255, 48, 69, 0.9);
  background: linear-gradient(90deg, rgba(1, 10, 18, 0.96) 0%, rgba(7, 12, 21, 0.96) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 82, 104, 0.12), 0 0 26px rgba(255, 48, 69, 0.26), 0 18px 60px rgba(0, 0, 0, 0.4);
  border-radius: 32px;
  overflow: hidden;
}
.section-card--warning::before,
.section-card--warning::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.section-card--warning::before {
  top: -56%;
  left: -14%;
  width: 33%;
  height: 186%;
  background: radial-gradient(circle at 28% 28%, rgba(255, 115, 110, 0.26), rgba(255, 78, 92, 0.08) 32%, rgba(255, 78, 92, 0.02) 48%, transparent 75%);
}
.section-card--warning::after {
  right: -8%;
  bottom: -24%;
  width: 20%;
  height: 147%;
  background: radial-gradient(circle at 72% 72%, rgba(255, 118, 110, 0.18), rgba(255, 78, 92, 0.06) 28%, rgba(255, 78, 92, 0.02) 52%, transparent 76%);
}
.warning-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 26px;
  color: #f2c6c0;
}
.warning-icon {
  position: relative;
  flex: 0 0 86px;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.warning-separator {
  width: 2px;
  min-height: 84px;
  background: linear-gradient(180deg, rgba(255, 126, 109, 0.12) 0%, rgba(255, 122, 102, 0.92) 16%, rgba(255, 82, 95, 1) 50%, rgba(255, 122, 102, 0.92) 84%, rgba(255, 126, 109, 0.12) 100%);
  box-shadow: 0 0 10px rgba(255, 90, 103, 0.28);
}
.warning-svg {
  width: 86px;
  height: 86px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 16px rgba(255, 74, 92, 0.18));
}
.warning-svg path {
  fill: transparent;
  stroke: url(#warningStroke);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.warning-svg rect,
.warning-svg circle {
  fill: #ff5a67;
}
.warning-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 110px;
}
.warning-content h2 {
  margin: 0 0 12px;
  color: #ff5f71;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  text-transform: uppercase;
}
.warning-content p {
  margin: 0;
  line-height: 1.45;
  max-width: 1100px;
  font-size: 0.8rem;
  color:#86A1C3;
}
.warning-content p + p {
  margin-top: 12px;
}
.warning-summary {
  color: rgba(255, 216, 214, 0.9);
}
.warning-content strong {
  color: #ff7b88;
  font-weight: 700;
}
.section-copy:not(.warning-copy) h2 {
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.95em;
    letter-spacing: 0.15em;
    font-weight: bold;
    color: var(--accent-2);
}
.section-placeholder {
  padding: 10px 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.section-placeholder ul {
  margin: 18px 0 0;
  padding-left: 1.2rem;
  list-style: none;
}

.section-placeholder li {
  position: relative;
  margin: 0 0 6px;
  padding-left: 1.2rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.section-placeholder li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(159, 123, 255, 0.5);
}

.section-placeholder strong {
  color: var(--text);
  font-weight: 700;
}

.section-card--price {
}

.price-copy {
  position: relative;
  z-index: 1;
}

.price-body {
  display: flex;
  align-items: center;
  gap: 26px;
}

.price-amount {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #ffffff;
  white-space: nowrap;
}

.price-currency {
  margin-top: 0.28em;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  line-height: 1;
  font-weight: 700;
}

.price-value {
  font-size: clamp(3.6rem, 8vw, 5.6rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.08em;
  text-shadow: 0 0 28px rgba(159, 123, 255, 0.18);
}

.price-text {
  flex: 1;
  min-width: 0;
  padding: 0 6px;
  color: var(--text-soft);
}

.price-text p {
  margin: 0;
  line-height: 1.65;
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
}

.price-text p + p {
  margin-top: 10px;
}

.price-text strong {
  color: #fff;
}

.legal-page {
  width: 100%;
}

.legal-card {
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.legal-card::before {
  display: none;
}

.legal-content {
  position: relative;
  z-index: 1;
  padding: 0;
}

.legal-header {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-kicker {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

.legal-header h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.legal-section {
  margin-top: 18px;
}

.legal-section h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  letter-spacing: -0.03em;
}

.legal-section h3 {
  margin: 24px 0 10px;
  color: var(--text);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.legal-section p,
.legal-section li {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-section p {
  margin: 0 0 16px;
}

.legal-updated {
  margin-bottom: 16px !important;
  color: var(--text-dim) !important;
}

.legal-section strong {
  color: #fff;
}

.legal-section ul {
  margin: 0 0 18px 1.25rem;
  padding-left: 1rem;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section a {
  color: var(--text-soft);
  text-decoration: underline;
}

.legal-divider {
  height: 1px;
  margin: 24px 0 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04), transparent);
}

.faq-list {
  display: grid;
  gap: 14px;
}
.faq-item {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.faq-item:hover {
  border-color: rgba(159, 123, 255, 0.3);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-weight: 700;
  line-height: 1.45;
}
.faq-question:focus-visible {
  outline: 2px solid rgba(86, 214, 255, 0.8);
  outline-offset: -2px;
}
.faq-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: var(--text-soft);
  line-height: 1.7;
  opacity: 0;
  transition: max-height 280ms ease, opacity 220ms ease, padding-bottom 220ms ease;
}
.faq-answer p {
  margin-bottom: 0;
}
.faq-item.is-open .faq-answer {
  max-height: 220px;
  padding-bottom: 18px;
  opacity: 1;
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  color: #fff;
  background: rgba(159, 123, 255, 0.18);
}
#magic,
.processing-section,
.download-section,
.error-section {
  width: 100%;
}
.upload-section,
.processing-section,
.download-section,
.error-section {
  width: 100%;
  scroll-margin-top: 100px;
}
.upload-area,
.processing-content,
.download-section,
.error-section {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(17, 23, 40, 0.9), rgba(11, 16, 28, 0.94));
  box-shadow: var(--shadow-soft);
}
.upload-area {
  position: relative;
  overflow: hidden;
  padding: 46px 32px;
  text-align: center;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.upload-area::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 0%, rgba(159, 123, 255, 0.08) 45%, rgba(86, 214, 255, 0.05) 70%, transparent 100%);
}
.upload-area:hover {
  transform: translateY(-2px);
  border-color: rgba(159, 123, 255, 0.45);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(159, 123, 255, 0.14) inset;
}
.upload-area.dragover {
  border-color: rgba(86, 214, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(86, 214, 255, 0.15) inset, 0 0 0 4px rgba(86, 214, 255, 0.08);
}
.upload-icon {
  position: relative;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  color: #d9d2ff;
  filter: drop-shadow(0 0 18px rgba(159, 123, 255, 0.4));
  animation: float 4.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.upload-area h2,
.processing-section h2,
.download-section h2,
.error-section h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.upload-area h2,
.processing-section h2,
.download-section h2 {
  color: var(--text);
}
.upload-area p,
.processing-section p,
.download-section p,
.error-section p {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.56;
}
.file-formats {
  margin-top: 14px !important;
  color: var(--text-dim) !important;
  font-size: 0.8rem !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
input[type="file"] { display: none; }
.processing-section {
  display: flex;
  align-items: center;
  justify-content: center;
}
.processing-content {
  width: 100%;
  margin: 0 auto;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  box-sizing: border-box;
}
.spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent);
  border-right-color: var(--accent-2);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  box-shadow: 0 0 20px rgba(159, 123, 255, 0.22);
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-wrapper {
  width: 100%;
  max-width: 440px;
  margin: 0 auto 22px;
}
.progress-bar {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}
.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9f7bff 0%, #56d6ff 52%, #4dffa6 100%);
  box-shadow: 0 0 18px rgba(159, 123, 255, 0.4);
  transition: width 180ms ease;
}
.progress-fill.is-indeterminate {
  background-size: 200% 100%;
  animation: progressPulse 1.15s ease-in-out infinite;
}
@keyframes progressPulse {
  0% { background-position: 0 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 0.88rem;
}
#progressLabel {
  color: #ece8ff;
  font-weight: 700;
  letter-spacing: 0.04em;
}
#progressStage { text-align: right; }
.download-section,
.error-section {
  text-align: center;
  padding: 36px 28px;
}
.success-icon,
.error-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.24);
}
.success-icon {
  color: #dcfff0;
  background: radial-gradient(circle at 30% 30%, rgba(35, 209, 139, 0.28), rgba(35, 209, 139, 0.12) 42%, rgba(11, 16, 28, 0.94) 100%);
  box-shadow: 0 0 26px rgba(35, 209, 139, 0.22);
  animation: scaleIn 0.35s ease-out;
}
.error-icon {
  color: #ffe1e6;
  background: radial-gradient(circle at 30% 30%, rgba(255, 95, 114, 0.3), rgba(255, 95, 114, 0.12) 42%, rgba(11, 16, 28, 0.94) 100%);
  box-shadow: 0 0 26px rgba(255, 95, 114, 0.2);
  animation: shake 0.45s ease-out;
}
@keyframes scaleIn {
  0% { transform: scale(0.88); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
#outputFileName,
#errorMessage {
  margin-bottom: 28px;
  color: var(--text-soft);
  word-break: break-word;
}
.download-button,
.restart-button,
#errorRestartButton {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 34px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.download-button::before,
.restart-button::before,
#errorRestartButton::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.14) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 420ms ease;
}
.download-button:hover::before,
.restart-button:hover::before,
#errorRestartButton:hover::before {
  transform: translateX(120%);
}
.download-button:hover,
.restart-button:hover,
#errorRestartButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(159, 123, 255, 0.16) inset;
}
.download-button:active,
.restart-button:active,
#errorRestartButton:active {
  transform: translateY(0);
}
.download-button {
  background: linear-gradient(135deg, #9f7bff 0%, #6d7cff 48%, #56d6ff 100%);
}

.restart-button {
  margin-left:15px;
}

.restart-button,
#errorRestartButton {
  color: #edf1ff;
  background: linear-gradient(135deg, rgba(18, 25, 42, 0.98), rgba(12, 17, 30, 0.98));
}
.restart-button:hover,
#errorRestartButton:hover {
  border-color: rgba(159, 123, 255, 0.38);
  background: linear-gradient(135deg, rgba(23, 31, 52, 0.98), rgba(14, 20, 35, 0.98));
}
.download-icon { width: 20px; height: 20px; }
.hidden { display: none !important; }
.waveform-section {
  width: 100%;
  margin: 20px 0;
}

.waveform-container {
  position: relative;
  overflow: hidden;
}

#waveformCanvas {
  width: 100%;
  height: 100px;
  display: block;
}

.waveform-info {
   margin-top: 12px;
   color: var(--text-dim);
   font-size: 0.85rem;
   text-align: center;
 }

.waveform-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 180px;
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 10;
}

.waveform-loader.hidden {
  display: none !important;
}

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

.waveform-loader p {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-divider {
  width: 400px;
  height: 3px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #9f7bff 0%, #56d6ff 52%, #4dffa6 100%);
  background-size: 240% 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  box-shadow: 0 0 16px rgba(159, 123, 255, 0.3);
  filter: saturate(1.08) brightness(1.02);
  animation: topbarDividerDrift 16s ease-in-out infinite;
  will-change: background-position, filter, box-shadow;
}

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 28px 20px 32px;
  color: var(--text-dim);
  font-size: 0.82rem;
  background: linear-gradient(180deg, rgba(8, 11, 18, 0.16), rgba(8, 11, 18, 0.44));
}

.footer a,
.footer a:visited,
.footer a:hover,
.footer a:focus {
  color: inherit;
  text-decoration: underline;
}

.footer-content {
  width: min(100%, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  height: 15px;
  object-fit: contain;
  opacity: 0.85;
}

.footer-brand p {
  margin: 0;
  padding: 0;
}

/* How It Works Section */
.how-it-works {
  width: 100%;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}

.how-it-works-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: all 280ms ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.how-it-works-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(159, 123, 255, 0.06) 45%, rgba(86, 214, 255, 0.04) 70%, transparent 100%);
  pointer-events: none;
}

.how-it-works-card:hover {
  transform: translateY(-4px);
  border-color: rgba(159, 123, 255, 0.35);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(159, 123, 255, 0.12) inset;
  background: linear-gradient(180deg, rgba(20, 27, 45, 0.9), rgba(14, 20, 33, 0.96));
}

.how-it-works-visual {
  width: 100%;
  height: 140px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(17, 23, 40, 0.85), rgba(11, 16, 28, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px;
}



.dynamics-chart {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(255, 136, 68, 0.2));
}

.waveform {
   filter: drop-shadow(0 0 8px rgba(255, 136, 68, 0.35));
   animation: waveGlowPulse 3.5s ease-in-out infinite;
 }

 .waveform-mirror {
   opacity: 0.65;
 }

 @keyframes waveGlowPulse {
   0%, 100% {
     filter: drop-shadow(0 0 6px rgba(255, 136, 68, 0.25));
     opacity: 0.85;
   }
   50% {
     filter: drop-shadow(0 0 16px rgba(255, 102, 68, 0.65)) drop-shadow(0 0 24px rgba(255, 136, 68, 0.4));
     opacity: 1;
   }
 }

.metadata-chart {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(159, 123, 255, 0.15));
}

.metadata-chart text {
   animation: metadataFadeIn 2.4s ease-in-out infinite;
}

.metadata-chart text:nth-child(3) {
   animation-delay: 0s;
}

.metadata-chart text:nth-child(6) {
   animation-delay: 0.15s;
}

.metadata-chart text:nth-child(9) {
   animation-delay: 0.3s;
}

.metadata-chart text:nth-child(12) {
   animation-delay: 0.45s;
}

.strikethrough-line {
   stroke-dasharray: 150;
   stroke-dashoffset: 150;
   animation: strikethrough 2.4s ease-in-out infinite;
   animation-delay: var(--delay);
}

@keyframes metadataFadeIn {
   0%, 15% {
     opacity: 0.6;
   }
   25%, 85% {
     opacity: 1;
   }
   95%, 100% {
     opacity: 0.6;
   }
}

@keyframes strikethrough {
   0%, 15% {
     stroke-dashoffset: 150;
     opacity: 0;
   }
   25%, 85% {
     stroke-dashoffset: 0;
     opacity: 1;
   }
   95%, 100% {
     stroke-dashoffset: 0;
     opacity: 0;
   }
}


.stereo-chart {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(159, 123, 255, 0.15));
}

.stereo-indicator {
  animation: stereoBalance 2.4s ease-in-out infinite;
}

.stereo-indicator:nth-child(1) {
  animation-delay: 0s;
}

.stereo-indicator:nth-child(2) {
  animation-delay: 0.6s;
}

@keyframes stereoBalance {
  0%, 100% {
    opacity: 0.6;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(8px);
  }
}


.how-it-works-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: 8px;
  text-transform: uppercase;
  opacity: 0.8;
}

.how-it-works-title {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.how-it-works-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-soft);
  position: relative;
  z-index: 1;
}


/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  padding: 40px 24px;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -3px 0 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, #4dffa6 -40%, #070b14 20%, #070b14 80%, #4dffa6 140%);;
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 15%, transparent 45%, transparent 55%, black 85%, black 100%);
  mask-image: linear-gradient(90deg, black 0%, black 15%, transparent 45%, transparent 55%, black 85%, black 100%);
  box-shadow: 0 0 12px rgba(77, 255, 166, 0.4);
  z-index: 10;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, #4dffa629 0%, #56d6ff40 20%, #070b1452 35%, #56d6ff4f 50%, #070b14 65%, #56d6ff2e 80%, #4dffa638 100%);
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 8%, black 92%, black 100%);
  mask-image: linear-gradient(90deg, black 0%, black 8%, black 92%, black 100%);
  box-shadow: 0 0 12px rgba(77, 255, 166, 0.3), 0 0 8px rgba(86, 214, 255, 0.2);
  z-index: 10;
}

.hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  filter: blur(6px);
  animation:
    heroBackgroundFadeIn 1.9s ease-out 0.12s forwards,
    heroBackgroundBlur 23s ease-in-out infinite,
    heroBackgroundDrift 31s ease-in-out infinite;
  will-change: filter, transform;
}

@keyframes heroBackgroundFadeIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 1.2%, 0) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.hero-background::before,
.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14vw;
  z-index: 2;
  pointer-events: none;
}

.hero-background::before {
  left: 0;
  background: linear-gradient(90deg, rgba(1, 5, 17, 0.98) 0%, rgba(1, 5, 17, 0.88) 42%, rgba(1, 5, 17, 0) 100%);
}

.hero-background::after {
  right: 0;
  background: linear-gradient(270deg, rgba(1, 5, 17, 0.98) 0%, rgba(1, 5, 17, 0.88) 42%, rgba(1, 5, 17, 0) 100%);
}

@keyframes heroBackgroundBlur {
  0%,
  100% {
    filter: blur(3px);
  }
  18% {
    filter: blur(3.8px);
  }
  42% {
    filter: blur(5.2px);
  }
  63% {
    filter: blur(4.4px);
  }
  82% {
    filter: blur(6px);
  }
  92% {
    filter: blur(7px);
  }
}

@keyframes heroBackgroundDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  20% {
    transform: translate3d(0.35%, -0.4%, 0) scale(1.004);
  }
  46% {
    transform: translate3d(-0.45%, 0.25%, 0) scale(1.006);
  }
  68% {
    transform: translate3d(0.2%, 0.45%, 0) scale(1.003);
  }
  84% {
    transform: translate3d(-0.25%, -0.2%, 0) scale(1.005);
  }
}

.hero-background .hero-glow--left {
  animation-duration: 9.75s;
  animation-delay: -1.8s;
}

.hero-background .hero-glow--right {
  animation-duration: 11.25s;
  animation-delay: -4.2s;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-glow--left {
  width: 400px;
  height: 300px;
  background: radial-gradient(circle, #56d6ff 0%, transparent 70%);
  left: -100px;
  top: 50%;
  transform: translateY(-50%);
  animation: floatLeft 8s ease-in-out infinite;
}

.hero-glow--right {
  width: 400px;
  height: 300px;
  background: radial-gradient(circle, #9f7bff 0%, transparent 70%);
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  animation: floatRight 8s ease-in-out infinite;
}

@keyframes floatLeft {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(-20px); }
}

@keyframes floatRight {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(20px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  text-align: center;
}

.hero-subtitle {
  font-size: 1.01rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  background: linear-gradient(90deg, #95A0F6 30%, #2CD2D6 50%, #8792EC 68%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-white);
  margin-bottom: 50px;
}

.hero-accent {
  background: linear-gradient(90deg, #56d6ff 0%, #C87EFB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 50px;
  min-height: 200px;
}

.hero-features-left,
.hero-features-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero-features-left {
  align-items: flex-start;
  padding-left: 0;
}

.hero-features-right {
  align-items: flex-end;
  padding-right: 0;
}

.hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 220px;
}

.hero-features-right .hero-feature {
  flex-direction: row-reverse;
}

.feature-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: var(--accent-2);
  margin-top: 2px;
  opacity: 0.8;
}

.feature-text {
  text-align: left;
}

.hero-features-right .feature-text {
  text-align: right;
}

.feature-text h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 4px;
  line-height: 1.3;
}

.feature-text p {
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.4;
  margin: 0;
}

.hero-button-wrapper {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 27px 51px;
  border: 0px solid transparent;
  border-radius: 50px;
  background: #010511;
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: all 320ms ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  box-shadow:
    /* Left glow - cyan */
    -8px 0 20px rgba(73, 245, 254, 0.2),
    -4px 0 12px rgba(73, 245, 254, 0.15),
    /* Right glow - purple */
    8px 0 20px rgba(200, 126, 251, 0.2),
    4px 0 12px rgba(200, 126, 251, 0.15),
    /* Center glow - subtle */
    0 0 10px rgba(73, 245, 254, 0.1),
    0 0 20px rgba(200, 126, 251, 0.08);
}

.hero-button::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 5px;
  background: linear-gradient(90deg, #49F5FE 0%, #C87EFB 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(200, 126, 251, 0.1) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 500ms ease;
  pointer-events: none;
}

.hero-button:hover {
  box-shadow:
    /* Left glow - stronger cyan */
    -12px 0 30px rgba(73, 245, 254, 0.4),
    -6px 0 18px rgba(73, 245, 254, 0.3),
    /* Right glow - stronger purple */
    12px 0 30px rgba(200, 126, 251, 0.4),
    6px 0 18px rgba(200, 126, 251, 0.3),
    /* Center glow - enhanced */
    0 0 15px rgba(73, 245, 254, 0.2),
    0 0 25px rgba(200, 126, 251, 0.15);
  transform: translateY(-2px);
}

.hero-button:hover::before {
  transform: translateX(100%);
}

.hero-button:hover {
  transform: translateY(-2px);
}


.hero-button:active {
  transform: translateY(0);
}

.button-bars {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.1em;
  color: var(--accent-2);
}

.button-arrow {
  width: 18px;
  height: 18px;
  color: #C87EFB;
}

.hero-warning {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 24px;
  margin-top: 30px;
  border: 1px solid rgba(255, 111, 109, 0.4);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(31, 15, 15, 0.95), rgba(22, 10, 10, 0.98));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.warning-content-hero strong {
  color: #ff6f6d;
  font-weight: 800;
}

/* Responsive */
/* 3D Wireframe Waveform Canvas */
#hero-waveform-canvas.wireframe-waveform {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 128vw;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
  display: block;
}

@media (max-width: 1024px) {
  .hero-container {
    gap: 20px;
  }

  .hero-feature {
    max-width: 180px;
  }

  .feature-icon {
    width: 28px;
    height: 28px;
  }

  .feature-text h3 {
    font-size: 0.85rem;
  }

  .feature-text p {
    font-size: 0.75rem;
  }

  .hero-button {
    padding: 16px 40px;
    font-size: 0.82rem;
  }
}

@media (max-width: 900px) {
  .section-card--warning {
    padding: 20px 18px 20px 20px;
    border-radius: 24px;
  }

  .topbar-divider {
    width: 243px;
  }

  .footer-divider {
    width: 243px;
  }

  .section-card--price {
    padding: 22px 18px 18px;
    border-radius: 24px;
  }

  .price-body {
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 14px;
  }

  .price-amount {
    flex-basis: auto;
  }

  .price-text {
    flex: 1 1 320px;
    padding: 0;
  }

  .warning-copy {
    gap: 16px;
    min-height: auto;
  }

  .warning-decor {
    display: none;
  }

  .footer-divider {
    width: 243px;
  }
}

@media (max-width: 768px) {
  .topbar {
    min-height: 52px;
  }

  .topbar-container {
    justify-content: center;
  }

  .brand {
    padding-left: 0;
  }

  .brand-logo {
    height: 23px;
  }

  .nav {
    display: none;
  }

  .hero-section {
    padding: 60px 20px;
    min-height: auto;
  }

  .hero-title {
    margin-bottom: 40px;
  }

  .hero-subtitle {
    font-size: 0.75rem;
  }

  .hero-container {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    min-height: auto;
  }

  .hero-button-wrapper {
    order: 1;
    width: 100%;
  }

  .hero-features-left {
    order: 2;
  }

  .hero-features-left,
  .hero-features-right {
    width: 100%;
    gap: 20px;
  }

  .hero-features-left {
    order: 2;
    align-items: flex-start;
  }

  .hero-features-right {
    order: 3;
    align-items: flex-start;
  }

  .hero-features-right .hero-feature {
    flex-direction: row;
  }

  .hero-features-right .feature-text {
    text-align: left;
  }

  .hero-feature {
    max-width: 100%;
  }

  .hero-button {
    margin: 15px 0;
    padding: 14px 36px;
    gap: 10px;
  }

  .button-bars {
    font-size: 1rem;
  }

  .button-arrow {
    width: 16px;
    height: 16px;
  }

  .hero-warning {
    gap: 12px;
    padding: 16px 18px;
    margin-top: 30px;
  }

  .warning-content-hero h4 {
    font-size: 0.75rem;
  }

  .warning-content-hero p {
    font-size: 0.75rem;
  }

  .section-card--warning::after,
  .section-card--warning::before {
    background: transparent;
  }
}

@media (max-width: 700px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
  }

  .how-it-works-card {
    padding: 20px;
  }

  .legal-content {
    padding: 18px 18px 22px;
  }

  .price-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .price-amount {
    justify-content: flex-start;
  }

  .price-value {
    font-size: clamp(3.2rem, 19vw, 4.4rem);
  }

  .legal-header {
    margin-bottom: 18px;
  }

  .legal-section h2 {
    margin-bottom: 12px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 0.97rem;
    line-height: 1.7;
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding: 40px 16px;
  }

  .hero-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    margin-bottom: 30px;
  }

  .hero-subtitle {
    font-size: 0.6rem;
    margin-bottom: 14px;
  }

  .hero-container {
    gap: 25px;
  }

  .hero-features-left,
  .hero-features-right {
    gap: 20px;
  }

  .feature-icon {
    width: 24px;
    height: 24px;
  }

  .feature-text h3 {
    font-size: 0.8rem;
  }

  .feature-text p {
    font-size: 0.7rem;
  }

  .hero-button {
    padding: 12px 28px;
    gap: 8px;
  }

  .button-bars {
    font-size: 0.9rem;
  }

  .button-arrow {
    width: 14px;
    height: 14px;
  }
}

