:root {
  --ink: #17232b;
  --muted: #5e7380;
  --teal: #008b93;
  --cyan: #00d5e4;
  --orange: #f5824a;
  --rose: #c94f6d;
  --gold: #d6a740;
  --paper: #fffaf2;
  --line: rgba(0, 139, 147, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 12%, rgba(0, 213, 228, 0.22), transparent 24rem),
    radial-gradient(circle at 80% 8%, rgba(245, 130, 74, 0.18), transparent 24rem),
    linear-gradient(180deg, #fff 0%, #eef8f6 58%, #fff7ed 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tianguis-shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topnav a,
.stand-copy a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 7px;
  color: var(--teal);
  background: rgba(0, 139, 147, 0.08);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.topnav a:hover,
.stand-copy a:hover {
  color: #fff;
  background: var(--teal);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(780px, calc(100vh - 110px));
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #07282b;
  box-shadow: 0 30px 90px rgba(0, 60, 70, 0.2);
}

#tianguisCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.hero-copy {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  width: min(520px, calc(100% - 56px));
  padding: 22px;
  border: 1px solid rgba(0, 213, 228, 0.2);
  border-radius: 8px;
  color: #f4fffd;
  background: linear-gradient(135deg, rgba(4, 35, 39, 0.9), rgba(0, 74, 80, 0.78));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.hero-copy p,
.lab-bridge p,
.stand-copy p,
.concept-grid p {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.86;
}

.hero-copy span,
.lab-bridge span,
.stand-copy span,
.concept-grid span {
  display: block;
  color: rgba(244, 255, 253, 0.78);
  font-size: 16px;
  line-height: 1.45;
}

.mode-strip {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(0, 213, 228, 0.18);
  border-radius: 9px;
  background: rgba(5, 38, 42, 0.8);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.28);
}

.mode-strip button {
  height: 38px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  color: #d9f8f8;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.mode-strip button.is-active {
  color: #05272b;
  background: var(--cyan);
}

.lab-bridge {
  margin: 22px 0;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.lab-bridge h2,
.concept-grid h2,
.stand-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.98;
}

.lab-bridge span,
.stand-copy span,
.concept-grid span {
  color: var(--muted);
}

.stands {
  display: grid;
  gap: 18px;
}

.stand-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(280px, 1.08fr);
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(21, 70, 80, 0.12);
}

.stand-card--active {
  border-color: rgba(0, 213, 228, 0.6);
  box-shadow: 0 26px 90px rgba(0, 139, 147, 0.24);
}

.stand-media {
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(0, 139, 147, 0.16), rgba(245, 130, 74, 0.14)),
    #f8fbfb;
}

.stand-media iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: block;
  border: 0;
}

.stand-copy {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.stand-copy p {
  color: var(--teal);
}

.stand-copy h2 {
  color: var(--ink);
}

.concept-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.concept-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
}

.concept-grid p {
  color: var(--teal);
}

.concept-grid h2 {
  margin-bottom: 12px;
  font-size: 30px;
}

@media (max-width: 980px) {
  .topbar,
  .mode-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .mode-strip {
    left: 18px;
    right: 18px;
  }

  .lab-bridge,
  .stand-card,
  .concept-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    left: 18px;
    bottom: 18px;
    width: calc(100% - 36px);
  }
}

@media (max-width: 620px) {
  .topnav {
    overflow-x: auto;
    width: 100%;
  }

  .hero {
    min-height: 820px;
  }

  .mode-strip {
    max-height: 148px;
    overflow: auto;
  }
}
