/* ============================================================================
   TradeMonkey — hand-written stylesheet (no framework, no build step).
   Edit freely. Everything keys off the design tokens in :root below.
   ========================================================================== */

:root {
  /* Brand palette: near-black canvas, off-white ink, one stonks-green accent. */
  --bg: #0b0e11;
  --surface: #14181d;
  --surface-2: #1b2027;
  --border: #262d36;
  --ink: #eaf0f6;
  --muted: #93a0ad;
  --accent: #16d67a;
  --accent-ink: #03110a;       /* readable text on the accent */
  --accent-soft: #0f3b27;      /* low-alpha accent for glows/cards */
  --danger: #ff6b6b;

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  --container: 64rem;          /* max width of header / sections */
  --radius: 0.75rem;
  --radius-lg: 1rem;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
}

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.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;
}

.page {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---- Decorative background --------------------------------------------- */
.bg-grid,
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.bg-grid {
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 80%);
}
.bg-glow {
  z-index: -1;
  background:
    radial-gradient(40rem 30rem at 50% -8%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(28rem 24rem at 85% 12%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%);
  animation: glow-drift 14s ease-in-out infinite alternate;
}

/* ---- Skip link ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 50;
}
.skip-link:focus {
  left: 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(10px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.125rem;
  color: var(--ink);
}
.wordmark__mark {
  display: grid;
  place-items: center;
  height: 1.75rem;
  width: 1.75rem;
  border-radius: 0.5rem;
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 30%, transparent);
  transition: transform 0.3s ease;
}
.wordmark__mark svg {
  height: 1rem;
  width: 1rem;
}
.wordmark:hover .wordmark__mark {
  transform: rotate(-6deg);
}
.wordmark__accent {
  color: var(--accent);
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.125rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  font-size: 0.875rem;
  font-weight: 500;
}
.lang-toggle a {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.lang-toggle a:hover {
  color: var(--ink);
}
.lang-toggle a[aria-current='true'] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  padding-block: 3rem 3rem;
  text-align: center;
}
.hero__head {
  max-width: 42rem;
  margin-inline: auto;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.kicker__dot {
  position: relative;
  display: inline-flex;
  height: 0.375rem;
  width: 0.375rem;
}
.kicker__dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.75;
  animation: ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.kicker__dot::after {
  content: '';
  position: relative;
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 999px;
  background: var(--accent);
}
.headline {
  margin-top: 1.25rem;
  font-size: clamp(1.75rem, 7vw, 3.75rem);
  font-weight: 700;
  line-height: 1.06;
  text-wrap: balance;
}
.headline__accent {
  color: var(--accent);
  text-shadow: 0 0 28px color-mix(in oklab, var(--accent) 45%, transparent);
}
.subhead {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---- Primary CTA -------------------------------------------------------- */
.cta-wrap {
  max-width: 28rem;
  margin: 2rem auto 0;
  text-align: center;
}
.btn-primary {
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-inline: 1.5rem;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1rem;
  font-weight: 600;
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent),
    0 10px 40px -8px color-mix(in oklab, var(--accent) 55%, transparent);
  transition: transform 0.15s ease;
}
.btn-primary:hover {
  transform: scale(1.015);
}
.btn-primary:active {
  transform: scale(0.99);
}
.btn-primary svg {
  height: 1.2rem;
  width: 1.2rem;
}
.cta-note {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---- Value chips -------------------------------------------------------- */
.chips {
  list-style: none;
  margin: 2.25rem auto 0;
  padding: 0;
  max-width: 42rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  color: var(--muted);
  font-size: 0.875rem;
}
.chip svg {
  height: 1.25rem;
  width: 1.25rem;
  color: var(--accent);
}

/* ---- Scarcity band ------------------------------------------------------ */
.scarcity {
  padding-block: 2.5rem;
}
.scarcity__inner {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.scarcity__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background: radial-gradient(24rem 12rem at 50% 0%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.scarcity__line {
  position: relative;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}
.btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  margin-top: 1rem;
  padding-inline: 1.25rem;
  border: 1px solid color-mix(in oklab, var(--accent) 50%, transparent);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}
.site-footer__inner {
  padding-block: 2.5rem;
}
.site-footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.site-footer__tagline {
  margin-top: 0.5rem;
  max-width: 20rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-social a {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-social a:hover {
  color: var(--ink);
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}
.footer-legal a {
  color: var(--muted);
}
.footer-legal a:hover {
  color: var(--ink);
}
.footer-legal span {
  color: var(--border);
}
.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in oklab, var(--border) 50%, transparent);
}
.site-footer__bottom p {
  font-size: 0.75rem;
  color: color-mix(in oklab, var(--muted) 80%, transparent);
}
.site-footer__bottom p + p {
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .site-footer__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
  }
  .site-footer__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
  }
}

/* ---- Motion ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.15s; }
.reveal-3 { animation-delay: 0.25s; }
.reveal-4 { animation-delay: 0.35s; }
.reveal-5 { animation-delay: 0.45s; }

@keyframes glow-drift {
  from { transform: translate3d(-2%, 0, 0) scale(1); opacity: 0.85; }
  to { transform: translate3d(3%, 1.5%, 0) scale(1.08); opacity: 1; }
}
@keyframes reveal-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-glow,
  .reveal,
  .kicker__dot::before {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
