/* =========================================================
   DEVIGO — DESIGN TOKENS & BASE
   Palette derived from brand mark: void navy + signal blue.
   Display: Chakra Petch · Body: Plus Jakarta Sans · Mono: JetBrains Mono
   ========================================================= */

:root {
  /* ---- Color: surfaces ---- */
  --navy-950: #03142b; /* page background — exact brand navy */
  --navy-900: #071b33; /* elevated surface / cards */
  --navy-850: #0b2340; /* hover surface */
  --navy-800: #10294a; /* borders / dividers on dark */
  --navy-700: #1a3a63; /* stronger border, active states */

  /* ---- Color: accent ---- */
  --blue-500: #006cfe; /* exact brand blue — primary accent */
  --blue-400: #3d8bff; /* lighter accent / hover / glow core */
  --blue-300: #7cb0ff; /* faint accent, text-on-blue */
  --blue-glow: rgba(0, 108, 254, 0.45);
  --blue-glow-soft: rgba(0, 108, 254, 0.18);

  /* ---- Color: text ---- */
  --ice-100: #f5f8fc; /* primary text on dark */
  --ice-200: #dce4ef; /* secondary heading text */
  --slate-400: #8895ac; /* muted / secondary body text */
  --slate-500: #6c7a94; /* tertiary / caption text */
  --slate-600: #4e5a72; /* faintest labels, disabled */

  /* ---- Semantic ---- */
  --success: #35d399;
  --danger: #ff5d6c;

  /* ---- Type families ---- */
  --font-display: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* ---- Type scale (fluid) ---- */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --fs-2xl: clamp(2rem, 1.6rem + 1.8vw, 2.75rem);
  --fs-3xl: clamp(2.5rem, 1.9rem + 2.8vw, 3.75rem);
  --fs-4xl: clamp(3rem, 2.1rem + 4.2vw, 5rem);

  /* ---- Spacing scale ---- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* ---- Layout ---- */
  --content-width: 1280px;
  --content-pad: clamp(1.25rem, 4vw, 3rem);
  --header-h: 84px;

  /* ---- Geometry: signature chamfer cut ---- */
  --chamfer: 14px;
  --chamfer-sm: 8px;
  --chamfer-lg: 22px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-base: 320ms;
  --dur-slow: 640ms;

  /* ---- Elevation ---- */
  --shadow-sm: 0 2px 10px rgba(1, 8, 20, 0.35);
  --shadow-md: 0 12px 32px rgba(1, 8, 20, 0.45);
  --shadow-glow:
    0 0 0 1px rgba(0, 108, 254, 0.25), 0 20px 60px -20px rgba(0, 108, 254, 0.35);

  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
}

/* =========================================================
   RESET
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ice-200);
  background: var(--navy-950);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ice-100);
  letter-spacing: -0.01em;
}

p {
  color: var(--slate-400);
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

input,
textarea,
select {
  outline: none;
}

table {
  border-collapse: collapse;
}

::selection {
  background: var(--blue-500);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--navy-950);
}
::-webkit-scrollbar-thumb {
  background: var(--navy-700);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blue-500);
}
* {
  scrollbar-color: var(--navy-700) var(--navy-950);
  scrollbar-width: thin;
}

/* Focus visibility — accessibility floor */
:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================================================
   UTILITIES
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

.section {
  padding-block: var(--sp-10);
  position: relative;
}
.section-tight {
  padding-block: var(--sp-8);
  position: relative;
}

@media (max-width: 720px) {
  .section {
    padding-block: var(--sp-8);
  }
  .section-tight {
    padding-block: var(--sp-6);
  }
}

.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;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--sp-4);
  z-index: 1000;
  background: var(--blue-500);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus {
  top: var(--sp-4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--blue-500);
  filter: drop-shadow(0 0 6px var(--blue-glow));
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--sp-8);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-4);
}
.section-head p {
  font-size: var(--fs-md);
}

.text-slate {
  color: var(--slate-400);
}
.text-blue {
  color: var(--blue-400);
}
.mono {
  font-family: var(--font-mono);
}

.hr-fade {
  height: 1px;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--navy-700) 20%,
    var(--navy-700) 80%,
    transparent
  );
}

/* Chamfer geometry — the site's signature cut corner, echoing the logo's D */
.chamfer {
  clip-path: polygon(
    var(--chamfer) 0,
    100% 0,
    100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%,
    0 100%,
    0 var(--chamfer)
  );
}
.chamfer-sm {
  clip-path: polygon(
    var(--chamfer-sm) 0,
    100% 0,
    100% calc(100% - var(--chamfer-sm)),
    calc(100% - var(--chamfer-sm)) 100%,
    0 100%,
    0 var(--chamfer-sm)
  );
}
.chamfer-lg {
  clip-path: polygon(
    var(--chamfer-lg) 0,
    100% 0,
    100% calc(100% - var(--chamfer-lg)),
    calc(100% - var(--chamfer-lg)) 100%,
    0 100%,
    0 var(--chamfer-lg)
  );
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--blue-300);
  background: var(--blue-glow-soft);
  border: 1px solid rgba(0, 108, 254, 0.3);
}

.grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}
