/* ─── Design tokens ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Raleway:wght@300;400;500;600&display=swap');

:root {
  --gold:          #C9A84C;
  --gold-light:    #E8C96D;
  --gold-bright:   #F5D97E;
  --gold-dark:     #8C6A20;
  --gold-glow:     rgba(201, 168, 76, 0.35);
  --gold-border:   rgba(201, 168, 76, 0.55);
  --card-bg:       rgba(6, 4, 18, 0.86);
  --input-bg:      rgba(255, 255, 255, 0.055);
  --input-border:  rgba(201, 168, 76, 0.28);
  --text-primary:  #F5F0E8;
  --text-muted:    #9E8E6E;
  --text-dim:      #6A5A42;
  --font-display:  'Cinzel', Georgia, serif;
  --font-body:     'Raleway', system-ui, sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: #04020e;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Page wrapper ───────────────────────────────────────────── */
.lp {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Hero background image */
.lp::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('mastersclub_hero.webp') top center / cover no-repeat;
  z-index: 0;
}


.hero, .main, .footer { position: relative; z-index: 1; }

/* ─── Hero / header ──────────────────────────────────────────── */
.hero {
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.logo-wrap { display: block; }

.logo {
  width: 260px;
  height: auto;
  display: block;
  /* stacked drop-shadows trace the letter shapes and dissolve outward */
  filter:
    drop-shadow(0 2px 3px rgba(0,0,0,1))
    drop-shadow(0 5px 8px rgba(0,0,0,0.92))
    drop-shadow(0 12px 18px rgba(0,0,0,0.65))
    drop-shadow(0 22px 32px rgba(0,0,0,0.35))
    drop-shadow(0 36px 50px rgba(0,0,0,0.15));
}

.hero-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.6);
}

/* ─── Main / form area ───────────────────────────────────────── */
.main {
  flex: 1 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem 1.25rem 2rem;
}

/* ─── Card ───────────────────────────────────────────────────── */
.card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.08),
    0 8px 40px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(201, 168, 76, 0.1),
    inset 0 1px 0 rgba(201, 168, 76, 0.12);

  /* very subtle inner corner ornament via radial gradient */
  background-image:
    radial-gradient(ellipse 200px 120px at 50% 0%, rgba(201, 168, 76, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, rgba(201, 168, 76, 0.04) 0%, transparent 40%);
}

.card-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--gold-light);
  text-shadow: 0 0 24px rgba(201, 168, 76, 0.5);
}

.card-subtitle {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-muted);
}

/* Gold ornamental divider */
.card-divider {
  position: relative;
  margin: 1.25rem auto 1.5rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-dark) 20%,
    var(--gold-light) 50%,
    var(--gold-dark) 80%,
    transparent 100%
  );
}

.card-divider::before,
.card-divider::after {
  content: '◆';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 0.55rem;
  line-height: 1;
}

.card-divider::before { left: calc(25% - 6px); }
.card-divider::after  { right: calc(25% - 6px); }

/* ─── Form ───────────────────────────────────────────────────── */
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.required { color: #e05; }

.form-control {
  height: 48px;
  padding: 0 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 3px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control::placeholder { color: var(--text-dim); }

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.18), 0 0 12px rgba(201, 168, 76, 0.12);
}

/* ─── Checkbox ───────────────────────────────────────────────── */
.form-group-checkbox { gap: 0; }

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid var(--gold-border);
  border-radius: 2px;
  background: var(--input-bg);
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold-light);
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: 2px solid #050510;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* ─── CTA button ─────────────────────────────────────────────── */
.btn-cta {
  margin-top: 0.375rem;
  height: 52px;
  padding: 0 1.5rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0a0718;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: filter 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4), 0 1px 0 rgba(255,255,255,0.15) inset;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.btn-cta:hover:not(:disabled) {
  filter: brightness(1.12);
  box-shadow: 0 6px 28px rgba(201, 168, 76, 0.55);
  transform: translateY(-1px);
}

.btn-cta:active:not(:disabled) { transform: translateY(0); }

.btn-cta:disabled,
.btn-cta.loading {
  background: linear-gradient(135deg, #6a5a30 0%, #4a3f22 100%);
  color: rgba(255,255,255,0.4);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  filter: none;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 1.25rem 1.5rem 1.75rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  text-align: center;
}

.footer-disclaimer {
  margin: 0 auto 0.75rem;
  max-width: 680px;
  font-size: 0.6875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-dim);
}

.footer-disclaimer a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-disclaimer a:hover { color: var(--gold); }

.footer-links {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--gold-bright); }

.disclaimer-toggle {
  font-style: italic;
}

.footer-disclaimer-block {
  margin-top: 1rem;
  background: #000;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.footer-disclaimer-block .footer-disclaimer {
  margin: 0 auto;
}

/* ─── Mobile only — max 767px ───────────────────────────────── */
@media (max-width: 767px) {
  .lp::before {
    background-position: calc(50% - 200px) top;
  }

  .main {
    margin-top: 350px;
  }

  .hero {
    margin-top: -30px;
  }

  .logo {
    width: 299px;
  }
}

/* ─── Tablet — 821px+ ────────────────────────────────────────── */
@media (min-width: 821px) {

  .hero {
    padding: 3rem 2rem 1.75rem;
    text-align: left;
  }

  .hero-inner {
    max-width: none;
    margin: 0;
    padding-left: 40px;
    align-items: flex-start;
  }

  .logo { width: 440px; }

  .main { padding: 1.5rem 2rem 3rem; }

  .card {
    max-width: 460px;
    padding: 2.5rem 2.25rem 2.25rem;
    transform: translate(-220px, -10px);
  }

  .card-title { font-size: 1.75rem; }

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

/* ─── Desktop — 1280px+ ──────────────────────────────────────── */
@media (min-width: 1280px) {

  .hero { padding: 3.5rem 2rem 2rem; }

  .logo { width: 400px; }

  .main {
    padding: 2rem 2rem 4rem;
    align-items: center;
  }

  .card {
    max-width: 480px;
    padding: 2.75rem 2.5rem 2.5rem;
  }

  .card-title { font-size: 2rem; }

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

  .footer {
    padding: 1.75rem 2rem 2.25rem;
  }

  .footer-disclaimer { font-size: 0.75rem; }
}
