:root {
  --tg-present-bg: #f5f8fc;
  --tg-present-band: #eaf2fb;
  --tg-present-surface: #ffffff;
  --tg-present-ink: #111827;
  --tg-present-text: #334155;
  --tg-present-muted: #64748b;
  --tg-present-line: #d8e2ef;
  --tg-present-blue: #149fe3;
  --tg-present-blue-dark: #087eb9;
  --tg-present-green: #16a34a;
  --tg-present-shadow: 0 18px 44px rgba(15, 23, 42, .11);
  --tg-present-font: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --tg-present-mono: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --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: var(--tg-present-bg);
  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 var(--tg-present-line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  transition: box-shadow .18s ease;
}
.tg-present-nav.is-stuck { box-shadow: 0 12px 26px rgba(15, 23, 42, .08); }
.tg-nav-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 20px;
}
.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: 158px;
  height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--tg-present-line);
  border-radius: 8px;
  background: #fff;
}
.tg-wordmark-frame img {
  display: block;
  width: 136px;
  height: auto;
}
.tg-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  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-blue-dark); }

.tg-nav-cta,
.tg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  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 10px 22px rgba(20, 159, 227, .22);
}
.tg-nav-cta:hover,
.tg-button:hover { transform: translateY(-1px); }
.tg-button { padding: 12px 18px; }
.tg-button-primary {
  background: var(--tg-present-blue);
  color: #fff;
}
.tg-button-primary:hover { background: var(--tg-present-blue-dark); }
.tg-button-quiet {
  border-color: var(--tg-present-line);
  background: rgba(255, 255, 255, .9);
  color: var(--tg-present-ink);
}

.tg-present-section {
  position: relative;
  padding: clamp(78px, 11vh, 132px) 0;
  border-top: 1px solid var(--tg-present-line);
}
.tg-present-section:first-of-type { border-top: 0; }

.tg-hero {
  display: flex;
  min-height: calc(100svh - 68px);
  align-items: flex-end;
  overflow: hidden;
  padding-top: clamp(120px, 20vh, 180px);
  padding-bottom: clamp(72px, 10vh, 96px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 13, 25, .96) 0%, rgba(6, 13, 25, .92) 34%, rgba(6, 13, 25, .46) 58%, rgba(6, 13, 25, .02) 100%),
    var(--tg-hero-image) right -90px top 88px / min(82vw, 1180px) auto no-repeat,
    #0b1626;
}
.tg-hero-copy { position: relative; z-index: 1; }
.tg-hero-copy h1,
.tg-section-head h2,
.tg-section-copy h2,
.tg-demo-cta h2,
.tg-credential-dialog h2 {
  margin: 0;
  color: var(--tg-present-ink);
  font-size: clamp(2.2rem, 4.6vw, 4.3rem);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1;
}
.tg-hero-copy h1 {
  max-width: 15ch;
  color: #fff;
  font-size: clamp(2.55rem, 4.8vw, 4.8rem);
  line-height: 1.04;
}
.tg-hero-lede {
  max-width: 58ch;
  margin: 24px 0 0;
  color: #e5eef8;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
}
.tg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.tg-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 720px;
  margin-top: 30px;
}
.tg-proof-strip span {
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  padding: 6px 10px;
  color: #f8fafc;
  font-family: var(--tg-present-mono);
  font-size: .74rem;
  font-weight: 700;
}

.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: 0;
  line-height: 1.3;
  text-transform: uppercase;
}
.tg-hero .tg-section-label { color: #cfe8f8; }
.tg-section-label span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--tg-present-green);
}
.tg-next-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .72);
  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: rgba(255, 255, 255, .45);
}

.tg-split {
  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-demo-cta h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
.tg-section-copy p:not(.tg-section-label),
.tg-section-head p:not(.tg-section-label),
.tg-demo-cta p:not(.tg-section-label) {
  max-width: 68ch;
  margin: 18px 0 0;
  color: var(--tg-present-muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}
.tg-chain-section,
.tg-demo-section { background: var(--tg-present-band); }

.tg-chain-panel,
.tg-screen-card,
.tg-module-card,
.tg-demo-cta,
.tg-credential-dialog {
  border: 1px solid var(--tg-present-line);
  border-radius: 8px;
  background: var(--tg-present-surface);
  box-shadow: var(--tg-present-shadow);
}
.tg-chain-panel { padding: 18px; }
.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: 1px solid var(--tg-present-line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 16px;
}
.tg-chain-list li > span {
  color: var(--tg-present-blue-dark);
  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: 880px;
  margin-bottom: clamp(34px, 6vh, 58px);
}
.tg-section-head h2 { font-size: clamp(2rem, 4.2vw, 3.55rem); }
.tg-screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.tg-screen-card { overflow: hidden; }
.tg-screen-card figure { margin: 0; }
.tg-screen-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid var(--tg-present-line);
  background: #e2e8f0;
}
.tg-screen-card figcaption {
  margin: 0;
  padding: 12px 14px 0;
  color: var(--tg-present-muted);
  font-size: .8rem;
}
.tg-screen-card div { padding: 14px; }
.tg-screen-card span,
.tg-module-card span {
  display: block;
  color: var(--tg-present-blue-dark);
  font-family: var(--tg-present-mono);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.tg-screen-card h3 {
  margin: 8px 0 0;
  color: var(--tg-present-ink);
  font-size: 1.08rem;
  line-height: 1.25;
}
.tg-screen-card p {
  margin: 10px 0 0;
  color: var(--tg-present-muted);
  font-size: .92rem;
}
.tg-module-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tg-module-card { padding: 18px; }
.tg-module-card strong {
  display: block;
  margin-top: 10px;
  color: var(--tg-present-ink);
  font-size: .98rem;
  font-weight: 750;
  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;
  padding: clamp(24px, 4vw, 38px);
}
.tg-demo-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.tg-present-footer {
  border-top: 1px solid var(--tg-present-line);
  background: #fff;
  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(15, 23, 42, .48);
  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;
  padding: 30px;
  animation: tgRiseIn .28s cubic-bezier(.2, .7, .2, 1) both;
}
.tg-credential-dialog h2 {
  max-width: 15ch;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  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: 8px;
  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);
  color: var(--tg-present-ink);
}
.tg-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tg-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .58s cubic-bezier(.2, .7, .2, 1), transform .58s cubic-bezier(.2, .7, .2, 1);
}
.tg-hero .tg-reveal,
.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: 1080px) {
  .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-split { grid-template-columns: 1fr; }
  .tg-screen-grid,
  .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-hero {
    min-height: 88svh;
    background:
      linear-gradient(180deg, rgba(6, 13, 25, .92) 0%, rgba(6, 13, 25, .78) 52%, rgba(6, 13, 25, .58) 100%),
      var(--tg-hero-image) top left / cover no-repeat;
  }
  .tg-nav-inner { min-height: 0; }
  .tg-nav-links { display: none; }
  .tg-wordmark-frame {
    min-width: 142px;
    height: 34px;
  }
  .tg-wordmark-frame img { width: 118px; }
  .tg-nav-cta {
    flex: 1 1 172px;
    min-width: 0;
    margin-left: 0;
    padding-right: 12px;
    padding-left: 12px;
    white-space: normal;
    text-align: center;
  }
  .tg-hero-copy h1,
  .tg-section-head h2,
  .tg-section-copy h2,
  .tg-demo-cta h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .tg-hero-actions,
  .tg-dialog-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .tg-chain-list li { grid-template-columns: 1fr; }
  .tg-screen-grid,
  .tg-module-rail { grid-template-columns: 1fr; }
  .tg-demo-cta {
    align-items: stretch;
    flex-direction: column;
  }
  .tg-demo-actions { 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;
  }
}
