/* ==========================================================================
   NorthStack Technologies Group LLC: what the website's pages share (the home page, the privacy policy and
   "page not found"): the fonts, the colors, the name and logo, and the two small pages' own layout.
   The home page adds its own styles in the page. Fonts are self-hosted in /fonts.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* The colors: Indigo Night, blue-to-violet buttons and the logo in the stack's colors, on Black. */
:root {
  /* Palette */
  --night: #050505;      /* the page */
  --fjord: #12143A;      /* raised panels */
  --fjord-2: #151743;    /* the recommended plan */
  --glacier: #EEF0FF;    /* primary text */
  --frost: #979CC6;      /* secondary text */
  --star: #5653F6;       /* north star: primary action, recommended */
  --star-hi: #2F6BFF;    /* buttons run from this blue, through --star... */
  --star-lo: #7C3AED;    /* ...to this violet, left to right */
  --star-soft: #A5B4FC;  /* north star as text or outline on the dark page */
  --brand: #5B8CFF;      /* "Stack" in the name */
  --ink-on-star: #FFFFFF;
  --error: #FF5C70;

  /* Aurora layer tints, bottom of the stack to the top */
  --l0: #1E80F2;  /* licensing */
  --l1: #336EF5;  /* desktop support */
  --l2: #4F68F5;  /* help desk */
  --l3: #6361F5;  /* servers and network */
  --l4: #7559F5;  /* security */
  --l5: #854EF5;  /* cloud */
  --l6: #953FF5;  /* apps and websites */
  --aurora-hi: #62A6F6;  /* the aurora's bright lower edge */
  --logo-a: #953FF5;  /* logo, top chevron: the stack's top layer */
  --logo-b: #6361F5;
  --logo-c: #1E80F2;  /* logo, bottom chevron: the stack's bottom layer */

  /* Color channels, for see-through versions of the colors above */
  --night-rgb: 5, 5, 5;
  --glacier-rgb: 238, 240, 255;
  --star-rgb: 86, 83, 246;
  --soft-rgb: 165, 180, 252;
  --l0-rgb: 30, 128, 242;
  --l4-rgb: 117, 89, 245;
  --l5-rgb: 133, 78, 245;
  --l6-rgb: 149, 63, 245;

  --line: rgba(var(--glacier-rgb), 0.09);
  --line-strong: rgba(var(--glacier-rgb), 0.17);
  --glass: linear-gradient(180deg, rgba(var(--glacier-rgb), 0.055), rgba(var(--glacier-rgb), 0.018));

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--glacier);
  font-family: var(--font);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--star-soft); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* --- The name and logo ------------------------------------------------------ */
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--glacier); }
/* The icon runs exactly from the top of "NorthStack" to the bottom of "TECHNOLOGIES GROUP" (0.89 x name size + gap + 0.85 x tagline size). */
.brand-mark { width: 23.9px; height: 27.3px; flex: none; position: relative; top: .5px; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-size: 21px; font-weight: 800; font-stretch: 112%; letter-spacing: -0.015em; }
.brand-name b span { color: var(--brand); }
.brand-name small { margin: 1px -0.21em 0 0; font-size: 8.5px; font-weight: 500; font-stretch: 112%; letter-spacing: 0.21em; text-transform: uppercase; color: var(--frost); }
.nav .brand { gap: 10px; }
.nav .brand-mark { width: 31.6px; height: 36px; top: .7px; }
.nav .brand-name b { font-size: 28px; }
.nav .brand-name small { margin-top: 1px; font-size: 11.3px; }

/* Artwork follows the colors too (these rules beat the SVGs' own color attributes). */
[fill="#0B0E1A"] { fill: var(--night); }
[fill="#B276FF"] { fill: var(--logo-a); } [stroke="#B276FF"] { stroke: var(--logo-a); }
[fill="#6F77FF"] { fill: var(--logo-b); } [stroke="#6F77FF"] { stroke: var(--logo-b); }
[fill="#48B8FF"] { fill: var(--logo-c); } [stroke="#48B8FF"] { stroke: var(--logo-c); }
[stroke="#A1A9FF"] { stroke: var(--star-soft); }
[stop-color="#48B8FF"] { stop-color: var(--l0); }
[stop-color="#7CCBFF"] { stop-color: var(--aurora-hi); }
[stop-color="#5A93FF"] { stop-color: var(--l2); }
[stop-color="#6F77FF"] { stop-color: var(--l4); }
[stop-color="#8F6CFF"] { stop-color: var(--l5); }
[stop-color="#B276FF"] { stop-color: var(--l6); }

/* --- The small pages: the privacy policy and "page not found" (body.small-page) --------------- */
.small-page { min-height: 100vh; display: flex; flex-direction: column; line-height: 1.65; }
/* /glow.js draws these glows on the canvas below with dithering, so they fade without rings; the gradients
   here stay for anyone without scripts. */
.small-page::before {
  content: ""; position: fixed; inset: 0 0 auto; height: 70vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 60% at 78% 0%, rgba(var(--l0-rgb), .13), transparent 70%),
    radial-gradient(40% 50% at 35% 0%, rgba(var(--l5-rgb), .1), transparent 70%);
}
.small-page .sky-glow { position: fixed; left: 0; top: 0; width: 100%; height: 70vh; z-index: -1; pointer-events: none; }
.small-page .nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 84px; }
.small-page .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border-radius: 12px; font: inherit; font-size: 15px; font-weight: 600; font-stretch: 110%; text-decoration: none; white-space: nowrap;
  color: var(--ink-on-star); background: linear-gradient(90deg, var(--star-hi) 0%, var(--star) 52%, var(--star-lo) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 12px 32px -12px rgba(var(--star-rgb), .7);
}
.small-page main { flex: 1; }
.small-page .display { font-stretch: 125%; font-weight: 640; letter-spacing: -.025em; line-height: 1.02; text-wrap: balance; margin: 0; }

/* The privacy policy */
.prose { max-width: 42em; padding: clamp(48px, 8vw, 96px) 0 clamp(72px, 10vw, 120px); }
.prose h1 { font-size: clamp(36px, 5vw, 60px); }
.prose .updated { margin: 18px 0 48px; color: var(--frost); }
.prose h2 { margin: 44px 0 12px; font-size: 21px; font-weight: 600; font-stretch: 116%; letter-spacing: -.01em; line-height: 1.25; }
.prose p, .prose ul { margin: 0 0 16px; color: color-mix(in srgb, var(--glacier) 55%, var(--frost)); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--glacier); text-underline-offset: 4px; text-decoration-color: rgba(var(--soft-rgb), .6); }
.prose a:hover { color: var(--star-soft); }

/* Page not found */
.notfound { display: grid; place-items: center; text-align: center; min-height: 64vh; padding: 48px 0 96px; }
.notfound svg { width: 50px; height: 57px; margin: 0 auto 28px; filter: drop-shadow(0 0 16px rgba(var(--l4-rgb), .7)); }
.notfound h1 { font-size: clamp(40px, 6vw, 72px); }
.notfound p { margin: 18px auto 32px; max-width: 26em; color: var(--frost); }

.small-page .site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 14px; color: var(--frost); }
.small-page .site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.small-page .site-footer p { margin: 0; }
.small-page .site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.small-page .site-footer a { color: var(--frost); text-underline-offset: 3px; }
.small-page .site-footer a:hover { color: var(--glacier); }
@media (max-width: 520px) { .small-page .nav .btn { display: none; } }
