/* =====================================================================
   WATS x HITMS — brand tokens
   Four-colour mark (red / green / sky-blue / gold) + Azure-blue accent,
   matching the rest of the dashboard site.
===================================================================== */
:root {
  --red: #F25022;
  --green: #7FBA00;
  --skyblue: #00A4EF;
  --gold: #FDB913;

  --blue: #2899F5;
  --blue-deep: #0078D4;

  --ink: #F2F4F7;
  --ink-soft: #9AA3AF;

  --bg: #0A0C10;
  --surface: #14171D;
  --surface-2: #1B1F27;
  --line: rgba(255, 255, 255, 0.08);
  --nav-bg: rgba(10, 12, 16, 0.7);

  --disp: 'Space Grotesk', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --radius: 18px;
}

[data-theme="light"] {
  --ink: #14171D;
  --ink-soft: #5B6270;
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #EEF0F3;
  --line: rgba(20, 23, 29, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.7);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* =====================================================================
   PRELOADER
===================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.loader-word {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  letter-spacing: 0.06em;
  display: flex;
}
.loader-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
}
.loader-word .c1 { color: var(--red); }
.loader-word .c2 { color: var(--green); }
.loader-word .c3 { color: var(--skyblue); }
.loader-word .c4 { color: var(--gold); }

.loader-sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
}

.loader-bar {
  width: 180px;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.loader-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green), var(--skyblue));
}

/* =====================================================================
   PAGE SHELL
===================================================================== */
.cs-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 22px;
  overflow: hidden;
}

.cs-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(560px 420px at 12% 8%, rgba(242, 80, 34, 0.10), transparent 60%),
    radial-gradient(560px 420px at 88% 18%, rgba(0, 164, 239, 0.12), transparent 60%),
    radial-gradient(620px 460px at 50% 100%, rgba(127, 186, 0, 0.08), transparent 60%);
  pointer-events: none;
}

/* ---------- theme toggle ---------- */
.theme-toggle {
  position: absolute;
  top: 26px;
  right: 28px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: background 0.15s;
}
.theme-toggle:hover { background: var(--surface-2); }

/* ---------- brand ---------- */
.cs-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cs-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  flex: 0 0 auto;
}
.cs-logo-mark span:nth-child(1) { background: var(--red); }
.cs-logo-mark span:nth-child(2) { background: var(--green); }
.cs-logo-mark span:nth-child(3) { background: var(--skyblue); }
.cs-logo-mark span:nth-child(4) { background: var(--gold); }

.cs-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.cs-brand-text .b1 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.cs-brand-text .b1 em { font-style: normal; color: var(--ink-soft); margin: 0 2px; }
.cs-brand-text .b1 .c1 { color: var(--red); }
.cs-brand-text .b1 .c2 { color: var(--green); }
.cs-brand-text .b1 .c3 { color: var(--skyblue); }
.cs-brand-text .b1 .c4 { color: var(--gold); }
.cs-brand-text .b2 {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- hero ---------- */
.cs-hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 12px;
}

.cs-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: rgba(0, 120, 212, 0.1);
  border: 1px solid rgba(0, 120, 212, 0.25);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.cs-hero h1 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 18px;
}
.grad-text {
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green), var(--skyblue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cs-hero p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto 34px;
}

/* ---------- socials ---------- */
.cs-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.cs-social-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.cs-social-btn:hover {
  transform: translateY(-3px);
  color: #fff;
  border-color: transparent;
}
.cs-social-btn[aria-label="Instagram"]:hover {
  background: linear-gradient(135deg, #F25022, #FDB913, #d6249f);
}
.cs-social-btn[aria-label="LinkedIn"]:hover { background: #0A66C2; }
.cs-social-btn[aria-label="Facebook"]:hover { background: #1877F2; }

/* ---------- footer ---------- */
.cs-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
}

@media (max-width: 560px) {
  .cs-page { padding: 22px 18px 18px; }
  .cs-footer { justify-content: center; text-align: center; }
}

/* ---------- reveal-on-load state (animated via GSAP in main.js) ---------- */
.reveal-el { opacity: 0; transform: translateY(18px); }
