/* Landing Page Styles - modern, sleek, minimalist */

/* Reset margins from shared */
.landing-body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  color: var(--text-color);
}

/* Fancy but subtle background */
.bg-layer {
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(13, 110, 253, 0.25), transparent 60%),
              radial-gradient(800px 400px at 10% 110%, rgba(13, 110, 253, 0.15), transparent 60%),
              linear-gradient(180deg, #f9fbff 0%, #f6f8fc 30%, #f8fafc 100%);
  filter: saturate(110%);
  z-index: -1;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.top-nav {
  display: flex;
  gap: 22px;
}

.nav-link {
  text-decoration: none;
  color: rgba(0,0,0,0.7);
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover { 
  color: var(--primary-color);
  background: rgba(13, 110, 253, 0.08);
}

.landing-main {
  display: grid;
  place-items: center;
  padding: 40px 16px 80px;
}

.cta {
  display: grid;
  gap: 32px;
  width: min(560px, 92vw);
}

/* Ensure all CTA items fill the same width */
.cta > * { width: 100%; }

.cta-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 16px;
  padding: 18px 22px;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.18);
  text-decoration: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  position: relative;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  will-change: transform, background-position;
}

/* Text cutout with radiating shadows */
.cta-btn .cta-text {
  color: transparent;
  position: relative;
  display: inline-block;
}

.cta-btn .cta-text::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: white;
  z-index: -1;
  text-shadow:
    /* Soft radiating blue shadows around the text */
    0 0 4px rgba(13, 110, 253, 0.25),
    0 0 8px rgba(13, 110, 253, 0.2),
    0 0 12px rgba(13, 110, 253, 0.15),
    3px 3px 6px rgba(13, 110, 253, 0.2),
    -3px -3px 6px rgba(13, 110, 253, 0.2),
    3px -3px 6px rgba(13, 110, 253, 0.2),
    -3px 3px 6px rgba(13, 110, 253, 0.2);
}

.cta-btn.primary,
.cta-btn.secondary {
  background: transparent;
  border: none;
  box-shadow: 
    0 8px 16px rgba(13, 110, 253, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px) saturate(120%) brightness(110%);
  -webkit-backdrop-filter: blur(20px) saturate(120%) brightness(110%);
  font-weight: 700;
}

.cta-btn.primary:hover,
.cta-btn.secondary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(13, 110, 253, 0.25),
    0 6px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.cta-btn:focus-visible {
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(13, 110, 253, 0.4),
    0 8px 32px rgba(13, 110, 253, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Keep the Pick'em button non-clickable but visually identical */
.cta-btn[disabled] {
  pointer-events: none;
  opacity: 1;
  cursor: default;
}

/* Crisp gradient ring border to avoid janky semi-transparent edges */
.cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px; /* border width */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.2));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cta-btn:hover::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(13, 110, 253, 0.4));
}

/* Subtle moving sheen on hover for a premium feel */
.cta-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0) 60%);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
  border-radius: inherit;
}

.cta-btn:hover::after {
  transform: translateX(100%);
}

/* Pressed state for tactile feedback */
.cta-btn:active {
  transform: translateY(0);
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05)),
    rgba(0, 0, 0, 0.15);
  color: #1a1a1a;
  box-shadow: 
    0 4px 16px rgba(13, 110, 253, 0.2),
    inset 0 2px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Tooltip for disabled Pick'em button */
.tooltip-container {
  position: relative;
  display: block;
  width: 100%;
}

.tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(13, 22, 45, 0.9);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 10;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(13, 22, 45, 0.9) transparent;
}

.tooltip-container:hover .tooltip,
.tooltip-container:focus-within .tooltip,
.tooltip-container.show .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.landing-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 16px;
  color: rgba(0,0,0,0.5);
  font-size: 13px;
}

/* Mobile-first: clean, centered */
@media (min-width: 900px) {
  .landing-header { padding: 28px 44px; }
  .brand-logo { height: 52px; }
  .top-nav { gap: 28px; }
  .cta { gap: 32px; }
  .cta-btn { padding: 22px 26px; }
}

/* Accessibility */
.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;
}


