/* ---------- Webfonts: Suisse Intl ---------- */

@font-face {
  font-family: "Suisse Intl";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src:
    url("assets/fonts/suisseintl-regular/SuisseIntl-Regular-WebS.woff2")
      format("woff2"),
    url("assets/fonts/suisseintl-regular/SuisseIntl-Regular-WebS.woff")
      format("woff");
}

@font-face {
  font-family: "Suisse Intl";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src:
    url("assets/fonts/suisseintl-medium/SuisseIntl-Medium-WebS.woff2")
      format("woff2"),
    url("assets/fonts/suisseintl-medium/SuisseIntl-Medium-WebS.woff")
      format("woff");
}

@font-face {
  font-family: "Suisse Intl";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src:
    url("assets/fonts/suisseintl-semibold/SuisseIntl-SemiBold-WebS.woff2")
      format("woff2"),
    url("assets/fonts/suisseintl-semibold/SuisseIntl-SemiBold-WebS.woff")
      format("woff");
}

@font-face {
  font-family: "Suisse Intl";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src:
    url("assets/fonts/suisseintl-bold/SuisseIntl-Bold-WebS.woff2")
      format("woff2"),
    url("assets/fonts/suisseintl-bold/SuisseIntl-Bold-WebS.woff")
      format("woff");
}

:root {
  color-scheme: light dark;

  /* Palette */
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: rgba(10, 10, 10, 0.3);
  --border: rgba(10, 10, 10, 0.22);
  --chip-stroke: rgb(255, 158, 224);
  --signup-bg: #010000;
  --signup-button: #f866fb;

  /* Layout */
  --content-width: 460px;
  --gutter: 24px;

  /* Logo (header-size) */
  --mark-size: 44px;
  --dot-count: 12;
  --dot-size: calc(var(--mark-size) * 0.2);
  --ring-radius: calc(var(--mark-size) * 0.45);
  --ring-tilt: 33deg;
  --ring-roll: 45deg;
  --mark-perspective: 90px;
  --spin-duration: 4.5s;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #f5f5f5;
    --muted: rgba(255, 255, 255, 0.35);
    --border: rgba(255, 255, 255, 0.25);
    --signup-bg: #1a1a1a;
  }
}

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

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Suisse Intl", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* ---------- Header ---------- */

.site-header {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 32px var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.logo-word {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav a:hover {
  opacity: 0.6;
}

/* ---------- Mark (animated ring) ---------- */

.logo-mark {
  display: inline-block;
  width: var(--mark-size);
  height: var(--mark-size);
  perspective: var(--mark-perspective);
  flex-shrink: 0;
  filter: url(#goo-mark);
}

.ring {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: spin var(--spin-duration) linear infinite;
}

.dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--dot-size);
  height: var(--dot-size);
  margin: calc(var(--dot-size) / -2) 0 0 calc(var(--dot-size) / -2);
  background: var(--fg);
  border-radius: 50%;
  backface-visibility: visible;
  transform:
    rotateX(calc(var(--i) * (360deg / var(--dot-count))))
    translateZ(var(--ring-radius));
}

@keyframes spin {
  from {
    transform: rotateZ(var(--ring-roll)) rotateY(var(--ring-tilt)) rotateX(0deg);
  }
  to {
    transform: rotateZ(var(--ring-roll)) rotateY(var(--ring-tilt)) rotateX(360deg);
  }
}

/* ---------- Content ---------- */

.content {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 96px var(--gutter) 32px;
  flex: 0 0 auto;
}

.hero {
  font-size: clamp(44px, 8vw, 64px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.86;
  margin: 0 0 28px;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 1em;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.prose p {
  margin: 0;
}

.prose-lead {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 18px 0 0;
}

.prose a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.prose a:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Goo-merged pink chips (Query / Connect / Deploy / Download) ----------
   Two stacked layers per chip create the metaball outline via SVG goo filter
   (alpha-threshold, so pink color is preserved):
     `ring` (pink, big blur) merges circle+pill into one peanut silhouette;
     `fill` (page-bg color, small blur) covers the interiors but doesn't bridge
     the gap, so the connector "neck" stays solid pink. */

.chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* On desktop, lay the chips out on a single row even if their combined width
   exceeds the content column — `width: max-content` lets them break out of
   the narrow prose container, and `left: 50%` + `translateX(-50%)` re-centers
   the whole row on the viewport (since the parent .content is itself centered). */
@media (min-width: 640px) {
  .chips {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    width: max-content;
    max-width: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 28px;
  isolation: isolate;
  color: var(--chip-stroke);
}

.chip-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chip-bg-ring {
  z-index: 0;
  filter: url(#goo-chip-ring);
}

.chip-bg-fill {
  z-index: 1;
  filter: url(#goo-chip-fill);
}

.chip-bg-ring .bg-circle,
.chip-bg-ring .bg-pill {
  background: var(--chip-stroke);
  position: absolute;
}

.chip-bg-fill .bg-circle,
.chip-bg-fill .bg-pill {
  background: var(--bg);
  position: absolute;
}

.chip-bg-ring .bg-circle {
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.chip-bg-ring .bg-pill {
  left: 32px;
  right: 0;
  top: 0;
  height: 28px;
  border-radius: 999px;
}

.chip-bg-fill .bg-circle {
  left: 1.5px;
  top: 1.5px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

.chip-bg-fill .bg-pill {
  left: 33.5px;
  right: 1.5px;
  top: 1.5px;
  bottom: 1.5px;
  border-radius: 999px;
}

.chip-icon {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.chip-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}

.chip-label {
  position: relative;
  z-index: 2;
  /* 18px left + 14px right keeps the text optically centered inside the
     pill, which starts 4px to the right of the label's box (at x=32 vs x=28). */
  padding: 0 14px 0 18px;
  height: 28px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}


/* ---------- Signup card ---------- */

.signup {
  margin-top: 32px;
}

.signup-card {
  background: var(--signup-bg);
  border-radius: 12px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 441px;
}

.signup-input {
  background: #ffffff;
  border: none;
  border-radius: 12px;
  height: 52px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #0a0a0a;
  outline: none;
  width: 100%;
}

.signup-input::placeholder {
  color: rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

.signup-input:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.15);
}

.signup-button {
  background: var(--signup-button);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  height: 38px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.signup-button:hover {
  filter: brightness(1.05);
}

.signup-button:disabled {
  cursor: default;
  opacity: 0.85;
  filter: none;
}

/* ---------- Roadmap timeline ---------- */

.timeline {
  list-style: none;
  padding: 0;
  margin: 56px 0 32px;
  position: relative;
}

/* Central vertical axis */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--fg);
  opacity: 0.5;
  transform: translateX(-0.5px);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 28px;
  row-gap: 4px;
  padding: 14px 0;
}

/* Date goes in row 1 (label), tag/text goes in row 2 (highlight).
   The dot lives in row 2 too, so it aligns with the highlight — not the
   geometric center of the whole item (which would land between rows). */

.is-left .timeline-date {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
  justify-self: end;
}

.is-right .timeline-date {
  grid-column: 3;
  grid-row: 1;
  text-align: left;
  justify-self: start;
}

.is-left .timeline-tag,
.is-left .timeline-text {
  grid-column: 1;
  grid-row: 2;
  text-align: right;
  justify-self: end;
  position: relative;
}

.is-right .timeline-tag,
.is-right .timeline-text {
  grid-column: 3;
  grid-row: 2;
  text-align: left;
  justify-self: start;
  position: relative;
}

.timeline-dot {
  grid-column: 2;
  grid-row: 2;
  width: 9px;
  height: 9px;
  background: var(--fg);
  border-radius: 50%;
  justify-self: center;
  align-self: center;
  z-index: 1;
}

.is-colored .timeline-dot {
  background: var(--c, var(--fg));
}

/* Dashed connector from tag/text edge to axis (in row 2 only). */
.is-left .timeline-tag::after,
.is-left .timeline-text::after,
.is-right .timeline-tag::before,
.is-right .timeline-text::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  border-top: 1px dashed var(--fg);
  opacity: 0.45;
  transform: translateY(-50%);
}

.is-left .timeline-tag::after,
.is-left .timeline-text::after {
  left: 100%;
}

.is-right .timeline-tag::before,
.is-right .timeline-text::before {
  right: 100%;
}

.timeline-date {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.timeline-text {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.7;
  line-height: 1.3;
}

.timeline-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-weight: 500;
  background: var(--c, var(--fg));
  color: #fff;
  letter-spacing: -0.01em;
  width: fit-content;
  line-height: 1.3;
}

/* "Currently here" marker — pink label + glowing pulsing dot. */

.is-current .timeline-date {
  color: #f866fb;
}

.is-left .timeline-now,
.is-right .timeline-now {
  grid-row: 2;
  position: relative;
  font-size: 13px;
  font-weight: 600;
  color: #f866fb;
  letter-spacing: -0.005em;
}

.is-left .timeline-now {
  grid-column: 1;
  text-align: right;
  justify-self: end;
}

.is-right .timeline-now {
  grid-column: 3;
  text-align: left;
  justify-self: start;
}

.is-left .timeline-now::after,
.is-right .timeline-now::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  border-top: 1px dashed #f866fb;
  opacity: 0.55;
  transform: translateY(-50%);
}

.is-left .timeline-now::after {
  left: 100%;
}

.is-right .timeline-now::before {
  right: 100%;
}

.is-current .timeline-date {
  color: #f866fb;
  font-weight: 600;
}

.is-current .timeline-dot {
  background: #f866fb;
  filter: drop-shadow(0 0 4px rgba(248, 102, 251, 0.65));
  animation: dot-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes dot-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(248, 102, 251, 0.7);
  }
  80%,
  100% {
    box-shadow: 0 0 0 14px rgba(248, 102, 251, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-current .timeline-dot {
    animation: none;
  }
}

/* Mobile: collapse to a single-side timeline (axis on the left).
   Same row-based grid as desktop, but only two columns: dot + content.
   Dot stays in row 2 so it aligns with the tag/text. */
@media (max-width: 640px) {
  .timeline {
    padding-left: 0;
    margin-top: 40px;
  }

  .timeline::before {
    left: 12px;
    transform: none;
  }

  .timeline-item {
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    padding: 10px 0;
  }

  .timeline-dot {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    align-self: center;
    margin-right: 7px;
  }

  .timeline-date,
  .is-left .timeline-date,
  .is-right .timeline-date {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    justify-self: start;
  }

  .timeline-tag,
  .timeline-text,
  .timeline-now,
  .is-left .timeline-tag,
  .is-left .timeline-text,
  .is-left .timeline-now,
  .is-right .timeline-tag,
  .is-right .timeline-text,
  .is-right .timeline-now {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    justify-self: start;
  }

  .is-left .timeline-tag::after,
  .is-left .timeline-text::after,
  .is-left .timeline-now::after,
  .is-right .timeline-tag::before,
  .is-right .timeline-text::before,
  .is-right .timeline-now::before {
    display: none;
  }
}

/* Active nav link */
.nav a[aria-current="page"] {
  opacity: 1;
  font-weight: 700;
}

/* ---------- Illustration (centered island) ---------- */

.illustration {
  margin: 24px auto 16px;
  padding: 0 var(--gutter);
  width: 100%;
  max-width: 960px;
  display: block;
}

.illustration-frame {
  position: relative;
  display: block;
}

.illustration-frame img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

/* Animated magenta glow positioned over the portal in the illustration.
   `mix-blend-mode: screen` adds light to the underlying pixels (rather than
   covering them), so the glow reads as bloom emanating from the portal itself. */
.portal-glow {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 22%;
  height: 36%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 100, 220, 0.85) 0%,
    rgba(248, 102, 251, 0.45) 25%,
    rgba(248, 102, 251, 0.12) 55%,
    transparent 100%
  );
  filter: blur(18px);
  mix-blend-mode: screen;
  animation: portal-pulse 4s ease-in-out infinite;
  will-change: opacity, transform;
}

@keyframes portal-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-glow {
    animation: none;
    opacity: 0.85;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 24px var(--gutter) 48px;
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .ring {
    animation: none;
    transform: rotateZ(var(--ring-roll)) rotateY(var(--ring-tilt));
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .content {
    padding: 56px var(--gutter) 24px;
  }
  .hero {
    margin-bottom: 24px;
  }
  .signup {
    margin-top: 24px;
  }
  .illustration {
    padding: 0;
  }
  .site-footer {
    padding-bottom: 32px;
  }
}
