/* ============================================================
   Vertex Funded — base.css
   Reset · CSS variables (dark) · typography · buttons · utilities
   NO direction rules (LTR/RTL live in styles/locales/*).
   NO header/footer/page rules (see layout.css / pages.css).
   This is a DARK-ONLY theme: theme.json holds the dark palette.
   ============================================================ */

:root {
  /* injected from theme.json (fallbacks shown) */
  --color-primary: #1ee07f;        /* accent green */
  --color-primary-dark: #0bd0c0;   /* accent teal  */
  --color-text: #e9eef6;
  --color-text-muted: #8a97ac;
  --color-bg: #06080f;
  --color-surface: #0e1320;
  --color-border: rgba(255, 255, 255, .09);

  --header-height: 70px;
  --max-width: 1200px;
  --radius: 18px;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

  /* derived (not injected) */
  --font-display: "Sora", var(--font-body); /* upgrades automatically if the optional font link is added */
  --surface-2: #161e2f;
  --radius-sm: 12px;
  --grad: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  --shadow: 0 20px 50px rgba(0, 0, 0, .5);
  --glow: 0 0 50px rgba(30, 224, 127, .28);
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
  --on-accent: #04130c; /* readable text color on top of the accent gradient */

  color-scheme: dark;
}

/* ---- Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
body.mobile-menu-open {
  overflow: hidden;
  touch-action: none;
}
body.mobile-menu-open .site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  width: 100%;
  z-index: 60;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

/* ---- Typography ---------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
}

/* ---- Layout helper ------------------------------------------------- */
.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: 24px; }

/* ---- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px;
  font-weight: 700; font-size: 15px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), border-color var(--transition), color var(--transition);
}
.btn-primary { background: var(--grad); color: var(--on-accent); box-shadow: 0 10px 30px rgba(30, 224, 127, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(30, 224, 127, .45); }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---- Utilities ----------------------------------------------------- */
.disp { font-family: var(--font-display); }
.gtext { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Accessibility ------------------------------------------------- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-primary) 55%, transparent);
  outline-offset: 2px;
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
