/* Nord Express: snow and ink, hairline cards, one cold blue for the north. Light by default,
   dark when the visitor's system asks for it. Inter for text, Inter Tight for titles. */

:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --line: #e2e6e9;
  --ink: #0e1a26;
  --ink-2: #3d4a57;
  --ink-3: #66737f;
  --accent: #2563c9;
  --aurora-1: rgb(140 200 255 / 0.35);
  --aurora-2: rgb(127 212 166 / 0.22);
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --radius: 0.875rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1118;
    --surface: #111a24;
    --line: #1f2b37;
    --ink: #eef2f6;
    --ink-2: #b5c0cb;
    --ink-3: #8593a1;
    --accent: #8cc8ff;
    --aurora-1: rgb(140 200 255 / 0.14);
    --aurora-2: rgb(127 212 166 / 0.1);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 1rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

.skip {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  border-radius: 0.375rem;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 1.5rem;
  }
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kicker {
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Header */

.top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mark {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

.nav {
  display: flex;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.375rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color 120ms, color 120ms;
}

.nav a:hover {
  background: var(--surface);
  color: var(--ink);
}

/* Hero: a faint aurora over the snow. */

.hero {
  position: relative;
  padding: 4rem 0 5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -6rem 0 0;
  z-index: -1;
  background:
    radial-gradient(40rem 18rem at 78% 8%, var(--aurora-1), transparent 70%),
    radial-gradient(32rem 16rem at 18% 0%, var(--aurora-2), transparent 70%);
  pointer-events: none;
}

@media (min-width: 64rem) {
  .hero {
    padding: 7rem 0 7.5rem;
  }
}

.hero h1 {
  max-width: 52rem;
  margin-top: 1.25rem;
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 40rem;
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.875rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 120ms, transform 160ms;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--ink-2);
}

.btn .arrow {
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

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

/* Sections */

.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 64rem) {
  .section {
    padding: 6rem 0;
  }
}

.section h2 {
  max-width: 40rem;
  margin-top: 0.9rem;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* Products */

.products {
  display: grid;
  gap: 1rem;
  margin-top: 2.75rem;
}

@media (min-width: 52rem) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.product {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 160ms, box-shadow 160ms;
}

.product:hover {
  border-color: color-mix(in srgb, var(--ink-3) 40%, var(--line));
  box-shadow: 0 18px 40px -24px rgb(14 26 38 / 0.25);
}

@media (min-width: 64rem) {
  .product {
    padding: 2.25rem;
  }
}

.product-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--bg);
}

.logo img {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
}

.product h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.domain {
  color: var(--ink-3);
  font-size: 0.85rem;
}

.tagline {
  margin-top: 1.5rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.product > p:not(.tagline) {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.points {
  display: grid;
  gap: 0.55rem;
  margin: 1.4rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  list-style: none;
}

.points li {
  position: relative;
  padding-left: 1.4rem;
}

.points li::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: 0.15rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.go {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1.75rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.go:hover {
  color: var(--accent);
}

.go .arrow {
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.go:hover .arrow {
  transform: translateX(3px);
}

/* Principles */

.principles {
  display: grid;
  gap: 2rem;
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.principles li {
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}

.num {
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.principles h3 {
  margin-top: 0.6rem;
  font-size: 1.2rem;
}

.principles p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* Footer */

.foot {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.9rem;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.made {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.made .mark {
  width: 1.25rem;
  height: 1.25rem;
}

.foot nav {
  display: flex;
  gap: 1.25rem;
}

.foot nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.foot nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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