/* Muncora brand: navy #1B2430, teal #17B6C4, off-white #F6F7F6 (docs/brand in the muncora repo). */
:root {
  --navy: #1b2430;
  --navy-deep: #141b25;
  --surface: #222d3c;
  --line: rgb(246 247 246 / 0.12);
  --text: #f6f7f6;
  --muted: #c3cbd5;
  --teal: #17b6c4;
  --on-teal: #1b2430;
  --danger: #ff9b8f;
  --good: #7fe0b5;
  --radius: 18px;
  --heading: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

/* Motion is off for people who ask for less of it (each animation can name a gentler one). */
@property --animation-reduced {
  syntax: "*";
  inherits: false;
  initial-value: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: var(--animation-reduced) !important;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--navy-deep);
  color: var(--text);
  font: 1rem/1.6 var(--body);
  overflow-wrap: break-word;
  overflow-x: clip;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  font-size-adjust: from-font;
  line-height: 1.1;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 1.4rem + 5.4vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--teal);
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  background: var(--teal);
  color: var(--on-teal);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

/* The moving light behind everything: slow and soft. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(rgb(246 247 246 / 0.035) 1px, transparent 0) 0 0 / 48px 48px,
    linear-gradient(90deg, rgb(246 247 246 / 0.035) 1px, transparent 0) 0 0 / 48px 48px,
    var(--navy-deep);
}

.glow {
  position: absolute;
  width: 60vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: drift 26s ease-in-out infinite alternate;
}

.glow-a {
  background: radial-gradient(circle, rgb(23 182 196 / 0.5), transparent 65%);
  top: -25vmax;
  right: -15vmax;
}

.glow-b {
  background: radial-gradient(circle, rgb(46 92 160 / 0.45), transparent 65%);
  bottom: -30vmax;
  left: -20vmax;
  animation-duration: 32s;
  animation-direction: alternate-reverse;
}

.glow-c {
  background: radial-gradient(circle, rgb(23 182 196 / 0.2), transparent 65%);
  top: 35%;
  left: 30%;
  width: 40vmax;
  animation-duration: 40s;
}

@keyframes drift {
  to {
    translate: -6vmax 5vmax;
    scale: 1.15;
  }
}

/* Glass panels */
.glass {
  background: rgb(34 45 60 / 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 rgb(246 247 246 / 0.06) inset,
    0 20px 50px -24px rgb(0 0 0 / 0.65);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .glass {
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
  }
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(20 27 37 / 0.7);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.mark {
  width: 2.2rem;
  height: 2.2rem;
  overflow: visible;
}

.mark polyline {
  fill: none;
  stroke: var(--text);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 1.4s 0.2s ease-out forwards;
}

.mark line,
.mark polygon {
  stroke: var(--teal);
  stroke-width: 4;
  stroke-linecap: round;
  fill: var(--teal);
  opacity: 0;
  animation: rise 0.8s 1.2s ease-out forwards;
}

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

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 14px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark polyline {
    stroke-dashoffset: 0;
  }

  .mark line,
  .mark polygon {
    opacity: 1;
  }
}

.wordmark,
.foot-brand {
  font: 700 1.2rem var(--heading);
  letter-spacing: 0.15em;
}

.top-nav {
  display: flex;
  gap: 1.6rem;
}

.top-nav a,
.top-link {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

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

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

.narrow-only {
  display: none;
}

@media (max-width: 480px) {
  .wide-only {
    display: none;
  }

  .narrow-only {
    display: inline;
  }
}

/* Buttons: navy text on teal, 6.35:1 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--teal);
  color: var(--on-teal);
  font: 700 1rem var(--heading);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s,
    translate 0.2s,
    box-shadow 0.2s;
}

.button:hover {
  background: #4fd0db;
  color: var(--on-teal);
  translate: 0 -1px;
  box-shadow: 0 10px 30px -10px rgb(23 182 196 / 0.7);
}

.button-small {
  min-height: 42px;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

.button-quiet {
  background: rgb(246 247 246 / 0.04);
  border-color: var(--line);
  color: var(--text);
}

.button-quiet:hover {
  background: rgb(246 247 246 / 0.1);
  color: var(--text);
  box-shadow: none;
}

.button-wide {
  width: 100%;
  margin-top: 0.4rem;
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Hero */
.hero {
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2.5rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.intro > * {
  animation: fade-up 0.8s ease-out both;
}

.intro > :nth-child(2) {
  animation-delay: 0.08s;
}

.intro > :nth-child(3) {
  animation-delay: 0.16s;
}

.intro > :nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--teal);
  font: 600 0.8rem var(--heading);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

.accent {
  background: linear-gradient(100deg, var(--teal), #8fe6ee 60%, var(--text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  max-width: 60ch;
}

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

/* The product glimpse: deliberately abstract until there's something to show. */
.preview {
  position: relative;
  animation: fade-up 0.9s 0.3s ease-out both;
}

.window {
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
}

@media (max-width: 900px) {
  .window {
    transform: none;
  }
}

.window-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}

.window-bar span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: rgb(246 247 246 / 0.18);
}

.window-body {
  display: grid;
  grid-template-columns: 22% 1fr;
  min-height: 19rem;
  filter: blur(1.5px);
}

.side {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1.2rem 1rem;
  border-right: 1px solid var(--line);
}

.side i,
.line,
.tiles i {
  display: block;
  height: 0.6rem;
  border-radius: 99px;
  background: rgb(246 247 246 / 0.12);
}

.side i:first-child {
  background: rgb(23 182 196 / 0.55);
}

.content {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.2rem 1.3rem;
}

.w40 {
  width: 40%;
}

.w50 {
  width: 50%;
}

.w60 {
  width: 60%;
  height: 0.9rem !important;
}

.w80 {
  width: 80%;
}

.chart {
  width: 100%;
  height: 7rem;
  margin-block: 0.3rem;
}

.chart polyline {
  fill: none;
  stroke: var(--teal);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.tiles i {
  height: 3rem;
  border-radius: 10px;
  background: rgb(246 247 246 / 0.07);
}

.badge {
  position: absolute;
  left: -1rem;
  bottom: -1.4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.6rem;
  margin: 0;
  padding: 0.85rem 1.2rem;
  font: 700 1.25rem var(--heading);
  color: var(--teal);
}

.badge small {
  grid-column: 2;
  color: var(--muted);
  font: 500 0.85rem var(--body);
}

@media (max-width: 900px) {
  .badge {
    left: 1rem;
  }
}

.dot {
  grid-row: span 2;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgb(23 182 196 / 0.6);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  to {
    box-shadow: 0 0 0 0.6rem rgb(23 182 196 / 0);
  }
}

/* Frameworks strip */
.strip {
  border-block: 1px solid var(--line);
  background: rgb(34 45 60 / 0.35);
  margin-top: 1.5rem;
}

.strip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 3rem;
  list-style: none;
  padding-block: 1.2rem;
  margin-block: 0;
  color: var(--muted);
  font: 600 1rem var(--heading);
  letter-spacing: 0.04em;
}

/* Sections */
.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.steps,
.cards {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
}

.steps {
  counter-reset: step;
}

.steps li,
.cards li {
  padding: 1.6rem;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  border: 1px solid rgb(23 182 196 / 0.45);
  background: rgb(23 182 196 / 0.12);
  color: var(--teal);
  font: 700 0.95rem var(--heading);
}

.cards li::before {
  content: "";
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgb(23 182 196 / 0.8);
}

.steps p,
.cards p {
  color: var(--muted);
  margin: 0;
}

/* Cards rise into place as they scroll into view, where the browser supports it. */
@supports (animation-timeline: view()) {
  .reveal {
    animation: fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem 3rem;
  padding: clamp(1.75rem, 4vw, 3rem);
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
  }
}

.about h2 {
  margin: 0;
}

.about .lead:last-child {
  margin: 0;
}

/* Early access */
.signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 900px) {
  .signup {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
  color: var(--text);
}

.ticks li {
  display: flex;
  gap: 0.7rem;
}

.ticks li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 700;
}

.form {
  padding: clamp(1.4rem, 3vw, 2.1rem);
}

.field {
  margin-bottom: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0 1rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid #5a6880;
  border-radius: 12px;
  background: rgb(20 27 37 / 0.7);
  color: var(--text);
  font: inherit;
}

.field input:focus-visible {
  border-color: var(--teal);
}

.field input:user-invalid,
.field input[aria-invalid="true"] {
  border-color: var(--danger);
  border-width: 2px;
}

.error {
  display: none;
  color: var(--danger);
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}

.field input:user-invalid ~ .error,
.field input[aria-invalid="true"] ~ .error {
  display: block;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.small {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 1rem 0 0;
}

.status:empty {
  display: none;
}

.status {
  margin: 1rem 0 0;
  font-weight: 600;
}

.status.is-good {
  color: var(--good);
  font-size: 1.1rem;
}

.status.is-bad {
  color: var(--danger);
}

.form.is-done .form-fields {
  display: none;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  background: rgb(20 27 37 / 0.6);
  padding-block: 2.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1.5rem 3rem;
}

.foot-brand {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.foot nav {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

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

.foot nav a {
  text-decoration: none;
}

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

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.foot-row p {
  margin: 0;
}

.foot-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.copyright {
  margin-top: 2rem;
  font-size: 0.85rem;
}

/* Plain pages (privacy, thanks, 404) */
.page {
  padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4.5rem);
}

.page h1 {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.25rem);
}

.page h2 {
  font-size: 1.35rem;
  margin-top: 2.25rem;
}

.page p,
.page li {
  color: var(--muted);
}

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

.page ul {
  padding-left: 1.25rem;
}
