:root {
  --bg-0: #070b12;
  --bg-1: #0b131e;
  --bg-2: #121a27;
  --steel-100: #eef0f4;
  --steel-200: #c9ccd1;
  --steel-300: #9aa1ab;
  --steel-400: #6d7380;
  --steel-500: #454b56;
  --ink: #f4f5f7;
  --muted: #9aa1ab;
  --line: rgba(201, 204, 209, 0.16);
  --accent: #d7dbe2;
  --teal: #2dd4bf;
  --teal-deep: #0f766e;
  --focus: #5eead4;
  --danger: #c45c5c;
  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --max: 72rem;
  --nav-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(1100px 520px at 72% -8%, rgba(45, 212, 191, 0.08), transparent 55%),
    radial-gradient(900px 500px at 8% 18%, rgba(80, 90, 110, 0.18), transparent 50%),
    linear-gradient(180deg, #0b131e 0%, var(--bg-0) 42%, #05070b 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--steel-100);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.55rem 0.85rem;
  background: var(--steel-100);
  color: #111;
  font-weight: 600;
  border-radius: 0.35rem;
}

.skip-link:focus {
  top: 0.75rem;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

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

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}

.nav-brand > img:first-child {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.55rem;
  object-fit: cover;
}

.nav-brand .jayce-wordmark {
  display: block;
  height: 0.95rem;
  width: auto;
  border-radius: 0;
  object-fit: contain;
}

.jayce-wordmark {
  display: inline-block;
  height: 1em;
  width: auto;
  vertical-align: -0.12em;
}

/* Logo letterforms in running text — inherits surrounding text color */
.jayce-type {
  display: inline-block;
  width: 3.85em;
  height: 0.72em;
  margin: 0 0.04em;
  vertical-align: -0.06em;
  background-color: currentColor;
  -webkit-mask: url("/site/img/jayce-wordmark-mask.png?v=20260725-mask") center / contain no-repeat;
  mask: url("/site/img/jayce-wordmark-mask.png?v=20260725-mask") center / contain no-repeat;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}

.btn .jayce-type {
  width: 3.55em;
  height: 0.68em;
  vertical-align: -0.08em;
}

h2 .jayce-type {
  width: 3.7em;
  height: 0.7em;
  vertical-align: -0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(0.55rem, 1.6vw, 1.5rem);
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--steel-100);
}

.nav-signin {
  color: var(--steel-200);
  font-weight: 600;
  white-space: nowrap;
}

.nav-signin:hover {
  color: var(--steel-100);
}

.nav-open-app {
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(180deg, #5eead4 0%, #14b8a6 100%);
  color: #042f2e;
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #99f6e4 0%, #2dd4bf 100%);
  color: #042f2e;
}

.btn-ghost {
  border-color: rgba(201, 204, 209, 0.35);
  color: var(--steel-100);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(201, 204, 209, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img,
.hero-media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 11, 18, 0.92) 0%, rgba(7, 11, 18, 0.62) 46%, rgba(7, 11, 18, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 11, 18, 0.25) 0%, rgba(7, 11, 18, 0.2) 42%, rgba(7, 11, 18, 0.94) 100%);
}

.hero-media img {
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.04);
}

.hero-copy {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5.5rem) clamp(1rem, 3vw, 2rem) clamp(3rem, 8vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 30rem);
  gap: clamp(1.25rem, 3.5vw, 2.5rem);
  align-items: center;
}

.hero-copy-main {
  min-width: 0;
}

.hero-video {
  justify-self: end;
  width: min(100%, 30rem);
  margin: 0;
}

.hero-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #020617;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.hero-video-embed[hidden] {
  display: none !important;
}

.hero-video-embed iframe,
.hero-video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #020617;
  object-fit: cover;
}

.hero-video-facade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #020617;
  color: inherit;
}

.hero-video-facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.hero-video-facade::after {
  content: "";
  position: relative;
  z-index: 1;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='24' fill='%232dd4bf'/%3E%3Cpath fill='%23070b12' d='M20 15.5v17l13.5-8.5L20 15.5z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.hero-video-facade:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.hero-video-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(45, 212, 191, 0.45);
  border-radius: 0.35rem;
  background: rgba(7, 11, 18, 0.72);
  color: var(--steel-100);
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.hero-video-btn:hover {
  border-color: var(--teal);
  color: #fff;
}

.hero-video-btn-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%232dd4bf'/%3E%3Cpath fill='%23070b12' d='M10 8.2v7.6L16.8 12 10 8.2z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

@media (min-width: 901px) {
  .hero-video-btn {
    display: none !important;
  }
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  text-decoration: none;
  color: inherit;
}

a.brand-lockup:hover {
  opacity: 0.94;
}

.brand-lockup > img {
  width: clamp(4.5rem, 12vw, 6.5rem);
  height: clamp(4.5rem, 12vw, 6.5rem);
  border-radius: 1.1rem;
  object-fit: cover;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.brand-word {
  margin: 0;
  line-height: 1;
}

.brand-word .jayce-wordmark {
  display: block;
  height: clamp(2.35rem, 5.2vw, 3.45rem);
  width: auto;
  max-width: min(15.5rem, 72vw);
}

.brand-tag {
  margin: 0.45rem 0 0;
  color: var(--teal);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 16ch;
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.2vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.hero-lead {
  max-width: 38ch;
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1rem, 3vw, 2rem);
}

.section-label {
  margin: 0 0 0.65rem;
  color: var(--steel-300);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-intro {
  margin: 0 0 2.25rem;
  max-width: 46ch;
  color: var(--muted);
}

.workflow {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.workflow-item {
  display: grid;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 860px) {
  .workflow-item {
    grid-template-columns: minmax(14rem, 0.9fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: center;
  }

  .workflow-item:nth-child(even) .workflow-copy {
    order: 2;
  }

  .workflow-item:nth-child(even) .workflow-shot {
    order: 1;
  }
}

.workflow-step {
  margin: 0 0 0.5rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.workflow-copy h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.workflow-copy p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 40ch;
}

.workflow-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #020617;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.workflow-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

.section-ecosystem {
  position: relative;
}

.section-ecosystem h2 {
  max-width: min(52rem, 100%);
}

.section-ecosystem::before {
  content: "";
  position: absolute;
  inset: 12% -6% auto;
  height: 58%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 50% 48%, rgba(45, 212, 191, 0.1), transparent 72%),
    radial-gradient(ellipse 42% 52% at 50% 52%, rgba(80, 90, 110, 0.16), transparent 74%);
}

.ecosystem-figure {
  margin: 0.35rem 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #020617;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.ecosystem-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
  object-position: center;
  background: #0b131e;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.plan {
  padding: 1.35rem 1.25rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.plan.is-featured {
  border-color: rgba(215, 219, 226, 0.45);
  background: linear-gradient(180deg, rgba(215, 219, 226, 0.08), rgba(255, 255, 255, 0.015));
}

.plan h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.plan-price {
  margin: 0 0 0.75rem;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.plan p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--steel-200);
}

.plan li::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.55rem;
  border-radius: 1px;
  background: var(--steel-300);
  vertical-align: 0.15rem;
}

.cta-band {
  width: min(100%, var(--max));
  margin: 0 auto 2rem;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 2rem);
}

.cta-band-inner {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 760px) {
  .cta-band-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.site-footer {
  padding: 2rem clamp(1rem, 3vw, 2rem) 2.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-disclaimer {
  width: min(100%, var(--max));
  margin: 1.35rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: 52rem;
}

.footer-disclaimer strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-disclaimer p {
  margin: 0;
  color: var(--steel-400);
  font-size: 0.8rem;
  line-height: 1.45;
}

.legal-page {
  width: min(100%, 46rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1rem, 3vw, 2rem) 4rem;
}

.legal-page h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal-page .lede {
  color: var(--muted);
  margin: 0 0 2rem;
}

.legal-page h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.legal-page p,
.legal-page li {
  color: var(--steel-200);
}

.legal-page ul {
  padding-left: 1.2rem;
}

.tutorials-page {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1rem, 3vw, 2rem) 4rem;
}

.tutorials-header h1 {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}

.tutorials-empty {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.tutorials-empty[hidden] {
  display: none !important;
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.tutorial-tile {
  margin: 0;
  min-width: 0;
}

.tutorial-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #020617;
}

.tutorial-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.tutorial-title {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  .hero-copy {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-video {
    justify-self: end;
    width: auto;
    max-width: 100%;
  }

  .hero-video-embed {
    display: none !important;
  }

  .hero-video-btn {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .site-nav {
    gap: 0.65rem;
    padding-inline: 0.85rem;
  }

  .nav-brand .jayce-wordmark {
    height: 0.85rem;
  }

  .nav-links {
    gap: 0.55rem;
  }

  .nav-links .nav-hide-sm {
    display: none;
  }

  .nav-signin {
    padding: 0.35rem 0.15rem;
    font-size: 0.88rem;
  }

  .nav-open-app {
    min-height: 2.15rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.84rem;
  }

  .hero-actions,
  .cta-band-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    width: min(100%, 22rem);
  }

  .hero-actions .btn,
  .cta-band-actions .btn {
    width: 100%;
  }

  .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-word .jayce-wordmark {
    max-width: 72vw;
  }
}
