:root {
  --bg-veil: rgba(7, 10, 20, 0.42);
  --bg-veil-strong: rgba(5, 7, 14, 0.68);
  --text-main: #f4f7ff;
  --text-muted: rgba(239, 244, 255, 0.78);
  --theme-accent: #478c5c;
  --theme-accent-soft: color-mix(in srgb, var(--theme-accent) 42%, white 58%);
  --glass-bg: rgba(255, 255, 255, 0.16);
  --glass-bg-strong: rgba(255, 255, 255, 0.22);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: 10px;
  --glass-shadow: 0 8px 30px rgba(5, 8, 18, 0.22);
  --zt-btn-blur: 14px;
  --zt-btn-shadow: 0 12px 32px rgba(4, 8, 18, 0.34);
  --zt-btn-border: rgba(255, 255, 255, 0.5);
  --zt-btn-tint-idle: rgba(255, 255, 255, 0.09);
  --zt-btn-tint-hover: rgba(255, 255, 255, 0.15);
  --zt-btn-shine-strength: 1;
  --zt-btn-distortion-scale: 0;
  --section-gap: clamp(3.5rem, 7vw, 7rem);
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", "Plus Jakarta Sans", "Avenir Next", sans-serif;
  color: var(--text-main);
  background: #080b16;
  line-height: 1.58;
  letter-spacing: 0.01em;
  overflow-x: clip;
}

a {
  color: inherit;
}

.zt-site {
  position: relative;
  isolation: isolate;
}

.zt-bg-root {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.zt-bg-layer {
  position: absolute;
  inset: -6%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity var(--bg-crossfade-ms, 1800ms) ease, transform 2.6s ease;
  will-change: opacity, transform;
}

.zt-bg-layer.is-active {
  opacity: 1;
  transform: scale(1.01);
}

.zt-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 15% -12%, rgba(255, 255, 255, 0.2), transparent 57%),
    radial-gradient(100% 120% at 85% 105%, color-mix(in srgb, var(--theme-accent) 36%, transparent) 0%, transparent 62%),
    linear-gradient(155deg, var(--bg-veil) 0%, var(--bg-veil-strong) 100%);
  transition: background 1200ms ease;
}

.zt-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.13;
  mix-blend-mode: soft-light;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.6) 0.8px, transparent 0);
  background-size: 3px 3px;
}

.zt-shell {
  position: relative;
  z-index: 1;
  padding-bottom: 6rem;
}

.container-zt {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.zt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  column-gap: clamp(2rem, 4vw, 4.25rem);
  align-items: start;
  padding-top: clamp(3rem, 8vw, 6.25rem);
  padding-bottom: clamp(2rem, 5vw, 3.8rem);
}

.zt-hero > :not(.zt-theme-showcase) {
  grid-column: 1;
}

.zt-hero h1 {
  font-family: "Fraunces", "Iowan Old Style", serif;
  font-size: clamp(2rem, 5.4vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: 0.012em;
  margin: 0 0 0.95rem;
  max-width: 18ch;
}

.zt-hero p {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 62ch;
}

.zt-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.zt-hero-note {
  margin-top: 0.95rem;
  color: rgba(239, 244, 255, 0.7);
  font-size: 0.9rem;
}

.zt-hero-note a {
  color: var(--theme-accent-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Theme Showcase ────────────────────────────── */

.zt-theme-showcase {
  grid-column: 2;
  grid-row: 1 / span 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
  gap: 1.2rem;
  margin-top: 0;
}

.zt-phone-deck-wrap {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.zt-phone-deck {
  --phone-front-transform: translate3d(76px, 10px, 0) rotate(8deg) scale(1);
  --phone-back-transform: translate3d(-12px, 96px, 0) rotate(-9deg) scale(0.93);
  position: relative;
  width: 452px;
  height: 734px;
  margin-inline: auto;
  perspective: 1500px;
}

.zt-phone-deck::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 16px;
  height: 40px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-accent) 38%, transparent);
  filter: blur(26px);
  opacity: 0.95;
  pointer-events: none;
}

.zt-showcase-device {
  position: absolute;
  top: 0;
  left: 0;
  width: 339px;
  height: 668px;
  overflow: visible;
  cursor: pointer;
  transition:
    transform 820ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 820ms ease,
    opacity 820ms ease,
    box-shadow 820ms ease;
  will-change: transform, filter, opacity;
}

.zt-showcase-device .device-iphone-14-pro {
  pointer-events: none;
  transform: scale(0.72);
  transform-origin: top left;
  position: absolute;
  top: 0;
  left: 0;
}

.zt-showcase-device .device-screen {
  object-fit: cover;
  transition: opacity 500ms ease;
}

.zt-showcase-device .device-screen.is-fading {
  opacity: 0;
}

.zt-phone-deck .zt-showcase-device--timer {
  z-index: 2;
  transform: var(--phone-front-transform);
  filter: saturate(1) brightness(1);
  opacity: 1;
}

.zt-phone-deck .zt-showcase-device--stats {
  z-index: 1;
  transform: var(--phone-back-transform);
  filter: saturate(0.9) brightness(0.84);
  opacity: 0.96;
}

.zt-phone-deck.is-swapped .zt-showcase-device--timer {
  z-index: 1;
  transform: var(--phone-back-transform);
  filter: saturate(0.9) brightness(0.84);
  opacity: 0.96;
}

.zt-phone-deck.is-swapped .zt-showcase-device--stats {
  z-index: 2;
  transform: var(--phone-front-transform);
  filter: saturate(1) brightness(1);
  opacity: 1;
}

.zt-showcase-device:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--theme-accent) 72%, white 28%);
  outline-offset: 4px;
  border-radius: 2rem;
}

.zt-theme-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  width: min(460px, 100%);
}

.zt-theme-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 3 / 2;
  padding: 0.75rem 0.9rem;
  border-radius: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background-size: cover;
  background-position: center;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 300ms ease, transform 200ms ease, box-shadow 300ms ease;
}

.zt-theme-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
  border-radius: inherit;
  pointer-events: none;
}

.zt-theme-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.zt-theme-card[aria-pressed="true"] {
  border-color: var(--card-accent, var(--theme-accent));
  box-shadow: 0 0 0 1px var(--card-accent, var(--theme-accent)),
              0 0 20px color-mix(in srgb, var(--card-accent, var(--theme-accent)) 35%, transparent);
}

.zt-theme-card-name {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.zt-divider {
  margin-top: var(--section-gap);
}

.zt-section {
  padding-top: 1.5rem;
}

.zt-section h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  margin-bottom: 0.85rem;
}

.zt-section > p {
  max-width: 66ch;
  color: var(--text-muted);
}

.zt-feature-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.zt-feature {
  padding: 1rem 1.05rem;
  border-radius: 1.25rem;
}

.zt-feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.zt-feature p {
  color: rgba(238, 243, 255, 0.76);
  margin-bottom: 0;
  font-size: 0.92rem;
}

.zt-feature-screenshot {
  float: right;
  width: 80px;
  margin: 0 0 0.5rem 0.75rem;
  border-radius: 0.65rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 200ms ease;
}

.zt-feature-screenshot:hover {
  transform: scale(1.06);
}

.zt-feature-screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.65rem;
  transition: opacity 500ms ease;
}

.zt-feature-screen.is-fading {
  opacity: 0;
}

.zt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.zt-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.zt-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 150ms ease;
}

.zt-lightbox-close:hover {
  opacity: 1;
}

.zt-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.zt-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.3rem;
}

.zt-price-card {
  padding: 1.15rem;
  border-radius: 1.25rem;
}

.zt-price-card h3 {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

.zt-price-card p {
  color: rgba(239, 244, 255, 0.76);
  margin-bottom: 0;
}

.zt-faq {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.7rem;
}

.zt-faq-item {
  border-radius: 1.15rem;
  padding: 0.9rem 1rem;
}

.zt-faq-item h3 {
  font-size: 0.96rem;
  margin-bottom: 0.25rem;
}

.zt-faq-item p {
  margin-bottom: 0;
  color: rgba(241, 246, 255, 0.76);
  font-size: 0.88rem;
}

.zt-footer {
  margin-top: var(--section-gap);
  padding-top: 1.4rem;
  padding-bottom: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
  color: rgba(244, 248, 255, 0.74);
  font-size: 0.86rem;
}

.zt-footer a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.zt-footer a:hover {
  border-color: rgba(255, 255, 255, 0.55);
}

.zt-glass {
  background: linear-gradient(145deg, var(--glass-bg-strong), var(--glass-bg));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow);
}

.zt-glass-btn {
  --zt-btn-tint-idle: color-mix(in srgb, var(--theme-accent) 24%, transparent);
  --zt-btn-tint-hover: color-mix(in srgb, var(--theme-accent) 34%, transparent);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.12rem;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--zt-btn-border);
  color: #fbfcff;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  background: transparent;
  box-shadow: var(--zt-btn-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 220ms ease;
}

.zt-glass-btn__fx,
.zt-glass-btn__effect,
.zt-glass-btn__tint,
.zt-glass-btn__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.zt-glass-btn__fx {
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.zt-glass-btn__effect {
  z-index: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.02));
  backdrop-filter: saturate(170%) blur(var(--zt-btn-blur));
  -webkit-backdrop-filter: saturate(170%) blur(var(--zt-btn-blur));
}

.zt-glass-btn__tint {
  z-index: 1;
  background: var(--zt-btn-tint-idle);
  transition: background 180ms ease;
}

.zt-glass-btn__shine {
  z-index: 2;
  opacity: var(--zt-btn-shine-strength);
  background: radial-gradient(130% 70% at 50% -30%, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.12) 42%, rgba(255, 255, 255, 0.02) 100%);
  mix-blend-mode: screen;
  box-shadow: inset 0 1px 0.8px rgba(255, 255, 255, 0.56), inset 0 -1px 1px rgba(255, 255, 255, 0.2);
}

.zt-glass-btn__label {
  position: relative;
  z-index: 3;
}

.zt-glass-btn--primary {
  --zt-btn-tint-idle: color-mix(in srgb, var(--theme-accent) 32%, transparent);
  --zt-btn-tint-hover: color-mix(in srgb, var(--theme-accent) 42%, transparent);
}

.zt-glass-btn--ghost {
  --zt-btn-tint-idle: rgba(255, 255, 255, 0.07);
  --zt-btn-tint-hover: rgba(255, 255, 255, 0.13);
}

.zt-glass-btn--liquid {
  --zt-btn-distortion-scale: 150;
}

.zt-glass-btn--liquid .zt-glass-btn__effect {
  filter: url(#zt-glass-distortion);
}

.zt-glass-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(4, 8, 18, 0.38);
  border-color: rgba(255, 255, 255, 0.62);
}

.zt-glass-btn:hover .zt-glass-btn__tint {
  background: var(--zt-btn-tint-hover);
}

.zt-glass-btn:active {
  transform: translateY(0);
}

.zt-glass-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--theme-accent) 65%, white 35%);
  outline-offset: 2px;
}

.zt-pulse {
  animation: ztPulse 2.9s ease-in-out infinite;
}

@keyframes ztPulse {
  0%,
  100% {
    box-shadow: 0 8px 30px rgba(5, 8, 18, 0.22);
  }
  50% {
    box-shadow: 0 10px 33px rgba(5, 8, 18, 0.3);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-parallax] {
  transform: translateY(calc(var(--parallax-shift, 0px) * 1px));
  transition: transform 120ms linear;
}

.zt-glass-filter-defs {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.no-backdrop .zt-glass,
.no-backdrop .zt-glass-btn {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(18, 24, 40, 0.9);
}

.no-backdrop .zt-glass-btn__effect {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  filter: none;
  background: transparent;
}

.no-backdrop .zt-glass-btn__tint {
  background: rgba(255, 255, 255, 0.08);
}

.no-backdrop .zt-glass-btn__shine {
  opacity: 0.35;
}

@media (max-width: 992px) {
  .zt-hero {
    display: block;
  }

  .zt-pricing,
  .zt-feature-grid {
    grid-template-columns: 1fr;
  }

  .zt-theme-showcase {
    grid-column: auto;
    grid-row: auto;
    gap: 1.75rem;
    margin-top: 2.2rem;
  }

  .zt-phone-deck {
    --phone-front-transform: translate3d(44px, 6px, 0) rotate(6deg) scale(1);
    --phone-back-transform: translate3d(-26px, 72px, 0) rotate(-7deg) scale(0.95);
    width: 392px;
    height: 676px;
  }

  .zt-showcase-device {
    width: 306px;
    height: 603px;
  }

  .zt-showcase-device .device-iphone-14-pro {
    transform: scale(0.65);
  }

  .zt-theme-cards {
    width: min(540px, 100%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .zt-hero h1 {
    max-width: 100%;
  }

  .zt-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .zt-glass-btn {
    justify-content: center;
  }

  .zt-theme-showcase {
    gap: 1.35rem;
    margin-top: 2rem;
  }

  .zt-phone-deck {
    --phone-front-transform: translate3d(24px, 2px, 0) rotate(4.5deg) scale(1);
    --phone-back-transform: translate3d(-20px, 52px, 0) rotate(-5deg) scale(0.94);
    width: 314px;
    height: 530px;
    transform: translateX(12px);
  }

  .zt-showcase-device {
    width: 250px;
    height: 492px;
  }

  .zt-showcase-device .device-iphone-14-pro {
    transform: scale(0.53);
  }

  .zt-theme-cards {
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 100%;
    width: 100%;
  }

  .zt-theme-card {
    font-size: 0.75rem;
    padding: 0.5rem 0.65rem;
  }

  .zt-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
