:root {
  --bg: #eaf2fb;
  --text: #050505;
  --muted: rgba(5, 5, 5, 0.68);
  --line: rgba(5, 5, 5, 0.14);
  --layout-scale: 1;
  --scaled-shell-width: 100vw;
  --scaled-shell-height: 100vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, #dfeaf8 0%, #e7effa 26%, #eef4fc 52%, #f6f9fe 76%, #ffffff 100%);
  color: var(--text);
  font-family: "Instrument Sans", "Avenir Next", sans-serif;
  scrollbar-gutter: stable both-edges;
}

body::-webkit-scrollbar,
.panel::-webkit-scrollbar {
  display: none;
}

body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

img {
  display: block;
  max-width: 100%;
}

.viewport-stage {
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
}

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 20fr) minmax(0, 40fr) minmax(0, 40fr);
  width: var(--scaled-shell-width);
  height: var(--scaled-shell-height);
  transform: scale(var(--layout-scale));
  transform-origin: top left;
  flex: 0 0 auto;
}

.panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.panel + .panel {
  border-left: 1px solid var(--line);
}

.panel-logo {
  display: flex;
  align-items: center;
  padding: 2.5rem;
}

.left-rail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 14rem;
  margin: 0 auto;
}

.brand-badge {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding: 0;
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: auto;
  margin: 0;
}

.logo-wrap img {
  width: 3.1rem;
  height: 3.1rem;
}

.accordion-stack {
  width: 100%;
}

.accordion-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.6rem 0 0.8rem;
  border-top: 1px solid var(--line);
  background: transparent;
  border-right: 0;
  border-left: 0;
  border-bottom: 0;
  cursor: pointer;
  font-size: 0.98rem;
  line-height: 1;
  text-align: left;
  opacity: 0.45;
}

.accordion-item.is-active {
  opacity: 1;
}

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

.rail-footer {
  display: grid;
  gap: 0.7rem;
  width: 100%;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  padding-top: 0;
}

.social-links a {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.2;
}

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

.site-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.panel-copy {
  display: flex;
  align-items: center;
  padding: 2.75rem 3.25rem;
}

.copy-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 100%;
  padding: 0 1.1rem;
  overflow: visible;
}

.copy-wrap h1 {
  margin: 0;
  font-family: "Figtree", "Instrument Sans", "Avenir Next", sans-serif;
  font-size: clamp(3.9rem, 5vw, 6rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.03em;
  max-width: none;
  overflow-wrap: anywhere;
}

.tagline {
  display: inline-block;
  margin: 1.1rem 0 0;
  max-width: 100%;
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  font-size: var(--tagline-fit-size, 0.92rem);
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
  color: #eaf2fb;
  background: #1e1e1e;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  overflow: hidden;
}

.tagline-command {
  color: #eaf2fb;
  position: relative;
  display: inline;
}

.tagline-command::before {
  content: "❯ ";
  color: #eaf2fb;
  font-weight: 700;
}

.tagline-command::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.1em;
  background: #eaf2fb;
  animation: blink 1s infinite;
  box-shadow: 0 0 4px rgba(234, 242, 251, 0.6);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.copy-spacer {
  height: clamp(1.4rem, 4vh, 3rem);
  flex: 0 0 auto;
}

.description {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}

.description p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.56;
  color: var(--muted);
}

.ecosystems {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  max-width: 38rem;
}

.ecosystems-label {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ecosystems-grid {
  display: grid;
  gap: 0;
}

.ecosystem-item {
  display: grid;
  grid-template-columns: minmax(0, 0.3fr) minmax(0, 0.7fr);
  gap: 1rem;
  align-items: start;
  padding: 0.55rem 0 0.7rem;
  border-top: 1px solid rgba(5, 5, 5, 0.08);
}

.ecosystem-item:last-child {
  border-bottom: 1px solid rgba(5, 5, 5, 0.08);
}

.ecosystem-title,
.ecosystem-list {
  margin: 0;
}

.ecosystem-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.ecosystem-list {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.48;
}

.panel-usecases {
  position: relative;
  padding: 1.1rem 0;
}

.third-panel-view {
  display: none;
  height: 100%;
  min-height: 100%;
}

.third-panel-view.is-active {
  display: block;
}

.ticker-window {
  position: relative;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 8%,
    rgba(0, 0, 0, 1) 16%,
    rgba(0, 0, 0, 1) 84%,
    rgba(0, 0, 0, 0.7) 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 8%,
    rgba(0, 0, 0, 1) 16%,
    rgba(0, 0, 0, 1) 84%,
    rgba(0, 0, 0, 0.7) 92%,
    transparent 100%
  );
}

.ticker-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
  animation: scroll-usecases var(--ticker-duration, 24s) linear infinite;
}

.ticker-group {
  display: flex;
  flex-direction: column;
}

.ticker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 2rem 0.65rem;
  border-top: 1px solid var(--line);
}

.ticker-label {
  display: block;
  font-family: "Instrument Sans", "Avenir Next", sans-serif;
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.ticker-meta {
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.detail-list {
  margin-top: 0.2rem;
  border-top: 1px solid var(--line);
}

.detail-accordion {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.detail-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.8rem 2rem 0.95rem;
  color: var(--text);
  font-family: "Instrument Sans", "Avenir Next", sans-serif;
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 180ms ease, opacity 180ms ease;
}

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

.detail-accordion:not(.is-open) .detail-summary {
  color: rgba(5, 5, 5, 0.78);
}

.detail-accordion.is-open .detail-summary {
  color: var(--text);
}

.detail-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  align-items: start;
  height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 2rem 1rem;
  transition: height 240ms ease, opacity 180ms ease;
}

.detail-accordion.is-open .detail-copy {
  opacity: 1;
}

.detail-copy a,
.detail-link {
  color: var(--text);
  font-family: "Instrument Sans", "Avenir Next", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: block;
  margin: 0;
}

.detail-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.detail-email {
  color: var(--text);
}

@keyframes scroll-usecases {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(calc(-1 * var(--scroll-distance, 50%)));
  }
}
