/* Tenzy marketing landing — standalone from app shell */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.tenzy-landing {
  scroll-behavior: smooth;
}

body.tenzy-landing-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #e8e9ef;
  background: #07060d;
  overflow-x: hidden;
}

.tl-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.tl-bg__mesh {
  position: absolute;
  inset: -30% -20%;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(124, 58, 237, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(236, 72, 153, 0.28), transparent 50%),
    radial-gradient(ellipse 60% 70% at 50% 90%, rgba(6, 182, 212, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 70% 55%, rgba(251, 191, 36, 0.12), transparent 45%);
  animation: tl-mesh-move 22s ease-in-out infinite alternate;
}

.tl-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}

@keyframes tl-mesh-move {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    transform: translate(4%, 3%) rotate(3deg) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-bg__mesh {
    animation: none;
  }
}

.tl-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Nav */
.tl-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.tl-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.tl-nav__brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.35);
}

.tl-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.75rem);
  flex-wrap: wrap;
  justify-content: center;
}

.tl-nav__links a {
  color: rgba(232, 233, 239, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.tl-nav__links a:hover {
  color: #fff;
}

.tl-nav__cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .tl-nav {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .tl-nav__brand {
    justify-content: center;
  }
  .tl-nav__links {
    justify-content: center;
    padding: 0.5rem 0;
  }
  .tl-nav__cta {
    justify-content: center;
  }
}

/* Buttons */
.tl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tl-btn:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

.tl-btn--primary {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 50%, #0891b2 100%);
  background-size: 200% 200%;
  animation: tl-btn-shimmer 8s ease infinite;
  color: #fff;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4);
}

.tl-btn--primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

.tl-btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f4f4f5;
}

.tl-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.tl-btn--ghost {
  background: transparent;
  color: rgba(232, 233, 239, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
}

.tl-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tenzy-header-account-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.24rem 0.68rem 0.24rem 0.24rem;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 12rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tenzy-header-account-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.tenzy-header-account-pill__img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tenzy-header-account-pill__initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tenzy-header-account-pill__label {
  max-width: 10.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tl-btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  border-radius: 14px;
}

@keyframes tl-btn-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-btn--primary {
    animation: none;
    background: #7c3aed;
  }
}

/* Hero */
.tl-main {
  flex: 1;
}

.tl-hero {
  text-align: center;
  padding: clamp(2rem, 8vw, 5rem) clamp(1.25rem, 4vw, 2rem) 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.tl-hero__visual {
  position: relative;
  width: min(72vw, 280px);
  height: min(72vw, 280px);
  margin: 0 auto 2rem;
  display: grid;
  place-items: center;
}

.tl-hero__gradient-orb {
  position: absolute;
  inset: -35%;
  border-radius: 50%;
  background: conic-gradient(
    from 180deg at 50% 50%,
    #7c3aed,
    #ec4899,
    #06b6d4,
    #fbbf24,
    #7c3aed
  );
  opacity: 0.55;
  filter: blur(48px);
  animation: tl-orbit-hue 14s linear infinite;
}

.tl-hero__gradient-orb::after {
  content: '';
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(7, 6, 13, 0.2), transparent 70%);
}

@keyframes tl-orbit-hue {
  to {
    transform: rotate(360deg);
  }
}

.tl-hero__logo-ring {
  position: absolute;
  inset: 8%;
  border-radius: 28%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(124, 58, 237, 0.3), rgba(6, 182, 212, 0.4));
  animation: tl-ring-pulse 5s ease-in-out infinite alternate;
}

.tl-hero__logo-ring::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 26%;
  background: rgba(10, 9, 18, 0.85);
  backdrop-filter: blur(12px);
}

@keyframes tl-ring-pulse {
  0% {
    opacity: 0.85;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1.02);
  }
}

.tl-hero__logo {
  position: relative;
  z-index: 2;
  width: min(52vw, 200px);
  height: auto;
  border-radius: 22%;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.45));
}

@media (prefers-reduced-motion: reduce) {
  .tl-hero__gradient-orb {
    animation: none;
  }
  .tl-hero__logo-ring {
    animation: none;
  }
}

.tl-hero__typed {
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  min-height: 1.2em;
  background: linear-gradient(90deg, #fff 0%, #e9d5ff 40%, #a5f3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tl-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 4px;
  vertical-align: -0.05em;
  background: linear-gradient(180deg, #c084fc, #22d3ee);
  border-radius: 2px;
  opacity: 0;
}

.tl-cursor.tl-cursor--blink {
  opacity: 1;
  animation: tl-blink 1s step-end infinite;
}

@keyframes tl-blink {
  50% {
    opacity: 0;
  }
}

.tl-hero__tagline {
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 600;
  color: rgba(232, 233, 239, 0.55);
  margin: 0 0 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.tl-hero__tagline.tl-visible {
  opacity: 1;
  transform: translateY(0);
}

.tl-hero__lede {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(200, 202, 220, 0.88);
  max-width: 36ch;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.tl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Features */
.tl-features {
  padding: 4rem clamp(1.25rem, 4vw, 2rem);
  max-width: 1100px;
  margin: 0 auto;
}

.tl-section-head {
  text-align: center;
  margin-bottom: 2.75rem;
}

.tl-section-head h2 {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.tl-section-head p {
  margin: 0;
  color: rgba(180, 183, 210, 0.9);
  font-size: 1.05rem;
}

.tl-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.tl-feature-card {
  padding: 1.5rem 1.35rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s ease, transform 0.2s ease;
}

.tl-feature-card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-3px);
}

.tl-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: rgba(233, 213, 255, 0.95);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(6, 182, 212, 0.25));
}

.tl-feature-icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.tl-feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #f8fafc;
}

.tl-feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(186, 190, 216, 0.95);
  line-height: 1.55;
}

/* Download */
.tl-download {
  padding: 2rem clamp(1.25rem, 4vw, 2rem) 5rem;
  max-width: 960px;
  margin: 0 auto;
}

.tl-download__card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tl-download__glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    120deg,
    #7c3aed,
    #ec4899,
    #06b6d4,
    #8b5cf6,
    #7c3aed
  );
  background-size: 400% 400%;
  animation: tl-download-gradient 10s ease infinite;
  opacity: 0.75;
}

@keyframes tl-download-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.tl-download__inner {
  position: relative;
  margin: 2px;
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(18, 16, 32, 0.97) 0%, rgba(8, 7, 14, 0.98) 100%);
  backdrop-filter: blur(20px);
  padding: clamp(2rem, 5vw, 3.25rem);
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .tl-download__inner {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 2.5rem;
  }
}

.tl-download__copy .tl-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 0.65rem;
}

.tl-download__copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  color: #fff;
}

.tl-download__copy > p {
  margin: 0 0 1.5rem;
  color: rgba(196, 200, 220, 0.92);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 42ch;
}

.tl-download__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tl-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(232, 233, 239, 0.9);
}

.tl-download__hint {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: rgba(160, 165, 190, 0.85);
}

.tl-download__visual {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
}

.tl-download__window {
  width: 100%;
  max-width: 380px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  background: rgba(12, 11, 22, 0.95);
}

.tl-download__titlebar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tl-download__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.tl-download__dot:nth-child(1) {
  background: #f87171;
}
.tl-download__dot:nth-child(2) {
  background: #fbbf24;
}
.tl-download__dot:nth-child(3) {
  background: #4ade80;
}

.tl-download__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(124, 58, 237, 0.15), transparent 55%);
}

.tl-download__body img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.35);
}

.tl-download__body strong {
  font-size: 1.15rem;
  color: #fff;
}

.tl-download__body span {
  font-size: 0.85rem;
  color: rgba(180, 185, 210, 0.9);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .tl-download__glow {
    animation: none;
    background: linear-gradient(120deg, #7c3aed, #0891b2);
  }
}

/* Footer */
.tl-footer {
  margin-top: auto;
  padding: 2rem clamp(1.25rem, 4vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: rgba(150, 155, 180, 0.85);
  font-size: 0.88rem;
}

.tl-footer a {
  color: #c4b5fd;
  text-decoration: none;
}

.tl-footer a:hover {
  text-decoration: underline;
}
