:root {
  --bg: #070b1c;
  --bg-soft: #0c1229;
  --surface: #111936;
  --surface-2: #172044;
  --surface-3: #1d2854;
  --ink: #f7f9ff;
  --ink-soft: #dce5f7;
  --muted: #aab8d2;
  --line: rgba(156, 180, 230, 0.2);
  --line-strong: rgba(156, 180, 230, 0.38);
  --blue: #59b7ff;
  --cyan: #4ee8ea;
  --violet: #8068ff;
  --purple: #5c3df0;
  --green: #61e6a7;
  --gold: #ffd166;
  --danger: #ff7f9d;
  --shadow: 0 28px 70px rgba(1, 4, 18, 0.5);
  --shadow-soft: 0 18px 42px rgba(1, 4, 18, 0.3);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1180px;
  --gradient: linear-gradient(135deg, var(--violet), var(--blue) 55%, var(--cyan));
  --gradient-soft: linear-gradient(135deg, rgba(128, 104, 255, 0.18), rgba(89, 183, 255, 0.13) 55%, rgba(78, 232, 234, 0.11));
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
  background: #070b1c;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background-color: #070b1c;
  background-image:
    radial-gradient(circle at 12% 4%, rgba(92, 61, 240, 0.25), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(78, 232, 234, 0.13), transparent 27rem),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(var(--bg), var(--bg));
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 11, 28, 0.05), rgba(7, 11, 28, 0.66) 70%, #070b1c);
}

::selection {
  background: rgba(89, 183, 255, 0.34);
  color: #fff;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cyan);
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.45rem, 6vw, 4.7rem);
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

code {
  padding: 0.12rem 0.38rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(3, 8, 24, 0.6);
  color: #dcecff;
  font-size: 0.92em;
}

address {
  font-style: normal;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #071022;
  font-weight: 800;
  text-decoration: none;
}

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

.shell {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 11, 28, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  color: #fff;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  border: 1px solid rgba(89, 183, 255, 0.36);
  box-shadow: 0 12px 26px rgba(38, 105, 255, 0.18);
}

.brand-copy {
  display: grid;
  line-height: 1.12;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.48rem 0.72rem;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-links .nav-cta {
  margin-left: 0.3rem;
  border: 1px solid rgba(89, 183, 255, 0.35);
  background: var(--gradient-soft);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: #fff;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

body.nav-open .nav-toggle-lines { background: transparent; }
body.nav-open .nav-toggle-lines::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }

main {
  padding-block: 2.2rem 5rem;
}

.home-main,
.product-main,
.page-main {
  display: grid;
  gap: 4.4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: #b9d8ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.7rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  box-shadow: 0 0 18px rgba(78, 232, 234, 0.45);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 630px;
  padding-block: 2rem 1rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  max-width: 780px;
}

.hero-intro {
  max-width: 680px;
  margin-bottom: 1.4rem;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.58;
}

.hero-supporting {
  max-width: 650px;
  margin-bottom: 1.6rem;
  color: var(--muted);
}

.hero-actions,
.card-actions,
.final-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.72rem;
}

.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.08rem;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover,
.button:hover {
  transform: translateY(-2px);
  color: #fff;
}

.btn:focus-visible,
.button:focus-visible,
.nav-links a:focus-visible,
summary:focus-visible,
.video-launch:focus-visible {
  outline: 3px solid rgba(89, 183, 255, 0.48);
  outline-offset: 3px;
}

.btn-primary,
.button-primary {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 16px 34px rgba(92, 61, 240, 0.28), 0 10px 28px rgba(78, 232, 234, 0.13);
}

.btn-primary:hover,
.button-primary:hover {
  box-shadow: 0 20px 42px rgba(92, 61, 240, 0.35), 0 12px 30px rgba(78, 232, 234, 0.18);
}

.btn-secondary,
.button-secondary {
  border-color: var(--line-strong);
  background: rgba(17, 25, 54, 0.9);
  color: #fff;
}

.btn-secondary:hover,
.button-secondary:hover {
  border-color: rgba(89, 183, 255, 0.62);
  background: var(--surface-2);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cde6ff;
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(3px);
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-signals li,
.chip,
.badge,
.pill,
.pill-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 32px;
  padding: 0.34rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 25, 54, 0.7);
  color: #dce8fa;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.badge.live,
.badge-available {
  border-color: rgba(97, 230, 167, 0.35);
  background: rgba(97, 230, 167, 0.1);
  color: #a7f5cb;
}

.portfolio-stage {
  position: relative;
  min-height: 540px;
}

.portfolio-glow {
  position: absolute;
  inset: 12% 5% 8%;
  border-radius: 45%;
  background: radial-gradient(circle, rgba(92, 61, 240, 0.38), rgba(89, 183, 255, 0.12) 45%, transparent 70%);
  filter: blur(34px);
}

.stage-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform-origin: center;
}

.stage-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-card-main {
  inset: 8% 8% 22% 1%;
  z-index: 3;
  transform: rotate(-2deg);
}

.stage-card-top {
  width: 46%;
  height: 31%;
  top: 0;
  right: 0;
  z-index: 2;
  transform: rotate(4deg);
}

.stage-card-bottom {
  width: 48%;
  height: 32%;
  right: 2%;
  bottom: 3%;
  z-index: 4;
  transform: rotate(2deg);
}

.stage-card-mini {
  width: 37%;
  height: 25%;
  left: 5%;
  bottom: 0;
  z-index: 5;
  transform: rotate(-4deg);
}

.stage-badge {
  position: absolute;
  z-index: 8;
  right: 7%;
  top: 39%;
  display: grid;
  gap: 0.1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(78, 232, 234, 0.34);
  border-radius: 14px;
  background: rgba(7, 11, 28, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.stage-badge strong {
  font-size: 1.45rem;
  line-height: 1;
}

.stage-badge span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 19, 43, 0.74);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.trust-item {
  display: grid;
  gap: 0.18rem;
  padding: 1.15rem 1.25rem;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  color: #fff;
  font-size: 0.9rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

.section-head {
  display: grid;
  gap: 0.35rem;
  max-width: 780px;
  margin-bottom: 1.8rem;
}

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.section-head.centered .eyebrow {
  justify-self: center;
}

.section-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(23, 32, 68, 0.97), rgba(12, 18, 41, 0.98));
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(89, 183, 255, 0.42);
  box-shadow: var(--shadow);
}

.product-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #101536;
}

.product-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(8, 12, 30, 0.48));
}

.product-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.02);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  padding: 1.45rem;
}

.product-card-head {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.product-card h3 {
  margin: 0;
  font-size: 1.28rem;
}

.product-card h3 a {
  color: #fff;
  text-decoration: none;
}

.product-outcome {
  margin-bottom: 0.95rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.product-meta {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.price {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.price small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
}

.card-actions {
  margin-top: 1rem;
}

.card-actions .btn-primary {
  flex: 1 1 190px;
}

.card-actions .text-link {
  padding: 0.65rem 0.3rem;
}

.proof-section,
.comparison-section,
.content-band,
.faq-section,
.related-section,
.support-block,
.legal-document,
.page-hero,
.final-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(17, 25, 54, 0.94), rgba(10, 16, 37, 0.95));
  box-shadow: var(--shadow-soft);
}

.proof-section,
.comparison-section,
.content-band,
.faq-section,
.related-section,
.support-block,
.legal-document {
  padding: clamp(1.35rem, 3vw, 2.4rem);
}

.proof-grid,
.feature-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.proof-card,
.feature-card,
.related-card {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 32, 68, 0.52);
}

.proof-icon,
.feature-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(89, 183, 255, 0.28);
  border-radius: 10px;
  background: var(--gradient-soft);
  color: #fff;
  font-weight: 900;
}

.proof-card p,
.feature-card p,
.related-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(23, 32, 68, 0.72);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: rgba(89, 183, 255, 0.035);
}

.final-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.6rem, 4vw, 3rem);
}

.final-cta::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -250px;
  right: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 232, 234, 0.25), transparent 68%);
}

.final-cta > * {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  margin-bottom: 0.6rem;
}

.final-cta p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

/* Product pages */
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(450px, 1.12fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: 590px;
  padding-block: 2rem 0.5rem;
}

.product-title-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.product-title-row .app-icon {
  width: 50px;
  height: 50px;
}

.product-hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  margin-bottom: 1rem;
}

.product-lede {
  margin-bottom: 1.15rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.fit-panel {
  display: grid;
  gap: 0.58rem;
  margin: 1.1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(17, 25, 54, 0.58);
}

.fit-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.fit-panel strong {
  color: #fff;
}

.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
  margin: 1.25rem 0;
}

.product-price strong {
  color: #fff;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.product-price span {
  color: var(--muted);
  font-size: 0.86rem;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: #0a0f27;
  box-shadow: var(--shadow);
}

.video-launch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #0a0f27;
  color: #fff;
  cursor: pointer;
}

.video-launch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease, filter 250ms ease;
}

.video-launch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 7, 20, 0.66));
}

.video-launch:hover img {
  transform: scale(1.015);
  filter: brightness(0.9);
}

.play-control {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 54px;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(5, 10, 28, 0.85);
  color: #fff;
  font-weight: 900;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.product-trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.product-trust-item {
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(17, 25, 54, 0.6);
}

.product-trust-item strong {
  display: block;
  color: #fff;
  font-size: 0.84rem;
}

.product-trust-item span {
  color: var(--muted);
  font-size: 0.76rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.content-group {
  min-width: 0;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 32, 68, 0.45);
}

.content-group:first-child:nth-last-child(3),
.content-group:first-child:nth-last-child(3) ~ .content-group {
  grid-column: auto;
}

.content-group h2 {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}

.content-group ul,
.content-group ol,
.legal-document ul,
.legal-document ol,
.support-block ul,
.support-block ol,
.app-body ul,
.app-body ol {
  display: grid;
  gap: 0.58rem;
  margin: 0;
  padding-left: 1.25rem;
}

.content-group li,
.legal-document li,
.support-block li,
.app-body li {
  color: var(--ink-soft);
}

.content-group li::marker,
.legal-document li::marker,
.support-block li::marker,
.app-body li::marker {
  color: var(--blue);
}

.content-group .note,
.note,
.callout {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(78, 232, 234, 0.07);
  color: var(--ink-soft);
}

.faq-list {
  display: grid;
  gap: 0.68rem;
}

.faq-item,
.app-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(23, 32, 68, 0.45);
}

.faq-item summary,
.app-item summary {
  position: relative;
  padding: 1rem 3rem 1rem 1rem;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker,
.app-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after,
.app-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  color: var(--blue);
  font-size: 1.25rem;
  transform: translateY(-50%);
}

.faq-item[open] summary::after,
.app-item[open] summary::after {
  content: "−";
}

.faq-item p,
.faq-item ul,
.faq-item ol {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--muted);
}

.related-card {
  display: flex;
  flex-direction: column;
}

.related-card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.related-card .app-icon {
  width: 42px;
  height: 42px;
}

.related-card .text-link {
  margin-top: auto;
  padding-top: 0.9rem;
}

/* Support and legal */
.page-hero {
  padding: clamp(1.6rem, 4vw, 3rem);
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  margin-bottom: 0.7rem;
}

.page-hero p {
  max-width: 800px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.app-list {
  display: grid;
  gap: 0.85rem;
}

.app-summary-main {
  display: grid;
  gap: 0.12rem;
  padding-right: 1rem;
}

.app-summary-main strong {
  color: #fff;
}

.app-summary-main span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.app-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 3.2rem 1.1rem 1.15rem;
}

.app-body {
  padding: 0 1.15rem 1.25rem;
  border-top: 1px solid var(--line);
}

.app-body h3 {
  margin-top: 1.3rem;
}

.app-body p,
.contact-block p {
  color: var(--ink-soft);
}

.subtle {
  color: var(--muted) !important;
}

.divider {
  height: 1px;
  background: var(--line);
}

.contact-block {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 32, 68, 0.45);
}

.back {
  margin: 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
}

.legal-document {
  max-width: 930px;
  width: 100%;
  margin-inline: auto;
}

.legal-document > h2,
.legal-document .box > h2 {
  margin-top: 2.1rem;
  padding-top: 0.5rem;
  font-size: 1.45rem;
}

.legal-document > h2:first-child,
.legal-document .box > h2:first-child {
  margin-top: 0;
}

.legal-document h3 {
  margin-top: 1.35rem;
}

.legal-document p,
.legal-document address {
  color: var(--ink-soft);
}

.legal-document .box {
  padding: 0;
  border: 0;
  background: transparent;
}

.legal-document .callout {
  margin-bottom: 1.5rem;
  border: 1px solid rgba(89, 183, 255, 0.25);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  background: rgba(89, 183, 255, 0.07);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 7, 18, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr 1fr;
  gap: 2rem;
  padding-block: 2.6rem 1.8rem;
}

.footer-brand {
  display: grid;
  gap: 0.7rem;
}

.footer-brand .brand {
  width: fit-content;
}

.footer-brand p,
.footer-contact p,
.footer-legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.footer-links strong,
.footer-contact strong {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  width: fit-content;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-contact {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.footer-contact a {
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem 1.5rem;
  border-top: 1px solid var(--line);
}

/* Motion */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 980px) {
  .home-hero,
  .product-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-hero {
    padding-top: 1rem;
  }

  .portfolio-stage {
    min-height: 500px;
    width: min(720px, 100%);
    margin-inline: auto;
  }

  .product-hero-visual {
    max-width: 850px;
  }

  .trust-strip,
  .product-trust-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .proof-grid,
  .feature-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-cta {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  h1 { font-size: clamp(2.25rem, 12vw, 3.5rem); }

  .nav-row {
    min-height: 68px;
  }

  .brand-copy span {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 13, 31, 0.98);
    box-shadow: var(--shadow);
  }

  body.nav-open .nav-links {
    display: grid;
  }

  .nav-links a {
    justify-content: flex-start;
    padding-inline: 0.9rem;
  }

  .nav-links .nav-cta {
    margin-left: 0;
  }

  .home-main,
  .product-main,
  .page-main {
    gap: 3.2rem;
  }

  .home-hero,
  .product-hero {
    gap: 2.2rem;
  }

  .portfolio-stage {
    min-height: 390px;
  }

  .stage-card-main { inset: 9% 4% 24% 0; }
  .stage-card-top { width: 48%; height: 29%; }
  .stage-card-bottom { width: 52%; height: 31%; }
  .stage-card-mini { width: 40%; height: 24%; }
  .stage-badge { right: 2%; top: 40%; }

  .product-grid,
  .content-grid,
  .proof-grid,
  .feature-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .product-card-head {
    grid-template-columns: 46px 1fr;
  }

  .product-card-head .badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .play-control {
    min-height: 48px;
    font-size: 0.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .footer-brand {
    grid-column: auto;
  }

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

@media (max-width: 520px) {
  .shell {
    width: min(var(--max), calc(100% - 1.2rem));
  }

  main {
    padding-top: 1.3rem;
  }

  .hero-actions,
  .product-actions,
  .final-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .product-actions .btn,
  .final-actions .btn {
    width: 100%;
  }

  .portfolio-stage {
    min-height: 315px;
  }

  .stage-badge {
    padding: 0.6rem 0.75rem;
  }

  .stage-badge strong {
    font-size: 1.15rem;
  }

  .trust-strip,
  .product-trust-row {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .product-title-row {
    align-items: flex-start;
  }

  .product-title-row .app-icon {
    width: 50px;
    height: 50px;
  }

  .page-hero,
  .proof-section,
  .comparison-section,
  .content-band,
  .faq-section,
  .related-section,
  .support-block,
  .legal-document,
  .final-cta {
    border-radius: var(--radius);
  }

  .app-item summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Prevent intrinsic content from widening responsive grid columns. */
.home-hero > *,
.product-hero > *,
.product-grid > *,
.content-grid > *,
.proof-grid > *,
.related-grid > *,
.final-cta > * {
  min-width: 0;
}

@media (max-width: 980px) {
  .home-hero,
  .product-hero {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .hero-copy,
  .product-hero-copy,
  .product-hero-visual,
  .portfolio-stage {
    min-width: 0;
    max-width: 100%;
  }

  .hero-copy h1,
  .product-hero h1 {
    max-width: 100%;
  }
}

.home-main > *,
.product-main > *,
.page-main > * {
  min-width: 0;
  width: 100%;
}

/* === Fixpoint One technical motion system ===
   Deliberately linear, interface-like motion. The page background remains static. */

/* Protect the painted background during refresh and GPU layer creation. */
html,
body {
  background-color: #070b1c;
}

.gradient-text {
  background-position: 50% 50%;
}

/* Hero boots in like a product interface, then stays stable. */
.home-page .hero-copy > * {
  animation: hero-boot 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-page .hero-copy > :nth-child(1) { animation-delay: 40ms; }
.home-page .hero-copy > :nth-child(2) { animation-delay: 110ms; }
.home-page .hero-copy > :nth-child(3) { animation-delay: 180ms; }
.home-page .hero-copy > :nth-child(4) { animation-delay: 250ms; }
.home-page .hero-copy > :nth-child(5) { animation-delay: 320ms; }
.home-page .hero-copy > :nth-child(6) { animation-delay: 390ms; }

.home-page .portfolio-stage {
  isolation: isolate;
}

/* Fixed technical rails around the product stack. */
.home-page .portfolio-stage::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 2% 1% 2% 0;
  pointer-events: none;
  border-top: 1px solid rgba(89, 183, 255, 0.38);
  border-right: 1px solid rgba(78, 232, 234, 0.24);
  border-radius: 0 18px 18px 0;
  background:
    linear-gradient(90deg, rgba(89, 183, 255, 0.78), rgba(78, 232, 234, 0.2), transparent 64%) top left / 42% 2px no-repeat,
    linear-gradient(180deg, rgba(78, 232, 234, 0.66), transparent 72%) top right / 2px 54% no-repeat;
  opacity: 0.82;
}

/* Removed outer rail cursor: internal motion remains, but the perimeter tracer is gone. */
.home-page .portfolio-stage::after,
.home-page .app-stack-stage::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  animation: none !important;
  box-shadow: none !important;
}

.stage-card {
  backface-visibility: hidden;
}

.home-page .stage-card-main {
  animation: stage-boot-main 820ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.home-page .stage-card-top {
  animation: stage-boot-top 900ms cubic-bezier(0.22, 1, 0.36, 1) 210ms both;
}

.home-page .stage-card-bottom {
  animation: stage-boot-bottom 900ms cubic-bezier(0.22, 1, 0.36, 1) 280ms both;
}

.home-page .stage-card-mini {
  animation: stage-boot-mini 900ms cubic-bezier(0.22, 1, 0.36, 1) 350ms both;
}

/* Main product preview gets a visible screen scan, not floating movement. */
.home-page .stage-card-main::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: -8%;
  width: 2px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(78, 232, 234, 0.98) 18%, rgba(89, 183, 255, 0.98) 82%, transparent);
  box-shadow: 0 0 14px rgba(78, 232, 234, 0.78);
  animation: screen-scan 5.8s linear 1.25s infinite;
}

.stage-badge {
  padding-left: 2.25rem;
  animation: badge-status 2.8s ease-in-out infinite;
}

.stage-badge::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(97, 230, 167, 0.08), 0 0 15px rgba(97, 230, 167, 0.68);
  animation: status-pulse 1.8s steps(2, end) infinite;
}

.hero-signals li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(78, 232, 234, 0.54);
  animation: signal-blink 2.4s steps(2, end) infinite;
}

.hero-signals li:nth-child(2)::before { animation-delay: -0.6s; }
.hero-signals li:nth-child(3)::before { animation-delay: -1.2s; }
.hero-signals li:nth-child(4)::before { animation-delay: -1.8s; }

/* Continuous card tracers echo StackOpsOne's process-path motion. */
.product-card::before,
.trust-strip::before,
.product-trust-row::before,
.video-frame::before,
.proof-card::before,
.feature-card::before,
.related-card::before {
  content: "";
  position: absolute;
  z-index: 8;
  top: 0;
  left: -38%;
  width: 34%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(89, 183, 255, 0.96), rgba(78, 232, 234, 0.92), transparent);
  filter: drop-shadow(0 0 6px rgba(78, 232, 234, 0.45));
  animation: edge-tracer 5.2s linear infinite;
}

.product-card:nth-child(2)::before { animation-delay: -1.3s; }
.product-card:nth-child(3)::before { animation-delay: -2.6s; }
.product-card:nth-child(4)::before { animation-delay: -3.9s; }

.trust-strip,
.product-trust-row,
.video-frame,
.proof-card,
.feature-card,
.related-card {
  position: relative;
}

/* Buttons use a brief signal sweep instead of pulsing or floating. */
.btn-primary,
.button-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::after,
.button-primary::after {
  content: "";
  position: absolute;
  inset: -35% auto -35% -55%;
  z-index: 0;
  width: 38%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  transform: skewX(-18deg);
  animation: button-sheen 4.6s ease-in-out infinite;
}

.btn-primary > *,
.button-primary > * {
  position: relative;
  z-index: 1;
}

.video-frame.is-loading::after {
  content: "Loading demo…";
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  background: rgba(5, 10, 28, 0.84);
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.video-direct-link {
  position: absolute;
  z-index: 9;
  right: 0.7rem;
  bottom: 0.65rem;
  padding: 0.34rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(5, 10, 28, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.video-direct-link:hover,
.video-direct-link:focus-visible {
  border-color: rgba(78, 232, 234, 0.68);
  color: var(--cyan);
}

.video-poster-direct {
  opacity: 0.9;
}

.video-frame:hover .video-poster-direct,
.video-poster-direct:focus-visible {
  opacity: 1;
}

@keyframes hero-boot {
  from { opacity: 1; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes stage-boot-main {
  from { opacity: 1; transform: translate3d(-30px, 8px, 0) rotate(-3deg) scale(0.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(-2deg) scale(1); }
}

@keyframes stage-boot-top {
  from { opacity: 1; transform: translate3d(30px, -16px, 0) rotate(6deg) scale(0.975); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(4deg) scale(1); }
}

@keyframes stage-boot-bottom {
  from { opacity: 1; transform: translate3d(34px, 18px, 0) rotate(4deg) scale(0.975); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(2deg) scale(1); }
}

@keyframes stage-boot-mini {
  from { opacity: 1; transform: translate3d(-26px, 20px, 0) rotate(-6deg) scale(0.975); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(-4deg) scale(1); }
}

@keyframes rail-cursor {
  0% { left: 0; top: calc(2% - 4px); opacity: 0; }
  5% { opacity: 1; }
  47% { left: calc(99% - 8px); top: calc(2% - 4px); opacity: 1; }
  50% { left: calc(99% - 8px); top: calc(2% - 4px); opacity: 1; }
  94% { left: calc(99% - 8px); top: calc(98% - 8px); opacity: 1; }
  100% { left: calc(99% - 8px); top: calc(98% - 8px); opacity: 0; }
}

@keyframes screen-scan {
  0%, 12% { left: -8%; opacity: 0; }
  18% { opacity: 1; }
  74% { opacity: 0.88; }
  82%, 100% { left: 108%; opacity: 0; }
}

@keyframes badge-status {
  0%, 100% { border-color: rgba(78, 232, 234, 0.34); box-shadow: var(--shadow-soft); }
  50% { border-color: rgba(97, 230, 167, 0.52); box-shadow: var(--shadow-soft), 0 0 0 1px rgba(97, 230, 167, 0.08); }
}

@keyframes status-pulse {
  0%, 44% { opacity: 0.5; }
  45%, 100% { opacity: 1; }
}

@keyframes signal-blink {
  0%, 54% { opacity: 0.38; }
  55%, 100% { opacity: 1; }
}

@keyframes edge-tracer {
  0% { left: -38%; opacity: 0; }
  10%, 72% { opacity: 1; }
  84%, 100% { left: 108%; opacity: 0; }
}

@keyframes button-sheen {
  0%, 64% { left: -55%; opacity: 0; }
  70% { opacity: 0.72; }
  84% { left: 118%; opacity: 0; }
  100% { left: 118%; opacity: 0; }
}

/* Keep content visible; motion never controls the page background. */
@media (prefers-reduced-motion: reduce) {
  .home-page .hero-copy > *,
  .home-page .stage-card-main,
  .home-page .stage-card-top,
  .home-page .stage-card-bottom,
  .home-page .stage-card-mini {
    animation-duration: 1ms;
    animation-delay: 0ms;
  }
}

/* === End technical motion system === */

/* === Homepage portfolio stack ===
   Replaces the four-screenshot collage with a code-built app stack using the real app logos. */
.home-page .app-stack-stage {
  position: relative;
  isolation: isolate;
  min-height: 540px;
  perspective: 1200px;
  overflow: visible;
}

.home-page .app-stack-stage::before {
  inset: 4% 0 10% 2%;
  border-top: 1px solid rgba(89, 183, 255, 0.32);
  border-right: 1px solid rgba(78, 232, 234, 0.18);
  background:
    linear-gradient(90deg, rgba(89, 183, 255, 0.72), rgba(78, 232, 234, 0.16), transparent 62%) top left / 38% 2px no-repeat,
    linear-gradient(180deg, rgba(78, 232, 234, 0.48), transparent 68%) top right / 2px 52% no-repeat;
}

.app-stack-backplane {
  position: absolute;
  inset: 8% 1% 12% 3%;
  z-index: 0;
  border: 1px solid rgba(89, 183, 255, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(rgba(89, 183, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 183, 255, 0.035) 1px, transparent 1px),
    rgba(6, 12, 33, 0.36);
  background-size: 34px 34px;
  box-shadow: inset 0 0 70px rgba(20, 91, 184, 0.08);
  transform: skewY(-1.2deg);
}

.app-stack-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(117, 170, 255, 0.36);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(16, 29, 65, 0.99), rgba(6, 14, 37, 0.99));
  box-shadow: 0 28px 68px rgba(1, 4, 18, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backface-visibility: hidden;
}

.app-stack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(89, 183, 255, 0.08), transparent 34%, transparent 72%, rgba(78, 232, 234, 0.04));
}

.app-stack-primary {
  z-index: 5;
  left: 0;
  top: 7%;
  width: 62%;
  height: 82%;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  border-color: rgba(89, 183, 255, 0.58);
  box-shadow: 0 32px 82px rgba(1, 4, 18, 0.62), 0 0 0 1px rgba(89, 183, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotateY(4deg) rotateZ(-1deg);
  transform-origin: right center;
  animation: app-stack-primary-in 760ms cubic-bezier(0.22, 1, 0.36, 1) 100ms both;
}

.app-stack-primary-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
}

.app-stack-logo {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(20, 61, 205, 0.34);
}

.app-stack-logo-primary {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.app-stack-kicker {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--cyan);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-stack-primary-head strong {
  display: block;
  color: #fff;
  font-size: clamp(1.22rem, 2vw, 1.7rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.app-stack-primary > p {
  position: relative;
  z-index: 2;
  max-width: 29rem;
  margin: 1rem 0 1.15rem;
  color: #c9d8ef;
  font-size: clamp(0.9rem, 1.25vw, 1.02rem);
  line-height: 1.52;
}

.app-stack-rule {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.65rem;
  margin-top: auto;
  padding: 1rem;
  border: 1px solid rgba(89, 183, 255, 0.22);
  border-radius: 15px;
  background: rgba(4, 11, 31, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.app-stack-rule > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.app-stack-rule span {
  color: #8195b8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-stack-rule strong {
  color: #edf5ff;
  font-size: 0.83rem;
  text-align: right;
}

.app-stack-rule-result {
  padding-top: 0.65rem;
  border-top: 1px solid rgba(156, 180, 230, 0.14);
}

.app-stack-rule-result strong {
  color: #ffd1d1;
}

.app-stack-check {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgba(97, 230, 167, 0.16);
  color: var(--green) !important;
  font-size: 0.8rem !important;
}

.app-stack-check-alert {
  background: rgba(255, 103, 103, 0.16);
  color: #ff8b8b !important;
}

.app-stack-tags {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.app-stack-tags span {
  padding: 0.3rem 0.52rem;
  border: 1px solid rgba(156, 180, 230, 0.18);
  border-radius: 999px;
  background: rgba(17, 25, 54, 0.66);
  color: #b9cae4;
  font-size: 0.66rem;
  font-weight: 800;
}

.app-stack-live {
  position: absolute;
  z-index: 3;
  left: 1.35rem;
  bottom: 1.15rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: #b8f3d2;
  font-size: 0.72rem;
}

.app-stack-live-dot,
.stage-badge::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(97, 230, 167, 0.08), 0 0 16px rgba(97, 230, 167, 0.72);
  animation: status-pulse 1.8s steps(2, end) infinite;
}

.app-stack-scan {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: -5%;
  width: 2px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(78, 232, 234, 0.96) 18%, rgba(89, 183, 255, 0.98) 82%, transparent);
  box-shadow: 0 0 15px rgba(78, 232, 234, 0.68);
  animation: app-stack-scan 6.2s linear 1.4s infinite;
}

.app-stack-secondary {
  z-index: 3;
  top: 12%;
  width: 20%;
  height: 70%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.15rem 0.65rem 1rem;
  transform: rotateY(-8deg);
  transform-origin: left center;
}

.app-stack-secondary .app-stack-logo {
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
}

.app-stack-secondary strong,
.app-stack-secondary > span,
.app-stack-secondary b {
  position: relative;
  z-index: 2;
}

.app-stack-secondary strong {
  color: #fff;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.08em;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.app-stack-secondary > span {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.app-stack-secondary b {
  margin-top: auto;
  color: rgba(89, 183, 255, 0.52);
  font-size: 1.75rem;
  line-height: 1;
}

.app-stack-csc {
  left: 57%;
  border-color: rgba(128, 104, 255, 0.58);
  background: linear-gradient(165deg, rgba(40, 24, 91, 0.99), rgba(11, 16, 43, 0.99));
  animation: app-stack-card-in 780ms cubic-bezier(0.22, 1, 0.36, 1) 210ms both, app-stack-signal-violet 8s ease-in-out 1.7s infinite;
}

.app-stack-hpm {
  z-index: 2;
  left: 70%;
  top: 16%;
  width: 18%;
  height: 64%;
  border-color: rgba(78, 232, 234, 0.46);
  animation: app-stack-card-in 800ms cubic-bezier(0.22, 1, 0.36, 1) 310ms both, app-stack-signal-cyan 8s ease-in-out 3.7s infinite;
}

.app-stack-pff {
  z-index: 1;
  left: 83%;
  top: 20%;
  width: 17%;
  height: 58%;
  border-color: rgba(89, 183, 255, 0.42);
  animation: app-stack-card-in 820ms cubic-bezier(0.22, 1, 0.36, 1) 410ms both, app-stack-signal-blue 8s ease-in-out 5.7s infinite;
}

.app-stack-pff strong,
.app-stack-pff > span {
  max-width: 6rem;
}

.app-stack-csc .app-stack-logo,
.app-stack-csc strong,
.app-stack-csc b { margin-left: 28%; }

.app-stack-hpm .app-stack-logo,
.app-stack-hpm strong,
.app-stack-hpm b { margin-left: 37%; }

.app-stack-pff .app-stack-logo,
.app-stack-pff strong,
.app-stack-pff b { margin-left: 30%; }

.app-stack-rails {
  position: absolute;
  z-index: 6;
  left: 15%;
  right: 4%;
  bottom: 7%;
  height: 58px;
  pointer-events: none;
}

.app-stack-rails i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(89, 183, 255, 0.84) 16%, rgba(89, 183, 255, 0.24) 78%, transparent);
}

.app-stack-rails i:nth-child(1) { top: 4px; }
.app-stack-rails i:nth-child(2) { top: 20px; background-image: linear-gradient(90deg, transparent, rgba(128, 104, 255, 0.8) 18%, rgba(128, 104, 255, 0.24) 82%, transparent); }
.app-stack-rails i:nth-child(3) { top: 36px; background-image: linear-gradient(90deg, transparent, rgba(78, 232, 234, 0.78) 20%, rgba(78, 232, 234, 0.2) 84%, transparent); }
.app-stack-rails i:nth-child(4) { top: 52px; opacity: 0.58; }

.app-stack-rails i::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(89, 183, 255, 0.8);
  animation: app-stack-node 5.6s linear infinite;
}

.app-stack-rails i:nth-child(2)::after { background: var(--violet); animation-delay: -1.4s; }
.app-stack-rails i:nth-child(3)::after { background: var(--cyan); animation-delay: -2.8s; }
.app-stack-rails i:nth-child(4)::after { animation-delay: -4.2s; }

.home-page .app-stack-stage .stage-badge {
  z-index: 8;
  left: 6%;
  right: auto;
  top: auto;
  bottom: 2.5%;
  min-width: 184px;
  padding: 0.82rem 1rem 0.82rem 2.4rem;
  border-color: rgba(97, 230, 167, 0.34);
}

.home-page .app-stack-stage .stage-badge::before {
  left: 0.95rem;
  top: 50%;
  margin-top: -4.5px;
}

@keyframes app-stack-primary-in {
  from { opacity: 0; transform: translate3d(-44px, 18px, -80px) rotateY(12deg) rotateZ(-2deg); }
  to { opacity: 1; transform: rotateY(4deg) rotateZ(-1deg); }
}

@keyframes app-stack-card-in {
  from { opacity: 0; transform: translate3d(46px, 0, -100px) rotateY(-18deg); }
  to { opacity: 1; transform: rotateY(-8deg); }
}

@keyframes app-stack-scan {
  0%, 12% { left: -5%; opacity: 0; }
  18% { opacity: 1; }
  72% { opacity: 0.88; }
  82%, 100% { left: 105%; opacity: 0; }
}

@keyframes app-stack-node {
  0% { left: 0; opacity: 0; }
  10%, 84% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes app-stack-signal-violet {
  0%, 12%, 34%, 100% { border-color: rgba(128, 104, 255, 0.4); box-shadow: 0 28px 68px rgba(1, 4, 18, 0.54); }
  18%, 28% { border-color: rgba(157, 130, 255, 0.94); box-shadow: 0 28px 68px rgba(1, 4, 18, 0.54), 0 0 24px rgba(128, 104, 255, 0.36); }
}

@keyframes app-stack-signal-cyan {
  0%, 12%, 34%, 100% { border-color: rgba(78, 232, 234, 0.34); box-shadow: 0 28px 68px rgba(1, 4, 18, 0.54); }
  18%, 28% { border-color: rgba(103, 246, 248, 0.92); box-shadow: 0 28px 68px rgba(1, 4, 18, 0.54), 0 0 24px rgba(78, 232, 234, 0.32); }
}

@keyframes app-stack-signal-blue {
  0%, 12%, 34%, 100% { border-color: rgba(89, 183, 255, 0.34); box-shadow: 0 28px 68px rgba(1, 4, 18, 0.54); }
  18%, 28% { border-color: rgba(112, 198, 255, 0.92); box-shadow: 0 28px 68px rgba(1, 4, 18, 0.54), 0 0 24px rgba(89, 183, 255, 0.32); }
}

@media (max-width: 980px) {
  .home-page .app-stack-stage {
    width: min(720px, 100%);
    min-height: 500px;
  }
}

@media (max-width: 760px) {
  .home-page .app-stack-stage {
    min-height: 430px;
  }

  .app-stack-primary {
    width: 62%;
    height: 80%;
    padding: 1.2rem;
  }

  .app-stack-primary-head {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .app-stack-logo-primary {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .app-stack-primary > p {
    margin: 0.75rem 0 0.8rem;
    font-size: 0.83rem;
  }

  .app-stack-rule {
    padding: 0.75rem;
  }

  .app-stack-tags {
    display: none;
  }

  .app-stack-secondary {
    width: 27%;
    padding: 0.9rem 0.65rem;
  }

  .app-stack-secondary .app-stack-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
  }

  .app-stack-secondary > span {
    display: none;
  }

  .app-stack-csc { left: 57%; width: 20%; }
  .app-stack-hpm { left: 70%; width: 18%; }
  .app-stack-pff { left: 83%; width: 17%; }

  .home-page .app-stack-stage .stage-badge {
    left: 3%;
    right: auto;
    top: auto;
    bottom: 1%;
  }
}

@media (max-width: 520px) {
  .home-page .app-stack-stage {
    min-height: 350px;
  }

  .app-stack-primary {
    top: 5%;
    width: 67%;
    height: 78%;
    padding: 0.9rem;
    border-radius: 18px;
  }

  .app-stack-primary-head {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.65rem;
  }

  .app-stack-logo-primary,
  .app-stack-secondary .app-stack-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .app-stack-kicker {
    font-size: 0.56rem;
  }

  .app-stack-primary-head strong {
    font-size: 1rem;
  }

  .app-stack-primary > p {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .app-stack-rule {
    gap: 0.45rem;
    padding: 0.6rem;
  }

  .app-stack-rule span {
    font-size: 0.55rem;
  }

  .app-stack-rule strong {
    font-size: 0.68rem;
  }

  .app-stack-secondary {
    top: 13%;
    width: 18%;
    height: 62%;
    padding: 0.7rem 0.25rem;
    border-radius: 16px;
  }

  .app-stack-secondary strong,
  .app-stack-secondary > span {
    display: none;
  }

  .app-stack-secondary b {
    font-size: 1.15rem;
  }

  .app-stack-csc { left: 61%; width: 17%; }
  .app-stack-hpm { left: 74%; top: 16%; width: 15%; height: 58%; }
  .app-stack-pff { left: 86%; top: 19%; width: 14%; height: 54%; }

  .app-stack-secondary .app-stack-logo {
    width: 38px;
    height: 38px;
    margin-inline: auto;
  }

  .app-stack-csc .app-stack-logo,
  .app-stack-csc strong,
  .app-stack-csc b,
  .app-stack-hpm .app-stack-logo,
  .app-stack-hpm strong,
  .app-stack-hpm b,
  .app-stack-pff .app-stack-logo,
  .app-stack-pff strong,
  .app-stack-pff b {
    margin-left: auto;
    margin-right: auto;
  }

  .app-stack-rails {
    left: 9%;
    bottom: 6%;
  }

  .home-page .app-stack-stage .stage-badge {
    min-width: 150px;
    padding: 0.62rem 0.75rem 0.62rem 2rem;
  }

  .home-page .app-stack-stage .stage-badge strong {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-stack-primary,
  .app-stack-csc,
  .app-stack-hpm,
  .app-stack-pff {
    animation-duration: 1ms, 8s;
    animation-delay: 0ms, 0ms;
  }

  .app-stack-scan,
  .app-stack-rails i::after {
    animation-duration: 10s;
  }
}

/* === End homepage portfolio stack === */
