/* Darts26 — shared design tokens (web/)
 * Imported by every page. Per-page layout CSS stays embedded.
 */

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

:root {
  /* Color — surfaces */
  --bg:           #060A13;
  --surface-1:    #0D1320;
  --surface-2:    #111827;
  --surface-3:    #1A2640;

  /* Color — text */
  --text:         #FFFFFF;
  --text-muted:   #8A9BBF;
  --text-dim:     #5A6A8A;

  /* Color — brand & status */
  --accent:       #00F0FF;
  --accent-soft:  rgba(0, 240, 255, 0.12);
  --accent-line:  rgba(0, 240, 255, 0.35);
  --magenta:      #E040FB;
  --magenta-soft: rgba(224, 64, 251, 0.14);
  --success:      #00E676;
  --danger:       #FF5252;
  --warning:      #FFB300;

  /* Legacy aliases — kept so inline `var(--…)` references in checkouts.html JS keep working */
  --card:             var(--surface-2);
  --surface:          var(--surface-1);
  --border:           var(--surface-3);
  --text-secondary:   var(--text-muted);

  /* Gradients */
  --grad-hero:
    radial-gradient(120% 80% at 20% 0%, rgba(0,240,255,.18), transparent 60%),
    radial-gradient(100% 60% at 100% 40%, rgba(224,64,251,.14), transparent 70%);
  --grad-accent: linear-gradient(135deg, var(--accent), var(--magenta));
  --grad-divider: linear-gradient(90deg, transparent, var(--surface-3), transparent);

  /* Typography */
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, "Roboto Mono", "SF Mono", Menlo, monospace;
  --fs-xs:  11px;
  --fs-sm:  13px;
  --fs-base:15px;
  --fs-md:  17px;
  --fs-lg:  22px;
  --fs-xl:  32px;
  --fs-2xl: 48px;
  --fs-3xl: 72px;

  /* Space scale */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;

  /* Radii */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-pill: 999px;

  /* Effects */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 0 1px var(--accent-line), 0 8px 40px rgba(0, 240, 255, 0.12);
  --ring-focus:  0 0 0 2px var(--accent-soft), 0 0 0 1px var(--accent);
  --ease:        cubic-bezier(.2, .7, .2, 1);
}

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* Base */
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Utilities */
.mono { font-family: var(--font-mono); }
.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;
}
.gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--s-5); }
.container       { max-width: 1200px; margin: 0 auto; padding: 0 var(--s-5); }
.surface {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--r-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 40px;
  padding: 0 var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--surface-3);
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.2s var(--ease),
    color 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--accent-line);
  background: var(--surface-1);
  text-decoration: none;
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
}

.btn-accent {
  background: var(--accent);
  color: #001017;
  border-color: var(--accent);
  font-weight: 600;
}
.btn-accent:hover {
  background: #5BF6FF;
  border-color: #5BF6FF;
  color: #001017;
}

.btn-danger {
  background: var(--surface-2);
  color: var(--danger);
  border-color: rgba(255, 82, 82, 0.4);
}
.btn-danger:hover {
  border-color: var(--danger);
  background: rgba(255, 82, 82, 0.08);
  color: var(--danger);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--surface-3);
  background: var(--surface-1);
}

.btn-lg {
  height: 52px;
  padding: 0 var(--s-5);
  font-size: var(--fs-base);
}

/* Tags / pills */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  height: 26px;
  padding: 0 var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.tag-muted {
  background: var(--surface-2);
  color: var(--text-muted);
  border-color: var(--surface-3);
}

/* Shared header bar (used by support, privacy, checkouts) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 19, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-3);
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--s-4) var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}
.site-header__brand:hover { text-decoration: none; opacity: 0.85; }
.site-header__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.site-header__nav a {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.site-header__nav a:hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}
.site-header__nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Shared footer */
.site-footer {
  border-top: 1px solid var(--surface-3);
  margin-top: var(--s-9);
  padding: var(--s-7) var(--s-5);
  color: var(--text-dim);
  font-size: var(--fs-xs);
}
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.site-footer a:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 640px) {
  .site-header__nav a { padding: var(--s-2); }
  .site-footer__inner { justify-content: center; text-align: center; }
}
