/* Homepage polish: calmer display type, product captures set on a lit stage, and
   motion that is present without being busy. Loaded last on the homepage only;
   the guide keeps the shared site styles. Every effect stops with motion off. */
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --glow: #0aa4b5;
  --glow-bright: #41d3e2;
  --sheen: #9df3fa;
  --stage-top: #0f2c32;
  --stage-bottom: #081317;
  --stage-dots: #ffffff12;
}
:root.theme-light {
  --glow-bright: #2cc3d3;
  --sheen: #1fc0d1;
  --stage-top: #d5ecec;
  --stage-bottom: #f3f6f0;
  --stage-dots: #0b3a4014;
}

/* Type: looser display tracking reads calmer; labels are small and consistent. */
h1,
h2,
h3,
h4 {
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
}
.hero .hero-copy h1 {
  font-size: clamp(34px, 3.9vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}
.eyebrow,
.sec-head .eyebrow,
.closing-section .eyebrow,
.authority-map > .micro,
.trust-index {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.price-card .eyebrow {
  font-size: 0.8125rem !important;
}
.section-heading .eyebrow,
.sec-head .eyebrow,
.film-layout .eyebrow,
.guide-promo-layout .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-heading .eyebrow::before,
.sec-head .eyebrow::before,
.film-layout .eyebrow::before,
.guide-promo-layout .eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.film-layout h2 {
  font-size: clamp(32px, 3.4vw, 46px);
}
.sec-head h2 {
  font-size: clamp(34px, 4vw, 56px);
}
.role-detail h3 {
  font-size: clamp(28px, 2.8vw, 40px);
}

h1,
h2 {
  text-wrap: balance;
}
p,
h3 {
  text-wrap: pretty;
}
.film-section {
  background: radial-gradient(
    60% 90% at 72% 50%,
    color-mix(in srgb, var(--glow) 11%, transparent),
    transparent 70%
  );
}
.site-footer nav a {
  gap: 6px;
}

/* Header: transparent over the hero, frosted once the page moves. */
.header-ready .site-header {
  transition:
    background 0.35s,
    border-color 0.35s,
    backdrop-filter 0.35s;
}
.header-ready .site-header:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: blur(18px) saturate(1.5);
}
.nav-links a {
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Buttons: pill shapes with a light sweep on hover. */
.button,
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 999px;
  padding-inline: 22px;
  box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--glow) 80%, transparent);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s,
    background 0.3s,
    border-color 0.3s;
}
.button::after,
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 35%, #ffffff5c 50%, transparent 65%);
  translate: -110% 0;
  transition: translate 0.8s var(--ease-out);
}
.button:hover::after,
.btn:hover::after {
  translate: 110% 0;
}
.button:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--glow) 90%, transparent);
}
.button-outline,
.btn-ghost {
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border-color: var(--line);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.button-outline::after,
.btn-ghost::after {
  background: linear-gradient(
    115deg,
    transparent 35%,
    color-mix(in srgb, var(--accent) 22%, transparent) 50%,
    transparent 65%
  );
}
.button-outline:hover,
.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: none;
}
.price-card .btn {
  width: 100%;
}
.text-link:hover {
  text-decoration: none;
}
.text-link .site-icon {
  transition: transform 0.3s var(--ease-out);
}
.text-link:hover .site-icon {
  transform: translateX(3px);
}

/* The hero accent catches a slow sheen. */
.hero h1 .accent {
  background: linear-gradient(100deg, var(--accent) 35%, var(--sheen) 50%, var(--accent) 65%)
    0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 7s ease-in-out 1.4s infinite;
}
@keyframes sheen {
  from {
    background-position: 100% 0;
  }
  45%,
  to {
    background-position: 0 0;
  }
}

/* Hero: more air, a viewfinder label, and a staggered entrance. The label sits
   inside four focus brackets that lock on while the text pulls into focus. */
.hero .hero-layout {
  padding-block: 72px 64px;
}
.hero-grain {
  opacity: 0.7;
}
.hero .hero-copy .hero-badge {
  position: relative;
  justify-self: start;
  width: fit-content;
  margin-bottom: 30px;
  padding: 9px 16px;
  color: var(--muted);
  font: 500 0.875rem/1.4 var(--font);
  letter-spacing: 0.01em;
  text-transform: none;
}
.hero .hero-copy .hero-badge::before {
  --bracket: linear-gradient(var(--accent), var(--accent));
  content: "";
  position: absolute;
  inset: 0;
  background:
    var(--bracket) top left / 11px 1px,
    var(--bracket) top left / 1px 11px,
    var(--bracket) top right / 11px 1px,
    var(--bracket) top right / 1px 11px,
    var(--bracket) bottom left / 11px 1px,
    var(--bracket) bottom left / 1px 11px,
    var(--bracket) bottom right / 11px 1px,
    var(--bracket) bottom right / 1px 11px;
  background-repeat: no-repeat;
  pointer-events: none;
  animation: focus-lock 1s cubic-bezier(0.34, 1.4, 0.64, 1) 0.35s both;
}
@keyframes focus-lock {
  from {
    inset: -9px -14px;
    opacity: 0;
  }
  to {
    inset: 0;
    opacity: 1;
  }
}
@keyframes focus-pull {
  from {
    opacity: 0;
    filter: blur(7px);
    letter-spacing: 0.06em;
  }
  to {
    opacity: 1;
    filter: blur(0);
    letter-spacing: 0.01em;
  }
}
.hero-copy,
.hero-visual {
  animation: none;
}
.hero .hero-copy .hero-badge {
  animation: focus-pull 1.1s var(--ease-out) both;
}
.hero .hero-copy h1,
.hero-intro-actions,
.hero .hero-visual {
  animation: rise 1s var(--ease-out) both;
}
.hero .hero-copy h1 {
  animation-delay: 0.08s;
}
.hero-intro-actions {
  animation-delay: 0.2s;
}
.hero .hero-visual {
  animation-delay: 0.32s;
  isolation: isolate;
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 22px;
    filter: blur(8px);
  }
}
.hero .hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% -8% -6%;
  z-index: -1;
  background: radial-gradient(
    50% 50% at 50% 45%,
    color-mix(in srgb, var(--glow) 30%, transparent),
    transparent 70%
  );
  filter: blur(40px);
  animation: breathe 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes breathe {
  from {
    opacity: 0.55;
    scale: 0.94;
  }
  to {
    opacity: 1;
    scale: 1.04;
  }
}

/* Recording tabs: a segmented control with a glowing playback bar. */
.demo-heading {
  margin-bottom: 18px;
}
.demo-tabs {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.demo-tabs button {
  min-height: 46px;
  border-radius: 10px;
  overflow: hidden;
  transition:
    color 0.25s,
    background 0.25s;
}
.demo-tabs [aria-selected="true"] {
  border-radius: 10px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.demo-tabs i {
  left: 16px;
  right: 16px;
  bottom: 5px;
  width: auto;
  border-radius: 2px;
  background: transparent;
}
.demo-tabs [aria-selected="true"] i {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.demo-tabs [aria-selected="true"] i::after {
  border-radius: inherit;
  box-shadow: 0 0 10px var(--accent);
}

/* Product stages: real captures framed on a slowly turning aurora. */
.demo-mount,
.feature-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(10px, 2.6vw, 36px);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 22px;
  background: linear-gradient(165deg, var(--stage-top), var(--stage-bottom) 72%);
  box-shadow:
    0 40px 120px -48px color-mix(in srgb, var(--glow) 55%, transparent),
    0 30px 80px #0003;
}
.feature-stage {
  padding: clamp(10px, 2vw, 28px);
  border-radius: 20px;
}
.demo-mount::before,
.feature-stage::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: -1;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  opacity: 1;
  background:
    radial-gradient(
      closest-side at 28% 38%,
      color-mix(in srgb, var(--glow) 55%, transparent),
      transparent
    ),
    radial-gradient(
      closest-side at 72% 62%,
      color-mix(in srgb, var(--glow-bright) 34%, transparent),
      transparent
    ),
    radial-gradient(
      closest-side at 62% 16%,
      color-mix(in srgb, var(--glow) 30%, transparent),
      transparent
    );
  filter: blur(24px);
  animation: aurora 26s linear infinite;
  pointer-events: none;
}
.feature-stage::before {
  animation-duration: 34s;
  animation-direction: reverse;
}
.demo-mount::after,
.feature-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: auto;
  height: auto;
  border: 0;
  border-radius: inherit;
  opacity: 1;
  background:
    radial-gradient(
      520px circle at var(--spot-x, 70%) var(--spot-y, 18%),
      color-mix(in srgb, var(--glow-bright) 20%, transparent),
      transparent 70%
    ),
    radial-gradient(var(--stage-dots) 0.8px, transparent 0.9px) 0 0 / 8px 8px;
  pointer-events: none;
}
@keyframes aurora {
  to {
    transform: rotate(1turn);
  }
}
.demo-frame,
.feature-image {
  border-radius: 12px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent),
    0 30px 70px -22px #000c;
}
.theme-light .demo-frame,
.theme-light .feature-image {
  box-shadow:
    0 0 0 1px #0f3a4022,
    0 30px 70px -26px #0d3c4466;
}
.feature-image {
  border: 0;
}

/* Workspace tabs: a single marker glides to the selected capability. */
.feature-tabs {
  position: relative;
}
.feature-tabs button {
  border-radius: 8px 8px 0 0;
  transition:
    color 0.25s,
    background 0.25s;
}
.feature-tabs.has-marker button[aria-selected="true"] {
  border-bottom-color: transparent;
}
.tab-marker {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  pointer-events: none;
  transition:
    transform 0.55s var(--ease-out),
    width 0.55s var(--ease-out);
}
@media (min-width: 901px) {
  .feature-panel {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.9fr);
    gap: 56px;
    padding-top: 56px;
  }
}
.feature-copy h3 {
  font-size: clamp(26px, 2.4vw, 34px);
  margin-bottom: 16px;
}
.feature-panel.is-switching .feature-copy h3,
.feature-panel.is-switching .feature-copy > p,
.feature-panel.is-switching .check-list li,
.feature-panel.is-switching #featureGuide,
.role-detail.is-switching > :is(.eyebrow, h3, p, .boundary-note),
.role-detail.is-switching .role-controls li,
.role-detail.is-switching #roleGuide {
  animation: swap-in 0.6s var(--ease-out) both;
}
.feature-panel.is-switching .feature-copy > p,
.role-detail.is-switching > h3 {
  animation-delay: 0.05s;
}
.role-detail.is-switching > p {
  animation-delay: 0.1s;
}
.is-switching :is(.check-list, .role-controls) li:nth-child(1) {
  animation-delay: 0.1s;
}
.is-switching :is(.check-list, .role-controls) li:nth-child(2) {
  animation-delay: 0.15s;
}
.is-switching :is(.check-list, .role-controls) li:nth-child(3) {
  animation-delay: 0.2s;
}
.is-switching :is(.check-list, .role-controls) li:nth-child(4) {
  animation-delay: 0.25s;
}
.is-switching :is(#featureGuide, #roleGuide),
.role-detail.is-switching > .boundary-note {
  animation-delay: 0.3s;
}
.feature-panel.is-switching .feature-image img {
  animation: shot-in 0.7s var(--ease-out) both;
}
@keyframes swap-in {
  from {
    opacity: 0;
    translate: 0 10px;
    filter: blur(4px);
  }
}
@keyframes shot-in {
  from {
    opacity: 0.2;
    scale: 1.02;
    filter: blur(8px);
  }
}

/* Film: the poster sits in light, and the play control keeps a quiet pulse. */
.film-poster {
  border-radius: 16px;
  box-shadow:
    0 40px 100px -40px color-mix(in srgb, var(--glow) 55%, transparent),
    var(--shadow);
}
.film-play::before,
.film-play::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ring 2.8s var(--ease-out) infinite;
  pointer-events: none;
}
.film-play::after {
  animation-delay: 1.4s;
}
@keyframes ring {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* Governance: the selected layer lifts into light. */
.role-layer {
  transition:
    transform 0.45s var(--ease-out),
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}
.role-layer[aria-selected="true"] {
  box-shadow:
    8px 10px 0 var(--bg-deep),
    8px 10px 0 1px var(--line),
    0 22px 60px -14px color-mix(in srgb, var(--glow) 60%, transparent);
}
.role-layer:not([aria-selected="true"]):hover {
  transform: translateX(4px) rotateX(8deg) rotateY(-6deg);
}

/* Cards: a pointer-following light, plus a top edge that draws in on hover. */
.spotlight {
  position: relative;
  isolation: isolate;
}
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    380px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    color-mix(in srgb, var(--glow) 16%, transparent),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.spotlight:hover::after {
  opacity: 1;
}
.trust-grid > a {
  padding: 36px;
}
.trust-grid > a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 0.6s var(--ease-out);
}
.trust-grid > a:hover::before {
  transform: scaleX(1);
}
.trust-grid > a:hover {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.trust-index {
  color: var(--faint);
}
.trust-grid h3 {
  font-size: 22px;
  margin: 40px 0 12px;
}
.trust-icon .site-icon {
  transition:
    transform 0.4s var(--ease-out),
    opacity 0.3s;
}
.trust-grid > a:hover .trust-icon .site-icon {
  transform: translateY(-2px) scale(1.1);
  opacity: 1;
}
.learning-paths > a > span:last-child {
  transition: transform 0.35s var(--ease-out);
}
.learning-paths > a:hover > span:last-child {
  transform: translateX(4px);
}

/* Community source: connected steps and a card with a travelling edge light. */
.lic-grid {
  margin-top: 56px;
  align-items: start;
}
.step {
  position: relative;
  gap: 22px;
  padding: 0 0 34px;
}
.step:last-child {
  padding-bottom: 0;
}
.step .num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 50%;
  background: var(--surface);
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 40px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(var(--accent), transparent);
  opacity: 0.45;
}
.step h4 {
  margin: 6px 0;
  font-size: 1.125rem;
}
.price-card {
  position: relative;
  padding: 36px;
  border-radius: 18px;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0 62%,
    var(--accent) 80%,
    var(--glow-bright) 86%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-spin 7s linear infinite;
  pointer-events: none;
}
@keyframes border-spin {
  to {
    --border-angle: 1turn;
  }
}
.lic-icon {
  color: var(--accent);
}

/* Closing: the iris turns slowly inside a breathing glow. */
.closing-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: 140px;
}
.closing-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  z-index: -1;
  width: min(960px, 130vw);
  aspect-ratio: 1;
  translate: -50% -42%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--glow) 32%, transparent),
    transparent
  );
  animation: breathe 8s ease-in-out infinite alternate;
  pointer-events: none;
}
.closing-section img {
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--glow) 70%, transparent));
  animation: iris 32s linear infinite;
}
@keyframes iris {
  to {
    rotate: 1turn;
  }
}

/* Ambient field and position rail: a little more present. */
.ambient-field .ambient-orbit {
  border-color: #0aa4b52e;
}
.ambient-field .ambient-shard {
  border-color: #41d3e252;
  background: linear-gradient(135deg, #41d3e21f, transparent 65%);
}
.ambient-field .ambient-spark {
  opacity: 0.85;
  box-shadow: 0 0 14px #41d3e2aa;
  animation:
    ambient-drift 24s ease-in-out infinite alternate,
    twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  50% {
    opacity: 0.2;
  }
}
.theme-light .ambient-field .ambient-orbit {
  border-color: #066a7826;
}
.theme-light .ambient-field .ambient-shard {
  border-color: #066a7840;
  background: linear-gradient(135deg, #0aa4b514, transparent 65%);
}
/* Keep the brighter shards in the gutters, clear of reading text. */
.ambient-field .shard-one {
  left: -14px;
}
.ambient-field .shard-two {
  right: -6px;
}
.ambient-field .shard-three {
  left: 0.6%;
  top: 86%;
}
.ambient-field .shard-four {
  right: 1.4%;
  top: 34%;
}
#railFill {
  box-shadow: 0 0 10px var(--accent);
}

/* Scroll entrances. Hidden only once JavaScript has taken responsibility. */
.reveal-ready .reveal {
  opacity: 0;
}
.reveal-ready .reveal.is-revealed {
  opacity: 1;
  animation: reveal-in 0.95s var(--ease-out) both;
  animation-delay: calc(var(--reveal-order, 0) * 90ms);
}
@keyframes reveal-in {
  from {
    opacity: 0;
    translate: 0 32px;
    filter: blur(6px);
  }
  to {
    opacity: 1;
    translate: none;
    filter: none;
  }
}

.section {
  padding-block: 128px;
}
@media (max-width: 900px) {
  .section {
    padding-block: 88px;
  }
}
@media (min-width: 601px) {
  .nav-inner {
    height: 68px;
  }
}
@media (max-width: 760px) {
  .hero .hero-layout {
    padding-block: 40px 36px;
  }
  .demo-mount,
  .feature-stage {
    border-radius: 14px;
  }
  .demo-frame,
  .feature-image {
    border-radius: 8px;
  }
}
@media (max-width: 600px) {
  .section {
    padding-block: 56px;
  }
  .hero .hero-copy .hero-badge {
    margin-bottom: 22px;
    font-size: 0.8125rem;
  }
  /* Phones: the chapter tabs recede into a thin progress line so the recording
     leads. Each segment stays a full-height tap target with its accessible name. */
  .demo-heading {
    margin-bottom: 10px;
  }
  .demo-tabs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .demo-tabs button,
  .demo-tabs [aria-selected="true"] {
    min-height: 28px;
    padding: 0;
    font-size: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
  }
  .demo-tabs button:hover {
    background: none;
  }
  .demo-tabs button > span {
    display: none;
  }
  .demo-tabs i {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--text) 16%, transparent);
    translate: 0 -50%;
    transition: background 0.3s;
  }
  .demo-tabs [aria-selected="true"] i {
    background: color-mix(in srgb, var(--accent) 22%, transparent);
  }
  .demo-tabs [aria-selected="true"] i::after {
    box-shadow: 0 0 8px var(--accent);
  }
  .demo-tabs button:focus-visible {
    outline-offset: 2px;
  }
  .hero .button-row .button {
    flex: 1 1 auto;
  }
  .trust-grid > a {
    padding: 25px;
  }
  .price-card {
    padding: 28px;
  }
  .closing-section {
    padding-block: 80px;
  }
  .closing-section .button {
    font-size: 0.9375rem;
  }
  .site-footer .footer-bottom,
  .footer-bottom .text-button {
    font-size: 0.8125rem;
  }
}
@media print {
  .reveal-ready .reveal {
    opacity: 1;
    animation: none;
  }
}
