/* ==========================================================================
   PairMat — "Siyah Kadife" site stylesheet
   Black-velvet stage: matte black everywhere, color appears only as light
   (glow / gradient rim / tint), never as a flat fill. See DESIGN.md.
   ========================================================================== */

:root {
  /* base palette */
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-2: #232326;
  --text: #ffffff;
  --text-muted: #8e8e93;
  --border: rgba(142, 142, 147, 0.16);

  /* the two-accent system */
  --primary: #ff4458;       /* action */
  --premium: #e6c15c;       /* monetization / gold */
  --success: #27ae7b;
  --danger: #cc5c5c;

  /* jewel tier colors — status only, used here purely as the hero's
     signature "aura ring", never as UI chrome */
  --tier-silver: #c8cedA;
  --tier-gold: #e6c15c;
  --tier-emerald: #4de3a0;
  --tier-diamond: #7fdbff;
  --tier-elite: #c77dff;

  /* type */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius-card: 16px;
  --radius-pill: 999px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- focus & motion baseline ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.wordmark .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--tier-silver),
    var(--tier-gold),
    var(--tier-emerald),
    var(--tier-diamond),
    var(--tier-elite),
    var(--tier-silver)
  );
  box-shadow: 0 0 10px rgba(199, 125, 255, 0.55);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a:hover { color: var(--text); }

.nav-links .back {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

/* ---------- hero ---------- */

.hero {
  padding: 96px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.aura-ring {
  --size: 236px;
  width: var(--size);
  height: var(--size);
  margin: 0 auto 40px;
  position: relative;
  border-radius: 50%;
}

.aura-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--tier-silver),
    var(--tier-gold),
    var(--tier-emerald),
    var(--tier-diamond),
    var(--tier-elite),
    var(--tier-silver)
  );
  filter: blur(0.3px);
  animation: spin 16s linear infinite;
}

.aura-ring::after {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.aura-ring .glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(199, 125, 255, 0.28) 0%,
    rgba(127, 219, 255, 0.14) 35%,
    transparent 70%
  );
  animation: breathe 3.6s ease-in-out infinite;
  z-index: -1;
}

.aura-ring .mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

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

@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  animation: twinkle 2.4s ease-in-out infinite;
}

.sparkle::before, .sparkle::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 2px;
}

.sparkle::before { width: 100%; height: 1.5px; top: 50%; transform: translateY(-50%); }
.sparkle::after { height: 100%; width: 1.5px; left: 50%; transform: translateX(-50%); }

.sparkle.s1 { top: 6%; left: 18%; animation-delay: 0s; }
.sparkle.s2 { top: 68%; left: 4%; animation-delay: 0.6s; }
.sparkle.s3 { top: 22%; left: 88%; animation-delay: 1.2s; }
.sparkle.s4 { top: 78%; left: 82%; animation-delay: 1.8s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.hero p.lede {
  max-width: 480px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 36px;
}

.badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(255, 68, 88, 0.7);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.store-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  cursor: default;
}

.store-pill .icon { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.7; }

.store-pill .label { text-align: left; line-height: 1.25; }

.store-pill .label .small { display: block; font-size: 11px; color: var(--text-muted); }
.store-pill .label .big { display: block; font-size: 14px; color: var(--text); font-weight: 600; }

/* ---------- features ---------- */

.features {
  padding: 40px 0 100px;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px 24px;
}

.feature-card .icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(255, 68, 88, 0.1);
}

.feature-card .icon-badge svg { width: 20px; height: 20px; }

.feature-card:nth-child(1) .icon-badge { background: rgba(127, 219, 255, 0.1); }
.feature-card:nth-child(2) .icon-badge { background: rgba(230, 193, 92, 0.12); }
.feature-card:nth-child(3) .icon-badge { background: rgba(199, 125, 255, 0.12); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-muted);
}

footer .foot-links {
  display: flex;
  gap: 22px;
}

footer .foot-links a:hover { color: var(--text); }

/* ---------- legal pages ---------- */

.legal {
  padding: 56px 0 100px;
}

.legal .header {
  margin-bottom: 44px;
}

.legal .header .eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 42px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

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

.legal-body {
  max-width: 720px;
}

.legal-body section { margin-bottom: 36px; }

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 12px;
}

.legal-body p, .legal-body li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  margin: 0 0 12px;
}

.legal-body ul { padding-left: 20px; margin: 0 0 12px; }

.legal-body strong { color: var(--text); }

.legal-body a.inline-link {
  color: var(--tier-diamond);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-body .note {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .nav-links { gap: 18px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
