/* ===========================================================
   Crypto Match — shared styles
   =========================================================== */

:root {
  --void:      #05061a;
  --panel:     #0d1030;
  --panel-2:   #131644;
  --line:      #2a2f66;
  --purple:    #9945FF;
  --teal:      #14F1B2;
  --pink:      #DC1FFF;
  --gold:      #F5B94D;
  --ice:       #9FD8FF;
  --text:      #EDEDFA;
  --text-dim:  #9AA0C7;

  --display: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Consolas", "SFMono-Regular", Menlo, monospace;

  --radius: 18px;
}

* { box-sizing: border-box; }

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(153,69,255,0.35), transparent 60%),
    radial-gradient(1000px 600px at 100% 10%, rgba(20,241,178,0.18), transparent 55%),
    var(--void);
  color: var(--text);
  font-family: var(--display);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

/* ---------- background starfield ---------- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 140px 90px, rgba(255,255,255,0.35), transparent),
    radial-gradient(2px 2px at 260px 200px, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 340px 60px, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 400px 260px, rgba(255,255,255,0.4), transparent);
  background-repeat: repeat;
  background-size: 420px 320px;
  opacity: 0.6;
}

/* ---------- layout shell ---------- */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(5,6,26,0.72);
  border-bottom: 1px solid rgba(154,160,199,0.14);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand .mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--void);
  box-shadow: 0 0 18px rgba(20,241,178,0.55);
}

nav.site-nav {
  display: flex;
  gap: 26px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

nav.site-nav a {
  text-decoration: none;
  transition: color 0.2s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(20,241,178,0.08);
  border: 1px solid rgba(20,241,178,0.35);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

h1.headline {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

h1.headline .grad {
  background: linear-gradient(90deg, var(--teal), var(--ice) 45%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 0 0 30px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, var(--teal), var(--purple));
  color: #05061a;
  box-shadow: 0 10px 30px -8px rgba(153,69,255,0.65);
}

.btn-ghost {
  border-color: rgba(154,160,199,0.35);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}

.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.banner-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(154,160,199,0.25);
  box-shadow: 0 30px 70px -25px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02) inset;
}

.banner-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.banner-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5,6,26,0.55));
  pointer-events: none;
}

/* ---------- floating coin grid signature element ---------- */
.coin-field {
  position: relative;
  height: 150px;
  margin: 10px 0 8px;
  overflow: hidden;
}

.coin {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.68rem;
  color: var(--void);
  animation: drift 7s ease-in-out infinite;
  box-shadow: 0 0 24px currentColor;
}

.coin.sol { background: linear-gradient(135deg, var(--teal), var(--purple)); color: var(--teal); }
.coin.btc { background: linear-gradient(135deg, var(--gold), #a9711c); color: var(--gold); }
.coin.eth { background: linear-gradient(135deg, var(--ice), #5f6fe0); color: var(--ice); }
.coin.bnb { background: linear-gradient(135deg, #ffe08a, var(--gold)); color: var(--gold); }
.coin.usdc { background: linear-gradient(135deg, #cfe8ff, var(--ice)); color: var(--ice); }

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
}

/* ---------- sections ---------- */
section { padding: 70px 0; position: relative; }

.section-head { max-width: 60ch; margin-bottom: 40px; }

.section-head .kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 10px;
  display: block;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 12px;
  font-weight: 800;
}

.section-head p { color: var(--text-dim); margin: 0; }

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

.feature-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(154,160,199,0.16);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20,241,178,0.45);
}

.feature-card .icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  font-size: 1.15rem;
  background: rgba(20,241,178,0.1);
  border: 1px solid rgba(20,241,178,0.3);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.03rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ---------- showcase (screenshot + tokens) ---------- */
.showcase {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.phone-frame {
  justify-self: center;
  width: 240px;
  border-radius: 34px;
  border: 6px solid #14172e;
  background: #14172e;
  box-shadow: 0 30px 70px -25px rgba(0,0,0,0.75);
  overflow: hidden;
}

.phone-frame img {
  display: block;
  width: 100%;
}

.token-list { display: grid; gap: 14px; }

.token-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(154,160,199,0.14);
  border-radius: 14px;
  padding: 14px 16px;
}

.token-row .swatch {
  width: 34px; height: 34px; border-radius: 50%;
  flex: none;
}

.token-row strong { font-size: 0.95rem; }
.token-row span { display: block; color: var(--text-dim); font-size: 0.84rem; }

/* ---------- soundtrack widget ---------- */
.sound-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: linear-gradient(120deg, rgba(153,69,255,0.16), rgba(20,241,178,0.08));
  border: 1px solid rgba(154,160,199,0.2);
  border-radius: var(--radius);
  padding: 24px 26px;
  flex-wrap: wrap;
}

.play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  color: var(--void);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 0 22px rgba(20,241,178,0.45);
}

.sound-meta h3 { margin: 0 0 4px; font-size: 1rem; }
.sound-meta p { margin: 0; color: var(--text-dim); font-size: 0.88rem; }

.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  margin-left: auto;
}

.bars span {
  width: 4px;
  background: var(--teal);
  border-radius: 2px;
  animation: bar 1.1s ease-in-out infinite;
  opacity: 0.35;
}

.bars span:nth-child(1){ animation-delay: 0s; }
.bars span:nth-child(2){ animation-delay: 0.15s; }
.bars span:nth-child(3){ animation-delay: 0.3s; }
.bars span:nth-child(4){ animation-delay: 0.45s; }
.bars span:nth-child(5){ animation-delay: 0.6s; }

.bars.playing span { opacity: 1; }

@keyframes bar {
  0%, 100% { height: 5px; }
  50% { height: 22px; }
}

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid rgba(154,160,199,0.14);
  padding: 44px 0 60px;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.88rem;
  max-width: 34ch;
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-links h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 12px;
}

.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }

.footer-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover { color: var(--teal); border-bottom-color: var(--teal); }

.legal-strip {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(154,160,199,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ---------- legal pages ---------- */
.legal-hero {
  padding: 56px 0 30px;
  border-bottom: 1px solid rgba(154,160,199,0.14);
}

.legal-hero .kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 10px;
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin: 0 0 14px;
  font-weight: 800;
}

.legal-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.88rem;
  font-family: var(--mono);
}

.legal-body {
  padding: 46px 0 30px;
  max-width: 760px;
}

.legal-body h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
  color: var(--teal);
}

.legal-body h2:first-of-type { margin-top: 0; }

.legal-body p, .legal-body li {
  color: #CFD3EE;
  font-size: 0.98rem;
}

.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }

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

.legal-body a.mail {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(20,241,178,0.4);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

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

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .showcase { grid-template-columns: 1fr; }
  nav.site-nav { display: none; }
}

@media (max-width: 540px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .sound-card { flex-direction: column; align-items: flex-start; }
  .bars { margin-left: 0; }
}
