:root {
  /* Base — deep night / arcane indigo */
  --veil-bg: #0a0c14;
  --veil-bg2: #0e1119;
  --veil-bg-soft: #11141d;

  --veil-panel: #11141d;
  --veil-panel-2: #161a25;
  --veil-panel-3: #1c212e;

  --veil-border: rgba(255,255,255,0.08);
  --veil-border-strong: rgba(255,255,255,0.14);
  --veil-border-soft: rgba(255,255,255,0.04);

  /* Text */
  --veil-text: #e9ecf3;
  --veil-text-soft: #d2d7e1;
  --veil-muted: #8b91a0;
  --veil-faint: #555b69;

  /* Primary — slate steel */
  --veil-primary: #5a8ed1;
  --veil-primary-soft: rgba(90,142,209,0.14);

  /* Accent — arcane blue */
  --veil-accent: #6cb1ff;
  --veil-accent-light: #8fc6ff;
  --veil-accent-bright: #b8dcff;
  --veil-accent-deep: #3066b8;
  --veil-accent-soft: rgba(108,177,255,0.14);
  --veil-accent-glow: rgba(108,177,255,0.30);

  /* Success — moss cyan */
  --veil-success: #6a9a90;
  --veil-success-soft: rgba(106,154,144,0.14);

  /* Danger — muted ember */
  --veil-danger: #c46c5c;
  --veil-danger-soft: rgba(196,108,92,0.14);

  /* Info — cool steel */
  --veil-info: #6e90b4;
  --veil-info-soft: rgba(110,144,180,0.14);

  /* Sizing */
  --veil-radius-xs: 8px;
  --veil-radius-sm: 12px;
  --veil-radius: 16px;
  --veil-radius-lg: 22px;

  /* Shadows */
  --veil-shadow-sm: 0 8px 22px rgba(0,0,0,0.30);
  --veil-shadow-md: 0 14px 36px rgba(0,0,0,0.40);
  --veil-shadow-lg: 0 24px 60px rgba(0,0,0,0.55);

  --veil-font: "Nunito Sans", Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--veil-font);
  color: var(--veil-text);
  background-color: var(--veil-bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

/* Layout */
.veil-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.veil-section { padding: 56px 0; }

.veil-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.veil-section-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.veil-section-sub {
  margin: 0;
  max-width: 720px;
  color: var(--veil-muted);
  line-height: 1.7;
  font-size: 16px;
}

.veil-grid { display: grid; gap: 18px; }
.veil-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.veil-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.veil-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.veil-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Nav */
.veil-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(14,17,25,0.94), rgba(10,12,20,0.88));
  border-bottom: 1px solid var(--veil-border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.30);
}

.veil-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.veil-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 800;
  color: var(--veil-text);
  letter-spacing: 0.02em;
}

.veil-brand-logo {
  width: 28px; height: 28px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 0 20px rgba(108,177,255,0.30), inset 0 1px 0 rgba(255,255,255,0.20);
}

.veil-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--veil-muted);
  font-size: 14px;
}

.veil-nav-links a {
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.16s ease, background 0.16s ease;
}

.veil-nav-links a:hover {
  color: var(--veil-text);
  background: rgba(255,255,255,0.04);
}

.veil-nav-links .action {
  color: var(--veil-text);
  font-weight: 700;
  background: linear-gradient(180deg, rgba(28,33,46,0.94), rgba(17,20,29,0.94));
  border: 1px solid var(--veil-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Hero */
.veil-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  padding: 60px 0 44px;
  align-items: center;
}

.veil-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(108,177,255,0.22);
  background: var(--veil-accent-soft);
  color: var(--veil-accent-light);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.veil-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--veil-accent));
  box-shadow: 0 0 12px var(--veil-accent-glow);
}

.veil-hero h1,
.veil-h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.veil-line-a {
  display: block;
  background: linear-gradient(180deg, #ffffff, #d2d7e1 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.veil-line-b {
  display: block;
  background: linear-gradient(180deg, #8fc6ff, #3066b8 84%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.veil-hero-sub {
  font-size: 18px;
  font-weight: 600;
  color: var(--veil-text-soft);
  margin: 0 0 10px;
}

.veil-hero-body {
  max-width: 600px;
  margin: 0 0 26px;
  color: rgba(233,236,243,0.72);
  font-size: 15px;
  line-height: 1.75;
}

.veil-hero-note {
  font-size: 13px; color: var(--veil-faint); letter-spacing: 0.04em; margin-top: 8px;
}

.veil-micro {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; font-weight: 700; color: var(--veil-faint);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 22px;
}

.veil-hero-glow {
  position: absolute; right: -80px; top: -80px; width: 480px; height: 480px;
  border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(108,177,255,0.12) 0%, rgba(48,102,184,0.05) 40%, transparent 65%);
}

/* Cards / panels */
.veil-card,
.veil-panel {
  border-radius: var(--veil-radius);
  border: 1px solid var(--veil-border);
  background: linear-gradient(180deg, #11141d, #0c0f17);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 12px 30px rgba(0,0,0,0.45);
}

.veil-card:hover,
.veil-panel:hover {
  border-color: var(--veil-border-strong);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.55),
    0 0 20px rgba(108,177,255,0.08);
}

.veil-card-body,
.veil-panel-body { padding: 18px; }

/* Buttons */
.veil-btn {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--veil-text);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    filter 0.18s ease,
    background 0.18s ease;
}

.veil-btn:hover { transform: translateY(-2px); }

.veil-btn-primary {
  color: var(--veil-text);
  background: linear-gradient(180deg, #2d5a8e, #1f3e66);
  border: 1px solid rgba(108,177,255,0.40);
  box-shadow: 0 10px 26px rgba(48,102,184,0.30);
}

.veil-btn-primary:hover {
  background: linear-gradient(180deg, #3a6ba0, #284e7a);
  box-shadow: 0 14px 34px rgba(48,102,184,0.40);
}

.veil-btn-accent {
  color: #0a1426;
  font-weight: 700;
  background: linear-gradient(180deg, #8fc6ff, #5a92d6);
  border: 1px solid rgba(143,198,255,0.55);
  box-shadow: 0 10px 26px rgba(48,102,184,0.30);
}

.veil-btn-accent:hover {
  box-shadow: 0 14px 34px rgba(48,102,184,0.42);
  filter: brightness(1.05);
}

.veil-btn-secondary {
  color: var(--veil-text);
  background: linear-gradient(180deg, rgba(28,33,46,0.94), rgba(17,20,29,0.94));
  border-color: var(--veil-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.veil-btn-secondary:hover {
  border-color: var(--veil-border-strong);
  background: linear-gradient(180deg, rgba(36,42,58,0.96), rgba(22,26,37,0.96));
}

/* Feature cards */
.veil-feature {
  background: linear-gradient(180deg, rgba(28,33,46,0.95), rgba(17,20,29,0.96));
  border: 1px solid var(--veil-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 16px 38px rgba(0,0,0,0.36);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.veil-feature:hover {
  transform: translateY(-4px);
  border-color: var(--veil-border-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 20px 44px rgba(0,0,0,0.46);
}

.veil-feature-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 20px;
  background: linear-gradient(180deg, var(--veil-primary-soft), rgba(90,142,209,0.06));
  border: 1px solid rgba(90,142,209,0.22);
  margin-bottom: 16px;
}

.veil-feature-title {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.veil-feature-body {
  margin: 0;
  color: var(--veil-muted);
  line-height: 1.7;
  font-size: 15px;
}

/* DM vs Player split */
.veil-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.veil-split-card {
  border: 1px solid var(--veil-border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22,26,37,0.95), rgba(14,17,25,0.96));
  padding: 18px;
}

.veil-split-title {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--veil-accent-light);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.veil-mini {
  margin: 0; padding-left: 18px;
  color: var(--veil-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Bullets */
.veil-bullets {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--veil-text-soft);
  line-height: 1.7;
  font-size: 15px;
}
.veil-bullets li { margin-bottom: 6px; }
.veil-bullets strong { color: var(--veil-text); }

/* Story panel — narrative copy */
.veil-story p {
  color: var(--veil-text-soft);
  font-size: 15px;
  line-height: 1.85;
  margin: 0 0 12px;
}
.veil-story-lead {
  color: var(--veil-accent-light);
  font-weight: 700;
  font-size: 17px;
  margin: 8px 0 14px;
}

/* Callout */
.veil-callout {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(108,177,255,0.22);
  background: var(--veil-accent-soft);
}
.veil-callout-title {
  font-weight: 800;
  color: var(--veil-accent-light);
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.veil-callout-text {
  color: var(--veil-text-soft);
  font-size: 14px;
  line-height: 1.65;
}

/* Screenshots */
.veil-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.veil-shot {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--veil-border);
  background: var(--veil-panel);
}
.veil-shot img {
  width: 100%; height: auto; display: block;
  transition: transform 0.4s ease;
}
.veil-shot:hover img { transform: scale(1.02); }
.veil-shot figcaption {
  padding: 12px 14px;
  color: var(--veil-muted);
  font-size: 13px;
  border-top: 1px solid var(--veil-border);
}

/* Social chips */
.veil-social-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.veil-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--veil-border);
  background: var(--veil-panel-2);
  color: var(--veil-text);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.veil-chip:hover {
  border-color: var(--veil-accent);
  background: var(--veil-accent-soft);
}
.veil-chip-k {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--veil-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.veil-chip-v {
  font-size: 14px;
  color: var(--veil-text);
}

/* Utility */
.veil-muted { color: var(--veil-muted); }
.veil-faint { color: var(--veil-faint); }

.veil-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02), transparent);
  margin: 18px 0;
}

/* Footer */
.veil-footer {
  padding: 24px 0 52px;
  border-top: 1px solid var(--veil-border);
}
.veil-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.veil-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--veil-faint);
  font-size: 14px;
  font-weight: 700;
}
.veil-footer-links {
  display: flex; gap: 18px; font-size: 13px; color: var(--veil-faint);
}
.veil-footer-links a:hover { color: var(--veil-muted); }

.veil-footer-dms {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}
.veil-footer-dms-title {
  font-family: "Faculty Glyphic", serif;
  font-size: 20px;
  color: var(--veil-accent);
  letter-spacing: 0.02em;
}

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

@keyframes textShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.veil-line-shimmer {
  background: linear-gradient(90deg, #e9ecf3 0%, #8fc6ff 30%, #e9ecf3 50%, #8fc6ff 70%, #e9ecf3 100%) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 6s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(108,177,255,0.45); }
  50%      { box-shadow: 0 0 22px rgba(108,177,255,0.75), 0 0 44px rgba(108,177,255,0.20); }
}
.veil-eyebrow-dot { animation: dotPulse 2.4s ease-in-out infinite; }

/* Responsive */
@media (max-width: 1100px) {
  .veil-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .veil-hero { grid-template-columns: 1fr; }
  .veil-section-head { flex-direction: column; align-items: start; }
  .veil-shots { grid-template-columns: 1fr; }
  .veil-social-links { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .veil-shell, .veil-nav-inner { padding-left: 18px; padding-right: 18px; }
  .veil-grid-2, .veil-grid-3, .veil-grid-4 { grid-template-columns: 1fr; }
  .veil-split { grid-template-columns: 1fr; }
  .veil-nav-inner, .veil-footer-inner { flex-direction: column; align-items: start; }
  .veil-hero { padding-top: 42px; }
  .veil-hero h1, .veil-h1 { font-size: clamp(36px, 12vw, 56px); }
  .veil-feature { padding: 16px; }
}
