/* OptiTrade store placeholder. Tokens copied from the OptiTrade design system (canvas, text ladder,
   hairlines, brand accent, Montserrat, type scale). Every asset is self-hosted in this repo. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/montserrat-v31-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/montserrat-v31-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat Fallback";
  src: local(Arial);
  ascent-override: 85.79%;
  descent-override: 22.25%;
  line-gap-override: 0%;
  size-adjust: 112.83%;
}

:root {
  --brand: #22e316;
  --bg-void: #07080a;
  --text-primary: #f2f3f5;
  --text-secondary: #a3a6ad;
  --text-tertiary: #7a7e86;
  --border-subtle: rgb(255 255 255 / 0.07);
  --grain-canvas: 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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --gutter: 1rem;
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1024px) { :root { --gutter: 2rem; } }

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--grain-canvas) 0 0 / 160px 160px, var(--bg-void);
  color: var(--text-primary);
  font-family: "Montserrat", "Montserrat Fallback", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: -0.011em;
  line-height: 1.6;
}

::selection { color: var(--text-primary); background: rgb(34 227 22 / 0.28); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 0.25rem; }

.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 4.5rem;
}
.wordmark { display: inline-flex; align-items: center; border-radius: 0.25rem; }
.wordmark img { display: block; height: 1.3125rem; width: auto; }

main { flex: 1; display: flex; align-items: center; }
main .container { padding-top: 4rem; padding-bottom: 5rem; }

h1 {
  margin: 0;
  max-width: 14ch;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
@media (min-width: 640px) {
  h1 { font-size: 3.25rem; line-height: 1.08; letter-spacing: -0.036em; }
}
@media (min-width: 1024px) {
  h1 { font-size: 4.125rem; line-height: 1.05; letter-spacing: -0.04em; }
}

.lead {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.014em;
  text-wrap: pretty;
}
@media (min-width: 640px) { .lead { font-size: 1.125rem; } }

.lead a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: color 150ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lead a:hover { color: #41ec36; text-decoration: underline; text-underline-offset: 0.2em; }

.site-footer { border-top: 1px solid var(--border-subtle); }
.site-footer .container { padding-top: 1.5rem; padding-bottom: 1.75rem; }
.site-footer p { margin: 0; color: var(--text-tertiary); font-size: 0.875rem; letter-spacing: -0.006em; }
