

:root {
  --ivory:        #F5EFE6;
  --ivory-2:      #EFE6D8;
  --cream:        #FBF7F0;
  --ink:          #1F1B16;
  --ink-soft:     #3B342C;
  --muted:        #7A6F62;
  --line:         #E3D9C8;

  --terracotta:   #C8553D;
  --terracotta-d: #A8412C;
  --amber:        #E8AE54;
  --amber-d:      #C98E36;
  --sage:         #5D7B6F;
  --plum:         #6E3A52;

  --shadow-sm: 0 1px 2px rgba(31, 27, 22, .06);
  --shadow-md: 0 10px 30px -12px rgba(31, 27, 22, .18);
  --shadow-lg: 0 30px 60px -24px rgba(31, 27, 22, .28);

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Space Grotesk", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --ivory:        #1B1714;
  --ivory-2:      #221C18;
  --cream:        #25201B;
  --ink:          #F2EAD9;
  --ink-soft:     #D9CFBC;
  --muted:        #9A8E7C;
  --line:         #3A322B;

  --terracotta:   #E47A60;
  --terracotta-d: #D9694D;
  --amber:        #F2C575;
  --amber-d:      #D9A953;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .55);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .70);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html {
  background: var(--ivory);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.bg-layer {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 85% -10%, #FBE2BE 0%, transparent 60%),
    radial-gradient(900px 600px at -10% 110%, #F2C5B5 0%, transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--ivory) 60%, var(--ivory-2) 100%);
}

.mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  animation: drift 22s ease-in-out infinite alternate;
}
.mesh-1 { width: 480px; height: 480px; top: -120px; left: -100px; background: #F2B68B; }
.mesh-2 { width: 520px; height: 520px; top: 30%; right: -180px; background: #F4D6A5; animation-duration: 28s; }
.mesh-3 { width: 420px; height: 420px; bottom: -160px; left: 30%; background: #D78A6E; animation-duration: 34s; }

@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(40px,-30px,0) scale(1.08); }
}

.vinyl {
  position: absolute;
  width: 360px; height: 360px;
  color: var(--ink);
  opacity: .8;
}
.vinyl-tr { top: -80px; right: -80px; }
.vinyl-bl { bottom: -90px; left: -90px; width: 300px; height: 300px; }

.noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .35;
  mix-blend-mode: multiply;
}

.shell {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(20px, 5vw, 36px) 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 44px;
}

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

.brand-logo {
  width: 56px; height: 56px;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  box-shadow: 0 6px 14px -8px rgba(31, 27, 22, .35);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.05); }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-kicker {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  margin-top: 2px;
  font-variation-settings: "opsz" 36;
}

.topbar-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .25s ease;
}
.topbar-link:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
  transform: translateY(-1px);
}

.hero { margin-bottom: 36px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(200, 85, 61, .08);
  color: var(--terracotta-d);
  border: 1px solid rgba(200, 85, 61, .18);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  background: var(--terracotta);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(200, 85, 61, .15);
}

.title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 6.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 22px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.title-accent {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
  position: relative;
  white-space: nowrap;
}
.title-accent::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -2px;
  height: 8px;
  background: var(--amber);
  border-radius: 4px;
  z-index: -1;
  opacity: .45;
  transform: skew(-8deg);
}

.subtitle {
  max-width: 56ch;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--ink-soft);
  margin: 0;
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.6vw, 36px);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(232, 174, 84, .18), transparent 60%),
    radial-gradient(380px 240px at 0% 100%, rgba(200, 85, 61, .10), transparent 55%);
  pointer-events: none;
}

.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
  position: relative;
}
.card-head-left { display: flex; align-items: baseline; gap: 12px; }
.track-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
  font-size: 18px;
  font-variation-settings: "opsz" 24;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 28px);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 60;
}
.card-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  color: var(--sage);
  background: rgba(93, 123, 111, .10);
  border: 1px solid rgba(93, 123, 111, .22);
  border-radius: 999px;
  padding: 6px 12px;
}
.pulse {
  width: 8px; height: 8px;
  background: var(--sage);
  border-radius: 50%;
  position: relative;
}
.pulse::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%;
  background: var(--sage); opacity: .35;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(.6); opacity: .5; }
  100% { transform: scale(1.6); opacity: 0; }
}

.form { position: relative; display: flex; flex-direction: column; gap: 18px; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; position: relative; }

.field-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 2px;
}
.field-optional {
  font-style: normal;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--muted);
  opacity: .85;
  margin-left: 4px;
}

.field input {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--ivory);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s ease, box-shadow .25s ease, background .2s ease, transform .2s ease;
}
.field input::placeholder { color: #B6A992; }
.field input:hover { border-color: #D5C8B2; }
.field input:focus {
  border-color: var(--terracotta);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(200, 85, 61, .12),
    inset 0 1px 0 rgba(255,255,255,.6);
}
.field input:focus + .field-hint,
.field input:focus ~ .field-hint { color: var(--terracotta-d); }

.field input.invalid {
  border-color: #C0392B;
  box-shadow: 0 0 0 4px rgba(192, 57, 43, .10);
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
  padding-left: 2px;
  transition: color .2s ease;
}
.field-hint code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11.5px;
  background: rgba(200, 85, 61, .08);
  color: var(--terracotta-d);
  padding: 1px 6px;
  border-radius: 5px;
}
.field-error {
  font-size: 12.5px;
  color: #B83227;
  font-weight: 500;
  min-height: 0;
  padding-left: 2px;
  display: none;
}
.field-error.show { display: block; }

.submit-btn {
  position: relative;
  margin-top: 8px;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 12px;
  font: inherit; font-weight: 600; font-size: 15.5px;
  color: var(--cream);
  background: var(--ink);
  border: none;
  padding: 16px 26px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: .01em;
  box-shadow:
    0 1px 0 rgba(255,255,255,.05) inset,
    0 12px 24px -12px rgba(31, 27, 22, .55);
  transition: transform .25s cubic-bezier(.2,.7,.2,1),
              background .25s ease,
              box-shadow .25s ease,
              padding .25s ease;
  overflow: hidden;
}
.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(232,174,84,.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s ease;
}
.submit-btn:hover {
  background: var(--terracotta);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.10) inset,
    0 18px 32px -14px rgba(200, 85, 61, .55);
}
.submit-btn:hover::before { transform: translateX(120%); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:focus-visible {
  outline: 3px solid rgba(232,174,84,.55);
  outline-offset: 3px;
}
.submit-btn .btn-icon { display: inline-flex; transition: transform .25s ease; }
.submit-btn:hover .btn-icon { transform: translateX(3px); }

.submit-btn .btn-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.submit-btn .btn-loader span {
  width: 7px; height: 7px;
  background: currentColor;
  border-radius: 50%;
  opacity: .35;
  animation: bounce 1s infinite ease-in-out;
}
.submit-btn .btn-loader span:nth-child(2) { animation-delay: .15s; }
.submit-btn .btn-loader span:nth-child(3) { animation-delay: .30s; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: .35; }
  50%      { transform: translateY(-5px); opacity: 1; }
}

.submit-btn.is-loading { pointer-events: none; }
.submit-btn.is-loading .btn-label,
.submit-btn.is-loading .btn-icon { visibility: hidden; }
.submit-btn.is-loading .btn-loader { display: flex; }

.info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
@media (max-width: 700px) { .info { grid-template-columns: 1fr; } }

.info-item {
  display: flex; gap: 14px;
  padding: 18px;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.info-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  color: var(--terracotta);
  font-size: 22px;
  line-height: 1;
  font-variation-settings: "opsz" 24;
}
.info-item h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 4px;
  color: var(--ink);
  font-weight: 600;
}
.info-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.foot {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.foot-sep { opacity: .5; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 24px);
  display: flex; align-items: center; gap: 14px;
  background: var(--ink);
  color: var(--cream);
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.7,.2,1);
  z-index: 1000;
  max-width: calc(100vw - 32px);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.error { background: #4D1B14; }
.toast-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--amber);
  color: var(--ink);
  border-radius: 12px;
  flex-shrink: 0;
}
.toast.error .toast-icon { background: #C8553D; color: #FBF7F0; }
.toast-body { display: flex; flex-direction: column; line-height: 1.3; }
.toast-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.toast-msg { font-size: 13px; opacity: .85; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mesh, .pulse::after { animation: none; }
}

[data-theme="dark"] .bg-layer {
  background:
    radial-gradient(1200px 700px at 85% -10%, #4A2A18 0%, transparent 60%),
    radial-gradient(900px 600px at -10% 110%, #3A1F18 0%, transparent 55%),
    linear-gradient(180deg, #1B1714 0%, #16120F 60%, #110D0A 100%);
}
[data-theme="dark"] .mesh-1 { background: #5C2E1D; opacity: .55; }
[data-theme="dark"] .mesh-2 { background: #4A3320; opacity: .45; }
[data-theme="dark"] .mesh-3 { background: #3D1F14; opacity: .55; }
[data-theme="dark"] .noise   { mix-blend-mode: overlay; opacity: .25; }
[data-theme="dark"] .vinyl   { color: var(--ink); opacity: .55; }

[data-theme="dark"] .field input            { background: var(--ivory-2); color: var(--ink); }
[data-theme="dark"] .field input::placeholder { color: #6E6354; }
[data-theme="dark"] .field input:hover      { border-color: #4A4136; }
[data-theme="dark"] .field input:focus      { background: #2D261F; }

[data-theme="dark"] .eyebrow         { background: rgba(228, 122, 96, .14); border-color: rgba(228, 122, 96, .30); }
[data-theme="dark"] .field-hint code { background: rgba(228, 122, 96, .14); color: var(--terracotta); }

[data-theme="dark"] .submit-btn { background: var(--terracotta); color: #1B1714; }
[data-theme="dark"] .submit-btn:hover { background: var(--amber); }

[data-theme="dark"] .info-item   { background: rgba(255,255,255,.03); }
[data-theme="dark"] .topbar-link { color: var(--ink-soft); }
[data-theme="dark"] .toast       { background: #2D261F; color: var(--ink); }
[data-theme="dark"] .toast.error { background: #3D1A14; }
[data-theme="dark"] .toast-icon  { background: var(--amber); color: #1B1714; }

[data-theme="dark"] .field-error { color: #F2A296; }
[data-theme="dark"] .alert-error { color: #F2C2BA; }

html, body, .card, .field input, .submit-btn, .topbar-link,
.info-item, .toast, .lt-link, .lt-skeleton, .theme-toggle {
  transition-property: background-color, color, border-color, box-shadow;
  transition-duration: .35s;
  transition-timing-function: ease;
}
