:root {
  --tp-bg: #05070c;
  --tp-bg-elev: #0c111a;
  --tp-navy: #6ea8ff;
  --tp-teal: #3ecfbe;
  --tp-amber: #f0b429;
  --tp-amber-deep: #d99a12;
  --tp-ink: #eef3f8;
  --tp-muted: #93a0b4;
  --tp-line: rgba(148, 163, 184, 0.16);
  --tp-max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.tp-body {
  margin: 0;
  min-height: 100vh;
  color: var(--tp-ink);
  font-family: "Figtree", "Segoe UI", sans-serif;
  background: var(--tp-bg);
  position: relative;
  overflow-x: hidden;
}

.tp-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(62, 207, 190, 0.16), transparent 58%),
    radial-gradient(820px 480px at 88% 0%, rgba(240, 180, 41, 0.12), transparent 55%),
    radial-gradient(1000px 700px at 50% 100%, rgba(62, 110, 200, 0.14), transparent 62%),
    linear-gradient(180deg, #05070c 0%, #080d16 50%, #05070c 100%);
}

.tp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(18px, 4vw, 40px);
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.55), rgba(5, 7, 12, 0.12));
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.tp-nav.is-scrolled {
  background: rgba(5, 7, 12, 0.82);
  border-bottom-color: var(--tp-line);
  backdrop-filter: blur(14px);
}

.tp-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tp-ink);
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.tp-nav-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}

.tp-nav-links {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tp-nav-links a {
  color: var(--tp-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.tp-nav-links a:hover {
  color: var(--tp-ink);
}

.tp-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--tp-amber);
  color: #1a1408 !important;
  font-weight: 700 !important;
}

.tp-nav-cta:hover {
  background: var(--tp-amber-deep);
}

.tp-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding:
    calc(72px + env(safe-area-inset-top, 0px))
    clamp(18px, 4vw, 40px)
    clamp(36px, 6vh, 64px);
  overflow: hidden;
}

.tp-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.tp-hero-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 18%;
  transform: scale(1.08);
  filter: blur(6px) saturate(0.88) brightness(0.72);
  opacity: 0.35;
  transition:
    transform 1.35s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, filter, opacity;
}

.tp-hero-media.is-visible .tp-hero-shot {
  transform: scale(1.02) translate3d(0, var(--tp-parallax, 0px), 0);
  filter: blur(0) saturate(1) brightness(0.92);
  opacity: 1;
}

.tp-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(5, 7, 12, 0.92) 0%,
      rgba(5, 7, 12, 0.72) 28%,
      rgba(5, 7, 12, 0.28) 52%,
      rgba(5, 7, 12, 0.12) 72%,
      rgba(5, 7, 12, 0.35) 100%
    ),
    linear-gradient(
      180deg,
      rgba(5, 7, 12, 0.55) 0%,
      rgba(5, 7, 12, 0.08) 28%,
      rgba(5, 7, 12, 0.2) 58%,
      rgba(5, 7, 12, 0.88) 86%,
      var(--tp-bg) 100%
    );
}

.tp-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 36rem;
  width: 100%;
  margin: 0;
  padding: 0;
}

.tp-brand-word {
  margin: 0 0 10px;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: var(--tp-ink);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.tp-hero-title {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.4rem, 3.2vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--tp-teal);
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
}

.tp-hero-support {
  margin: 14px 0 0;
  max-width: 32rem;
  font-size: clamp(1rem, 1.9vw, 1.14rem);
  line-height: 1.55;
  color: rgba(238, 243, 248, 0.82);
  font-weight: 500;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

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

.tp-hero-scroll-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(14px, 3vh, 28px);
  transform: translateX(-50%);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(147, 160, 180, 0.75);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  animation: tp-hint-in 0.8s ease 1.1s forwards;
}

.tp-hero-scroll-hint::after {
  content: "";
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, rgba(62, 207, 190, 0.7), transparent);
  animation: tp-scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes tp-hint-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes tp-scroll-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.tp-btn:hover {
  transform: translateY(-1px);
}

.tp-btn.primary {
  background: var(--tp-amber);
  color: #1a1408;
  box-shadow: 0 12px 32px rgba(240, 180, 41, 0.28);
}

.tp-btn.primary:hover {
  background: var(--tp-amber-deep);
}

.tp-btn.ghost {
  border: 1px solid rgba(238, 243, 248, 0.38);
  color: var(--tp-ink);
  background: rgba(5, 7, 12, 0.42);
  backdrop-filter: blur(8px);
}

.tp-btn.ghost:hover {
  border-color: rgba(238, 243, 248, 0.65);
  background: rgba(5, 7, 12, 0.58);
}

.tp-section {
  padding: 72px clamp(18px, 4vw, 40px);
  max-width: var(--tp-max);
  margin: 0 auto;
}

.tp-section-alt {
  max-width: none;
  width: 100%;
  background: linear-gradient(180deg, rgba(62, 207, 190, 0.05), rgba(110, 168, 255, 0.04));
  border-block: 1px solid var(--tp-line);
  padding-left: 0;
  padding-right: 0;
}

.tp-section-alt .tp-section-inner {
  max-width: var(--tp-max);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
}

.tp-section-head {
  margin-bottom: 28px;
}

.tp-section-head h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  color: var(--tp-ink);
}

.tp-section-head p {
  margin: 8px 0 0;
  color: var(--tp-muted);
  font-size: 1.02rem;
}

.tp-capability-list {
  display: grid;
  gap: 12px;
}

.tp-capability {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px 20px;
  border-radius: 18px;
  background: rgba(12, 17, 26, 0.88);
  border: 1px solid var(--tp-line);
}

.tp-cap-index {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  color: var(--tp-teal);
  font-size: 1.1rem;
  padding-top: 2px;
}

.tp-capability h3 {
  margin: 0 0 6px;
  font-family: "Syne", sans-serif;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--tp-ink);
}

.tp-capability p {
  margin: 0;
  color: var(--tp-muted);
  line-height: 1.55;
}

.tp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.tp-steps li {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  border-left: 3px solid var(--tp-teal);
  background: rgba(12, 17, 26, 0.72);
  border-radius: 0 14px 14px 0;
}

.tp-steps strong {
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  color: var(--tp-ink);
}

.tp-steps span {
  color: var(--tp-muted);
  line-height: 1.5;
}

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

.tp-audience li {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(12, 17, 26, 0.8);
  border: 1px solid var(--tp-line);
  color: var(--tp-ink);
  font-weight: 500;
  line-height: 1.45;
}

.tp-closing {
  margin: 24px clamp(18px, 4vw, 40px) 40px;
  max-width: var(--tp-max);
  margin-left: auto;
  margin-right: auto;
  padding: clamp(36px, 6vw, 56px);
  border-radius: 28px;
  background:
    radial-gradient(600px 280px at 12% 0%, rgba(62, 207, 190, 0.18), transparent 60%),
    radial-gradient(520px 260px at 90% 20%, rgba(240, 180, 41, 0.14), transparent 55%),
    linear-gradient(160deg, #0d1420, #080c14 70%);
  border: 1px solid var(--tp-line);
  color: var(--tp-ink);
}

.tp-closing-mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #000;
}

.tp-closing h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
}

.tp-closing p {
  margin: 10px 0 0;
  color: var(--tp-muted);
  font-size: 1.05rem;
}

.tp-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 28px clamp(18px, 4vw, 40px) 40px;
  max-width: var(--tp-max);
  margin: 0 auto;
  color: var(--tp-muted);
  font-size: 0.9rem;
}

.tp-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  color: var(--tp-ink);
}

.tp-footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: #000;
}

.tp-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.tp-footer-meta a {
  color: var(--tp-teal);
  text-decoration: none;
  font-weight: 600;
}

.tp-footer-meta a:hover {
  color: var(--tp-amber);
}

/* —— Motion system —— */
.tp-anim {
  opacity: 0;
  will-change: transform, opacity, filter;
}

.tp-anim-hero {
  transform: translateY(28px);
  filter: blur(8px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 95ms);
}

.tp-anim-hero.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.tp-anim-shot {
  opacity: 1;
}

.tp-anim-head {
  transform: translateY(22px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.tp-anim-head.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tp-anim-head.is-visible h2 {
  animation: tp-title-sheen 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tp-anim-card {
  transform: translateY(36px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.8s ease,
    box-shadow 0.8s ease;
  transition-delay: calc(var(--i, 0) * 110ms);
}

.tp-anim-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tp-capability.tp-anim-card.is-visible {
  box-shadow: 0 0 0 1px rgba(62, 207, 190, 0.08);
}

.tp-anim-step {
  transform: translateX(-28px);
  opacity: 0;
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    border-left-color 0.75s ease;
  transition-delay: calc(var(--i, 0) * 120ms);
}

.tp-anim-step.is-visible {
  opacity: 1;
  transform: translateX(0);
  border-left-color: var(--tp-teal);
}

.tp-anim-closing {
  transform: translateY(40px) scale(0.98);
  filter: blur(4px);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.tp-anim-closing.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.tp-closing-mark {
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.tp-anim-closing.is-visible .tp-closing-mark {
  animation: tp-mark-pop 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@keyframes tp-title-sheen {
  from {
    letter-spacing: -0.06em;
    opacity: 0.7;
  }
  to {
    letter-spacing: -0.03em;
    opacity: 1;
  }
}

@keyframes tp-mark-pop {
  0% {
    transform: scale(0.86) rotate(-4deg);
    opacity: 0.4;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .tp-nav-links a:not(.tp-nav-cta):not([href*="login"]) {
    display: none;
  }

  .tp-hero {
    justify-content: flex-end;
    min-height: 100svh;
    padding-bottom: clamp(56px, 10vh, 88px);
  }

  .tp-hero-shot {
    object-position: 70% 12%;
  }

  .tp-hero-veil {
    background:
      linear-gradient(
        180deg,
        rgba(5, 7, 12, 0.5) 0%,
        rgba(5, 7, 12, 0.18) 32%,
        rgba(5, 7, 12, 0.55) 58%,
        rgba(5, 7, 12, 0.92) 82%,
        var(--tp-bg) 100%
      ),
      linear-gradient(
        90deg,
        rgba(5, 7, 12, 0.55) 0%,
        rgba(5, 7, 12, 0.2) 100%
      );
  }

  .tp-hero-scroll-hint {
    display: none;
  }

  .tp-anim-step {
    transform: translateY(28px);
  }

  .tp-anim-step.is-visible {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tp-anim,
  .tp-hero-shot,
  .tp-btn,
  .tp-closing-mark,
  .tp-atmosphere,
  .tp-hero-scroll-hint,
  .tp-hero-scroll-hint::after {
    animation: none !important;
    transition: none !important;
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .tp-hero-media.is-visible .tp-hero-shot {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}
