/* The coming-soon page's own stylesheet, in the look of the Blouppy app: the
 * template's tokens (front/libs/ui/src/tokens/tokens.css) written out as
 * values — this page has no build step, so it cannot import the library —
 * with the app's radii, chips and coloured avatars, at a reading size. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  color-scheme: light;

  --primary-50: #f5f5fc;
  --primary-100: #ebebf9;
  --primary-200: #ced0f2;
  --primary-300: #b5bfeb;
  --primary-400: #8e93dc;
  --primary-500: #676dcf;
  --primary-600: #5052a7;

  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-subtle: #f4f4f5;
  --card: #ffffff;
  --border: #e4e4e7;
  --heading: #18181b;
  --text: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --fill: var(--primary-500);
  --fill-hover: var(--primary-600);
  --on-fill: #ffffff;
  --accent-soft: var(--primary-100);
  --accent-text: var(--primary-600);
  --hero-bg: linear-gradient(180deg, var(--primary-50), var(--bg));

  /* The app's avatar tints: a soft fill and the text that reads on it. */
  --sky-bg: #e0f2fe;
  --sky-fg: #0369a1;
  --indigo-bg: #e0e7ff;
  --indigo-fg: #4338ca;
  --amber-bg: #fef3c7;
  --amber-fg: #b45309;
  --green-bg: #dcfce7;
  --green-fg: #15803d;
  --pink-bg: #fce7f3;
  --pink-fg: #be185d;
  --violet-bg: #ede9fe;
  --violet-fg: #6d28d9;


  /* The logo's flamingo palette, used for decoration only. */
  --flamingo-peach: #ffc1a3;
  --flamingo-pink: #ffb1bb;
  --flamingo-lilac: #efc2eb;
  --flamingo-blue: #afc1ee;
  --shape-opacity: 0.4;

  --font-sans: 'Inter Variable', ui-sans-serif, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-subtle: #1e293b;
    --card: #0f172a;
    --border: #1e293b;
    --heading: #f1f5f9;
    --text: #cbd5e1;
    --muted: #94a3b8;
    --faint: #64748b;
    --fill: var(--primary-400);
    --fill-hover: var(--primary-300);
    --on-fill: #020617;
    --accent-soft: color-mix(in srgb, var(--primary-500) 16%, transparent);
    --accent-text: var(--primary-300);
    --hero-bg: linear-gradient(180deg, color-mix(in srgb, var(--primary-500) 14%, var(--bg)), var(--bg));
    --shape-opacity: 0.14;

    --sky-bg: color-mix(in srgb, #0ea5e9 18%, transparent);
    --sky-fg: #7dd3fc;
    --indigo-bg: color-mix(in srgb, #6366f1 20%, transparent);
    --indigo-fg: #a5b4fc;
    --amber-bg: color-mix(in srgb, #f59e0b 18%, transparent);
    --amber-fg: #fcd34d;
    --green-bg: color-mix(in srgb, #22c55e 18%, transparent);
    --green-fg: #86efac;
    --pink-bg: color-mix(in srgb, #ec4899 18%, transparent);
    --pink-fg: #f9a8d4;
    --violet-bg: color-mix(in srgb, #8b5cf6 20%, transparent);
    --violet-fg: #c4b5fd;
  }
}

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

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: var(--accent-text);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

@media (min-width: 640px) {
  .page {
    padding: 0 1.5rem;
  }
}

/* Top bar */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--heading);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 7rem;
  height: 2.5rem;
}

.brand-product {
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 600;
}

.topbar-link {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

/* Hero */

.hero {
  padding: 3rem 0 3.5rem;
  background: var(--hero-bg);
  text-align: center;
}

@media (min-width: 640px) {
  .hero {
    padding: 4.5rem 0 5rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--card);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 500;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--green-fg);
}

.hero-title {
  max-width: 48rem;
  margin: 0 auto 1rem;
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: -0.02em;
}

.accent {
  color: var(--fill);
}

.hero-text {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.1875rem);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 0.125rem 0.625rem;
  border-radius: 0.375rem;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Waitlist */

.waitlist {
  max-width: 30rem;
  margin: 0 auto;
}

.waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.input {
  flex: 1 1 15rem;
  min-width: 0;
  height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
  color: var(--heading);
  font: inherit;
}

.input::placeholder {
  color: var(--faint);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 2.75rem;
  padding: 0 1.125rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--fill);
  color: var(--on-fill);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--fill-hover);
}

@media (max-width: 479px) {
  .waitlist-row .btn {
    width: 100%;
  }
}

.waitlist-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.waitlist-note strong {
  color: var(--heading);
}

.honeypot {
  display: none;
}

/* Sections */

.section {
  padding: 3rem 0;
}

.section-title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.375rem, 3.5vw, 1.75rem);
  letter-spacing: -0.01em;
  text-align: center;
}

/* Coloured avatars, as on the app's workspace tiles */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.c-sky { background: var(--sky-bg); color: var(--sky-fg); }
.c-indigo { background: var(--indigo-bg); color: var(--indigo-fg); }
.c-amber { background: var(--amber-bg); color: var(--amber-fg); }
.c-green { background: var(--green-bg); color: var(--green-fg); }
.c-pink { background: var(--pink-bg); color: var(--pink-fg); }
.c-violet { background: var(--violet-bg); color: var(--violet-fg); }

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
  text-align: center;
}

.stat-value {
  color: var(--fill);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-label {
  color: var(--muted);
  font-size: 0.875rem;
}

/* Modules */

.modules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .modules {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .modules {
    grid-template-columns: repeat(3, 1fr);
  }
}

.module {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
}

.module-name {
  color: var(--heading);
  font-weight: 600;
  line-height: 1.3;
}

.module-text {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Architecture diagram */

.diagram {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 44rem;
  margin: 0 auto;
}

.tier-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .tier-row {
    grid-template-columns: 1fr 1fr;
  }
}

.tier {
  padding: 0.875rem 1rem;
  border: 1px solid var(--tier-border);
  border-radius: 0.5rem;
  background: var(--tier-bg);
}

.tier-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--tier-fg);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.node {
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--card);
  color: var(--heading);
  font-size: 0.875rem;
  font-weight: 500;
}

.node-yours {
  border-style: dashed;
  border-color: var(--fill);
  color: var(--accent-text);
}

.tier-clients { --tier-bg: var(--sky-bg); --tier-fg: var(--sky-fg); --tier-border: transparent; }
.tier-gateway { --tier-bg: var(--pink-bg); --tier-fg: var(--pink-fg); --tier-border: transparent; }
.tier-identity { --tier-bg: var(--violet-bg); --tier-fg: var(--violet-fg); --tier-border: transparent; }
.tier-core { --tier-bg: var(--indigo-bg); --tier-fg: var(--indigo-fg); --tier-border: transparent; }
.tier-adapters { --tier-bg: var(--amber-bg); --tier-fg: var(--amber-fg); --tier-border: transparent; }

.arrow {
  align-self: center;
  width: 2px;
  height: 1.25rem;
  margin: 0.25rem 0;
  background: var(--border);
  position: relative;
}

.arrow::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--faint);
  transform: translateX(-50%);
}

.caption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

/* Quality cards */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
}

.card .icon {
  margin-bottom: 0.75rem;
}

.card-title {
  color: var(--heading);
  font-weight: 600;
}

.card-text {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Author */

.author {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
}

.avatar {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  object-fit: cover;
  object-position: 50% 20%;
}

.author-name {
  font-size: 1rem;
}

.author-text {
  color: var(--muted);
  font-size: 0.9375rem;
}

.author-links {
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

/* Final call */

.final {
  text-align: center;
}

.final-text {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  color: var(--muted);
}

.btn-lg {
  padding: 0 1.5rem;
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

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

/* Thanks page */

.thanks {
  padding: 5rem 0;
  text-align: center;
}

.thanks .hero-text {
  margin-bottom: 2rem;
}

/* Flamingo shapes: the logo's four colours, as soft forms behind the hero and
 * the final call. Decorative only (aria-hidden), and kept behind the content. */

.hero,
.final {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.shapes {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 999px;
  opacity: var(--shape-opacity);
}

.shape-blur {
  filter: blur(48px);
}

.s-peach { background: var(--flamingo-peach); }
.s-pink { background: var(--flamingo-pink); }
.s-lilac { background: var(--flamingo-lilac); }
.s-blue { background: var(--flamingo-blue); }
.s-ring { background: transparent; border: 6px solid var(--flamingo-pink); }
.s-square { border-radius: 0.75rem; transform: rotate(14deg); }

.hero .shape:nth-child(1) { width: 22rem; height: 22rem; top: -8rem; left: -6rem; }
.hero .shape:nth-child(2) { width: 18rem; height: 18rem; top: -4rem; right: -5rem; }
.hero .shape:nth-child(3) { width: 16rem; height: 16rem; bottom: -5rem; right: 4%; }
.hero .shape:nth-child(4) { width: 3.5rem; height: 3.5rem; top: 22%; left: 9%; }
.hero .shape:nth-child(5) { width: 2.25rem; height: 2.25rem; top: 62%; right: 10%; }
.hero .shape:nth-child(6) { width: 1.25rem; height: 1.25rem; top: 16%; right: 18%; }
.hero .shape:nth-child(7) { width: 4rem; height: 4rem; bottom: 12%; left: 14%; }

.final .shape:nth-child(1) { width: 12rem; height: 12rem; top: calc(50% - 6rem); left: 8%; }
.final .shape:nth-child(2) { width: 11rem; height: 11rem; top: calc(50% - 5.5rem); right: 8%; }
.final .shape:nth-child(3) { width: 2.5rem; height: 2.5rem; top: 22%; right: 24%; animation: drift-tilted 18s ease-in-out infinite; }

@media (max-width: 639px) {
  .hero .shape:nth-child(4),
  .hero .shape:nth-child(7),
  .final .shape:nth-child(3) {
    display: none;
  }
}

.accent-mark {
  background-image: linear-gradient(90deg, var(--flamingo-peach), var(--flamingo-pink), var(--flamingo-lilac), var(--flamingo-blue));
  background-repeat: no-repeat;
  background-size: 100% 0.18em;
  background-position: 0 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tier-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.5rem;
}

.tier-head .tier-label {
  margin-bottom: 0;
}

.tier-tech {
  color: var(--tier-fg);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* The header sits inside the hero, so its tint and shapes reach the top of the
 * page instead of stopping in a hard line under the header; the shapes fade out
 * at a section's edge rather than being cut there. */
.hero {
  padding-top: 0;
}

.hero-body {
  padding-top: 2rem;
}

@media (min-width: 640px) {
  .hero-body {
    padding-top: 3.5rem;
  }
}

.hero .shapes {
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, #000 82%, transparent);
}



/* Minimal motion: the hero settles in once, the shapes drift slowly, buttons
 * lift on hover. Everything is readable before and without it. */
@keyframes settle {
  from { opacity: 0.35; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(14px, -10px); }
}

@keyframes drift-tilted {
  0%, 100% { transform: rotate(14deg) translate(0, 0); }
  50% { transform: rotate(20deg) translate(-8px, 8px); }
}

.hero-body > * {
  animation: settle 0.7s ease-out both;
}

.hero-body > *:nth-child(2) { animation-delay: 0.06s; }
.hero-body > *:nth-child(3) { animation-delay: 0.12s; }
.hero-body > *:nth-child(4) { animation-delay: 0.18s; }
.hero-body > *:nth-child(5) { animation-delay: 0.24s; }

.hero .shape {
  animation: drift 16s ease-in-out infinite;
}

.hero .shape:nth-child(2n) {
  animation-duration: 21s;
  animation-direction: reverse;
}

.hero .shape.s-square {
  animation-name: drift-tilted;
}

.btn {
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--fill) 60%, transparent);
}

.module,
.stat,
.card {
  transition: transform 0.2s, border-color 0.2s;
}

.module:hover,
.stat:hover,
.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border, var(--border));
}

@media (prefers-reduced-motion: reduce) {
  .hero-body > *,
  .hero .shape {
    animation: none;
  }

  .btn:hover,
  .module:hover,
  .stat:hover,
  .card:hover {
    transform: none;
  }
}

/* Enough room around the final call's shapes for their blur to fade out
 * before the section's edge. */
.final {
  padding-block: 5rem;
}

.final .shape-blur {
  animation: drift 18s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .final .shape {
    animation: none;
  }
}
