/* Quantacuzion, "Mono Lattice": black and white, one weight of line, no glows.
   Self-hosted fonts only (the CSP allows font-src 'self'); all motion is CSS and stops
   under prefers-reduced-motion. */

@font-face {
  font-family: "Unbounded";
  src: url(fonts/unbounded-latin-wght-normal.woff2) format("woff2");
  font-weight: 200 900;
  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: "Inter Tight";
  src: url(fonts/inter-tight-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900;
  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;
}

/* Romanian letters in the legal footer (ă, ș, ț). */
@font-face {
  font-family: "Inter Tight";
  src: url(fonts/inter-tight-latin-ext-wght-normal.woff2) format("woff2");
  font-weight: 100 900;
  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;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 800;
  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;
}

:root {
  --bg: #0c0c0d;
  --bg-2: #141416;
  --bg-3: #1c1c1f;
  --line: #2a2a2e;
  --line-2: #3d3d43;
  --node: #36363b;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --bad: #ff5d5d;
  --radius: 18px;
  --display: "Unbounded", "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

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

::selection {
  background: var(--text);
  color: var(--bg);
}

a {
  color: var(--text);
  text-underline-offset: 3px;
  text-decoration-color: var(--line-2);
}

a:hover {
  text-decoration-color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 6px;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 0.05em 0.4em;
  border-radius: 6px;
}

.wrap {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

.narrow {
  width: min(820px, 100% - 32px);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 50;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 10px;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 12, 13, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.mark .m-box {
  fill: var(--bg-2);
  stroke: var(--text);
  stroke-width: 1.5;
}

.mark .m-dot {
  fill: var(--node);
}

.mark .m-line {
  stroke: var(--text);
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
}

.mark .m-on {
  fill: var(--text);
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
}

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

.nav a:hover {
  color: var(--text);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  font-weight: 650;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.button .arrow {
  transition: transform 0.15s ease;
}

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

.button.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}

.button.ghost:hover {
  border-color: var(--text);
}

.button.small {
  padding: 10px 18px;
  font-size: 14.5px;
}

.top .button.small {
  margin-left: 4px;
}

/* Hero. The lattice floor stays in the strip below the copy, so no line runs behind text. */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding: 72px 0 168px;
}

.floor {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: 0;
  height: 150px;
  z-index: -1;
  background-image:
    repeating-linear-gradient(90deg, var(--node) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, var(--node) 0 1px, transparent 1px 80px);
  transform: perspective(620px) rotateX(60deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
  animation: drift 5s linear infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
  animation: pulse 1.6s ease-in-out infinite;
}

h1 {
  margin: 26px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

/* Outlined words: the stroke is painted first and the letter is filled with the background, so
   the font's overlapping contours (where a crossbar meets a stem) never show as lines inside it.
   The stroke is twice the visible width; the fill covers its inner half. */
.outline,
.decrypt {
  color: var(--bg);
  -webkit-text-stroke: 3px var(--text);
  paint-order: stroke fill;
}

/* "tomorrow?" starts as an outline and fills in: the recording becomes readable. */
.decrypt {
  animation: decrypt 1.2s ease-in-out 1s forwards;
}

.lead {
  margin: 26px 0 0;
  max-width: 36em;
  font-size: 19.5px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--muted);
}

.proof b {
  color: var(--text);
  font-weight: 600;
}

/* The lattice: ML-KEM's security rests on lattice problems. */
.lattice {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 470px;
  justify-self: end;
}

.lattice svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.lattice .edges {
  stroke: #1f1f23;
  stroke-width: 1;
  fill: none;
}

.lattice .nodes {
  fill: var(--node);
}

.lattice .route {
  fill: none;
  stroke: var(--text);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.6s cubic-bezier(0.5, 0, 0.2, 1) 0.4s forwards;
}

.lattice .on circle {
  fill: var(--text);
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: pop 0.35s ease-out forwards;
}

.lattice .on circle:nth-child(1) { animation-delay: 0.35s; }
.lattice .on circle:nth-child(2) { animation-delay: 1.25s; }
.lattice .on circle:nth-child(3) { animation-delay: 2.0s; }
.lattice .on circle:nth-child(4) { animation-delay: 2.85s; }

.chip {
  position: absolute;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--muted);
}

.chip b {
  color: var(--text);
  font-weight: 600;
}

.chip.bad b {
  color: var(--bad);
}

.chip.c1 {
  left: -12%;
  top: 4%;
}

.chip.c2 {
  right: -4%;
  bottom: 9%;
}

/* Ticker */

.ticker {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 34px;
  height: 58px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--text);
  color: var(--bg);
  transform: rotate(-1.6deg);
}

.ticker-track {
  display: flex;
  flex: none;
  align-items: center;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  animation: marquee 32s linear infinite;
}

.ticker-track span {
  padding: 0 22px;
}

.ticker-track i {
  width: 9px;
  height: 9px;
  background: var(--bg);
  transform: rotate(45deg);
  flex: none;
}

/* Sections */

.band {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.label b {
  color: var(--text);
  font-weight: 600;
}

.label::after {
  content: "";
  flex: 0 0 48px;
  height: 1px;
  background: var(--line-2);
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 26ch;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.section-lead {
  margin: 20px 0 0;
  max-width: 44em;
  font-size: 19px;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 18px;
  margin-top: 48px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 30px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.card a {
  color: var(--text);
}

.num {
  display: block;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
}

/* EU timeline */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 1px;
  background: var(--line-2);
}

.timeline li {
  position: relative;
  padding-top: 34px;
  color: var(--muted);
  font-size: 15.5px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  background: var(--bg);
}

.timeline b {
  display: block;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 6px;
}

.timeline .now::before {
  background: var(--text);
  border-color: var(--text);
}

.timeline .now::after {
  content: "";
  position: absolute;
  left: -6px;
  top: -4px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid var(--text);
  animation: ring 2.2s ease-out infinite;
}

.timeline .tag-now {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 6px;
}

/* Offers */

.offer ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15.5px;
}

.offer li {
  position: relative;
  padding-left: 22px;
}

.offer li + li {
  margin-top: 9px;
}

.offer li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}

.card .tag {
  display: inline-block;
  margin: 0 0 18px;
  padding: 4px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.offer.featured {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.offer.featured p,
.offer.featured ul {
  color: #3f3f46;
}

.offer.featured .tag,
.offer.featured p.tag {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--text);
}

.offer.featured code {
  background: #e4e4e7;
  border-color: #d4d4d8;
  color: var(--bg);
}

.scope {
  margin: 28px 0 0;
  padding: 18px 22px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  color: var(--muted);
  font-size: 15.5px;
}

.scope strong {
  color: var(--text);
}

/* Case study */

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 48px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 22px 0 22px 64px;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  color: var(--dim);
}

.steps p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.terminal {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #08080a;
  overflow: hidden;
  position: sticky;
  top: 104px;
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
}

.terminal pre {
  margin: 0;
  padding: 20px 22px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: #d4d4d8;
}

.terminal code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}

.terminal figcaption {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.prompt {
  color: var(--dim);
}

.ok {
  color: var(--text);
  font-weight: 700;
}

.bad {
  color: var(--bad);
  font-weight: 700;
}

.dim {
  color: var(--dim);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 56px 0 0;
}

.stats div {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stats dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats dd {
  margin: 10px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* FAQ */

.faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  padding: 24px 48px 24px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 18.5px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before,
summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease;
}

summary::after {
  transform: rotate(90deg);
}

details[open] summary::after {
  transform: rotate(0deg);
}

details p {
  margin: 0 0 24px;
  max-width: 46em;
  color: var(--muted);
}

/* Call to action */

.cta {
  position: relative;
  padding: 120px 0;
  border-top: 1px solid var(--line);
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.6px);
  background-size: 28px 28px;
  background-position: center;
}

.cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 48px;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: var(--bg);
}

.cta h2 {
  font-size: clamp(30px, 4.2vw, 54px);
}

.cta p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

/* Footer */

.foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  color: var(--dim);
  font-size: 14.5px;
}

.foot p {
  margin: 0 0 8px;
  max-width: 62em;
}

.foot strong {
  color: var(--text);
}

.foot a {
  color: var(--muted);
}

/* Error page */

.error {
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}

.error .big {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(96px, 22vw, 220px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--bg);
  -webkit-text-stroke: 4px var(--text);
  paint-order: stroke fill;
}

.error h1 {
  margin-top: 12px;
  font-size: clamp(26px, 4vw, 40px);
}

.error p {
  color: var(--muted);
}

/* Motion */

@keyframes drift {
  to {
    background-position: 0 0, 0 80px;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

@keyframes decrypt {
  to {
    color: var(--text);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pop {
  to {
    transform: scale(1);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes ring {
  from {
    transform: scale(0.6);
    opacity: 0.9;
  }
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Layout */

@media (max-width: 1100px) {
  .chip.c1 {
    left: -4%;
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .top .button.small {
    margin-left: auto;
  }

  .hero {
    padding: 48px 0 150px;
  }

  .hero-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .lattice {
    justify-self: center;
    max-width: 420px;
  }

  .cards.three {
    grid-template-columns: 1fr;
  }

  .timeline,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }

  .timeline::before {
    display: none;
  }

  .terminal {
    position: static;
  }

  .band {
    padding: 80px 0;
  }

  .cta {
    padding: 80px 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16.5px;
  }

  .top-row {
    height: 64px;
    gap: 12px;
  }

  .brand {
    font-size: 16px;
  }

  .hero {
    padding-top: 36px;
  }

  .lead {
    font-size: 17.5px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .actions .button {
    width: 100%;
    justify-content: center;
  }

  .chip {
    font-size: 11px;
    padding: 8px 10px;
  }

  .chip.c1 {
    left: 0;
    top: -2%;
  }

  .chip.c2 {
    right: 0;
    bottom: 2%;
  }

  .ticker {
    height: 48px;
    bottom: 28px;
  }

  .ticker-track {
    font-size: 15px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .steps li {
    padding-left: 52px;
  }

  .cta-box {
    padding: 30px 24px;
  }

  .cta-box .button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .decrypt {
    color: var(--text);
  }

  .lattice .route {
    stroke-dashoffset: 0;
  }

  .lattice .on circle {
    transform: none;
  }
}
