/* WDHC Athlete Portal · Landing page v3 */

:root {
  --gold: #D4AF37;
  --gold-dim: #8a702a;
  --gold-glow: rgba(212, 175, 55, 0.22);
  --bronze: #cd7f32;
  --bg: #050505;
  --surface: #0a0a0a;
  --card: #111;
  --border: #222;
  --text: #fff;
  --text-dim: #d0d0d0;
  --muted: #a8a8a8;
  --nav-h: 72px;
  --mobile-cta-h: 58px;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Roboto Mono', monospace;
}

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

body {
  background: var(--bg);
  background-image: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* Nav: shared wdhc-nav.css only */

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--bronze) 100%);
  color: #000; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 10px 20px; border-radius: 8px; text-decoration: none; border: 1px solid rgba(205, 127, 50, 0.5);
  font-size: 1rem; cursor: pointer; border: none; font-family: var(--font-body);
  display: inline-block; transition: box-shadow 0.2s ease;
}
.btn-primary:hover { box-shadow: 0 0 16px var(--gold-glow); }
.btn-primary:disabled { opacity: 0.65; cursor: wait; }

/* Hero */
.hero {
  padding: 72px 24px 64px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold) 82%, #c9a848 96%, var(--bronze) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-lead-intro {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 440px;
  margin-bottom: 14px;
  line-height: 1.6;
}

.hero-lead-list {
  max-width: 440px;
  margin: 0 0 14px 1.1rem;
  padding: 0;
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-lead-list li {
  margin-bottom: 6px;
}

.hero-lead-list li::marker {
  color: var(--gold);
}

.hero-lead-foot {
  font-size: 1rem;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.signin-card {
  max-width: 420px;
  padding: 26px 24px 22px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(212, 175, 55, 0.07) 0%, transparent 55%),
    linear-gradient(165deg, rgba(14, 14, 16, 0.96) 0%, rgba(8, 8, 10, 0.98) 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.signin-card-header { margin-bottom: 18px; }

.signin-card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 6px;
}

.signin-card-sub {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.signin-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}

.signin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.signin-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #c8c8c8;
}

.signin-input {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.signin-input::placeholder { color: rgba(255, 255, 255, 0.28); }
.signin-input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

.signin-submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px 18px;
  font-size: 1.02rem;
}

.signin-first-hang {
  margin-top: 14px;
  font-size: 0.96rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.signin-first-hang a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.signin-first-hang a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signin-note { font-size: 0.94rem; color: var(--muted); line-height: 1.55; }

.signin-fine-print {
  margin-top: 14px;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
}

.signin-error {
  display: block;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(204, 0, 0, 0.45);
  background: rgba(204, 0, 0, 0.12);
  color: #ffb4b4;
  font-size: 0.92rem;
  line-height: 1.45;
}
.signin-error[hidden] { display: none; }

.success-card {
  display: none;
  max-width: 460px;
  margin-top: 20px;
  padding: 22px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.06);
}
.success-card.visible { display: block; }
.success-card h3 {
  font-family: var(--font-head);
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.success-card p { color: var(--text-dim); font-size: 0.95rem; }

.success-spam-tip {
  margin-top: 10px;
  font-size: 0.9rem !important;
  color: var(--muted) !important;
}

.success-resend {
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.success-resend:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.65);
}

.success-resend:disabled {
  opacity: 0.55;
  cursor: wait;
}

.signedin-card {
  max-width: 420px;
  padding: 26px 24px 22px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(212, 175, 55, 0.1) 0%, transparent 55%),
    linear-gradient(165deg, rgba(14, 14, 16, 0.96) 0%, rgba(8, 8, 10, 0.98) 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.signedin-card[hidden] { display: none; }
.signedin-card h3 {
  font-family: var(--font-head);
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.signedin-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 18px;
}
.signedin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.signedin-signout {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
.signedin-signout:hover { color: var(--text-dim); }

/* Hero card column */
.hero-card-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.preview-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b8b8b8;
  text-align: center;
  margin-bottom: 0;
}

.preview-example {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.75);
  text-align: center;
  margin-top: 6px;
}

.hero-dashboard-full {
  margin-top: 48px;
  width: 100%;
}

.dashboard-preview-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b8b8b8;
  margin-bottom: 16px;
  text-align: center;
}

/* Athlete card */
.athlete-card {
  position: relative;
  border-radius: 16px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(212, 175, 55, 0.04) inset;
}

.athlete-card-video {
  position: relative;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  aspect-ratio: 16 / 9;
  background: #000;
  z-index: 1;
}

.athlete-card-video.is-portrait {
  aspect-ratio: 9 / 16;
  max-height: 420px;
  margin-left: auto;
  margin-right: auto;
}

.athlete-card-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #000;
}

.athlete-card-video .athlete-card-video-bg {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(20px) brightness(0.42) saturate(1.1);
  transform: scale(1.08);
  pointer-events: none;
  z-index: 0;
}

.athlete-card-video .athlete-card-video-main {
  position: relative;
  z-index: 1;
  object-fit: contain;
}

.athlete-card-video.is-landscape video {
  object-fit: cover;
  object-position: center 35%;
}

.athlete-card-video-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.45);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.athlete-card-inner {
  background:
    radial-gradient(ellipse 80% 60% at 85% 0%, rgba(212, 175, 55, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(205, 127, 50, 0.04) 0%, transparent 50%),
    linear-gradient(165deg, rgba(18, 18, 20, 0.88) 0%, rgba(8, 8, 10, 0.94) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 15px;
  padding: 26px 28px 22px;
  position: relative;
  overflow: hidden;
}

.athlete-card-inner::before {
  content: '';
  position: absolute;
  top: -30%; right: -15%;
  width: 55%; height: 70%;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.06) 0%, transparent 68%);
  pointer-events: none;
}

.athlete-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  pointer-events: none;
  border-radius: inherit;
}

.athlete-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.athlete-card-brand img {
  height: 52px;
  width: auto;
  max-width: min(100%, 200px);
  opacity: 0.95;
}

.athlete-card-header .tier-badge {
  flex-shrink: 0;
}

.athlete-card-body {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.athlete-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e1a16 0%, #121212 100%);
  border: 2px solid rgba(212, 175, 55, 0.35);
  box-shadow:
    0 0 0 3px rgba(212, 175, 55, 0.08),
    0 0 24px rgba(212, 175, 55, 0.18),
    0 0 48px rgba(205, 127, 50, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.athlete-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.athlete-avatar-initials {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold, #d4af37);
  letter-spacing: 1px;
}

.athlete-identity h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.athlete-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 1rem;
  color: #d8d8d8;
  line-height: 1.5;
}

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font-weight: 600;
}

.athlete-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 0;
  border-top: none;
  position: relative;
  z-index: 1;
}

.ac-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex: 1 1 auto;
  min-width: 0;
}

.ac-stat-label {
  display: inline;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #b8b8b8;
  margin-bottom: 0;
  white-space: nowrap;
}

.ac-stat-value {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-left: auto;
}

.ac-stat-value.small { font-size: 1.05rem; color: #eee; }
.ac-stat-value--gold {
  color: var(--gold);
  font-size: 1.2rem;
  text-shadow: 0 0 16px rgba(212, 175, 55, 0.2);
}

.athlete-card-footer {
  margin-top: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  position: relative;
  z-index: 1;
}

/* Dashboard preview screenshot */
.dashboard-preview {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(212, 175, 55, 0.06) inset;
  background: var(--surface);
}

.dashboard-preview--full {
  border-radius: 14px;
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(212, 175, 55, 0.08) inset;
}

.dashboard-preview-img {
  display: block;
  width: 100%;
  height: auto;
}

.dashboard-preview--callouts {
  position: relative;
}

.dashboard-callouts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dashboard-callout {
  position: absolute;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.dashboard-callout::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.dashboard-callout--share {
  left: 4%;
  top: 34%;
}

.dashboard-callout--share::before {
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
}

.dashboard-callout--gripage {
  left: 36%;
  top: 48%;
}

.dashboard-callout--gripage::before {
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
}

.dashboard-callout--streak {
  left: 20%;
  top: 66%;
}

.dashboard-callout--streak::before {
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
}

/* Features */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 72px;
  width: 100%;
}

.features h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 12px;
}

.features-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portal-faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 56px;
  width: 100%;
}

.portal-faq h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 18px 16px;
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.6;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 8px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
  border-color: rgba(212, 175, 55, 0.75);
  background: rgba(212, 175, 55, 0.06);
}

.portal-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.portal-cta-strip {
  text-align: center;
  padding: 40px 20px 56px;
}

.portal-cta-lead {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

footer {
  margin-top: auto;
  padding: 40px 20px 60px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: #0a0a0a;
}
.footer-logo {
  display: block; height: 72px; width: auto; max-width: 280px; margin: 0 auto 20px;
}
.footer-copy { color: #444; font-family: var(--font-mono); font-size: 0.8rem; }
.footer-links { margin-top: 12px; }
.footer-links a { color: #b5b5b5; text-decoration: none; margin: 0 10px; font-size: 0.85rem; }
.footer-links a:hover { color: var(--gold); }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-card-col { order: -1; position: static; }
  .signin-card { max-width: 100%; }
  .hero-dashboard-full { margin-top: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .dashboard-callouts { display: none; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .dashboard-callout {
    font-size: 0.6rem;
    padding: 5px 10px;
  }
}