/* Nullett website. All values come from tokens.css. No JavaScript is used anywhere on this site. */

@font-face { font-family: 'Ubuntu Sans'; src: url('/assets/fonts/UbuntuSans-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Ubuntu Sans'; src: url('/assets/fonts/UbuntuSans-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Ubuntu Sans'; src: url('/assets/fonts/UbuntuSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Ubuntu Sans'; src: url('/assets/fonts/UbuntuSans-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Ubuntu Sans Mono'; src: url('/assets/fonts/UbuntuSansMono-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --art-bar: var(--indigo-400);
  --art-band: var(--indigo-500);
  --art-line: rgba(137, 146, 254, .38);
  --art-grid: rgba(249, 250, 253, .06);
  --header-h: 4.5rem;
}
:root[data-theme="light"] {
  --art-bar: var(--indigo-600);
  --art-band: var(--indigo-500);
  --art-line: rgba(75, 65, 207, .35);
  --art-grid: rgba(21, 22, 33, .07);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --art-bar: var(--indigo-600);
    --art-band: var(--indigo-500);
    --art-line: rgba(75, 65, 207, .35);
    --art-grid: rgba(21, 22, 33, .07);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--space-16)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
::selection { background: var(--indigo-600); color: #fff; }

.skip { position: absolute; left: var(--space-16); top: -4rem; z-index: 20; padding: var(--space-8) var(--space-16); background: var(--bg-overlay); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-md); }
.skip:focus { top: var(--space-16); }

.wrap { width: 100%; max-width: var(--width-content); margin: 0 auto; padding: 0 var(--space-16); }
@media (min-width: 640px) { .wrap { padding: 0 var(--space-24); } }
@media (min-width: 1024px) { .wrap { padding: 0 var(--space-32); } }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: var(--bg-page); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-flex; border-radius: var(--radius-sm); }
.logo img { width: 7rem; }
.nav { display: flex; align-items: center; gap: var(--space-32); font-weight: 500; }
.nav-link { color: var(--text-secondary); text-decoration: none; transition: color var(--duration-fast) var(--ease); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
@media (max-width: 719px) { .nav-link { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  min-height: var(--control-lg); padding: 0 var(--space-24);
  background: var(--button); color: var(--on-button);
  border: 1px solid transparent; border-radius: var(--radius-md);
  font: 500 var(--type-body-size)/1.2 var(--font-sans); text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}
.btn:hover { background: var(--button-hover); }
.btn-small { min-height: var(--control-md); padding: 0 var(--space-16); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-raised); border-color: var(--border-input); }

/* Icons: Tabler outline, drawn in the current text colour */
.icon { display: inline-block; flex: none; width: 1.25rem; height: 1.25rem; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.i-server { --icon: url('/assets/icons/server.svg'); }
.i-cloud { --icon: url('/assets/icons/cloud.svg'); }
.i-shield { --icon: url('/assets/icons/shield-lock.svg'); }
.i-code { --icon: url('/assets/icons/code.svg'); }
.i-mail { --icon: url('/assets/icons/mail.svg'); }
.i-check { --icon: url('/assets/icons/check.svg'); }

/* Hero */
.hero { padding: var(--space-48) 0 var(--space-64); overflow: hidden; }
.hero-grid { display: grid; gap: var(--space-48); align-items: center; }
.hero h1 {
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 11ch;
}
.hero .lead { margin-top: var(--space-24); max-width: 34rem; color: var(--text-secondary); font-size: 1.1875rem; line-height: 1.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-12); margin-top: var(--space-32); }
.hero-figure { justify-self: center; width: min(100%, 26rem); }
@media (min-width: 960px) {
  .hero { padding: var(--space-64) 0 var(--space-96); }
  .hero-grid { grid-template-columns: 7fr 5fr; min-height: min(38rem, calc(100svh - var(--header-h) - 8rem)); }
  .hero-figure { width: 100%; max-width: 32rem; justify-self: end; }
}

/* Hero art: the symbol shown with its construction */
.hero-art { width: 100%; height: auto; overflow: visible; }
.art-grid line { stroke: var(--art-grid); stroke-width: .04; }
.art-frame { fill: none; stroke: var(--art-line); stroke-width: .06; }
.art-lines line { stroke: var(--art-line); stroke-width: .06; stroke-dasharray: 1; stroke-dashoffset: 0; }
.art-points circle { fill: var(--text-accent); }
.art-bar { fill: var(--art-bar); }
.art-band { fill: var(--art-band); }

@media (prefers-reduced-motion: no-preference) {
  .art-grid, .art-frame { animation: art-fade 600ms var(--ease) both; }
  .art-lines line { animation: art-draw 1400ms var(--ease) 150ms both; }
  .art-bar-l, .art-bar-r, .art-band-u, .art-band-l { animation: art-fold 900ms var(--ease) both; }
  .art-bar-l { --from: translate(0, 9px); animation-delay: 700ms; }
  .art-bar-r { --from: translate(0, -9px); animation-delay: 800ms; }
  .art-band-u { --from: translate(-8px, -6px); animation-delay: 950ms; }
  .art-band-l { --from: translate(8px, 6px); animation-delay: 1050ms; }
  .art-points { animation: art-fade 600ms var(--ease) 1600ms both; }
}
@keyframes art-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes art-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes art-fold { from { opacity: 0; transform: var(--from); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: var(--space-64) 0; border-top: 1px solid var(--border); }
@media (min-width: 960px) { .section { padding: var(--space-96) 0; } }
.section-head { display: grid; gap: var(--space-16); margin-bottom: var(--space-48); }
@media (min-width: 960px) { .section-head { grid-template-columns: 5fr 7fr; gap: var(--space-48); align-items: end; } }
.section h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; max-width: 16ch; }
.section-head p { color: var(--text-secondary); font-size: 1.125rem; line-height: 1.75rem; max-width: 36rem; }
.section h3 { font-size: var(--type-h3-size); line-height: var(--type-h3-line); font-weight: 600; }
.muted { color: var(--text-secondary); }

/* Services */
.services { display: grid; gap: var(--space-24); }
@media (min-width: 768px) { .services { grid-template-columns: repeat(2, 1fr); } }
.service { display: flex; flex-direction: column; gap: var(--space-16); padding: var(--space-32); background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.service .icon { width: 2rem; height: 2rem; color: var(--text-accent); }
.service p { color: var(--text-secondary); }
.service ul { display: grid; gap: var(--space-8); margin-top: auto; padding-top: var(--space-16); border-top: 1px solid var(--border); }
.service li { display: flex; align-items: center; gap: var(--space-12); font-size: var(--type-small-size); line-height: var(--type-small-line); }
.service li::before { content: ""; width: .75rem; height: 2px; background: var(--text-accent); flex: none; }

.platforms { display: grid; gap: var(--space-16); margin-top: var(--space-48); }
@media (min-width: 960px) { .platforms { grid-template-columns: 5fr 7fr; gap: var(--space-48); align-items: baseline; } }
.platforms h3 { font-size: var(--type-body-size); line-height: var(--type-body-line); font-weight: 500; color: var(--text-secondary); }
.platforms ul { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.platforms li { padding: var(--space-4) var(--space-12); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: var(--type-small-size); line-height: var(--type-small-line); font-weight: 500; }

/* Process */
.steps { display: grid; gap: var(--space-32); counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-24); } }
.step { counter-increment: step; padding-top: var(--space-24); border-top: 1px solid var(--border-strong); }
.step::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: var(--space-16); color: var(--text-accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.step p { margin-top: var(--space-8); color: var(--text-secondary); }

/* Security of this site */
.proof { display: grid; gap: var(--space-48); }
@media (min-width: 960px) { .proof { grid-template-columns: 5fr 7fr; align-items: start; } }
.proof h2 { margin-bottom: var(--space-16); }
.facts { display: grid; gap: var(--space-12); margin-top: var(--space-32); }
.facts li { display: flex; gap: var(--space-12); align-items: flex-start; }
.facts .icon { color: var(--success); margin-top: 2px; }
.headers { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.headers figcaption { display: flex; justify-content: space-between; gap: var(--space-16); padding: var(--space-12) var(--space-24); border-bottom: 1px solid var(--border); color: var(--text-secondary); font-size: var(--type-small-size); line-height: var(--type-small-line); }
.headers pre { padding: var(--space-24); font-family: var(--font-mono); font-size: .8125rem; line-height: 1.6; color: var(--text-secondary); white-space: pre-wrap; overflow-wrap: anywhere; }
.headers b { font-weight: 400; color: var(--text-accent); }

/* Contact */
.cta { display: grid; gap: var(--space-24); padding: var(--space-48) var(--space-24); background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); }
@media (min-width: 768px) { .cta { padding: var(--space-64); grid-template-columns: 1fr auto; align-items: end; gap: var(--space-48); } }
.cta h2 { margin-bottom: var(--space-12); max-width: none; }
.cta p { color: var(--text-secondary); font-size: 1.125rem; line-height: 1.75rem; max-width: 34rem; }

/* Page intro (About, Privacy) */
.intro { padding: var(--space-64) 0 var(--space-48); }
.intro h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; max-width: 14ch; }
.intro p { margin-top: var(--space-24); max-width: 40rem; color: var(--text-secondary); font-size: 1.1875rem; line-height: 1.75rem; }

.pillars { display: grid; gap: var(--space-32); }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: var(--space-24); } }
.pillar { padding-top: var(--space-24); border-top: 2px solid var(--text-accent); }
.pillar h3 { font-size: 1.75rem; line-height: 2.25rem; font-weight: 700; letter-spacing: -0.01em; }
.pillar p { margin-top: var(--space-12); color: var(--text-secondary); }

.terms { display: grid; gap: var(--space-24); max-width: 48rem; }
.terms li { display: grid; gap: var(--space-4); padding-bottom: var(--space-24); border-bottom: 1px solid var(--border); }
.terms li:last-child { border-bottom: 0; padding-bottom: 0; }
.terms strong { font-weight: 600; }
.terms span { color: var(--text-secondary); }

.prose { max-width: var(--width-reading); }
.prose h2 { font-size: var(--type-h3-size); line-height: var(--type-h3-line); letter-spacing: 0; font-weight: 600; margin: var(--space-48) 0 var(--space-12); max-width: none; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-secondary); }
.prose p + p { margin-top: var(--space-16); }
.prose a { color: var(--text-accent); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: var(--space-64) 0 var(--space-32); font-size: var(--type-small-size); line-height: var(--type-small-line); color: var(--text-secondary); }
.footer-grid { display: grid; gap: var(--space-32); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand img { width: 7rem; margin-bottom: var(--space-12); }
.footer h2 { font-size: var(--type-small-size); line-height: var(--type-small-line); font-weight: 600; color: var(--text); margin-bottom: var(--space-12); }
.footer li + li { margin-top: var(--space-8); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-bottom { margin-top: var(--space-48); padding-top: var(--space-24); border-top: 1px solid var(--border); color: var(--text-muted); }
