/* pigXchange concept site. Night violet, piñata pink, gold. Fonts self-hosted (SIL OFL). */
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin-ext-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --night: #120a2a;
  --night-2: #1c1240;
  --night-3: #2a1d58;
  --line: rgba(203, 184, 255, .16);
  --text: #f4ecff;          /* 16:1 on night */
  --muted: #b9abd8;         /* 8.3:1 */
  --pink: #ff5fa2;
  --pink-soft: #ff9cc6;
  --gold: #f5c04a;
  --gold-2: #ffdf8a;
  --violet: #9f93ff;
  --up: #3ddc97;
  --down: #ff7a7a;
  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --wrap: 1200px;
  --gutter: 40px;
  --radius: 18px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  color-scheme: dark;
}
@media (max-width: 720px) { :root { --gutter: 20px; } }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--night); color: var(--text); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(46px, 7vw, 96px); font-weight: 700; }
h2 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 700; }
h3 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { margin: 0 0 16px; font: 500 13px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pink-soft); }
.lead { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 36em; }
.lead strong { color: var(--text); font-weight: 700; }
.tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: rgba(245, 192, 74, .14); color: var(--gold-2); font: 500 11px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--gold); color: var(--night); padding: 10px 14px; }
.skip:focus { left: 12px; top: 12px; }
.demo-strip { padding: 7px var(--gutter); background: var(--gold); color: #2a1a00; font: 500 13px/1.4 var(--sans); text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 99px; border: 1.5px solid transparent; font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #d99a1e); color: #2a1a00; box-shadow: 0 8px 24px -8px rgba(245, 192, 74, .55); }
.btn--gold:hover { box-shadow: 0 12px 30px -8px rgba(245, 192, 74, .75); }
.btn--ghost { border-color: rgba(244, 236, 255, .35); color: var(--text); }
.btn--ghost:hover { background: rgba(244, 236, 255, .08); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(18, 10, 42, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__word { font: 700 24px/1 var(--sans); letter-spacing: -.02em; }
.brand__word b { color: var(--gold); }
.nav { display: flex; gap: 30px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); }
@media (max-width: 860px) { .nav { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 75% 35%, rgba(255, 95, 162, .18), transparent 60%), radial-gradient(900px 500px at 10% 90%, rgba(159, 147, 255, .14), transparent 60%), var(--night); }
.hero__rain { position: absolute; inset: 0; width: 100%; height: 100%;
  /* Keep the rain off the text: faint behind the copy, full strength around the pig. */
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.18) 45%, #000 70%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.18) 45%, #000 70%); }
@media (max-width: 900px) { .hero__rain { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 34%, rgba(0,0,0,.12) 52%); mask-image: linear-gradient(180deg, #000 0%, #000 34%, rgba(0,0,0,.12) 52%); } }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; padding: 88px var(--gutter) 96px; }
.hero__copy h1 { margin-bottom: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 40px; }
.hero__art { position: relative; }
.hero__pig { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); animation: fly 6s ease-in-out infinite; }
@keyframes fly { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-18px) rotate(2deg); } }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; } .hero__art { order: -1; max-width: 360px; margin: 0 auto; } }

.index-card { display: flex; align-items: center; gap: 20px; max-width: 480px; padding: 18px 20px; border-radius: var(--radius); background: rgba(28, 18, 64, .72); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.index-card__label { margin: 0 0 4px; font: 500 13px/1.4 var(--mono); color: var(--muted); }
.index-card__price { margin: 0; font: 500 34px/1.1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.index-card__price small { font-size: 13px; color: var(--muted); letter-spacing: 0; }
.index-card__chg { margin: 4px 0 0; font: 500 14px/1.4 var(--mono); }
.index-card__spark { flex: 1; height: 56px; min-width: 100px; }
.index-card__spark path { fill: none; stroke: var(--pink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.up { color: var(--up); }
.down { color: var(--down); }

/* Ticker tape */
.tape { overflow: hidden; border-block: 1px solid var(--line); background: var(--night-2); }
.tape__track { display: flex; gap: 40px; width: max-content; padding: 14px 0; animation: tape 40s linear infinite; font: 500 15px/1 var(--mono); white-space: nowrap; }
.tape:hover .tape__track { animation-play-state: paused; }
.tape__item b { color: var(--text); margin: 0 8px; }
.tape__item span { color: var(--muted); }
@keyframes tape { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 112px 0; }
.section--alt { background: var(--night-2); }
@media (max-width: 720px) { .section { padding: 72px 0; } }
.head { max-width: 760px; margin-bottom: 56px; }
.head h2 { margin-bottom: 20px; }

/* Market: chart + table */
.market { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .market { grid-template-columns: 1fr; } }
.chart, .table-wrap { border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--line); }
.chart { padding: 22px 22px 16px; }
.chart__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.chart__title { margin: 0; font-weight: 700; }
.chart__sub { margin: 2px 0 0; font: 400 13px/1.4 var(--mono); color: var(--muted); }
.chart__stats { display: flex; gap: 18px; font: 400 13px/1.4 var(--mono); color: var(--muted); }
.chart__stats b { color: var(--text); font-weight: 500; }
.chart__svg { display: block; width: 100%; height: 260px; }
.chart__grid path { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__line { fill: none; stroke: var(--pink); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.chart__dot { fill: var(--gold); stroke: var(--night); stroke-width: 3; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl caption { padding: 20px 22px 8px; text-align: left; font-weight: 700; caption-side: top; }
.tbl th, .tbl td { padding: 13px 22px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl td:first-child { font-weight: 700; }
.tbl tbody tr { transition: background-color .4s var(--ease); }
.tbl tbody tr.flash { background: rgba(255, 95, 162, .1); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.steps li { padding: 28px 24px; border-radius: var(--radius); background: var(--night-3); border: 1px solid var(--line); }
.steps__n { display: inline-block; margin-bottom: 26px; font: 500 15px/1 var(--mono); color: var(--gold); }
.steps h3 { margin-bottom: 12px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Buyers / providers */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
.duo__card { padding: 44px 40px; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--line); }
.duo__card--pink { background: linear-gradient(150deg, #ff7fb3, #ff5fa2 55%, #e2468a); color: #2a0718; border: 0; }
.duo__card--pink .eyebrow { color: #5a0f33; }
.duo__card h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 24px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%232a1a00' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.duo__card--pink .ticks li::before { background-color: #fff3c9; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 0; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-size: 21px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 28px/1 var(--mono); color: var(--gold); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { color: var(--muted); max-width: 62ch; }

/* CTA */
.cta { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: 48px; border-radius: 28px; background: radial-gradient(600px 300px at 15% 50%, rgba(255, 95, 162, .25), transparent 70%), var(--night-2); border: 1px solid var(--line); }
.cta__pig { width: 180px; height: auto; animation: fly 6s ease-in-out infinite; }
.cta h2 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 10px; }
.cta .lead { margin: 0; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; text-align: left; padding: 32px 24px; } .cta__pig { width: 140px; } }

/* Footer */
.ftr { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.ftr__grid { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.ftr__note, .ftr__copy { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .ftr__grid { grid-template-columns: 1fr; gap: 16px; } }

/* Demo modal */
.modal { max-width: 420px; width: calc(100% - 32px); padding: 36px 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--night-2); color: var(--text); text-align: center; }
.modal::backdrop { background: rgba(8, 4, 20, .7); backdrop-filter: blur(4px); }
.modal h2 { font-size: 28px; margin: 12px 0; }
.modal p { color: var(--muted); }
