/* ==========================================================
   Discly — Marketing Site
   Dark Neon aesthetic · matches Discly game's Neon theme
   ========================================================== */

:root {
  /* Color system */
  --bg-deep: #0a0a14;
  --bg-mid: #14122a;
  --bg-soft: #1c1838;
  --bg-card: #16162a;

  --text-primary: #ffffff;
  --text-secondary: #a8a8c4;
  --text-muted: #6a6a8a;

  --accent-magenta: #ff2d92;
  --accent-cyan: #00e5ff;
  --accent-violet: #9b5cff;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Spacing */
  --container-max: 1200px;
  --section-py: clamp(72px, 12vw, 160px);
  --content-py: clamp(48px, 8vw, 96px);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(155, 92, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 80%, rgba(255, 45, 146, 0.10), transparent 70%),
    radial-gradient(ellipse 70% 50% at 0% 90%, rgba(0, 229, 255, 0.08), transparent 70%);
  background-attachment: fixed;
  min-height: 100vh;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(48px, 9vw, 96px); font-weight: 700; letter-spacing: -0.04em; }
h2 { font-size: clamp(32px, 5vw, 56px); }
h3 { font-size: clamp(20px, 2.4vw, 28px); }

p { margin: 0; }

/* Layout primitives */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}

.section { padding-top: var(--section-py); padding-bottom: var(--section-py); }
.section--tight { padding-top: var(--content-py); padding-bottom: var(--content-py); }

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 10, 20, 0.6);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.nav__brand-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent-magenta);
  box-shadow: 0 0 14px rgba(255, 45, 146, 0.7);
  vertical-align: middle;
  transform: translateY(-2px);
}

.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav__links a:hover { color: var(--text-primary); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  padding-top: clamp(72px, 12vw, 140px);
  padding-bottom: clamp(72px, 12vw, 140px);
  text-align: center;
  position: relative;
}

.hero__eyebrow {
  display: inline-block;
  padding: 8px 16px;
  margin-bottom: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.hero__eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse 2.4s ease-in-out infinite;
  vertical-align: middle;
  transform: translateY(-1px);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  background: linear-gradient(180deg, #ffffff 0%, #c8c8e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.hero__tagline {
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 48px;
  font-weight: 400;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero__meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* App Store badge (placeholder) */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: var(--text-primary);
  color: #000;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.app-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.25);
}

.app-store-badge--coming {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  box-shadow: none;
  cursor: default;
}

.app-store-badge--coming:hover {
  transform: none;
  border-color: var(--accent-magenta);
  color: var(--text-primary);
  box-shadow: 0 0 30px rgba(255, 45, 146, 0.2);
}

.app-store-badge svg { flex-shrink: 0; }

/* ==========================================================
   PHONE MOCKUP
   ========================================================== */
.phone-section {
  padding-bottom: var(--section-py);
}

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  background: linear-gradient(135deg, #2a2a4a, #1a1a2a);
  border-radius: 48px;
  box-shadow:
    0 0 0 1px var(--border-strong),
    0 60px 80px -20px rgba(155, 92, 255, 0.4),
    0 30px 60px -30px rgba(255, 45, 146, 0.5);
}

/* Inner screen positioned absolute with inset — bulletproof clipping
   regardless of browser quirks with width/height percentages + aspect-ratio. */
.phone-screen {
  position: absolute;
  inset: 14px;
  background: linear-gradient(135deg, #0a0a14 0%, #1a0a24 50%, #14122a 100%);
  border-radius: 36px;
  overflow: hidden;
}

.phone-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Shift focus away from iOS status bar (top of screenshot) toward gameplay center */
  object-position: 50% 65%;
  display: block;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 30px;
  background: #000;
  border-radius: 18px;
  z-index: 2;
}

.phone-placeholder {
  text-align: center;
  padding: 40px 24px;
}

.phone-placeholder__label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.8;
}

.phone-placeholder__hint {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Disc decoration in placeholder */
.disc-decoration {
  display: inline-block;
  width: 80px;
  height: 80px;
  margin: 24px 0 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-magenta), #c2196e);
  box-shadow:
    0 0 40px rgba(255, 45, 146, 0.6),
    inset -10px -10px 20px rgba(0, 0, 0, 0.3);
  animation: float 4s ease-in-out infinite;
}

.disc-decoration--cyan {
  background: radial-gradient(circle at 30% 30%, var(--accent-cyan), #008fa3);
  box-shadow:
    0 0 40px rgba(0, 229, 255, 0.6),
    inset -10px -10px 20px rgba(0, 0, 0, 0.3);
  animation-delay: 1s;
  margin-left: 16px;
  width: 60px;
  height: 60px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================
   SECTION HEADERS
   ========================================================== */
.section__header {
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 80px);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section__eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section__title {
  margin-bottom: 16px;
}

.section__lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================
   FEATURE GRID
   ========================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-magenta), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -20px rgba(155, 92, 255, 0.25);
}

.feature:hover::before { opacity: 1; }

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(255, 45, 146, 0.15), rgba(0, 229, 255, 0.15));
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: 22px;
}

.feature__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.feature__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================
   "WHAT'S NOT" SECTION
   ========================================================== */
.whatsnot {
  padding: clamp(48px, 8vw, 80px);
  background:
    linear-gradient(135deg, rgba(255, 45, 146, 0.04), rgba(0, 229, 255, 0.04)),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  text-align: center;
}

.whatsnot__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 40px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.whatsnot__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.whatsnot__cross {
  color: var(--accent-magenta);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.whatsnot__footer {
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about__avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-violet));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 40px rgba(155, 92, 255, 0.5);
}

.about__text {
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.about__text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about__signature {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 32px;
  margin-top: 60px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.footer__links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer__links a:hover { color: var(--text-primary); }

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================
   ARTICLE PAGES (Privacy / Support)
   ========================================================== */
.article-hero {
  padding-top: clamp(60px, 10vw, 100px);
  padding-bottom: clamp(40px, 6vw, 60px);
  text-align: center;
}

.article-hero__title {
  margin-bottom: 12px;
}

.article-hero__meta {
  font-size: 14px;
  color: var(--text-muted);
}

.article {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: clamp(72px, 12vw, 120px);
}

.article h2 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.article h2:first-child { margin-top: 0; }

.article h3 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.article p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.article ul {
  margin: 16px 0;
  padding-left: 24px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.article li {
  margin-bottom: 8px;
}

.article a {
  color: var(--accent-cyan);
  border-bottom: 1px solid rgba(0, 229, 255, 0.3);
  transition: border-color 0.2s ease;
}

.article a:hover { border-bottom-color: var(--accent-cyan); }

.article strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Support page specifics */
.support-cta {
  margin: 48px 0;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  text-align: center;
}

.support-cta__email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-violet));
  color: #fff;
  border-radius: 14px;
  font-weight: 600;
  font-size: 17px;
  border-bottom: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 0 30px rgba(155, 92, 255, 0.3);
}

.support-cta__email:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(155, 92, 255, 0.5);
}

.faq {
  margin-top: 60px;
}

.faq__item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.faq__item:last-child { border-bottom: none; }

.faq__q {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.faq__a {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================
   ANIMATIONS — fade in on scroll
   ========================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ==========================================================
   RESPONSIVE TWEAKS
   ========================================================== */
@media (max-width: 640px) {
  .nav__links { gap: 20px; }
  .nav__links a { font-size: 13px; }
  .hero { padding-top: 60px; padding-bottom: 60px; }
  .feature { padding: 24px; }
  .whatsnot { padding: 32px 20px; }
  .footer__links { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up { opacity: 1; transform: none; }
}
