*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: rgba(245,183,49,0.35); color: #fff8e8; }
::-moz-selection { background: rgba(245,183,49,0.35); color: #fff8e8; }

:root {
  --gold:       #F5B731;
  --gold-light: #FFD664;
  --gold-dk:    #D4881A;
  --white:      #ffffff;
  --muted:      rgba(255,255,255,.55);
}

html, body {
  min-height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background: linear-gradient(to bottom, #2a2d8f 0%, #141660 42%, #0a0c3a 100%);
  color: #fff;
}

/* ── STARS ── */
#stars-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}

/* ── SCREENS ── */
.screen {
  position: relative; z-index: 1;
  min-height: 100dvh;
  display: flex; flex-direction: column;
}
#s-land { align-items: center; justify-content: flex-start; gap: 48px; padding: 64px 28px 48px; text-align: center; min-height: auto; }
#s-form { display: none; }
#s-ty   { display: none; align-items: center; justify-content: center; padding: 64px 28px 48px; text-align: center; }

/* ── BACK BTN ── */
.back-btn {
  position: absolute; top: 20px; left: 20px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  transition: background .2s;
}
.back-btn:hover { background: rgba(255,255,255,.18); }

/* ── ORB ── */
#land-mid { position: relative; z-index: 1; }
.orb-wrap {
  width: 200px; height: 200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.orb-glow {
  position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,183,49,.2) 0%, transparent 70%);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 0%,100%{opacity:.6} 50%{opacity:1} }
.orb-ring-outer {
  position: absolute; width: 190px; height: 190px; border-radius: 50%;
  border: 1px dashed rgba(245,183,49,.3); animation: spin-slow 30s linear infinite;
}
.orb-ring-inner {
  position: absolute; width: 148px; height: 148px; border-radius: 50%;
  border: 1px solid rgba(245,183,49,.2);
}
@keyframes spin-slow { to{transform:rotate(360deg)} }
.orb {
  width: 120px; height: 120px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 40% 36%,#fff4c2 0%,#f5c842 26%,#d4881a 55%,#a05a0a 78%,transparent 100%);
  box-shadow: 0 8px 32px rgba(200,140,0,.4), 0 0 60px rgba(245,183,49,.2);
  animation: orb-float 5s ease-in-out infinite;
}
.orb::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.72) 0%, transparent 38%);
}
@keyframes orb-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ── HERO ── */
.hero { margin-top: 4px; }
.hero-eyebrow {
  display: inline-flex; font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  color: var(--gold-light); background: rgba(245,183,49,.12); border: 1px solid rgba(245,183,49,.3);
  border-radius: 50px; padding: 5px 16px; margin-bottom: 14px;
}
.hero-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2.8rem,11vw,4rem); font-weight: 700; color: #fff; line-height: 1.1; letter-spacing: -.02em;
}
.hero-sub {
  font-size: 1rem; color: var(--muted); line-height: 1.7; max-width: 300px; margin: 12px auto 0;
}

/* ── CTA ── */
.cta-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-btn {
  width: 100%; max-width: 380px; padding: 18px; border-radius: 50px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dk));
  color: #1a1008; font-size: 1rem; font-weight: 700; font-family: 'Inter', sans-serif;
  border: none; cursor: pointer; box-shadow: 0 4px 24px rgba(200,140,0,.35);
  transition: transform .15s, filter .2s;
}
.cta-btn:hover { filter: brightness(1.08); transform: scale(1.02); }
.cta-btn:active { transform: scale(.98); }
.cta-note { font-size: .95rem; color: var(--muted); letter-spacing: .02em; }

/* ── FORM HEADER ── */
.form-header { padding: 48px 28px 28px; text-align: center; }
.form-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.6rem; font-weight: 700; color: #fff; letter-spacing: -.02em; margin-bottom: 10px;
}
.form-sub { font-size: 1.1rem; color: var(--muted); line-height: 1.65; max-width: 320px; margin: 0 auto; }

/* ── FORM CARD ── */
.form-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px; overflow: hidden; backdrop-filter: blur(12px); margin: 0 16px;
}
.pane-inner { max-width: 480px; margin: 0 auto; width: 100%; padding: 32px 28px 52px; }

/* ── FIELDS ── */
.field { margin-bottom: 22px; }
.field label {
  display: block; font-size: 1.05rem; font-weight: 600;
  color: var(--gold-light); margin-bottom: 10px;
}
.field input {
  width: 100%; padding: 18px 20px;
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 14px; color: #fff;
  font-size: 1.2rem; font-family: 'Inter', sans-serif; outline: none;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none;
}
.field input::placeholder { color: rgba(255,255,255,.28); font-style: italic; }
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,183,49,.15); }
.field input.err { border-color: #f87171; }
.err-msg { font-size: .75rem; color: #f87171; margin-top: 6px; display: none; }

.email-note {
  font-size: 1.05rem; color: rgba(255,255,255,.85); line-height: 1.65;
  border-left: 2px solid rgba(245,183,49,.5); padding-left: 14px;
  margin-top: 8px; font-style: italic;
}

/* ── FREE BADGE ── */
.free-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,183,49,.12); border: 1px solid rgba(245,183,49,.3);
  border-radius: 50px; padding: 8px 18px; margin: 24px 0 0;
  font-size: .88rem; font-weight: 700; color: var(--gold-light); letter-spacing: .04em;
}

/* ── SUBMIT ── */
.submit-wrap { margin-top: 32px; }
.submit-btn {
  width: 100%; padding: 20px; border-radius: 50px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dk));
  color: #1a1008; font-size: 1.2rem; font-weight: 700; letter-spacing: .01em;
  font-family: 'Inter', sans-serif; border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(200,140,0,.3);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: filter .2s, transform .15s, opacity .2s;
}
.submit-btn:hover { filter: brightness(1.06); transform: scale(1.01); }
.submit-btn:active { transform: scale(.98); }
.submit-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(26,16,8,.2); border-top-color: #1a1008;
  border-radius: 50%; animation: spin .7s linear infinite; display: none;
}
@keyframes spin { to{transform:rotate(360deg)} }

/* ── PILL TABS ── */
.tab-toggle {
  display: flex; margin: 28px auto 0;
  width: fit-content; max-width: calc(100% - 20px);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px; padding: 4px;
}
.tab {
  flex: 1; padding: 12px 14px; border-radius: 50px; border: none; cursor: pointer;
  font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  font-family: 'Inter', sans-serif; transition: all .2s;
  background: transparent; color: rgba(255,255,255,.45);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  white-space: nowrap;
}
.tab.active { background: #ffffff; color: #1a1008; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.tab.active .tab-icon { color: #c47000; }
.tab.active .tab-icon svg { stroke: #c47000; }
.tab-icon { display: flex; align-items: center; transition: color .2s; }

/* ── GUIDE ── */
.guide-intro { font-size: 1.05rem; color: rgba(255,255,255,.8); line-height: 1.75; margin-bottom: 28px; }
.guide-steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: rgba(245,183,49,.12); border: 1px solid rgba(245,183,49,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: var(--gold-light);
}
.step-body { flex: 1; padding-bottom: 2px; }
.step-title { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.step-desc { font-size: 1rem; color: rgba(255,255,255,.55); line-height: 1.6; }
.step-desc a { color: var(--gold-light); text-underline-offset: 3px; text-decoration: underline; }
.step-desc em { color: var(--gold-light); font-style: normal; }
.step-desc strong { color: #fff; font-weight: 500; }
.step-line { width: 1px; height: 18px; background: rgba(255,255,255,.1); margin: 4px 0 4px 14px; }

/* ── DOWNLOAD BTN ── */
.download-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 20px; border-radius: 50px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dk));
  color: #1a1008; font-size: 1.05rem; font-weight: 700; font-family: 'Inter', sans-serif;
  text-decoration: none; margin-top: 28px;
  box-shadow: 0 4px 16px rgba(200,140,0,.28);
  transition: filter .2s, transform .15s;
}
.download-btn:hover { filter: brightness(1.06); transform: scale(1.01); }
.download-btn:active { transform: scale(.98); }

/* ── THANK YOU ── */
.ty-inner { max-width: 440px; width: 100%; }
.ty-check {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(245,183,49,.15); border: 1.5px solid rgba(245,183,49,.35);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
  animation: scale-in .5s cubic-bezier(.175,.885,.32,1.275) .1s both;
}
@keyframes scale-in { from{opacity:0;transform:scale(.7)} to{opacity:1;transform:scale(1)} }
@keyframes draw { to{stroke-dashoffset:0} }
.ty-eyebrow {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 10px;
}
.ty-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem,8vw,2.8rem); font-weight: 700; color: #fff;
  margin-bottom: 12px; line-height: 1.15;
}
.ty-rule { width: 36px; height: 3px; background: var(--gold); margin: 0 auto 16px; border-radius: 2px; }
.ty-sub { font-size: .95rem; color: var(--muted); line-height: 1.7; max-width: 300px; margin: 0 auto 24px; }
.ty-email {
  display: inline-block; background: rgba(245,183,49,.12); border: 1px solid rgba(245,183,49,.3);
  border-radius: 50px; padding: 8px 18px; margin-bottom: 36px;
  font-size: .78rem; color: var(--gold-light);
}

/* ── HOW TO USE ── */
.how-section { padding: 40px 28px 80px; }
.how-inner { max-width: 480px; margin: 0 auto; }
.section-label {
  display: flex; align-items: center; gap: 12px;
  font-size: .65rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 32px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: rgba(245,183,49,.18); }
.how-steps { display: flex; flex-direction: column; gap: 36px; }
.how-step { display: flex; flex-direction: column; gap: 14px; }
.how-img-wrap {
  width: 100%; border-radius: 20px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.1);
}
.how-img-wrap img { width: 100%; height: auto; display: block; }
.how-step-body { }
.how-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(245,183,49,.12); border: 1px solid rgba(245,183,49,.3);
  font-size: .68rem; font-weight: 700; color: var(--gold-light); margin-bottom: 4px;
}
.how-step-title { font-size: 1.15rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.how-step-desc { font-size: 1.05rem; color: rgba(255,255,255,.55); line-height: 1.65; }
.how-step-desc strong { color: #fff; font-weight: 500; }
.how-step-desc em { color: var(--gold-light); font-style: normal; }
.how-note {
  font-size: .88rem; color: rgba(255,255,255,.45); line-height: 1.7;
  margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08);
  font-style: italic;
}
.how-note a { color: var(--gold); text-underline-offset: 3px; text-decoration: none; }

@media (min-width: 480px) {
  #s-land { padding: 72px 36px 56px; }
  #s-ty   { padding: 72px 36px 56px; }
  .form-header { padding: 52px 36px 28px; }
  .pane-inner { padding: 32px 36px 52px; }
  .form-card { margin: 0 20px; }
  .how-section { padding: 40px 36px 60px; }
}

/* ══════════════ SITE HEADER ══════════════ */
.site-header {
  position: relative; z-index: 100;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
}
.site-header-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.site-logo { display: flex; align-items: center; }
.site-logo img { height: 30px; width: auto; display: block; }
.site-nav {
  display: none;
  align-items: center; gap: 26px;
}
.site-nav a {
  color: var(--muted); text-decoration: none;
  font-size: 1rem; font-weight: 600; letter-spacing: .02em;
  transition: color .2s;
}
.site-nav a:hover { color: var(--gold-light); }
.site-nav-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.site-mobile-nav {
  display: none; flex-direction: column;
  background: rgba(20,22,96,.9); border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 6px 20px 16px; backdrop-filter: blur(12px);
}
.site-mobile-nav.open { display: flex; }
.site-mobile-nav a {
  color: var(--muted); text-decoration: none;
  font-size: 1rem; font-weight: 600;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-mobile-nav a:last-child { border-bottom: none; }
.site-mobile-nav a:hover { color: var(--gold-light); }

@media (min-width: 860px) {
  .site-nav { display: flex; }
  .site-nav-toggle { display: none; }
}

/* ══════════════ SITE FOOTER ══════════════ */
.site-footer {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 40px 24px 28px;
}
.site-footer-inner { max-width: 480px; margin: 0 auto; text-align: center; }
.footer-app-icon { width: 75px; height: 75px; border-radius: 12px; margin-bottom: 14px; }
.footer-app-text {
  font-size: 1rem; color: var(--muted); line-height: 1.65;
  max-width: 340px; margin: 0 auto 20px;
}
.footer-app-text strong { color: #fff; }
.footer-badges { display: flex; justify-content: center; gap: 12px; margin-bottom: 28px; }
.footer-badges img { height: 40px; width: auto; display: block; }
.footer-social { display: flex; justify-content: center; gap: 20px; margin-bottom: 24px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .9rem; text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}
.footer-social a:hover {
  color: var(--gold-light); border-color: rgba(245,183,49,.35); background: rgba(245,183,49,.1);
}
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px;
  margin-bottom: 16px;
}
.footer-links a {
  font-size: .68rem; color: var(--muted); text-decoration: none;
  letter-spacing: .04em; white-space: nowrap;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-copy {
  font-size: .85rem; color: rgba(255,255,255,.4); letter-spacing: .06em;
}

@media (min-width: 480px) {
  .footer-links { gap: 8px 18px; }
  .footer-links a { font-size: .95rem; white-space: normal; }
}

@media (min-width: 860px) {
  .site-footer-inner { max-width: 700px; }
  .footer-app-text { max-width: 560px; }
}
