/* SEXCOIN — original stylesheet (not derived from Lovable compiled CSS) */
:root {
  --bg: oklch(18% 0.008 275);
  --fg: oklch(93% 0.003 265);
  --border: oklch(32% 0.008 275);
  --dim: oklch(55% 0.006 265);
  --faint: oklch(38% 0.006 265);
  --player: oklch(91% 0.003 265);
  --font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
button:disabled { cursor: default; opacity: 0.7; }

/* CRT / grain overlays */
.crt-overlay,
.grain-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
}
.crt-overlay {
  z-index: 50;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    rgba(255, 255, 255, 0.024) 0 1px,
    transparent 1px 3px
  );
}
.grain-overlay {
  z-index: 49;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.1s steps(2, end) infinite;
}
.scanline {
  pointer-events: none;
  position: fixed;
  left: 0;
  right: 0;
  height: 18vh;
  z-index: 48;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.035),
    transparent
  );
  animation: scan-pass 7s linear infinite;
  opacity: 0.6;
}

@keyframes grain-shift {
  0% { transform: translate(0); }
  50% { transform: translate(-2%, 1%); }
  100% { transform: translate(1%, -2%); }
}
@keyframes scan-pass {
  from { transform: translateY(-10vh); }
  to { transform: translateY(110vh); }
}
@keyframes fade-beat {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in-soft {
  to { opacity: 1; }
}
@keyframes dash-flow {
  to { stroke-dashoffset: -24px; }
}

.fade-beat {
  opacity: 0;
  animation: fade-beat 0.9s ease-out forwards;
}
.fade-in-soft {
  opacity: 0;
  animation: fade-in-soft 0.9s ease-out forwards;
}
.dash-flow {
  animation: dash-flow 1.6s linear infinite;
}

/* Layout */
.wrap {
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
}
@media (min-width: 640px) {
  .wrap { width: min(100% - 3rem, 64rem); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px dashed var(--border);
  background: color-mix(in oklab, var(--bg) 95%, transparent);
  backdrop-filter: blur(8px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}
.brand {
  color: var(--fg);
  font-weight: 500;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
.term-link { color: var(--dim); transition: color 0.12s linear; }
.term-link:hover,
.term-link[aria-current="page"] { color: var(--fg); }
.menu-btn {
  min-height: 44px;
  padding: 0 0.25rem;
  color: var(--dim);
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}
.menu-btn[aria-expanded="true"] { color: var(--fg); }
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 0 1rem;
  border-bottom: 1px dashed var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}
.mobile-menu.open { display: flex; }
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.85; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border: 1px dashed var(--border);
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  transition: border-color 0.12s, color 0.12s;
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--fg);
  color: var(--fg);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Typography helpers */
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.fg { color: var(--fg); }
.tracking-wide { letter-spacing: 0.2em; }
.tracking-wider { letter-spacing: 0.25em; }
.uppercase { text-transform: uppercase; }

.hero {
  padding-top: 4rem;
}
@media (min-width: 640px) {
  .hero { padding-top: 6rem; }
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero h1 .line { display: block; }
.hero h1 .line + .line { margin-top: 0.5rem; }

.lead {
  margin: 2.5rem 0 0;
  max-width: 36rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.75;
}
.sublead {
  margin: 0.5rem 0 0;
  font-size: 13px;
  color: var(--dim);
}

/* Figures grid */
.fig-row {
  margin: 3rem auto 0;
  display: grid;
  width: 100%;
  max-width: 800px;
  grid-template-columns: 1fr 0.16fr 1fr;
  align-items: end;
  gap: 0 5%;
}
.fig-arrow {
  align-self: center;
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--dim);
}
.player-svg {
  width: 100%;
  color: var(--player);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-dasharray: 7 5;
  stroke-linecap: round;
}
.player-svg.sm { width: 11rem; margin-inline: auto; }

.divider {
  display: block;
  margin: 5rem auto 0;
  width: 0.75rem;
  height: 4rem;
  color: var(--faint);
}

section { margin-top: 1.5rem; }
.scroll-mt { scroll-margin-top: 6rem; }

.section-title {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-kicker {
  margin: 1.5rem 0 0;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  letter-spacing: -0.02em;
}
.copy {
  margin-top: 2rem;
  max-width: 42rem;
  display: grid;
  gap: 1.25rem;
  font-size: 14px;
  line-height: 1.75;
  color: var(--dim);
}
.copy .fg { color: var(--fg); }

.cards {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) {
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}
.card {
  border: 1px dashed var(--border);
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .card { padding: 2rem; }
}
.card.active {
  border-style: solid;
  border-color: var(--fg);
}
.card .label {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
}
.card .title {
  margin: 0.75rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}
.card .desc {
  margin: 0.5rem 0 0;
  font-size: 13px;
}
.card .meta {
  margin: 1.5rem 0 0;
  font-size: 11px;
  letter-spacing: 0.2em;
}

.center { text-align: center; }
.finale {
  margin-top: 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.finale .big {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
.wordmark {
  margin-top: 3rem;
  width: 100%;
  max-width: 42rem;
  user-select: none;
}

/* Lore */
.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--faint);
}
.lore-block {
  margin-top: 4rem;
  max-width: 42rem;
  display: grid;
  gap: 1.5rem;
  font-size: 15px;
  line-height: 2;
  color: var(--dim);
}
.lore-block.right { margin-left: auto; }
.lore-enter {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 1.875rem);
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* FAQ */
.faq-list {
  margin: 3rem 0 0;
  max-width: 42rem;
  display: grid;
  gap: 0;
  border-top: 1px dashed var(--border);
}
.faq-item {
  border-bottom: 1px dashed var(--border);
  padding: 1.5rem 0;
}
.faq-item dt {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.faq-item dd {
  margin: 0.75rem 0 0;
  color: var(--dim);
  line-height: 1.75;
}

/* Footer */
.site-footer {
  margin-top: 6rem;
  border-top: 1px dashed var(--border);
  padding: 3rem 0;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--faint);
}
.site-footer .inner { display: grid; gap: 1.5rem; }
.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.site-footer .legal {
  max-width: 42rem;
  line-height: 1.6;
  letter-spacing: normal;
  text-transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .fade-beat, .fade-in-soft, .dash-flow, .grain-overlay, .scanline {
    animation: none !important;
  }
  .fade-beat, .fade-in-soft { opacity: 1; transform: none; }
}
