/* Gigxie — tokens, reset, base typography, layout utilities */

:root {
  /* Color */
  --brand: #6C3BFF;
  --brand-dark: #5228D9;
  --brand-tint: #F3EEFF;   /* on white only */
  --brand-wash: #EAE1FF;   /* tint that survives --bg-soft backgrounds */
  --brand-ghost: #E4DAFF;  /* oversized decorative numerals */
  --ink: #0E0E1A;
  --body: #4B4B60;
  --muted: #6B6B85;   /* 5.3:1 on white — AA for 13–14px text */
  --line: #E7E7F0;
  --bg: #FFFFFF;
  --bg-soft: #F7F7FB;
  --accent: #BFF747;
  --accent-dark: #ADEA2F;
  --accent-wash: #FBFDF3;
  --star: #FFB33E;
  --success: #17B26A;        /* fills/dots only — 2.8:1 on white */
  --success-ink: #0E7C4A;    /* 4.9:1 on white — use whenever green is text */
  --danger: #E5484D;         /* borders/fills only — 3.9:1 on white */
  --danger-ink: #C0292E;     /* 6.1:1 on white — use whenever red is text */
  --danger-wash: #FDECEC;
  --hero-grad: linear-gradient(135deg, #12081F 0%, #1E0E38 100%);

  /* Type */
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --fs-h3: 32px;

  /* Shape */
  --r-card: 12px;
  --r-btn: 8px;
  --r-pill: 999px;
  --r-input: 10px;

  /* Elevation */
  --shadow-card: 0 1px 3px rgba(14, 14, 26, .06);
  --shadow-hover: 0 12px 32px rgba(14, 14, 26, .12);
  --ease: 200ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* The line above also kills the UA's `dialog { margin: auto }`, which is what
   centres a showModal() dialog. Put it back or every modal pins to the top-left. */
dialog { margin: auto; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 56px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 40px; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
@media (max-width: 720px) {
  :root { --fs-h3: 24px; }
  h1 { font-size: 36px; }
  h2 { font-size: 32px; }
}
.lead { font-size: 20px; line-height: 1.5; }
.text-sm { font-size: 14px; }
.text-muted { color: var(--muted); }

/* ---------- Layout ---------- */
.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: 96px; }
.section-soft { background: var(--bg-soft); }
@media (max-width: 720px) {
  .section { padding-block: 56px; }
}
.section-head { margin-bottom: 40px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { font-size: 18px; color: var(--body); max-width: 60ch; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Scroll reveal (shared.js toggles .in; motion respected) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Global focus ring */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
