/* ============================================================
   RESPONSIVE DESIGN SYSTEM
   Mobile-first · Tablet (640px) · Desktop (1024px) · XL (1440px)
   ============================================================ */

:root {
  --bg:         #0a0a0a;
  --surface:    #111111;
  --gold:       #D4AF37;
  --gold-dim:   #8B6914;
  --gold-glow:  rgba(212, 175, 55, 0.15);
  --green-ping: #22c55e;
  --text:       #F5F0E8;
  --muted:      rgba(245, 240, 232, 0.45);

  /* ── Mobile base (320–639px) ── */
  --font-2xs:   0.6875rem;   /* 11px */
  --font-xs:    0.8125rem;   /* 13px */
  --font-sm:    0.9375rem;   /* 15px */
  --font-base:  1rem;        /* 16px */
  --font-md:    1.0625rem;   /* 17px */
  --font-lg:    1.1875rem;   /* 19px */
  --font-xl:    1.375rem;    /* 22px */
  --font-hero:  2.375rem;    /* 38px */
  --font-hero-sub: 1.625rem; /* 26px */
  --font-footer: 0.6875rem;  /* 11px */

  --section-px: 1.25rem;
  --section-py: 2rem;
  --section-pt: 1rem;
  --content-max: 100%;
  --card-width:  min(340px, 92vw);
  --card-height: calc(var(--card-width) * 1.47);
  --site-max:    100%;
  --stage-gap:   0;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  font-family: "DM Sans", sans-serif;
  font-size: var(--font-base);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-main {
  position: relative;
  z-index: 1;
  max-width: var(--site-max);
  margin-inline: auto;
  padding-top: 0;
}

/* ── Site header & hamburger nav ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem var(--section-px);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.site-logo {
  font-size: var(--font-md);
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.site-logo:hover {
  opacity: 0.85;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  cursor: pointer;
}

.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(280px, 85vw);
  height: 100vh;
  padding: 5rem 1.5rem 2rem;
  background: rgba(12, 12, 12, 0.98);
  border-left: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 101;
}

.site-nav.open {
  transform: translateX(0);
}

.site-nav a {
  display: block;
  padding: 0.875rem 0.5rem;
  font-size: var(--font-sm);
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 48px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

.site-main:not(.legal-page) {
  padding-top: 4.25rem;
}

/* Particles background — fixed layer, never affects document flow */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  border: none;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.font-serif-elegant {
  font-family: "Cormorant Garamond", serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Site shell ── */
.landing-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--stage-gap);
}

/* ── Hero ── */
.hero-section {
  width: 100%;
  max-width: var(--content-max);
  padding: var(--section-pt) var(--section-px) 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-breadcrumb {
  font-size: var(--font-2xs);
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gold-dim);
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.hero-badge-text {
  font-size: var(--font-2xs);
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1.4;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-ping);
  flex-shrink: 0;
}

.hero-title {
  font-size: var(--font-hero);
  line-height: 1.1;
  text-align: center;
  margin-bottom: 0.75rem;
}

.hero-title-sub {
  font-size: var(--font-hero-sub);
  margin-top: 0.35em;
  opacity: 0.9;
}

.hero-desc {
  font-size: var(--font-sm);
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
  max-width: 36em;
  margin-bottom: 0;
}

/* ── Card section ── */
.card-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.75rem var(--section-px) var(--section-py);
}

#card-container {
  position: relative;
  width: var(--card-width);
  height: var(--card-height);
  border-radius: clamp(14px, 1.5vw, 20px);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.28),
    0 12px 48px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(212, 175, 55, 0.1);
  background: linear-gradient(145deg, #141414 0%, #0a0a0a 50%, #111111 100%);
  overflow: hidden;
  container-type: inline-size;
  container-name: card;
}

#card-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.card-glow {
  background: radial-gradient(ellipse at center, var(--gold-glow) 0%, transparent 70%);
  transition: opacity 0.1s ease;
  z-index: -1;
}

.card-glow.active {
  opacity: 1 !important;
}

.ping-badge {
  position: absolute;
  top: clamp(1rem, 3%, 1.75rem);
  left: clamp(1rem, 3%, 1.75rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-xs);
  letter-spacing: 0.14em;
  color: var(--gold);
  z-index: 20;
}

.ping-dot {
  width: clamp(7px, 1vw, 10px);
  height: clamp(7px, 1vw, 10px);
  border-radius: 50%;
  background: var(--green-ping);
  animation: pingPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ── Hover notice ── */
.hover-notice {
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin: clamp(0.75rem, 2vw, 1.25rem);
}

.hover-notice.visible {
  opacity: 1 !important;
  transform: translateY(0);
  will-change: transform, opacity;
}

.hover-notice.visible:not(.hidden) {
  display: flex !important;
}

.notice-icon {
  font-size: var(--font-xl);
  color: var(--gold);
}

.notice-title {
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}

.notice-body {
  font-size: var(--font-sm);
  text-align: center;
  color: var(--text);
  opacity: 0.9;
  padding: 0 0.5rem;
  line-height: 1.6;
}

.notice-emphasis {
  color: var(--gold);
  font-size: var(--font-lg);
  font-weight: 700;
  letter-spacing: 0.06em;
  display: inline-block;
  margin-top: 0.25rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.45);
  padding-bottom: 0.125rem;
}

.notice-btn {
  font-size: var(--font-sm);
  padding: 0.875rem 1.5rem;
  min-height: 48px;
  min-width: 48px;
}

.notice-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.notice-btn:hover .btn-arrow {
  transform: translateX(4px);
}

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

.form-overlay.hidden,
.hover-notice.hidden {
  display: none !important;
}

/* ── Form overlay ── */
.form-overlay {
  opacity: 0;
  background: rgba(10, 10, 10, 0.93);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2rem);
  gap: clamp(0.875rem, 2vw, 1.125rem);
}

.form-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.form-overlay.active:not(.hidden) {
  display: flex !important;
}

.form-overlay.active .form-input,
.form-overlay.active .form-select,
.form-overlay.active .form-submit-btn {
  will-change: transform;
}

.form-title {
  font-size: var(--font-xl);
  color: var(--gold);
  text-align: center;
}

.form-subtitle {
  font-size: var(--font-xs);
  letter-spacing: 0.14em;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
}

.form-label {
  font-size: var(--font-xs);
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.form-input,
.form-select {
  font-size: var(--font-base);
  min-height: 48px;
  padding: 0.875rem 1rem;
}

.form-select option {
  background: var(--surface);
  color: var(--text);
}

.select-arrow {
  font-size: var(--font-xs);
}

.form-submit-btn {
  position: relative;
  overflow: hidden;
  font-size: var(--font-sm);
  min-height: 52px;
  padding: 0.875rem 1rem;
  letter-spacing: 0.12em;
}

.form-submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: shimmerSweep 2.5s ease-in-out infinite;
}

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

.form-submit-btn:disabled::before {
  animation: none;
}

/* ── Form inside card (3rd flip) — sized to fit the box ── */
#card-container .form-overlay {
  padding: clamp(0.625rem, 3.5cqw, 1rem);
  gap: clamp(0.35rem, 1.8cqw, 0.5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
}

#card-container .form-title {
  font-size: clamp(0.9375rem, 5.2cqw, 1.1875rem);
  line-height: 1.15;
  margin-bottom: 0.2rem;
}

#card-container .form-subtitle {
  font-size: clamp(0.5625rem, 2.65cqw, 0.6875rem);
  letter-spacing: 0.1em;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

#card-container .form-label {
  font-size: clamp(0.5625rem, 2.5cqw, 0.6875rem);
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}

#card-container #lead-form {
  gap: clamp(0.35rem, 1.8cqw, 0.5rem);
}

#card-container .form-input,
#card-container .form-select {
  font-size: clamp(0.6875rem, 3.4cqw, 0.8125rem);
  min-height: clamp(34px, 10.5cqw, 42px);
  padding: clamp(0.35rem, 1.8cqw, 0.5rem) clamp(0.5rem, 2.4cqw, 0.625rem);
  line-height: 1.3;
}

#card-container .form-submit-btn {
  font-size: clamp(0.625rem, 3cqw, 0.75rem);
  min-height: clamp(36px, 10.5cqw, 42px);
  padding: clamp(0.35rem, 1.8cqw, 0.5rem);
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

#card-container .form-field.relative .select-arrow {
  font-size: clamp(0.5rem, 1.8cqw, 0.625rem);
  right: clamp(0.5rem, 2.4cqw, 0.625rem);
  bottom: clamp(0.45rem, 2.2cqw, 0.55rem);
}

@keyframes shimmerSweep {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

.card-cta {
  margin-top: clamp(1rem, 2vh, 1.75rem);
  font-size: var(--font-xs);
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
  max-width: var(--card-width);
  line-height: 1.5;
}

/* ── Footer ── */
.footer-section {
  padding: var(--section-py) var(--section-px);
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.footer-legal,
.footer-contact,
.footer-year {
  font-size: var(--font-footer);
  line-height: 1.7;
  opacity: 0.5;
  max-width: 52rem;
  margin-inline: auto;
}

.footer-contact {
  margin-top: 1rem;
  font-size: var(--font-sm);
}

.footer-year {
  margin-top: 0.75rem;
}

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

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-legal a,
.disclosures-content a,
.company-block a {
  color: var(--gold);
  text-decoration: none;
}

.footer-legal a:hover,
.disclosures-content a:hover,
.company-block a:hover {
  text-decoration: underline;
}

/* ── Legal / contact pages ── */
.legal-page {
  padding-top: 5rem;
  min-height: 100vh;
}

.legal-content {
  max-width: 42rem;
  margin: 0 auto;
  padding: var(--section-py) var(--section-px);
}

.legal-title {
  font-size: var(--font-xl);
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.legal-intro {
  font-size: var(--font-sm);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.legal-heading {
  font-size: var(--font-md);
  color: var(--gold);
  margin: 2rem 0 1rem;
  letter-spacing: 0.04em;
}

.disclosures-content p {
  font-size: var(--font-footer);
  line-height: 1.75;
  color: rgba(245, 240, 232, 0.75);
  margin-bottom: 1rem;
}

.legal-contact-note {
  margin-top: 2.5rem;
  font-size: var(--font-sm);
  color: var(--muted);
}

.legal-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  overflow: hidden;
}

.lang-toggle__option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  font-size: var(--font-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-toggle__option + .lang-toggle__option {
  border-left: 1px solid rgba(212, 175, 55, 0.25);
}

.lang-toggle__option[aria-current="true"] {
  background: var(--gold);
  color: #0a0a0a;
}

.lang-toggle__option:not([aria-current="true"]):hover {
  color: var(--gold);
}

.company-block {
  font-style: normal;
  font-size: var(--font-sm);
  line-height: 1.8;
  color: var(--text);
  margin: 1.5rem 0 2rem;
}

.company-block--footer {
  margin-bottom: 1.25rem;
  opacity: 0.7;
  font-size: var(--font-footer);
}

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

.aweber-form-status {
  margin-top: 0.75rem;
  font-size: var(--font-sm);
  line-height: 1.5;
  color: var(--muted);
}

.aweber-form-status--pending {
  color: var(--muted);
}

.aweber-form-status--success {
  color: var(--green-ping);
}

.aweber-form-status--error {
  color: #f87171;
}

#card-container .aweber-form-status {
  font-size: clamp(0.5625rem, 2.5cqw, 0.6875rem);
  margin-top: 0.35rem;
  text-align: center;
}

#card-canvas:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 12px;
}

@keyframes pingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================================
   TABLET — 640px+
   ============================================================ */
@media (min-width: 640px) {
  :root {
    --font-2xs:   0.75rem;     /* 12px */
    --font-xs:    0.875rem;    /* 14px */
    --font-sm:    1rem;        /* 16px */
    --font-base:  1.0625rem;   /* 17px */
    --font-md:    1.1875rem;   /* 19px */
    --font-lg:    1.3125rem;   /* 21px */
    --font-xl:    1.625rem;    /* 26px */
    --font-hero:  3rem;        /* 48px */
    --font-hero-sub: 2rem;     /* 32px */
    --font-footer: 0.8125rem;  /* 13px */

    --section-px: 2rem;
    --section-py: 2.5rem;
    --section-pt: 1.25rem;
    --card-width:  min(380px, 55vw);
    --card-height: calc(var(--card-width) * 1.47);
  }

  .hero-badge {
    padding: 0.625rem 1.25rem;
  }

  .hero-badge-dot {
    width: 8px;
    height: 8px;
  }
}

/* ============================================================
   DESKTOP — 1024px+
   Side-by-side hero + card layout
   ============================================================ */
@media (min-width: 1024px) {
  :root {
    --font-2xs:   0.8125rem;   /* 13px */
    --font-xs:    0.9375rem;   /* 15px */
    --font-sm:    1.125rem;    /* 18px */
    --font-base:  1.1875rem;   /* 19px */
    --font-md:    1.3125rem;   /* 21px */
    --font-lg:    1.5rem;      /* 24px */
    --font-xl:    2rem;        /* 32px */
    --font-hero:  4rem;        /* 64px */
    --font-hero-sub: 2.625rem; /* 42px */
    --font-footer: 0.875rem;   /* 14px */

    --section-px: 3rem;
    --section-py: 3rem;
    --section-pt: 1.5rem;
    --content-max: 34rem;
    --card-width:  420px;
    --card-height: 618px;
    --site-max:    1280px;
    --stage-gap:   3rem;
  }

  .landing-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: var(--stage-gap);
    padding: var(--section-pt) var(--section-px) 2rem;
  }

  .hero-section {
    align-items: flex-start;
    text-align: left;
    padding: 0;
    max-width: none;
  }

  .hero-breadcrumb,
  .hero-title,
  .hero-desc {
    text-align: left;
  }

  .hero-title {
    line-height: 1.05;
  }

  .hero-desc {
    font-size: var(--font-base);
    max-width: 28em;
  }

  .card-section {
    padding: 0;
  }

  .card-cta {
    max-width: var(--card-width);
  }

  .footer-section {
    padding: 2.5rem var(--section-px) 3rem;
  }
}

/* ============================================================
   LARGE DESKTOP — 1440px+
   ============================================================ */
@media (min-width: 1440px) {
  :root {
    --font-2xs:   0.875rem;    /* 14px */
    --font-xs:    1rem;        /* 16px */
    --font-sm:    1.25rem;     /* 20px */
    --font-base:  1.3125rem;   /* 21px */
    --font-md:    1.4375rem;   /* 23px */
    --font-lg:    1.625rem;    /* 26px */
    --font-xl:    2.25rem;     /* 36px */
    --font-hero:  4.75rem;     /* 76px */
    --font-hero-sub: 3rem;     /* 48px */
    --font-footer: 0.9375rem;  /* 15px */

    --section-px: 4rem;
    --section-pt: 1.75rem;
    --content-max: 38rem;
    --card-width:  480px;
    --card-height: 706px;
    --site-max:    1440px;
    --stage-gap:   4rem;
  }

  .landing-stage {
    padding: var(--section-pt) var(--section-px) 2.5rem;
  }

  .ping-badge {
    font-size: var(--font-sm);
  }

  .form-input,
  .form-select {
    min-height: 52px;
    padding: 1rem 1.125rem;
  }

  .form-submit-btn {
    min-height: 56px;
    font-size: var(--font-base);
  }
}

/* ============================================================
   ULTRA-WIDE — 1920px+
   ============================================================ */
@media (min-width: 1920px) {
  :root {
    --font-hero:  5.25rem;     /* 84px */
    --font-hero-sub: 3.25rem;  /* 52px */
    --card-width:  520px;
    --card-height: 764px;
    --site-max:    1600px;
    --stage-gap:   5rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .form-submit-btn::before {
    animation: none;
  }

  .hover-notice {
    transition: none;
  }
}

/* Keep card form compact on large screens (override global form scale) */
@media (min-width: 1440px) {
  #card-container .form-input,
  #card-container .form-select {
    min-height: clamp(34px, 10.5cqw, 42px);
    padding: clamp(0.35rem, 1.8cqw, 0.5rem) clamp(0.5rem, 2.4cqw, 0.625rem);
    font-size: clamp(0.6875rem, 3.4cqw, 0.8125rem);
  }

  #card-container .form-submit-btn {
    min-height: clamp(36px, 10.5cqw, 42px);
    font-size: clamp(0.625rem, 3cqw, 0.75rem);
  }
}
