/* Laforge Studios — NanaPay brand tokens (apps/website/index.html) */
:root {
  --ink: #080606;
  --ink-2: #0f0d0b;
  --ink-3: #171311;
  --line: rgba(168, 166, 164, 0.16);
  --line-2: rgba(168, 166, 164, 0.28);
  --fg: #fffcfb;
  --fg-dim: #a8a6a4;
  --fg-muted: #7d7977;
  --accent: #eb6414;
  --accent-2: #ef8343;
  --mint: #42ad4f;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--fg);
  font: 16px/1.6 var(--body);
  padding: 0 16px;
  overflow-x: hidden;
}

/* Film grain, so the black is never flat */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 50;
}

::selection { background: var(--accent); color: var(--ink); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

.page {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 0 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 18px/1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.mark i {
  width: 10px; height: 10px; border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px 2px rgba(235, 100, 20, 0.55);
  transform: rotate(45deg);
}
.where { color: var(--fg-muted); }
.where b { color: var(--mint); font-weight: 400; }

/* Hero */
.hero { position: relative; padding: 112px 0 72px; }
#sparks {
  position: absolute;
  left: 50%; top: -32px;
  width: 100vw; height: calc(100% + 32px);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.hero > *:not(canvas) { position: relative; z-index: 1; }
.eyebrow { color: var(--accent); margin-bottom: 22px; }
.hero h1 {
  font: 700 clamp(42px, 8vw, 104px)/0.96 var(--display);
  letter-spacing: -0.035em;
}
.hero h1 .hot {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(235, 100, 20, 0.45);
}
.hero h1 .cold { color: var(--fg-muted); }
.hero p { margin-top: 28px; max-width: 36em; color: var(--fg-dim); font-size: 17px; }

/* Section headings */
.label { display: flex; align-items: center; gap: 12px; color: var(--fg-muted); margin-bottom: 18px; }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Product card */
.product {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(235, 100, 20, 0.14), transparent 55%),
    var(--ink-2);
  padding: clamp(22px, 4vw, 40px);
  overflow: hidden;
}
.product .top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.product .logo { height: 30px; width: auto; display: block; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(66, 173, 79, 0.4);
  color: var(--mint);
  border-radius: 99px;
  padding: 5px 10px;
}
.badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.product h3 {
  margin-top: 26px;
  font: 600 clamp(26px, 3.4vw, 38px)/1.1 var(--display);
  letter-spacing: -0.02em;
  max-width: 18em;
}
.product .sub { margin-top: 10px; color: var(--fg-dim); max-width: 34em; }

/* Animated transfer */
.transfer {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.op { display: flex; align-items: center; gap: 10px; min-width: 0; transition: opacity .35s, transform .35s; }
.op.to { justify-content: flex-end; text-align: right; }
.op img { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.op span { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op small { display: block; color: var(--fg-muted); font: 11px/1.4 var(--mono); }
.op.swap { opacity: 0; transform: translateY(6px); }
.flow { position: relative; width: 72px; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.flow::after {
  content: ""; position: absolute; top: 0; left: -30%;
  width: 30%; height: 100%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: flow 1.6s cubic-bezier(.6, 0, .3, 1) infinite;
}
@keyframes flow { to { left: 100%; } }

.product .foot { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ops { display: flex; }
.ops img { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink-2); margin-left: -6px; }
.ops img:first-child { margin-left: 0; }
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--ink);
  font-weight: 600; font-size: 14px;
  padding: 10px 16px; border-radius: 99px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.cta:hover { background: var(--accent-2); color: var(--ink); transform: translateY(-1px); }

.next {
  margin-top: 12px;
  border: 1px dashed var(--line-2);
  border-radius: 20px;
  padding: 20px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  color: var(--fg-muted);
}
.next b { font: 600 18px var(--display); color: var(--fg-dim); }

/* How we work */
.how { margin-top: 88px; }
.how ol { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.how li { border-top: 2px solid var(--line-2); padding-top: 14px; }
.how li:first-child { border-color: var(--accent); }
.how li b { display: block; font: 600 20px/1.2 var(--display); margin: 6px 0; }
.how li p { color: var(--fg-dim); font-size: 14.5px; }
.how .mono { color: var(--fg-muted); }

/* Contact */
.contact { margin-top: 88px; }
.contact a.big {
  font: 600 clamp(24px, 5vw, 36px)/1.1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}
.contact p { color: var(--fg-dim); margin-bottom: 12px; }

/* Footer */
footer { margin-top: auto; padding-top: 96px; position: relative; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--fg-muted); }
.links .sp { flex: 1; }
.links a { text-decoration: none; }
.links a:hover { color: var(--fg); }
.wordmark {
  margin-top: 28px;
  font: 800 clamp(64px, 19vw, 168px)/0.78 var(--display);
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  user-select: none;
  white-space: nowrap;
  padding-bottom: 0.12em;
  transition: -webkit-text-stroke-color .4s, color .4s;
}
.wordmark:hover { -webkit-text-stroke-color: var(--accent); color: rgba(235, 100, 20, 0.06); }

/* Super app services */
.services {
  list-style: none;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.services li {
  position: relative;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  transition: border-color .25s, transform .25s;
}
.services li:hover { border-color: rgba(235, 100, 20, 0.5); transform: translateY(-2px); }
.services .ic {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: rgba(235, 100, 20, 0.12);
  color: var(--accent-2);
  font-size: 15px; text-transform: none;
}
.services b { display: block; margin-top: 12px; font: 600 17px/1.2 var(--display); }
.services p { margin-top: 4px; color: var(--fg-dim); font-size: 14px; line-height: 1.5; }
.services em {
  position: absolute; top: 16px; right: 16px;
  font-style: normal; font-size: 10.5px;
  color: var(--fg-muted);
  border: 1px solid var(--line-2);
  border-radius: 99px;
  padding: 2px 8px;
}

/* Legal pages */
.doc { margin-top: 72px; }
.doc h1 { font: 700 40px/1.05 var(--display); letter-spacing: -0.03em; }
.doc .updated { color: var(--fg-muted); margin-top: 12px; }
.doc h2 { font: 600 19px var(--display); margin: 40px 0 8px; }
.doc p, .doc ul, .doc dl { margin-top: 10px; color: var(--fg-dim); }
.doc a { color: var(--fg); }
.doc dl {
  display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px;
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--ink-2);
}
.doc dt { color: var(--fg-muted); font: 12px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.doc dd { color: var(--fg); }
.todo { background: rgba(235, 100, 20, 0.2); color: var(--accent-2); padding: 0 4px; border-radius: 4px; }

@media (max-width: 560px) {
  .hero { padding: 80px 0 56px; }
  .product { padding: 22px; }
  .flow { width: 32px; }
  .op small { display: none; }
  .how ol { grid-template-columns: 1fr; gap: 20px; }
  .next { padding: 18px 22px; }
  .doc dl { grid-template-columns: 1fr; gap: 0; }
  .doc dd { margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
