/* ==========================================================================
   Base: tokens, reset, layout primitives
   ========================================================================== */

:root {
  --dsk-bg: #020617;
  --dsk-bg-2: #0b1224;
  --dsk-surface: #0f172a;
  --dsk-surface-2: #16213a;
  --dsk-border: rgba(148, 163, 184, 0.16);
  --dsk-border-strong: rgba(148, 163, 184, 0.3);
  --dsk-text: #e2e8f0;
  --dsk-text-strong: #ffffff;
  --dsk-muted: #94a3b8;
  --dsk-accent: #0ea5e9;
  --dsk-accent-2: #38bdf8;
  --dsk-accent-soft: rgba(14, 165, 233, 0.12);
  --dsk-green: #22c55e;
  --dsk-red: #f43f5e;
  --dsk-yellow: #fbbf24;

  --dsk-font-display: "Orbitron", system-ui, sans-serif;
  --dsk-font-body: "IBM Plex Sans", "Roboto", system-ui, sans-serif;
  --dsk-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --dsk-radius: 14px;
  --dsk-radius-sm: 8px;
  --dsk-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --dsk-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dsk-nav-h: 72px;
  --dsk-gutter: clamp(1rem, 4vw, 2.5rem);
  --dsk-max: 1280px;
  --dsk-narrow: 760px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--dsk-nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--dsk-bg);
  color: var(--dsk-text);
  font-family: var(--dsk-font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--dsk-accent-2);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dsk-text-strong);
  line-height: 1.2;
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--dsk-accent);
  outline-offset: 3px;
}

::selection {
  background: var(--dsk-accent);
  color: #020617;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  z-index: 100000;
  top: 8px;
  left: 8px;
  padding: 0.75rem 1rem;
  background: var(--dsk-accent);
  color: #020617;
  border-radius: var(--dsk-radius-sm);
}

[hidden] {
  display: none !important;
}

/* Layout */
.dsk-main {
  display: block;
  min-height: 60vh;
  padding-top: var(--dsk-nav-h);
}

.dsk-main--flush {
  padding-top: 0;
}

.four-oh-four h1.prompt {
  font-size: 0.9rem;
}

.dsk-container {
  width: 100%;
  max-width: var(--dsk-max);
  margin-inline: auto;
  padding-inline: var(--dsk-gutter);
}

.dsk-container--narrow {
  max-width: calc(var(--dsk-narrow) + 2 * var(--dsk-gutter));
}

.dsk-section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.dsk-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.dsk-section__title {
  font-family: var(--dsk-font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.dsk-section__head .dsk-section__title {
  margin-bottom: 0;
}

/* Page hero (inner pages) */
.dsk-page-hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(14, 165, 233, 0.14), transparent 70%),
    linear-gradient(var(--dsk-border) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--dsk-border) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--dsk-bg);
  border-bottom: 1px solid var(--dsk-border);
  -webkit-mask-image: none;
}

.dsk-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--dsk-bg));
  pointer-events: none;
}

.dsk-page-hero > * {
  position: relative;
  z-index: 1;
}

.dsk-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--dsk-accent);
  font-family: var(--dsk-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dsk-eyebrow::before {
  content: "// ";
  opacity: 0.6;
}

.dsk-page-hero__title {
  font-family: var(--dsk-font-display);
  font-size: clamp(1.9rem, 5vw, 3.25rem);
  letter-spacing: 0.03em;
  max-width: 22ch;
}

.dsk-page-hero__intro {
  max-width: 62ch;
  margin: 1rem 0 0;
  color: var(--dsk-muted);
  font-size: 1.1rem;
}

.dsk-page-hero__intro.dsk-prose > :first-child {
  margin-top: 0;
}

.dsk-page-hero .dsk-chips,
.dsk-page-hero .dsk-btn {
  margin-top: 1.75rem;
}

.dsk-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--dsk-muted);
  font-size: 0.85rem;
}

.dsk-breadcrumbs a {
  color: var(--dsk-muted);
  text-decoration: none;
}

.dsk-breadcrumbs a:hover {
  color: var(--dsk-accent-2);
}

/* Hero CTA (was a <button> inside a link; now a single link with the same look) */
.hero .cta-btn {
  display: inline-block;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}