/* ── Variables (matching dogeusmaximus.com palette) ── */
:root {
  --bg: #0a0510;
  --bg-alt: #0f0818;
  --bg-card: rgba(201, 169, 110, 0.04);
  --gold: #c9a96e;
  --gold-light: #f5d280;
  --gold-dim: rgba(201, 169, 110, 0.5);
  --gold-border: rgba(201, 169, 110, 0.25);
  --crimson: #8b1a1a;
  --crimson-deep: #5c0f0f;
  --ivory: #f5f0e8;
  --ivory-dim: rgba(245, 240, 232, 0.65);
  --font-heading: "Cinzel", "Times New Roman", serif;
  --font-body: "JetBrains Mono", monospace;
  --radius: 12px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Loading Screen ── */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.loading-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(201, 169, 110, 0.15) 0%,
    rgba(201, 169, 110, 0.05) 30%,
    transparent 60%
  );
  pointer-events: none;
}

.loading-corner {
  position: absolute;
  color: rgba(201, 169, 110, 0.15);
  font-size: 1.5rem;
}

.loading-corner--tl { top: 20px; left: 20px; }
.loading-corner--tr { top: 20px; right: 20px; }
.loading-corner--bl { bottom: 20px; left: 20px; }
.loading-corner--br { bottom: 20px; right: 20px; }

.loading-pfp {
  position: relative;
  width: 130px;
  height: 130px;
  animation: pfpEnter 0.6s ease-out forwards;
}

.loading-pfp-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.15);
  animation: spin 12s linear infinite;
}

.loading-pfp-glow {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.15);
  filter: blur(20px);
  animation: glowPulse 1.5s ease-in-out infinite;
}

.loading-pfp img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(201, 169, 110, 0.6);
  box-shadow: 0 0 50px rgba(201, 169, 110, 0.35);
}

.loading-title {
  margin-top: 1.75rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(201, 169, 110, 0.4);
  opacity: 0;
  animation: textEnter 0.5s ease-out 0.3s forwards;
}

.loading-subtitle {
  margin-top: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  letter-spacing: 0.25em;
  color: var(--gold-dim);
  font-style: italic;
  opacity: 0;
  animation: textEnter 0.5s ease-out 0.8s forwards;
}

.loading-bar {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: rgba(201, 169, 110, 0.1);
  border-radius: 1px;
  overflow: hidden;
  opacity: 0;
  animation: textEnter 0.3s ease-out 0.5s forwards;
}

.loading-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 1px;
  transition: width 0.05s linear;
  box-shadow: 0 0 8px rgba(201, 169, 110, 0.5);
}

/* ── Scroll Progress ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  z-index: 51;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
}

.nav--scrolled {
  background: rgba(10, 5, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1.25rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201, 169, 110, 0.6);
  transition: border-color var(--transition);
}

.nav-brand:hover .nav-logo {
  border-color: var(--gold);
}

.nav-brand span {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px rgba(201, 169, 110, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ivory-dim);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  transition: width var(--transition);
}

.nav-links a:not(.nav-cta):hover {
  color: var(--gold);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.5rem 1.125rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg) !important;
  font-weight: 600 !important;
  border-radius: 6px;
  transition: transform var(--transition), box-shadow var(--transition) !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.35);
}

.nav-cta::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: var(--transition);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201, 169, 110, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.btn-secondary:hover {
  background: rgba(201, 169, 110, 0.08);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
}

.btn-outline:hover {
  background: rgba(201, 169, 110, 0.1);
  border-color: var(--gold);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(139, 26, 26, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(201, 169, 110, 0.12) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(10, 5, 16, 0.45) 0%, rgba(10, 5, 16, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
}

.hero-logo-ring {
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.12);
  animation: spin 20s linear infinite;
}

.hero-logo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.12);
  filter: blur(30px);
  animation: glowPulse 3s ease-in-out infinite;
}

.hero-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(201, 169, 110, 0.5);
  box-shadow: 0 0 60px rgba(201, 169, 110, 0.25);
}

.hero-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.35em;
  color: var(--gold-dim);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(201, 169, 110, 0.3);
  line-height: 1.1;
}

.hero-symbol {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  margin: 0.75rem 0 1.25rem;
}

.hero-tagline {
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 0.875rem;
  color: var(--ivory-dim);
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.badge {
  padding: 0.375rem 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  background: rgba(201, 169, 110, 0.06);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint svg {
  color: var(--gold);
}

/* ── Marquee ── */
.marquee {
  background: linear-gradient(90deg, var(--crimson-deep), var(--crimson), var(--crimson-deep));
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  padding: 0.75rem 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  padding-right: 2rem;
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
  font-size: 1.125rem;
  opacity: 0.6;
}

.divider-star {
  font-size: 0.75rem;
}

.section-label {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  text-align: center;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  font-size: 0.875rem;
  color: var(--ivory-dim);
  max-width: 560px;
  margin: 0 auto 3rem;
  font-style: italic;
}

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.about-visual {
  text-align: center;
}

.about-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  box-shadow: 0 0 40px rgba(201, 169, 110, 0.1);
}

.about-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 169, 110, 0.15);
  margin: 8px;
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
  z-index: 1;
}

.about-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.about-ornament {
  margin-top: 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
}

.about-quote {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
}

.about-quote p {
  font-size: 0.875rem;
  color: var(--ivory-dim);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-quote p:first-child {
  font-size: 1rem;
  color: var(--ivory);
}

.about-signature {
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* ── How to Buy ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  border-color: rgba(201, 169, 110, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(201, 169, 110, 0.08);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.step-card p {
  font-size: 0.75rem;
  color: var(--ivory-dim);
  line-height: 1.7;
}

.contract-box {
  margin-top: 3rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(201, 169, 110, 0.04);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.contract-label {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.contract-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contract-row code {
  font-size: 0.75rem;
  color: var(--gold-light);
  word-break: break-all;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--gold-border);
}

.btn-copy {
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.btn-copy:hover {
  background: rgba(201, 169, 110, 0.1);
  border-color: var(--gold);
}

/* ── Chart ── */
.chart-wrap {
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 40px rgba(201, 169, 110, 0.06);
}

.chart-wrap iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* ── Join Us ── */
.section-join {
  padding-top: 0;
  padding-bottom: 5rem;
}

.join-banner {
  position: relative;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.join-banner img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 30%;
}

.join-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(10, 5, 16, 0.6) 75%,
    var(--bg) 100%
  );
}

.join-content {
  position: relative;
  z-index: 1;
  margin-top: -2rem;
}

.join-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.join-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.join-card:hover {
  border-color: rgba(201, 169, 110, 0.4);
  transform: translateY(-4px);
}

.join-card--featured {
  border-color: rgba(201, 169, 110, 0.45);
  background: rgba(201, 169, 110, 0.06);
  box-shadow: 0 0 40px rgba(201, 169, 110, 0.08);
}

.join-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.join-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.join-card p {
  font-size: 0.75rem;
  color: var(--ivory-dim);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--gold-border);
  padding: 3rem 0 2rem;
  background: var(--bg-alt);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-border);
}

.footer-brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--ivory-dim);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--gold);
  transition: color var(--transition);
}

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

.footer-disclaimer {
  font-size: 0.625rem;
  color: rgba(245, 240, 232, 0.35);
  max-width: 480px;
  margin: 0 auto 0.75rem;
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.625rem;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
}

/* ── Fade-in animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Keyframes ── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes pfpEnter {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes particleDrift {
  from { transform: translateY(0); }
  to { transform: translateY(-20px); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-visual {
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 5, 16, 0.97);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--gold-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-links--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .join-cards {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .chart-wrap iframe {
    height: 480px;
  }

  .join-banner img {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}
