/* ============================================================
   SIGNET — Product Page
   Neon Orb aesthetic — blue/red swirl from the logo
   ============================================================ */

:root {
  --bg: #08090c;
  --bg-subtle: #0e1017;
  --accent: #7b5cff;
  --accent-dim: rgba(123, 92, 255, 0.15);
  --accent-glow: rgba(123, 92, 255, 0.3);
  --neon-blue: #4499ff;
  --neon-red: #e8334a;
  --red: #cc3333;
  --blue: #3366cc;
  --text-primary: #e8eaed;
  --text-secondary: rgba(232, 234, 237, 0.55);
  --text-dim: rgba(232, 234, 237, 0.25);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 9999;
}

/* ---- Back Navigation ---- */
.back-nav {
  position: relative;
  z-index: 10;
  padding: 24px 32px;
}

.back-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.back-link:hover {
  color: var(--accent);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  text-align: center;
  padding: 60px 24px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 40% 40%, rgba(68, 153, 255, 0.25) 0%, transparent 50%),
              radial-gradient(circle at 60% 60%, rgba(232, 51, 74, 0.2) 0%, transparent 50%),
              radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  opacity: 0.5;
  pointer-events: none;
  animation: heroGlowPulse 4s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.08); }
}

.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 30px rgba(68, 153, 255, 0.3)) drop-shadow(0 0 60px rgba(232, 51, 74, 0.15));
  animation: fadeSlideUp 0.5s ease both, logoFloat 5s ease-in-out infinite 0.5s;
}

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

.hero-badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  animation: fadeSlideUp 0.6s ease both;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 10vw, 7rem);
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 60px var(--accent-glow), 0 0 120px rgba(123, 92, 255, 0.1);
  animation: fadeSlideUp 0.6s ease 0.1s both;
}

.hero-tagline {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  animation: fadeSlideUp 0.6s ease 0.2s both;
}

.hero-subtitle {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
  animation: fadeSlideUp 0.6s ease 0.3s both;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Section Headings ---- */
.section-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

/* ---- Demo Section ---- */
.demo-section {
  padding: 40px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Phone Frame ---- */
.phone-frame {
  position: relative;
  width: 260px;
  height: 520px;
  border-radius: 36px;
  background: #1a1a1e;
  padding: 8px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px var(--accent-dim);
  animation: fadeSlideUp 0.6s ease 0.4s both;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #1a1a1e;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-notch::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a2a30;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ---- Player Cards ---- */
.player-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: flex-basis 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.player-1 {
  background: var(--red);
  flex-basis: 50%;
  transform: rotate(180deg);
}

.player-2 {
  background: var(--blue);
  flex-basis: 50%;
}

/* Divider */
.player-divider {
  height: 2px;
  flex-shrink: 0;
  border-top: 2px dashed rgba(255, 255, 255, 0.35);
}

/* Life total */
.life-total {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: #fff;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  line-height: 1;
  padding: 8px 16px;
  border-radius: 12px;
  position: relative;
}

.player-1 .life-total {
  background: rgba(204, 51, 51, 0.6);
}

.player-2 .life-total {
  background: rgba(51, 102, 204, 0.6);
}

/* Tap zones */
.tap-zone {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tap-zone:active {
  background: rgba(255, 255, 255, 0.08);
}

.tap-up {
  top: 0;
}

.tap-down {
  bottom: 0;
}

.chevron {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s, transform 0.2s;
  pointer-events: none;
}

.tap-up .chevron {
  position: absolute;
  top: 12px;
}

.tap-down .chevron {
  position: absolute;
  bottom: 12px;
}

.tap-zone:hover .chevron {
  color: rgba(255, 255, 255, 0.5);
  transform: scale(1.15);
}

/* ---- Reset Button ---- */
.reset-btn {
  margin-top: 24px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 28px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  animation: fadeSlideUp 0.6s ease 0.5s both;
}

.reset-btn:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(123, 92, 255, 0.05);
}

/* ---- Screenshots Section ---- */
.screenshots-section {
  padding: 60px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.screenshots-track {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.screenshot-phone {
  position: relative;
  width: 200px;
  background: #1a1a1e;
  border-radius: 28px;
  padding: 6px;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.06),
    0 16px 48px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.screenshot-phone:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 0 0 1.5px rgba(123, 92, 255, 0.15),
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 40px var(--accent-dim);
}

.screenshot-phone:nth-child(2) {
  transform: translateY(20px);
}

.screenshot-phone:nth-child(2):hover {
  transform: translateY(14px) scale(1.03);
}

.screenshot-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: #1a1a1e;
  border-radius: 0 0 12px 12px;
  z-index: 10;
}

.screenshot-phone img {
  width: 100%;
  display: block;
  border-radius: 22px;
}

/* ---- Features Section ---- */
.features-section {
  padding: 60px 24px 60px;
  max-width: 900px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-subtle);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  color: var(--accent);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---- Tech Section ---- */
.tech-section {
  padding: 20px 24px 60px;
  text-align: center;
}

.tech-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.tech-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.privacy-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.privacy-link:hover {
  color: var(--accent);
}

/* ---- Life change flash ---- */
@keyframes lifeFlash {
  0% { opacity: 0.3; }
  100% { opacity: 0; }
}

.life-flash {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
  animation: lifeFlash 0.3s ease-out forwards;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 700px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 360px;
    margin: 0 auto;
  }

  .hero {
    padding: 40px 20px 60px;
  }

  .hero-logo {
    width: 110px;
    height: 110px;
    margin-bottom: 20px;
  }

  .screenshots-section {
    padding: 60px 16px;
  }

  .screenshots-track {
    gap: 16px;
    flex-direction: column;
    align-items: center;
  }

  .screenshot-phone {
    width: 200px;
    border-radius: 28px;
    padding: 6px;
  }

  .screenshot-phone:nth-child(2) {
    transform: none;
  }

  .screenshot-phone:nth-child(2):hover {
    transform: translateY(-6px) scale(1.03);
  }

  .section-desc {
    font-size: 0.85rem;
    padding: 0 8px;
  }
}

@media (max-width: 420px) {
  .phone-frame {
    width: 240px;
    height: 480px;
    border-radius: 32px;
  }

  .phone-screen {
    border-radius: 24px;
  }

  .phone-notch {
    width: 84px;
    height: 20px;
    border-radius: 0 0 12px 12px;
  }

  .life-total {
    font-size: 2.6rem;
  }

  .back-nav {
    padding: 16px 20px;
  }

  .hero {
    padding: 32px 16px 50px;
  }

  .hero-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
  }

  .feature-card {
    padding: 22px 18px;
  }

  .features-section {
    padding: 40px 16px;
  }

  .tech-section {
    padding: 16px 16px 48px;
  }
}
