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

[hidden] { display: none !important; }

:root {
  /* Exact values from original project */
  --burgundy-deep: #370021;
  --burgundy:      #570036;
  --magenta:       #c22182;
  --pink-soft:     #e181b0;
  --cream:         #edd4ab;
  --gold:          #edd4ab;

  --background:         #370021;
  --foreground:         #edd4ab;
  --card:               #46002b;
  --primary:            #c22182;
  --primary-foreground: #edd4ab;
  --secondary:          #640c41;
  --muted:              #4a1a33;
  --muted-foreground:   #d1abbc;
  --accent:             #e181b0;
  --accent-foreground:  #370021;
  --destructive:        #d40c1a;
  --border:             #a84e7c59;
  --input:              #56173a;
  --ring:               #c22182;

  --font-display: "Instrument Serif", "Cormorant Garamond", serif;
  --font-serif:   "Cormorant Garamond", "Playfair Display", serif;
  --font-sans:    "Inter", system-ui, sans-serif;

  --gradient-hero:
    radial-gradient(ellipse at top, #c2218273, transparent 60%),
    linear-gradient(180deg, #46002b, #280016);

  --shadow-elegant: 0 30px 80px -20px #0000008c, 0 0 0 1px #e181b02e;
  --shadow-gold:    0 0 40px #c2218273;
}

html, body {
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ── Layout ─────────────────────────────────────────────── */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* ── Orbs ───────────────────────────────────────────────── */

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

.orb-gold {
  width: 420px;
  height: 420px;
  top: -128px;
  left: -128px;
  background: radial-gradient(circle, #edd4ab 0%, transparent 70%);
}

.orb-magenta {
  width: 420px;
  height: 420px;
  top: 33%;
  right: -128px;
  background: radial-gradient(circle, #c22182 0%, transparent 70%);
}

/* ── Nav ────────────────────────────────────────────────── */

.nav {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem 1rem;
  max-width: 90rem;
  margin: 0 auto;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 3.5rem;
  width: auto;
}

.nav-link {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  border: 1px solid rgba(184, 32, 110, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  color: var(--primary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

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

/* ── Main ───────────────────────────────────────────────── */

.main {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 1.5rem 4rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    padding: 4rem 3rem;
  }

  .hero-text {
    text-align: right !important;
    min-width: 0;
    overflow: hidden;
    padding-left: 1rem;
  }

  .hero-text p {
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  .hero-title {
    word-break: break-word;
  }

  .hero-title span {
    padding-right: 4rem;
  }
}

@media (max-width: 767px) {
  .nav {
    padding: 1.5rem 1.5rem 1rem;
  }

  .nav-logo img {
    height: 3rem;
  }
}

/* ── Hero text ──────────────────────────────────────────── */

.hero-text {
  text-align: center;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.25rem 0 0.25rem 0.75rem;
  border-left: 1px solid var(--primary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(184, 32, 110, 0.8);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3rem;       /* text-5xl */
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.hero-title span {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--primary);
  display: block;
  margin-top: 0.25rem;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(237, 212, 171, 0.6);
  max-width: 22rem;
  font-family: var(--font-serif);
  font-style: italic;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-title { font-size: 3.75rem; }
  .hero-subtitle { font-size: 1.125rem; }
}

@media (min-width: 1280px) {
  .hero-title { font-size: 4.5rem; }
  .hero-subtitle { font-size: 1.25rem; }
}

/* ── Video ──────────────────────────────────────────────── */

.video-wrap {
  display: flex;
  justify-content: center;
}

.video-inner {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 85%;
  max-width: 320px;
}

@media (min-width: 1024px) {
  .video-inner {
    width: 280px;
  }
}

.video-frame-deco {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184, 32, 110, 0.2);
  border-radius: 1rem;
  transform: rotate(-2deg) scale(1.04);
}

.video-frame {
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(184, 32, 110, 0.4);
  box-shadow: var(--shadow-elegant);
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ── Form card ──────────────────────────────────────────── */

.form-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elegant);
  background: linear-gradient(180deg, oklch(0.30 0.10 10), var(--background));
}

.form-card-title {
  position: absolute;
  top: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--background);
  padding: 0 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  white-space: nowrap;
}

.form-body {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* floating label */
.field {
  position: relative;
}

.field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(237, 212, 171, 0.2);
  padding: 0.5rem 0;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus {
  border-bottom-color: var(--accent);
}

.field input + label {
  position: absolute;
  left: 0;
  top: 0.5rem;
  font-size: 1rem;
  color: rgba(237, 212, 171, 0.4);
  text-transform: uppercase;
  letter-spacing: 0;
  transition: all 0.2s;
  pointer-events: none;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: -1.1rem;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.field-label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.field textarea {
  width: 100%;
  background: rgba(61, 15, 47, 0.4);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  color: var(--foreground);
  font-family: var(--font-serif);
  font-size: 1rem;
  outline: none;
  resize: none;
  transition: border-color 0.2s;
}

.field textarea::placeholder {
  color: rgba(237, 212, 171, 0.3);
}

.field textarea:focus {
  border-color: var(--accent);
}

/* submit button */
.btn-submit {
  width: 100%;
  padding: 1.25rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: filter 0.2s, transform 0.1s;
}

.btn-submit:hover {
  filter: brightness(1.1);
}

.btn-submit:active {
  transform: scale(0.98);
}

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

.form-msg {
  text-align: center;
  font-size: 0.875rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--primary);
}

.form-msg.error {
  color: var(--destructive);
  font-style: normal;
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  margin-top: auto;
  padding: 2rem 0 3rem;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  opacity: 0.5;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  transition: color 0.2s, opacity 0.2s;
  text-decoration: none;
}

.social-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.social-icon:hover {
  color: var(--primary);
  opacity: 1;
}

.footer-inner {
  opacity: 0.4;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.footer-line {
  height: 1px;
  width: 2rem;
  background: var(--primary);
}

.footer-text {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5em;
}

/* ── Divider ────────────────────────────────────────────── */

.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e8d4b0, transparent);
  margin: 0 auto;
}

/* ── Midiakit — locked ──────────────────────────────────── */

.lock-page {
  min-height: 100vh;
  background: var(--gradient-hero);
  position: relative;
}

.lock-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
}

.lock-header img {
  height: 3.5rem;
  width: auto;
}

.btn-back {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(237, 212, 171, 0.7);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: color 0.2s;
}

.btn-back:hover {
  color: var(--primary);
}

.lock-main {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.lock-card {
  background: rgba(71, 18, 55, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-elegant);
  text-align: center;
  width: 100%;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lock-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(184, 32, 110, 0.8);
}

.lock-title {
  font-size: 2.5rem;
  font-family: var(--font-serif);
  color: var(--foreground);
}

.lock-subtitle {
  color: rgba(237, 212, 171, 0.7);
  font-family: var(--font-serif);
  font-style: italic;
}

.lock-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lock-input {
  width: 100%;
  background: rgba(86, 21, 63, 0.4);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  text-align: center;
  letter-spacing: 0.3em;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.2s;
}

.lock-input::placeholder {
  color: rgba(237, 212, 171, 0.3);
}

.lock-input:focus {
  box-shadow: 0 0 0 2px rgba(184, 32, 110, 0.6);
}

.lock-error {
  font-size: 0.875rem;
  color: var(--destructive);
}

.btn-unlock {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.btn-unlock:hover {
  box-shadow: var(--shadow-gold);
}

/* ── Midiakit — unlocked ─────────────────────────────────── */

.pdf-page {
  position: fixed;
  inset: 0;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--gradient-hero);
  display: flex;
  flex-direction: column;
}

.pdf-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(71, 18, 55, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.pdf-header img {
  height: 2rem;
  width: auto;
}

.pdf-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-download {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  color: var(--foreground);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-download:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.pdf-embed {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.pdf-embed object,
.pdf-embed iframe {
  position: absolute;
  inset: 0;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  border: none;
}
