:root {
  --tg-present-bg: #07111f;
  --tg-present-bg-2: #0b1220;
  --tg-present-panel: #0f1a2b;
  --tg-present-panel-2: #101f33;
  --tg-present-ink: #f8fafc;
  --tg-present-text: #d8e1ee;
  --tg-present-muted: #8ca0ba;
  --tg-present-faint: #607088;
  --tg-present-line: rgba(148, 163, 184, .18);
  --tg-present-line-strong: rgba(148, 163, 184, .34);
  --tg-present-blue: #0ea5e9;
  --tg-present-blue-2: #38bdf8;
  --tg-present-green: #22c55e;
  --tg-present-amber: #f59e0b;
  --tg-present-shadow: 0 34px 90px rgba(0, 0, 0, .42);
  --tg-present-font: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --tg-present-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --tg-present-radius: 16px;
  --tg-present-max: 1180px;
  --tg-present-gutter: clamp(18px, 5vw, 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--tg-present-text);
  background:
    radial-gradient(circle at 70% 0%, rgba(14, 165, 233, .22), transparent 34rem),
    linear-gradient(180deg, #050b14 0%, var(--tg-present-bg) 48%, #060b12 100%);
  font-family: var(--tg-present-font);
  line-height: 1.5;
}

body.tg-dialog-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.tg-skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  padding: 10px 14px;
  font-weight: 800;
}

.tg-skip-link:focus {
  transform: none;
}

.tg-present-container {
  width: 100%;
  max-width: var(--tg-present-max);
  margin: 0 auto;
  padding: 0 var(--tg-present-gutter);
}

.tg-present-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(5, 11, 20, .95), rgba(5, 11, 20, .68));
  backdrop-filter: blur(16px);
  transition: border-color .2s ease, background .2s ease;
}

.tg-present-nav.is-stuck {
  border-bottom-color: var(--tg-present-line);
}

.tg-nav-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 22px;
}

.tg-nav-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.tg-wordmark-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  height: 38px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .24);
}

.tg-wordmark-frame img {
  display: block;
  width: 138px;
  height: auto;
}

.tg-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  margin-left: auto;
  color: var(--tg-present-muted);
  font-family: var(--tg-present-mono);
  font-size: .8rem;
}

.tg-nav-links a {
  white-space: nowrap;
  transition: color .18s ease;
}

.tg-nav-links a:hover,
.tg-nav-links a.is-active {
  color: var(--tg-present-ink);
}

.tg-nav-cta,
.tg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--tg-present-mono);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.tg-nav-cta {
  padding: 11px 16px;
  background: var(--tg-present-blue);
  color: #fff;
  box-shadow: 0 14px 28px rgba(14, 165, 233, .24);
}

.tg-nav-cta:hover,
.tg-button:hover {
  transform: translateY(-1px);
}

.tg-button {
  padding: 12px 18px;
}

.tg-button-primary {
  background: linear-gradient(180deg, var(--tg-present-blue-2), var(--tg-present-blue));
  color: #03121f;
}

.tg-button-quiet {
  border-color: var(--tg-present-line-strong);
  background: rgba(15, 26, 43, .72);
  color: var(--tg-present-text);
}

.tg-present-section {
  position: relative;
  padding: clamp(84px, 13vh, 150px) 0;
  border-top: 1px solid var(--tg-present-line);
}

.tg-present-section:first-of-type {
  border-top: 0;
}

.tg-hero {
  min-height: calc(100vh - 68px);
  padding-top: clamp(56px, 8vh, 96px);
  padding-bottom: clamp(56px, 8vh, 84px);
  overflow: hidden;
}

.tg-hero::before {
  content: "";
  position: absolute;
  inset: -15% -20% auto 30%;
  height: 70%;
  background:
    radial-gradient(circle, rgba(34, 197, 94, .14), transparent 34%),
    radial-gradient(circle at 65% 20%, rgba(14, 165, 233, .2), transparent 42%);
  filter: blur(56px);
  opacity: .78;
  pointer-events: none;
}

.tg-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .86fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  z-index: 1;
}

.tg-hero-copy h1,
.tg-section-head h2,
.tg-section-copy h2,
.tg-story-panel h2,
.tg-demo-cta h2,
.tg-credential-dialog h2 {
  margin: 0;
  color: var(--tg-present-ink);
  font-size: clamp(2.4rem, 5.2vw, 4.7rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: .98;
}

.tg-hero-copy h1 span {
  display: block;
  color: var(--tg-present-blue-2);
}

.tg-hero-copy h1 {
  font-size: clamp(2.35rem, 4.4vw, 4.05rem);
}

.tg-hero-lede {
  max-width: 58ch;
  margin: 22px 0 0;
  color: var(--tg-present-text);
  font-size: clamp(1.05rem, 1.8vw, 1.34rem);
}

.tg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.tg-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--tg-present-muted);
  font-family: var(--tg-present-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.tg-section-label span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--tg-present-green);
  box-shadow: 0 0 16px rgba(34, 197, 94, .4);
}

.tg-hero-board,
.tg-chain-panel,
.tg-work-card,
.tg-event-register,
.tg-module-card,
.tg-demo-cta,
.tg-credential-dialog {
  border: 1px solid var(--tg-present-line);
  background: linear-gradient(180deg, rgba(16, 31, 51, .94), rgba(9, 18, 31, .92));
  box-shadow: var(--tg-present-shadow);
}

.tg-hero-board {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(20px, 3vw, 28px);
}

.tg-hero-board::before,
.tg-chain-panel::before,
.tg-event-register::before,
.tg-credential-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tg-present-blue-2), var(--tg-present-green), transparent);
  opacity: .86;
}

.tg-board-header,
.tg-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--tg-present-ink);
  font-family: var(--tg-present-mono);
  font-size: .82rem;
}

.tg-board-header div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tg-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.tg-dot-green {
  background: var(--tg-present-green);
  box-shadow: 0 0 14px rgba(34, 197, 94, .44);
}

.tg-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.tg-kpi-strip div,
.tg-terminal-card,
.tg-chain-list li,
.tg-module-card,
.tg-mini-metrics div {
  border: 1px solid var(--tg-present-line);
  background: rgba(5, 11, 20, .42);
}

.tg-kpi-strip div {
  border-radius: 13px;
  padding: 14px;
}

.tg-kpi-strip span,
.tg-mini-metrics dt,
.tg-card-top span,
.tg-module-card span {
  display: block;
  color: var(--tg-present-muted);
  font-family: var(--tg-present-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tg-kpi-strip strong,
.tg-mini-metrics dd {
  display: block;
  margin-top: 5px;
  color: var(--tg-present-ink);
  font-size: .92rem;
}

.tg-text-amber {
  color: var(--tg-present-amber) !important;
}

.tg-flow-map {
  display: grid;
  grid-template-columns: max-content 1fr max-content 1fr max-content 1fr max-content;
  align-items: center;
  gap: 8px;
  margin: 28px 0;
}

.tg-flow-node {
  border: 1px solid var(--tg-present-line-strong);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--tg-present-muted);
  font-family: var(--tg-present-mono);
  font-size: .72rem;
  font-weight: 700;
}

.tg-flow-node.active {
  border-color: rgba(14, 165, 233, .72);
  color: #bae6fd;
}

.tg-flow-node.done {
  border-color: rgba(34, 197, 94, .72);
  color: #bbf7d0;
}

.tg-flow-line {
  height: 1px;
  min-width: 28px;
  background: linear-gradient(90deg, var(--tg-present-line-strong), rgba(34, 197, 94, .44));
}

.tg-terminal-card {
  border-radius: 16px;
  padding: 16px;
  font-family: var(--tg-present-mono);
}

.tg-terminal-row {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  color: var(--tg-present-text);
  font-size: .82rem;
}

.tg-terminal-row + .tg-terminal-row {
  margin-top: 10px;
}

.tg-terminal-row code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tg-chip {
  flex: 0 0 auto;
  border-radius: 4px;
  background: var(--tg-present-amber);
  color: #211405;
  padding: 2px 6px;
  font-size: .74rem;
  font-weight: 800;
}

.tg-chip-blue {
  background: var(--tg-present-blue-2);
  color: #03121f;
}

.tg-chip-green {
  background: var(--tg-present-green);
  color: #031207;
}

.tg-next-hint {
  position: relative;
  z-index: 1;
  margin-top: clamp(38px, 7vh, 70px);
  color: var(--tg-present-faint);
  font-family: var(--tg-present-mono);
  font-size: .78rem;
}

.tg-next-hint span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tg-next-hint span::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--tg-present-line-strong);
}

.tg-split,
.tg-wide-story {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
}

.tg-section-copy h2,
.tg-story-panel h2,
.tg-demo-cta h2 {
  font-size: clamp(2rem, 4.1vw, 3.45rem);
}

.tg-section-copy p:not(.tg-section-label),
.tg-section-head p:not(.tg-section-label),
.tg-story-panel p:not(.tg-section-label),
.tg-demo-cta p:not(.tg-section-label) {
  max-width: 62ch;
  margin: 20px 0 0;
  color: var(--tg-present-muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.tg-chain-panel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 20px;
}

.tg-chain-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tg-chain-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  border-radius: 14px;
  padding: 16px;
}

.tg-chain-list li > span {
  color: var(--tg-present-blue-2);
  font-family: var(--tg-present-mono);
  font-weight: 800;
}

.tg-chain-list strong {
  color: var(--tg-present-ink);
}

.tg-chain-list p {
  margin: 5px 0 0;
  color: var(--tg-present-muted);
}

.tg-section-head {
  max-width: 860px;
  margin-bottom: clamp(34px, 6vh, 62px);
}

.tg-section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.7rem);
}

.tg-operational-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tg-work-card {
  border-radius: 18px;
  padding: 24px;
}

.tg-work-card p {
  margin: 22px 0 0;
  color: var(--tg-present-muted);
}

.tg-pulse-bar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 8px;
  height: 112px;
  margin-top: 28px;
  border-bottom: 1px solid var(--tg-present-line-strong);
}

.tg-pulse-bar i {
  display: block;
  min-height: 22px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(56, 189, 248, .9), rgba(14, 165, 233, .36));
}

.tg-pulse-bar i:nth-child(2) {
  height: 52px;
}

.tg-pulse-bar i:nth-child(3) {
  height: 90px;
}

.tg-pulse-bar i:nth-child(4) {
  height: 44px;
}

.tg-pulse-bar i:nth-child(5) {
  height: 62px;
}

.tg-pulse-bar i:nth-child(6) {
  height: 104px;
}

.tg-pulse-bar i:nth-child(7) {
  height: 40px;
}

.tg-pulse-bar i.warning {
  background: linear-gradient(180deg, rgba(245, 158, 11, .9), rgba(245, 158, 11, .38));
}

.tg-mini-metrics {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
}

.tg-mini-metrics div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 12px;
  padding: 13px 14px;
}

.tg-mini-metrics dt,
.tg-mini-metrics dd {
  margin: 0;
}

.tg-wide-story {
  align-items: center;
}

.tg-story-panel {
  border-left: 2px solid var(--tg-present-blue-2);
  padding-left: 24px;
}

.tg-event-register {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 14px;
}

.tg-register-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr .9fr .9fr;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--tg-present-line);
  padding: 16px 12px;
  color: var(--tg-present-text);
  font-size: .9rem;
}

.tg-register-head {
  border-top: 0;
  color: var(--tg-present-muted);
  font-family: var(--tg-present-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tg-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-family: var(--tg-present-mono);
  font-size: .72rem;
  font-weight: 800;
}

.tg-status-warning {
  background: rgba(245, 158, 11, .15);
  color: #fbbf24;
}

.tg-status-blue {
  background: rgba(14, 165, 233, .16);
  color: #7dd3fc;
}

.tg-status-green {
  background: rgba(34, 197, 94, .15);
  color: #86efac;
}

.tg-module-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tg-module-card {
  border-radius: 16px;
  padding: 20px;
}

.tg-module-card strong {
  display: block;
  margin-top: 10px;
  color: var(--tg-present-ink);
  font-size: 1rem;
  line-height: 1.42;
}

.tg-demo-section {
  padding-bottom: clamp(72px, 10vh, 120px);
}

.tg-demo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: 22px;
  padding: clamp(24px, 4vw, 38px);
}

.tg-present-footer {
  border-top: 1px solid var(--tg-present-line);
  padding: 28px 0;
  color: var(--tg-present-muted);
  font-family: var(--tg-present-mono);
  font-size: .78rem;
}

.tg-present-footer .tg-present-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.tg-present-footer span {
  color: var(--tg-present-ink);
  font-weight: 800;
}

.tg-credential-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 7, 18, .68);
  backdrop-filter: blur(8px);
  animation: tgFadeIn .22s ease both;
}

.tg-credential-overlay[hidden] {
  display: none;
}

.tg-credential-dialog {
  position: relative;
  width: min(540px, 100%);
  overflow: hidden;
  border-radius: 20px;
  padding: 30px;
  animation: tgRiseIn .28s cubic-bezier(.2, .7, .2, 1) both;
}

.tg-credential-dialog h2 {
  max-width: 12ch;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1.04;
}

.tg-credential-dialog p:not(.tg-section-label) {
  max-width: 48ch;
  margin: 16px 0 0;
  color: var(--tg-present-muted);
}

.tg-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--tg-present-muted);
  cursor: pointer;
  font-family: var(--tg-present-mono);
}

.tg-dialog-close:hover,
.tg-dialog-close:focus {
  border-color: var(--tg-present-line-strong);
  color: var(--tg-present-ink);
}

.tg-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tg-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .68s cubic-bezier(.2, .7, .2, 1), transform .68s cubic-bezier(.2, .7, .2, 1);
}

.tg-hero .tg-reveal {
  opacity: 1;
  transform: none;
}

.tg-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.tg-delay-1 {
  transition-delay: .08s;
}

.tg-delay-2 {
  transition-delay: .16s;
}

@keyframes tgFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes tgRiseIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .tg-nav-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .tg-nav-links {
    order: 3;
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .tg-nav-cta {
    margin-left: auto;
  }

  .tg-hero-grid,
  .tg-split,
  .tg-wide-story {
    grid-template-columns: 1fr;
  }

  .tg-hero-board {
    max-width: 720px;
  }

  .tg-module-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .tg-present-section,
  .tg-hero {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .tg-nav-inner {
    min-height: 0;
  }

  .tg-wordmark-frame {
    min-width: 142px;
    height: 34px;
  }

  .tg-wordmark-frame img {
    width: 118px;
  }

  .tg-nav-cta {
    width: 100%;
  }

  .tg-hero-copy h1,
  .tg-section-head h2,
  .tg-section-copy h2,
  .tg-story-panel h2,
  .tg-demo-cta h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .tg-hero-actions,
  .tg-dialog-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tg-kpi-strip,
  .tg-operational-grid,
  .tg-module-rail {
    grid-template-columns: 1fr;
  }

  .tg-flow-map {
    grid-template-columns: 1fr;
  }

  .tg-flow-line {
    width: 1px;
    height: 18px;
    min-width: 0;
    margin-left: 18px;
    background: linear-gradient(180deg, var(--tg-present-line-strong), rgba(34, 197, 94, .44));
  }

  .tg-register-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .tg-register-head {
    display: none;
  }

  .tg-demo-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .tg-credential-dialog {
    padding: 26px 20px 22px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  .tg-reveal {
    opacity: 1;
    transform: none;
  }
}
