/* ============================================================
   Magic Life Mentoring · Delivery Page
   Design language: Magic Creation Retreat
   ============================================================ */

:root {
  --yellow: #ffdf07;
  --yellow-dim: rgba(255, 223, 7, 0.35);
  --gold: #c9a84c;
  --cream: #f0eaf8;
  --cream-muted: #c0aedd;
  --white: #ffffff;
  --dark: #1a0a2e;
  --border: rgba(255, 255, 255, 0.10);
  --border-y: rgba(255, 223, 7, 0.3);
  --surface-dark: rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 15% 50%, rgba(106, 32, 134, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 15%, rgba(60, 20, 100, 0.40) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 85%, rgba(40, 12, 80, 0.35) 0%, transparent 60%),
    linear-gradient(155deg, #1e0f40 0%, #4d1866 38%, #2a0b50 65%, #14082a 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
  font-weight: 300;
}

/* Starfield overlay */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255, 223, 7, 0.45), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 75% 50%, rgba(255, 223, 7, 0.25), transparent),
    radial-gradient(1px 1px at 10% 60%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 92% 80%, rgba(192, 174, 221, 0.4), transparent);
  opacity: 0.6;
  z-index: 0;
}

/* ============ Section System ============ */

.section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 860px;
  margin: 0 auto;
}

.section-dark {
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.section-label {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--yellow);
  display: block;
  text-align: center;
  margin-bottom: 0.9rem;
  opacity: 0.85;
  font-weight: 500;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 400;
  text-align: center;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: 1.5px;
}

.section-title em {
  color: var(--yellow);
  font-style: italic;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.88em;
}

.section-text {
  font-family: 'Raleway', sans-serif;
  font-size: 0.98rem;
  color: var(--cream-muted);
  text-align: center;
  line-height: 1.8;
  max-width: 540px;
  margin: 0 auto 2rem;
  font-weight: 300;
}

.divider {
  width: 1px;
  height: 64px;
  background: linear-gradient(180deg, var(--yellow), transparent);
  display: block;
  margin: 2.5rem auto;
  opacity: 0.35;
}

.divider-wide {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3) 20%, rgba(201, 168, 76, 0.5) 50%, rgba(201, 168, 76, 0.3) 80%, transparent);
  margin: 0;
}

/* ============ Brand Hero Image ============ */

.brand-hero-image {
  display: block;
  width: min(92vw, 780px);
  max-width: 100%;
  margin: 0 auto;
  height: auto;
  border: 1px solid var(--border-y);
  box-shadow:
    0 0 80px rgba(255, 223, 7, 0.1),
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-hero-image.small {
  width: min(80vw, 420px);
}

/* ============ Primary Button ============ */

.btn-primary {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 16px 42px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  box-shadow:
    0 0 25px rgba(255, 223, 7, 0.3),
    0 0 60px rgba(255, 223, 7, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: btnGlow 3.5s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 40px rgba(255, 223, 7, 0.55),
    0 0 90px rgba(255, 223, 7, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

@keyframes btnGlow {
  0%, 100% {
    box-shadow:
      0 0 22px rgba(255, 223, 7, 0.28),
      0 0 55px rgba(255, 223, 7, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
  50% {
    box-shadow:
      0 0 35px rgba(255, 223, 7, 0.5),
      0 0 80px rgba(255, 223, 7, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

/* ============ Login Page ============ */

.login-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.login-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.1s forwards;
}

.login-wrapper .brand-hero-image {
  margin-bottom: 2.5rem;
}

.login-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1rem;
  opacity: 0.85;
  font-weight: 500;
}

.login-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.login-title em {
  color: var(--yellow);
  font-style: italic;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.88em;
}

.login-hint {
  font-size: 0.95rem;
  color: var(--cream-muted);
  margin-bottom: 2.25rem;
  line-height: 1.7;
  font-weight: 300;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  max-width: 380px;
  margin: 0 auto;
}

.login-input {
  width: 100%;
  padding: 1.1rem 1.5rem;
  border: 1px solid var(--border);
  background: rgba(10, 4, 20, 0.55);
  color: var(--cream);
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.login-input::placeholder {
  color: rgba(192, 174, 221, 0.5);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.login-input:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(10, 4, 20, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 223, 7, 0.12);
}

.login-submit {
  margin-top: 0.25rem;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
}

.error-msg {
  margin-top: 1.5rem;
  color: #ff8a9b;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ============ Delivery Page ============ */

.delivery-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.delivery-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4.5rem 1.5rem 2rem;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.1s forwards;
}

.delivery-hero .brand-hero-image {
  width: min(90vw, 680px);
}

.delivery-section {
  padding: 3rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

.delivery-section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-y);
  box-shadow:
    0 0 80px rgba(255, 223, 7, 0.1),
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  animation: fadeUp 0.9s ease 0.4s forwards;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* CTA Section — uses section + section-dark */

.cta-section {
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.6s forwards;
}

.cta-section .btn-primary {
  margin-top: 0.5rem;
}

/* ============ Footer ============ */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 223, 7, 0.1);
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(8, 3, 18, 0.75) 0%, rgba(5, 2, 16, 0.95) 100%);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 223, 7, 0.4), transparent);
}

.footer-empowered {
  font-size: 7px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  display: block;
  margin-bottom: 0.55rem;
}

.footer-logo {
  width: clamp(120px, 25vw, 170px);
  height: auto;
  mix-blend-mode: lighten;
  opacity: 0.85;
  display: block;
  margin: 0 auto 1.75rem;
}

.footer-text {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ============ Animations ============ */

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

/* ============ Mobile ============ */

@media (max-width: 600px) {
  .section {
    padding: 3rem 1.2rem;
  }

  .delivery-hero {
    padding: 2.5rem 1rem 1rem;
  }

  .delivery-section {
    padding: 2rem 1rem 2.5rem;
  }

  .btn-primary {
    padding: 14px 28px;
    font-size: 10px;
  }

  .login-body {
    padding: 2rem 1rem;
  }

  .footer {
    padding: 2.5rem 1.5rem 2rem;
  }
}
