@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;1,500&display=swap");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Manrope", Arial, sans-serif;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.demo-nav {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 86px;
  padding: 0 4vw;
}

.demo-brand {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.72rem;
  font-weight: 700;
}

.demo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
}

.demo-exit {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(20, 18, 24, 0.86);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.is-preview .demo-exit {
  display: none;
}

/* Neural systems */
.demo-neural {
  color: #d9fff2;
  background: #07100f;
}

.demo-neural::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(93, 255, 196, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 255, 196, 0.055) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}

.demo-neural .demo-nav {
  border-bottom: 1px solid rgba(141, 255, 216, 0.13);
}

.neural-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  min-height: 100svh;
  padding: 136px 4vw 56px;
}

.neural-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
}

.neural-kicker,
.pulse-kicker,
.northstar-kicker {
  margin: 0 0 22px;
  color: #63e6b3;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.neural-copy h1 {
  margin: 0;
  font-size: clamp(4.8rem, 8.6vw, 9.4rem);
  line-height: 0.82;
  letter-spacing: -0.075em;
}

.neural-copy > p:not(.neural-kicker) {
  max-width: 520px;
  margin: 28px 0 0;
  color: rgba(218, 255, 242, 0.58);
  font-size: 1rem;
  line-height: 1.65;
}

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

.neural-actions button,
.neural-actions a {
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid rgba(127, 255, 208, 0.34);
  border-radius: 4px;
  color: #d9fff2;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  background: rgba(93, 255, 196, 0.06);
}

.neural-actions button:hover {
  color: #07100f;
  background: #63e6b3;
}

.neural-visual {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(137, 255, 214, 0.14);
  border-radius: 50% 50% 20px 50%;
  background: #0b1615;
}

.neural-visual::before {
  position: absolute;
  inset: 10%;
  z-index: 2;
  border: 1px solid rgba(110, 248, 197, 0.32);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 80px rgba(71, 239, 177, 0.14), inset 0 0 70px rgba(71, 239, 177, 0.08);
  animation: neuralSpin 12s linear infinite;
}

.neural-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  filter: hue-rotate(64deg) saturate(0.8) contrast(1.12);
}

.neural-status {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px;
}

.neural-status span {
  padding: 10px 13px;
  border: 1px solid rgba(129, 255, 207, 0.2);
  border-radius: 999px;
  color: rgba(218, 255, 242, 0.72);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  background: rgba(4, 13, 12, 0.64);
}

.demo-neural[data-demo-mode="1"] {
  color: #d9f2ff;
  background: #071019;
}

.demo-neural[data-demo-mode="1"] .neural-visual img {
  filter: hue-rotate(180deg) saturate(0.92) contrast(1.12);
}

.demo-neural[data-demo-mode="2"] {
  color: #ffe8fb;
  background: #140a18;
}

.demo-neural[data-demo-mode="2"] .neural-visual img {
  filter: hue-rotate(292deg) saturate(1) contrast(1.14);
}

/* Vanta architecture */
.demo-vanta {
  color: #201f1b;
  background: #efeee8;
}

.demo-vanta .demo-nav {
  color: #201f1b;
}

.vanta-hero {
  display: grid;
  grid-template-columns: minmax(520px, 1.1fr) minmax(420px, 0.9fr);
  min-height: 100svh;
  padding: 104px 22px 22px;
}

.vanta-media {
  position: relative;
  min-height: 720px;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: #ccc9bf;
}

.vanta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(0.88) brightness(1.18);
}

.vanta-number {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 9px 12px;
  color: #1f1e1a;
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  background: rgba(244, 243, 237, 0.86);
}

.vanta-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 54px 4vw 30px;
}

.vanta-copy h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(4.8rem, 8vw, 9rem);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.vanta-copy h1 em {
  display: block;
  font-weight: 500;
}

.vanta-project-panel {
  border-top: 1px solid rgba(31, 30, 26, 0.24);
}

.vanta-project-tabs {
  display: flex;
  gap: 6px;
  margin: 22px 0;
}

.vanta-project-tabs button {
  padding: 9px 12px;
  border: 1px solid rgba(31, 30, 26, 0.22);
  border-radius: 999px;
  color: #25231f;
  font-size: 0.68rem;
  background: transparent;
}

.vanta-project-tabs button.active {
  color: #efeee8;
  background: #25231f;
}

.vanta-project-panel h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.vanta-project-panel p {
  margin: 0;
  color: #6d6960;
  line-height: 1.58;
}

.demo-vanta.demo-alt {
  color: #efeee8;
  background: #25231f;
}

.demo-vanta.demo-alt .demo-nav,
.demo-vanta.demo-alt .vanta-project-tabs button {
  color: #efeee8;
}

.demo-vanta.demo-alt .vanta-project-panel {
  border-color: rgba(255, 255, 255, 0.22);
}

/* Pulse gaming */
.demo-pulse {
  color: #f5f3fb;
  background: #090811;
}

.demo-pulse .demo-nav {
  color: #f8f6fc;
}

.pulse-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 0.72fr) minmax(520px, 1.28fr);
  min-height: 100svh;
  overflow: hidden;
}

.pulse-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 126px 0 50px 5vw;
}

.pulse-kicker {
  color: #ff4fd8;
}

.pulse-copy h1 {
  margin: 0;
  font-size: clamp(5.4rem, 9vw, 10rem);
  font-style: italic;
  line-height: 0.79;
  letter-spacing: -0.09em;
  text-transform: uppercase;
}

.pulse-copy h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px #f7f4fb;
}

.pulse-copy > p:not(.pulse-kicker) {
  max-width: 470px;
  margin: 30px 0 0;
  color: rgba(245, 243, 251, 0.62);
  line-height: 1.62;
}

.pulse-mode {
  display: flex;
  gap: 9px;
  margin-top: 34px;
}

.pulse-mode button,
.pulse-mode span {
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #f7f4fb;
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
}

.pulse-mode button {
  background: linear-gradient(90deg, #ff3ac8, #7058ff);
}

.pulse-media {
  position: relative;
  min-height: 100svh;
  margin: 0;
}

.pulse-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #090811 0%, transparent 34%), linear-gradient(180deg, transparent 60%, #090811);
}

.pulse-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.05);
}

.demo-pulse[data-demo-mode="1"] .pulse-media img {
  filter: hue-rotate(62deg) saturate(1.3) contrast(1.08);
}

.demo-pulse[data-demo-mode="2"] .pulse-media img {
  filter: hue-rotate(180deg) saturate(1.28) contrast(1.08);
}

/* Still wellness */
.demo-still {
  color: #343037;
  background:
    radial-gradient(circle at 16% 78%, rgba(207, 128, 147, 0.48), transparent 30%),
    radial-gradient(circle at 82% 76%, rgba(98, 133, 190, 0.46), transparent 34%),
    #d9d5da;
}

.still-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 110px 24px 50px;
  text-align: center;
}

.still-hero h1 {
  position: relative;
  z-index: 2;
  max-width: 1060px;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(5.2rem, 10vw, 11rem);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.065em;
}

.still-hero h1 em {
  display: block;
}

.still-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(42vw, 580px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.82), transparent 16%),
    radial-gradient(circle at 40% 40%, rgba(235, 165, 184, 0.88), rgba(123, 124, 178, 0.56) 62%, rgba(70, 69, 86, 0.18));
  box-shadow: inset -60px -60px 100px rgba(74, 64, 86, 0.18), 0 40px 100px rgba(70, 62, 84, 0.18);
  transform: translate(-50%, -50%);
  animation: stillBreathe 7s ease-in-out infinite;
}

.still-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 4vw;
  border-top: 1px solid rgba(52, 48, 55, 0.16);
}

.still-controls p {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 750;
}

.still-controls button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(52, 48, 55, 0.32);
  border-radius: 999px;
  color: #343037;
  font-weight: 760;
  background: rgba(255, 255, 255, 0.28);
}

.demo-still.demo-paused .still-orb {
  animation-play-state: paused;
}

/* Northstar data */
.demo-northstar {
  color: #112948;
  background: #edf4fb;
}

.demo-northstar .demo-nav {
  border-bottom: 1px solid rgba(17, 41, 72, 0.12);
}

.northstar-hero {
  display: grid;
  grid-template-columns: minmax(440px, 0.78fr) minmax(590px, 1.22fr);
  gap: 3vw;
  min-height: 100svh;
  padding: 134px 4vw 48px;
}

.northstar-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.northstar-kicker {
  color: #2b67f6;
}

.northstar-copy h1 {
  margin: 0;
  font-size: clamp(4.6rem, 8vw, 9rem);
  line-height: 0.84;
  letter-spacing: -0.08em;
}

.northstar-copy > p:not(.northstar-kicker) {
  max-width: 480px;
  margin: 28px 0 0;
  color: #5d7088;
  line-height: 1.62;
}

.northstar-ranges {
  display: flex;
  gap: 7px;
  margin-top: 30px;
}

.northstar-ranges button {
  width: 44px;
  height: 38px;
  border: 1px solid rgba(17, 41, 72, 0.16);
  border-radius: 999px;
  color: #39516e;
  font-size: 0.68rem;
  font-weight: 750;
  background: transparent;
}

.northstar-ranges button.active {
  color: #fff;
  background: #214ee8;
}

.northstar-dashboard {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 670px;
  padding: 26px;
  border: 1px solid rgba(17, 41, 72, 0.11);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(48, 81, 122, 0.12);
}

.northstar-dashboard-head,
.northstar-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.northstar-dashboard-head span,
.northstar-summary span {
  color: #708198;
  font-size: 0.66rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.northstar-dashboard-head strong {
  font-size: 2rem;
}

.northstar-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 440px;
  padding: 42px 6px 20px;
  border-bottom: 1px solid rgba(17, 41, 72, 0.11);
}

.northstar-chart i {
  flex: 1;
  height: var(--h);
  min-height: 14%;
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(180deg, #76a7ff, #244fea);
  transition: height 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.northstar-chart[data-range="quarter"] i:nth-child(2n) {
  height: calc(var(--h) * 0.68);
}

.northstar-chart[data-range="year"] i:nth-child(3n) {
  height: calc(var(--h) * 0.48);
}

.northstar-summary {
  padding-top: 20px;
}

.northstar-summary strong {
  font-size: 1rem;
}

/* Materia creative */
.demo-materia {
  color: #1f1b1b;
  background: #ef4638;
}

.demo-materia .demo-nav {
  color: #fff8ea;
}

.materia-hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.8fr) minmax(540px, 1.2fr);
  gap: 14px;
  min-height: 100svh;
  padding: 100px 14px 14px;
}

.materia-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 3.5vw;
  border-radius: 18px;
  background: #fff8ea;
}

.materia-copy h1 {
  margin: 0;
  font-size: clamp(5rem, 8.6vw, 9.5rem);
  line-height: 0.78;
  letter-spacing: -0.095em;
  text-transform: uppercase;
}

.materia-copy h1 span {
  display: block;
  color: #ef4638;
}

.materia-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 34px;
}

.materia-filters button {
  padding: 10px 14px;
  border: 1px solid rgba(31, 27, 27, 0.2);
  border-radius: 999px;
  color: #272020;
  font-size: 0.68rem;
  font-weight: 760;
  background: transparent;
}

.materia-filters button.active {
  color: #fff8ea;
  background: #1f1b1b;
}

.materia-foot {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(31, 27, 27, 0.2);
  color: #675d57;
  font-size: 0.74rem;
}

.materia-media {
  position: relative;
  min-height: 760px;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #17151b;
}

.materia-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.06);
  transition: filter 360ms ease, transform 560ms ease;
}

.materia-media figcaption {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: #fff;
}

.materia-media figcaption strong {
  font-size: 2rem;
}

.materia-media figcaption span {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
}

.demo-materia[data-project="motion"] .materia-media img {
  filter: hue-rotate(72deg) saturate(1.05) contrast(1.08);
  transform: scale(1.04);
}

.demo-materia[data-project="identity"] .materia-media img {
  filter: hue-rotate(184deg) saturate(0.9) contrast(1.12);
  transform: scale(1.075);
}

@keyframes neuralSpin {
  to { transform: rotate(360deg); }
}

@keyframes stillBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(0.86); filter: saturate(0.82); }
  50% { transform: translate(-50%, -50%) scale(1.08); filter: saturate(1.08); }
}

@media (max-width: 840px) {
  .demo-nav-links a:not(.demo-pill) {
    display: none;
  }

  .neural-hero,
  .vanta-hero,
  .pulse-hero,
  .northstar-hero,
  .materia-hero {
    grid-template-columns: 1fr;
  }

  .neural-copy,
  .pulse-copy,
  .northstar-copy {
    min-height: 72svh;
    padding: 132px 24px 70px;
  }

  .neural-visual,
  .pulse-media,
  .northstar-dashboard,
  .vanta-media,
  .materia-media {
    min-height: 72svh;
  }

  .vanta-copy {
    min-height: 650px;
    order: -1;
    padding-top: 132px;
  }

  .still-orb {
    width: 70vw;
  }

  .materia-copy {
    min-height: 680px;
    padding-top: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
