/* skintick.io — pixel/retro monospace landing */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700;800&family=VT323&display=swap');

:root {
  --page-bg: #f3eee2;
  --ink: #1a1612;
  --ink-soft: #4a3f33;
  --accent: #e8b94a;
  --card-bg: #fffaf0;
  --border-ink: #1a1612;
  --sky-bottom: rgb(130,150,178);
  --ground-color: rgb(4,8,24);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pixel: 'VT323', 'JetBrains Mono', monospace;
  --maxw: 1280px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--mono);
  background: var(--page-bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

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

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  color: #fff;
}

.brand {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease;
  /* Soft pixel shadow */
  box-shadow: 4px 4px 0 0 var(--ink);
  border-radius: 2px;
  white-space: nowrap;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 0 var(--ink);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--ink);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  text-shadow: none;
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--ink);
}

/* In hero the buttons sit on dark bg; secondary still uses light card-bg. */
.hero .btn-primary { box-shadow: 4px 4px 0 0 rgba(0,0,0,0.45); }
.hero .btn-secondary { box-shadow: 4px 4px 0 0 rgba(0,0,0,0.45); }

.text-link { font-weight: 500; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: min(85vh, 760px);
  min-height: 580px;
  overflow: hidden;
}

.landscape-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hero-content {
  position: relative;
  z-index: 7;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 140px 48px 0;
  color: #fff;
}

.hero-title {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  text-shadow: 0 2px 0 rgba(0,0,0,0.35);
  max-width: 14ch;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.55;
  max-width: 62ch;
  margin: 0 0 28px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.45);
  opacity: 0.96;
}

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

.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  pointer-events: none;
  z-index: 6;
  background:
    linear-gradient(to bottom,
      transparent 0%,
      transparent 30%,
      var(--page-bg) 100%);
}
/* dithered transition strip */
.hero-fade::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(var(--page-bg) 1px, transparent 1px);
  background-size: 6px 6px;
  background-position: 0 0;
  opacity: 0.6;
  mask-image: linear-gradient(to bottom, transparent 0%, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%, transparent 100%);
}

/* ── Ticker ──────────────────────────────────────────────────────────── */
.ticker {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--ink);
  color: var(--page-bg);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-size: 13px;
  overflow: hidden;
}

.ticker-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  border-right: 2px solid var(--ink);
}

.ticker-dot {
  width: 8px;
  height: 8px;
  background: #d33;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,80,80,0.35);
  animation: pulse 1.4s steps(2, end) infinite;
}

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

.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-row {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  padding: 12px 0;
  width: max-content;
  animation: ticker-scroll 70s linear infinite;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ticker-name { opacity: 0.92; }
.ticker-price { font-weight: 700; color: #fff; }
.ticker-delta.up   { color: #6ee787; }
.ticker-delta.down { color: #ff7b72; }

/* ── Main + Framebox ─────────────────────────────────────────────────── */
.main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 48px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.framebox {
  position: relative;
  border: 2px dashed var(--ink);
  background: var(--card-bg);
  padding: 32px 28px 28px;
  border-radius: 2px;
}

.framebox-wide { grid-column: 1 / -1; }

.framebox-label {
  position: absolute;
  top: -14px;
  left: 22px;
  background: var(--page-bg);
  padding: 0 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.framebox-body p { margin: 0 0 14px; }
.framebox-body p:last-child { margin-bottom: 0; }
.framebox-body b { font-weight: 700; }

.bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.bullets li {
  position: relative;
  padding-left: 18px;
  margin: 8px 0;
}
.bullets li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: #2a8a45;
  font-weight: 700;
}

/* ── Stats ────────────────────────────────────────────────────────────── */
.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 2px solid var(--ink);
  background: var(--ink);
}

.stat {
  background: var(--card-bg);
  padding: 24px 22px;
  border-right: 2px solid var(--ink);
}
.stat:last-child { border-right: none; }

.stat-value {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
}
.stat-suffix {
  font-size: 0.55em;
  font-weight: 700;
  margin-left: 4px;
  color: var(--ink-soft);
}
.stat-label {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ── Marketplaces ────────────────────────────────────────────────────── */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 6px;
}

.market {
  background: transparent;
  border: none;
  padding: 4px;
  text-decoration: none;
  text-align: left;
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.market-icon {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 100ms ease;
  image-rendering: pixelated;
  box-shadow: 3px 3px 0 0 var(--ink);
}

.market-glyph {
  font-family: var(--pixel);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 2;
}

/* pixelated overlay — adds dithered noise so the icons feel pixel-rendered */
.market-pixel-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  pointer-events: none;
  z-index: 1;
}

.market:hover .market-icon { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 var(--ink); }
.market.active .market-icon { transform: translate(1px, 1px); box-shadow: 1px 1px 0 0 var(--ink); }

.market-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.market-bullet {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #2a8a45;
  box-shadow: 2px 0 0 #2a8a45, 0 2px 0 #2a8a45, 2px 2px 0 #2a8a45;
}

.market-stats {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}
.market:hover .market-stats,
.market.active .market-stats {
  opacity: 1;
  transform: translateY(0);
}

/* ── API / Code block ────────────────────────────────────────────────── */
.api-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: stretch;
}

.kicker {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  padding: 4px 10px;
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.endpoint {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  background: rgba(0,0,0,0.06);
  padding: 8px 12px;
  display: inline-block;
  border: 1px dashed var(--ink);
}

.api-desc {
  margin: 16px 0 18px;
  font-size: 14px;
  line-height: 1.6;
}
.api-desc code {
  font-size: 12.5px;
  background: rgba(0,0,0,0.07);
  padding: 1px 6px;
}

.curl {
  background: var(--ink);
  color: #cfe8ff;
  padding: 14px 16px;
  border-radius: 2px;
  font-size: 12.5px;
  line-height: 1.7;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  word-break: break-all;
  margin-top: 8px;
}
.curl-prompt { color: #6ee787; margin-right: 6px; }
.curl-cont { color: transparent; }

.code-pane {
  background: #0d1117;
  color: #c9d1d9;
  border: 2px solid var(--ink);
  border-radius: 2px;
  box-shadow: 4px 4px 0 0 var(--ink);
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  overflow: hidden;
  min-height: 380px;
}
.code-pane-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}
.code-dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
}
.code-pane-title {
  margin-left: 10px;
  color: #8b949e;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.code-pane-body {
  display: block;
  padding: 16px 18px;
  white-space: pre;
  font-family: var(--mono);
  color: #c9d1d9;
}
.caret {
  display: inline-block;
  color: #6ee787;
  animation: caret 0.9s steps(2, end) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ── Pricing ─────────────────────────────────────────────────────────── */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 6px;
}

.tier {
  position: relative;
  background: var(--page-bg);
  border: 2px solid var(--ink);
  padding: 24px 22px 22px;
  box-shadow: 4px 4px 0 0 var(--ink);
  display: flex;
  flex-direction: column;
}

.tier-featured {
  background: var(--ink);
  color: var(--page-bg);
  box-shadow: 6px 6px 0 0 var(--accent);
}
.tier-featured .check { color: var(--accent) !important; }

.tier-badge {
  position: absolute;
  top: -12px;
  right: 14px;
  background: var(--accent);
  color: var(--ink);
  padding: 2px 10px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  border: 2px solid var(--ink);
  white-space: nowrap;
}

.tier-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.tier-price {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.tier-price-num {
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.tier-price-period { opacity: 0.7; font-size: 13px; white-space: nowrap; }

.tier-blurb {
  margin: 12px 0 18px;
  opacity: 0.85;
  font-size: 13px;
  line-height: 1.5;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
}
.tier-features li {
  padding: 5px 0;
  border-bottom: 1px dashed currentColor;
  opacity: 0.9;
  font-size: 13px;
}
.tier-features li:last-child { border-bottom: none; }
.tier-features .check {
  color: #2a8a45;
  font-weight: 800;
  margin-right: 8px;
}

.tier-cta {
  width: 100%;
  margin-top: auto;
}

.framebox-body .tiers-note {
  margin: 40px 0 4px;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px dashed var(--ink);
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 16px 0;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.faq-marker {
  color: var(--ink-soft);
  font-weight: 700;
  font-family: var(--mono);
}
.faq-item.open .faq-marker { color: var(--accent); }
.faq-q:hover { text-decoration: underline; text-underline-offset: 4px; }

.faq-a {
  padding: 0 0 18px 30px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 80ch;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--page-bg);
  padding: 56px 48px 28px;
  font-size: 13px;
}

.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  color: var(--page-bg);
  text-decoration: none;
  opacity: 0.78;
}
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.footer-brand {
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 6px;
}
.footer-tag {
  opacity: 0.65;
  font-size: 13px;
  max-width: 32ch;
}

.footer-h {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  margin-bottom: 4px;
  opacity: 0.9;
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px dashed rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  opacity: 0.65;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .main { grid-template-columns: 1fr; padding: 48px 28px 80px; gap: 28px; }
  .nav { padding: 22px 28px; }
  .hero-content { padding: 110px 28px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 2px solid var(--ink); }
  .markets-grid { grid-template-columns: repeat(4, 1fr); }
  .api-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
  .markets-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none !important; border-bottom: 2px solid var(--ink); }
}
