:root {
  --bg: #0b0e18;
  --ink: #f4ead8;
  --muted: #c9b8a0;
  --gold: #e0b15b;
  --gold-2: #f0d9a0;
  --glass: rgba(16, 18, 32, 0.62);
  --line: rgba(224, 177, 91, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

.sky {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(240, 196, 120, 0.22), transparent 28%),
    radial-gradient(circle at 18% 86%, rgba(86, 42, 110, 0.45), transparent 42%),
    linear-gradient(180deg, #14182a 0%, #1a1020 42%, #0b0e18 100%);
  z-index: -2;
}

.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1px 1px at 20% 30%, #fff8, transparent),
    radial-gradient(1px 1px at 40% 70%, #fff6, transparent),
    radial-gradient(1px 1px at 70% 20%, #fff7, transparent),
    radial-gradient(1px 1px at 85% 55%, #fff5, transparent),
    radial-gradient(1px 1px at 10% 80%, #fff4, transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, #fff8, transparent);
  opacity: 0.7;
}

.moon {
  position: absolute;
  top: 7vh;
  right: 12vw;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6d8, #e8c47a 58%, #b8863a);
  box-shadow: 0 0 60px 18px rgba(232, 196, 122, 0.28);
}

.haze {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -8%;
  height: 38%;
  background: radial-gradient(ellipse at center, rgba(90, 40, 70, 0.55), transparent 70%);
  filter: blur(8px);
}

.page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 0.95;
  margin: 0 0 16px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-2);
}

.eyebrow {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.74rem;
  margin: 0 0 14px;
}

.lede {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 36px;
}

.studio,
.status,
.result,
.error {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  backdrop-filter: blur(16px);
  margin-bottom: 18px;
}

.drops {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.drop {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 180px;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(224, 177, 91, 0.45);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.drop:hover,
.drop.drag {
  border-color: var(--gold);
  background: rgba(224, 177, 91, 0.08);
  transform: translateY(-1px);
}

.drop.filled {
  border-style: solid;
}

.drop input {
  display: none;
}

.drop-kicker {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.drop-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
}

.drop-hint,
.drop-file,
.note,
.meta,
.status p,
.error p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.drop-file {
  margin-top: auto;
  color: var(--gold-2);
}

.fine {
  margin: 16px 0 8px;
}

.fine summary {
  cursor: pointer;
  color: var(--gold);
}

.sliders {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.sliders label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  font-size: 0.92rem;
}

.sliders input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--gold);
}

button,
.download {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8c47a, #c48a32);
  color: #1a1208;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.note {
  margin: 12px 0 0;
}

.status-head,
.result h2,
.error h2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  margin: 0 0 10px;
}

.bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 8px 0 12px;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #e8c47a, #fff1c9);
  transition: width 0.35s ease;
}

audio {
  width: 100%;
  margin: 8px 0 12px;
}

.error {
  border-color: rgba(220, 90, 90, 0.45);
}

@media (max-width: 720px) {
  .page {
    padding-top: 28px;
  }

  .drops {
    grid-template-columns: 1fr;
  }

  .moon {
    width: 56px;
    height: 56px;
    right: 6vw;
  }
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.brand {
  color: var(--gold-2);
  text-decoration: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
}

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

.top-actions a,
.who,
.linkish {
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  width: auto;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.ghost {
  color: var(--gold) !important;
}

.quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--gold-2);
  font-size: 0.92rem;
  font-weight: 600;
}

.quota-pill .coin {
  display: inline-flex;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
}

.task {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.task:last-child {
  border-bottom: 0;
}

.mix-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.mix-row:last-child {
  border-bottom: 0;
}

.mix-row h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.mix-row .ghost-btn {
  width: auto;
  margin: 0;
  padding: 8px 14px;
}

.ghost-btn {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  color: var(--gold);
  text-decoration: none;
}

.top form {
  display: inline;
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.tariff-card.current {
  border-color: var(--gold);
}

.price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  color: var(--gold-2);
  margin: 0 0 8px;
}

.feature-list {
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.admin-nav a {
  color: var(--gold);
  text-decoration: none;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table a {
  color: var(--gold);
}

.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  font: inherit;
}

.field.check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field.check input {
  width: auto;
}

.site-footer {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto 40px;
  padding: 24px 0 80px;
  border-top: 1px solid var(--line);
}

.brand-foot {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  color: var(--gold-2);
  margin: 0 0 10px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.legal-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.legal-nav a:hover {
  color: var(--gold);
}

.legal-doc h2 {
  margin-top: 18px;
}

.legal-doc p {
  color: var(--muted);
  line-height: 1.55;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.example-grid figcaption {
  color: var(--gold);
  margin-bottom: 6px;
}

.example-grid audio {
  width: 100%;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 18px;
  background: #161422;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
}

.cookie-banner button {
  width: auto;
  margin-top: 10px;
  padding: 10px 18px;
}


