/* Marathon Era CHS Ltd — Light Theme with 2s Synchronized Blur & Disclaimer */

:root {
  --primary:        #8b151b;
  --primary-hover:  #701115;
  --primary-tint:   #fcf4f4;
  --primary-light:  #fbe8e9;
  --accent:         #8b151b;
  --accent-gold:    #c59b27;

  --bg-page:        #f8fafc;
  --bg-surface:     #ffffff;
  --bg-muted:       #f1f5f9;

  --text-main:      #0f172a;
  --text-muted:     #334155;
  --text-light:     #64748b;

  --border:         #cbd5e1;
  --border-strong:  #94a3b8;
  --success:        #16a34a;

  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-pill:    999px;

  --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display:   'Sora', sans-serif;
  --ease-smooth:    cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Full-Page Backdrop: Starts Sharp, Blurs Over 2s ---------- */
.bg-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.02);
  filter: blur(0px);
  animation: blur-in 2s var(--ease-smooth) forwards;
  will-change: filter, transform;
}

@keyframes blur-in {
  0% {
    filter: blur(0px);
    transform: scale(1.02);
  }
  100% {
    filter: blur(10px);
    transform: scale(1.06);
  }
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 110% at 50% 45%, rgba(248, 250, 252, 0.45) 0%, rgba(248, 250, 252, 0.78) 100%);
  opacity: 0;
  animation: overlay-in 2s var(--ease-smooth) forwards;
  will-change: opacity;
}

@keyframes overlay-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 5vw, 56px);
}

/* ---------- Header & Content: Appears Over 2s ---------- */
header {
  display: flex;
  align-items: center;
  opacity: 0;
  animation: content-rise 1.6s var(--ease-smooth) 0.3s forwards;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.brand-sep {
  color: var(--text-light);
  font-size: 14px;
}

.brand-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---------- Main Hero ---------- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  padding: 40px 0;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(139, 21, 27, 0.25);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: content-rise 1.6s var(--ease-smooth) 0.4s forwards;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-main);
  max-width: 15ch;
  margin: 0;
  opacity: 0;
  animation: content-rise 1.6s var(--ease-smooth) 0.5s forwards;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

h1 .accent {
  color: var(--primary);
}

p.lede {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0;
  font-weight: 500;
  opacity: 0;
  animation: content-rise 1.6s var(--ease-smooth) 0.7s forwards;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.85);
}

.disclaimer {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.8);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(203, 213, 225, 0.95);
  margin-top: -12px;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: content-rise 1.6s var(--ease-smooth) 0.8s forwards;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
}

.disclaimer strong {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Call to Action Group */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: content-rise 1.6s var(--ease-smooth) 0.9s forwards;
  position: relative;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(139, 21, 27, 0.3);
  min-inline-size: 24px;
  min-block-size: 24px;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -4px rgba(139, 21, 27, 0.4);
  text-decoration: none;
}

.btn-primary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.copy-box {
  position: relative;
  display: inline-flex;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  min-inline-size: 24px;
  min-block-size: 24px;
}

.btn-copy:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-copy:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.btn-copy .icon-check {
  display: none;
  color: var(--success);
}

.btn-copy[data-copied] .icon-copy {
  display: none;
}

.btn-copy[data-copied] .icon-check {
  display: inline-block;
}

.btn-copy[data-copied] {
  border-color: var(--success);
  color: var(--success);
  background: #ecfdf5;
}

.toast-bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text-main);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.toast-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--text-main) transparent transparent transparent;
}

.btn-copy[data-copied] + .toast-bubble,
.btn-copy[data-failed] + .toast-bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Content Entrance Keyframe */
@keyframes content-rise {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Footer ---------- */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-light);
  border-top: 1px solid rgba(203, 213, 225, 0.7);
  padding-top: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: content-rise 1.6s var(--ease-smooth) 0.9s forwards;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-legal .reg {
  color: var(--text-muted);
}

.footer-address {
  color: var(--text-muted);
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

footer a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

footer a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.dot-sep {
  color: var(--border-strong);
}

.domain {
  color: var(--text-muted);
}

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

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 24px 20px;
  }
  .cta {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .copy-box, .btn-copy {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-backdrop-img {
    animation: none;
    filter: blur(10px);
    transform: scale(1.06);
  }
  .bg-overlay {
    animation: none;
    opacity: 1;
  }
  header, .eyebrow, h1, p.lede, .disclaimer, .cta, footer {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
