/* ═══════════════════════════════════════════════════════════════════════════════
   DragSense — AAA Landing Page Stylesheet
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-primary: #08080e;
  --bg-secondary: #0e0e18;
  --bg-card: #111122;
  --bg-card-hover: #161630;
  --border: rgba(108, 99, 255, 0.12);
  --border-hover: rgba(108, 99, 255, 0.28);
  --text-primary: #e8e8f0;
  --text-secondary: #9a9ab0;
  --text-muted: #5a5a72;
  --accent: #6c63ff;
  --accent-glow: rgba(108, 99, 255, 0.25);
  --accent-soft: rgba(108, 99, 255, 0.08);
  --red: #ff4757;
  --green: #2ed573;
  --yellow: #feca57;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════ REVEAL ANIMATIONS ═══════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }
.reveal--delay-3 { transition-delay: 0.36s; }

/* ═══════════════════════════════ BUTTONS ═══════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--sm { padding: 8px 18px; font-size: 13px; }
.btn--lg { padding: 14px 28px; font-size: 15px; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
}
.btn--primary:hover {
  background: #7b73ff;
  box-shadow: 0 0 30px var(--accent-glow), 0 6px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--accent-soft);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.btn--outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* ═══════════════════════════════ NAVIGATION ═══════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.nav.is-scrolled {
  padding: 10px 0;
  background: rgba(8, 8, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { width: 100%; }
.nav__link--play { color: var(--accent); font-weight: 700; }
.nav__link--play:hover { color: #7b73ff; }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════ HERO ═══════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 99, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}
.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -100px;
  right: -100px;
  opacity: 0.12;
}
.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: #ff4757;
  bottom: -50px;
  left: -50px;
  opacity: 0.06;
}

.hero__content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero__title--accent {
  background: linear-gradient(135deg, var(--accent), #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero visual (mock screen) */
.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__screen {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hover);
  background: var(--bg-secondary);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow);
}

.hero__screen-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}
.hero__screen-dots {
  display: flex;
  gap: 6px;
}
.hero__screen-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.hero__screen-dots span:nth-child(1) { background: #ff5f57; }
.hero__screen-dots span:nth-child(2) { background: #febc2e; }
.hero__screen-dots span:nth-child(3) { background: #28c840; }

.hero__screen-title {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero__screen-body {
  position: relative;
  height: 320px;
  background:
    radial-gradient(circle at 50% 50%, rgba(108, 99, 255, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #0a0a14 0%, #08080e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: crosshairPulse 3s ease-in-out infinite;
}
@keyframes crosshairPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero__target {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), rgba(108, 99, 255, 0.3));
  box-shadow: 0 0 20px var(--accent-glow);
  animation: targetFloat 4s ease-in-out infinite;
}
.hero__target--1 { width: 28px; height: 28px; top: 30%; left: 25%; animation-delay: 0s; }
.hero__target--2 { width: 22px; height: 22px; top: 55%; right: 20%; animation-delay: 1.3s; }
.hero__target--3 { width: 18px; height: 18px; bottom: 25%; left: 40%; animation-delay: 2.6s; }

@keyframes targetFloat {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  25% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  75% { transform: scale(1); opacity: 0.9; }
}

.hero__stats-preview {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  gap: 20px;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.hero__stat-value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--green);
}
.hero__stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════ STATS BAR ═══════════════════════════════ */

.stats-bar {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats-bar__number {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 6px;
}

.stats-bar__label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ═══════════════════════════════ SECTION HEADERS ═══════════════════════════════ */

.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════════════════════════════ FEATURES ═══════════════════════════════ */

.features {
  padding: 100px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--card-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-color) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-color);
  margin-bottom: 20px;
}

.feature-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ═══════════════════════════════ GAME MODES ═══════════════════════════════ */

.modes {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.modes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mode-card {
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.mode-card:hover {
  border-color: color-mix(in srgb, var(--mode-color) 40%, transparent);
  background: color-mix(in srgb, var(--mode-color) 4%, var(--bg-card));
  transform: translateY(-3px);
}

.mode-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--mode-color);
}

.mode-card__difficulty {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mode-card__difficulty--medium { background: rgba(254, 202, 87, 0.15); color: #feca57; }
.mode-card__difficulty--hard { background: rgba(255, 71, 87, 0.15); color: #ff4757; }

.mode-card__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.mode-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════ SENSITIVITY FINDER ═══════════════════════════════ */

.sensitivity {
  padding: 100px 0;
}

.sensitivity__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.sensitivity__features {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sensitivity__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Sensitivity card mock */
.sens-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
}

.sens-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.sens-card__tag {
  padding: 4px 12px;
  background: rgba(46, 213, 115, 0.12);
  color: var(--green);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.sens-card__confidence {
  font-size: 12px;
  color: var(--text-muted);
}

.sens-card__result {
  text-align: center;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.sens-card__label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.sens-card__value {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
}

.sens-card__breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.sens-card__metric {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}
.sens-card__bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}
.sens-card__bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 1.5s ease;
}
.sens-card__bar-fill--warn { background: var(--yellow); }

.sens-card__category {
  padding: 14px;
  background: rgba(254, 202, 87, 0.06);
  border: 1px solid rgba(254, 202, 87, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sens-card__cat-badge {
  padding: 4px 10px;
  background: rgba(254, 202, 87, 0.15);
  color: var(--yellow);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.sens-card__cat-text {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ═══════════════════════════════ SUPPORTED GAMES ═══════════════════════════════ */

.games {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.games__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.game-badge {
  padding: 10px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  color: var(--game-color);
  transition: var(--transition);
}
.game-badge:hover {
  border-color: var(--game-color);
  background: color-mix(in srgb, var(--game-color) 8%, var(--bg-card));
  transform: translateY(-2px);
}

/* ═══════════════════════════════ PLAY (GAME EMBED) ═══════════════════════════════ */

.play {
  padding: 100px 0 60px;
}

.play__wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.play__frame-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hover);
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow);
}

.play__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
    var(--bg-secondary);
  z-index: 2;
}

.play__placeholder-inner {
  text-align: center;
}

.play__placeholder-title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.play__placeholder-desc {
  font-size: 15px;
  color: var(--text-muted);
}

.play__iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: var(--bg-primary);
}

.play__controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.play__ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.play__ctrl-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

/* ═══════════════════════════════ FOOTER ═══════════════════════════════ */

.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 260px;
}

.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer__col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: var(--transition);
}
.footer__col a:hover { color: var(--text-primary); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.footer__socials {
  display: flex;
  gap: 16px;
}
.footer__socials a {
  color: var(--text-muted);
  transition: var(--transition);
}
.footer__socials a:hover { color: var(--accent); }

/* ═══════════════════════════════ RESPONSIVE ═══════════════════════════════ */

@media (max-width: 1024px) {
  .hero__content { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle { margin: 0 auto 32px; }
  .hero__ctas { justify-content: center; }
  .hero__visual { order: -1; margin-bottom: 40px; }
  .hero__screen { max-width: 400px; }

  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .modes__grid { grid-template-columns: repeat(3, 1fr); }
  .sensitivity__layout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 8, 14, 0.95);
    backdrop-filter: blur(16px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .hero { padding: 100px 24px 60px; min-height: auto; }
  .hero__screen-body { height: 240px; }

  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .features__grid { grid-template-columns: 1fr; }
  .modes__grid { grid-template-columns: repeat(2, 1fr); }

  .play__frame-container { aspect-ratio: 4 / 3; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .modes__grid { grid-template-columns: 1fr; }
  .stats-bar__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 32px; }
}
