:root {
  --navy: #07182f;
  --navy-2: #0d2444;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --blue-soft: #eef5ff;
  --text: #101828;
  --muted: #5f6b7a;
  --soft: #f7f9fc;
  --border: #e3e9f1;
  --green: #138a52;
  --green-soft: #ebfbf2;
  --amber: #bd7a00;
  --amber-soft: #fff7e6;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.065);
  --max: 1180px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.product-page {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.product-page main a {
  color: inherit;
  text-decoration: none;
}

.product-page button {
  font: inherit;
}

.product-page img {
  display: block;
  max-width: 100%;
}

.product-page .container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Shared product page typography */
.product-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-page .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.product-page h1,
.product-page h2 {
  margin: 0;
  color: var(--navy);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.product-page h1 {
  max-width: 650px;
  font-size: clamp(50px, 5.2vw, 70px);
  line-height: 0.98;
}

.product-page h2 {
  max-width: 660px;
  font-size: clamp(38px, 4.2vw, 54px);
  line-height: 1.02;
}

.product-lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: #526173;
  font-size: 18px;
  line-height: 1.68;
}

.product-copy {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.product-note {
  max-width: 610px;
  margin-top: 22px;
  font-size: 14px;
}

/* Shared three-fold structure */
.product-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 700px;
  padding: 92px 0;
  overflow: hidden;
}

.product-section--hero {
  min-height: 760px;
}

.product-section--soft {
  min-height: 700px;
  background: var(--soft);
}

.product-section--final {
  min-height: 700px;
}

.product-hero {
  background:
    radial-gradient(circle at 84% 18%, rgba(37, 99, 235, 0.12), transparent 30%),
    linear-gradient(180deg, #fff, #fbfdff);
}

.product-layout {
  width: 100%;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(44px, 5vw, 72px);
  align-items: center;
}

.product-layout--media-first {
  grid-template-columns: 1.02fr 0.98fr;
}

/* Buttons and compact proof points */
.product-page .btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.product-page .btn-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.20);
}

.product-page .btn-primary:hover {
  background: var(--blue-2);
}

.product-page .btn-outline {
  color: var(--text);
  background: #fff;
  border-color: #d7dee8;
}

.product-page .btn-outline:hover {
  border-color: #bfc9d7;
  background: #fbfcfe;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  color: #6d7887;
  font-size: 11px;
  font-weight: 750;
}

.proof-list span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.proof-list i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* Shared navigation */
.product-page .nav {
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(227, 233, 241, 0.95);
  backdrop-filter: blur(14px);
}

.product-page .nav-inner {
  width: min(var(--max), calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.product-page .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.product-page .brand img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.product-page .brand .stax {
  color: var(--blue);
}

.mega-nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  color: #475467;
  font-size: 14px;
  font-weight: 750;
}

.mega-nav-links > a,
.mega-trigger {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mega-trigger {
  padding: 0;
  border: 0;
  color: #475467;
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}

.mega-nav-links > a:hover,
.mega-trigger:hover,
.mega-trigger[aria-expanded="true"] {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-btn {
  display: none;
  padding: 8px;
  border: 0;
  background: transparent;
}

.mobile-menu {
  display: none;
}

.mega-panel {
  position: absolute;
  top: 72px;
  right: 0;
  left: 0;
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.10);
}

.mega-panel.open {
  display: block;
  animation: megaIn 180ms ease-out;
}

.mega-panel-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 32px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.mega-column {
  display: grid;
  align-content: start;
  gap: 7px;
}

.mega-heading {
  display: block;
  margin-bottom: 8px;
  color: #8a97a6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mega-column a,
.solutions-links a {
  padding: 10px;
  border-radius: 11px;
  transition: background 160ms ease, transform 160ms ease;
}

.mega-column a:hover,
.solutions-links a:hover {
  background: #f7f9fc;
  transform: translateY(-1px);
}

.mega-column strong,
.solutions-links strong {
  display: block;
  color: #1d2939;
  font-size: 13px;
}

.mega-column small,
.solutions-links small {
  display: block;
  margin-top: 3px;
  color: #7b8796;
  font-size: 10px;
  line-height: 1.45;
}

.solutions-panel {
  display: grid;
  grid-template-columns: 0.72fr 1.6fr;
  gap: 46px;
  align-items: start;
}

.mega-intro {
  max-width: 310px;
  margin: 8px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.solutions-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* Shared product media / screenshot placeholder */
.product-media-wrap {
  position: relative;
  width: 100%;
  max-width: 680px;
  justify-self: end;
}

.product-layout--media-first .product-media-wrap,
.product-layout--media-first > div:first-child {
  justify-self: start;
}

.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid #dfe6ef;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-media img {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  opacity: 0;
  transition: opacity 180ms ease;
}

.product-media.has-image img {
  opacity: 1;
}

.product-media.has-image .product-placeholder {
  display: none;
}

.product-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 78% 16%, rgba(37, 99, 235, 0.07), transparent 30%),
    linear-gradient(145deg, #fbfdff, #f5f8fc);
}

.product-placeholder-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5e4ff;
  border-radius: 17px;
  color: var(--blue);
  background: var(--blue-soft);
}

.product-placeholder strong {
  margin-top: 15px;
  color: var(--navy);
  font-size: 15px;
}

.product-placeholder-file {
  margin-top: 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.product-placeholder-dims {
  margin-top: 11px;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}

.product-placeholder small {
  margin-top: 5px;
  color: #8a97a6;
  font-size: 11px;
}

/* Reusable motion cards */
.floating-card {
  position: absolute;
  z-index: 8;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #344054;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  font-size: 10px;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.floating-card em {
  color: var(--green);
  font-style: normal;
}

.floating-card--left {
  top: 15%;
  left: -14px;
  animation: floatUp 4.5s ease-in-out infinite;
}

.floating-card--right {
  right: -12px;
  bottom: 17%;
  animation: floatDown 5s ease-in-out infinite;
}

.floating-card--top-right {
  top: 13%;
  right: -16px;
  width: 184px;
  color: #fff;
  background: var(--navy);
  animation: floatUp 5.5s ease-in-out infinite;
}

.floating-card--top-right strong {
  display: block;
  font-size: 10px;
}

.floating-card--top-right span {
  display: block;
  margin-top: 4px;
  color: #afc0d4;
  font-size: 8px;
  line-height: 1.45;
}

.floating-card--bottom-left {
  left: -14px;
  bottom: 12%;
}

.floating-card--signal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  animation: floatDown 4.8s ease-in-out infinite;
}

.floating-card--signal i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  animation: ringPulse 2.1s infinite;
}

.motion-cursor {
  position: absolute;
  top: 18%;
  right: 17%;
  z-index: 9;
  width: 25px;
  height: 25px;
  pointer-events: none;
  animation: cursorMove 6.5s ease-in-out infinite;
}

.motion-cursor svg {
  filter: drop-shadow(0 5px 4px rgba(15, 23, 42, 0.17));
}

/* Reusable state flow */
.status-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 25px;
}

.status-pill {
  padding: 8px 11px;
  border-radius: 999px;
  color: #677484;
  background: #f0f3f7;
  font-size: 10px;
  font-weight: 850;
}

.status-pill.available,
.status-pill.success {
  color: var(--green);
  background: var(--green-soft);
}

.status-pill.held,
.status-pill.warning {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-pill.booked,
.status-pill.active {
  color: var(--blue);
  background: var(--blue-soft);
}

.status-arrow {
  color: #a5b0bd;
}

/* Reusable 4-step process */
.process-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 30px;
}

.process-flow::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 9%;
  left: 9%;
  height: 2px;
  background: #dce4ee;
}

.process-progress {
  position: absolute;
  top: 18px;
  left: 9%;
  width: 0;
  height: 2px;
  background: var(--blue);
  animation: progressRun 6s ease-in-out infinite;
}

.process-step {
  position: relative;
  z-index: 2;
  text-align: center;
}

.process-step i {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #cbd6e4;
  border-radius: 50%;
  color: #7a8797;
  background: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.process-step span {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 9px;
  font-weight: 850;
}

.process-step:nth-child(2) i {
  animation: stepOne 6s infinite;
}

.process-step:nth-child(3) i {
  animation: stepTwo 6s infinite;
}

.process-step:nth-child(4) i {
  animation: stepThree 6s infinite;
}

.process-step:nth-child(5) i {
  animation: stepFour 6s infinite;
}

/* Reusable CTA card */
.product-cta {
  margin-top: 30px;
  padding: 22px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 5%, rgba(37, 99, 235, 0.30), transparent 35%),
    var(--navy);
}

.product-cta strong {
  display: block;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.product-cta p {
  max-width: 520px;
  margin: 7px 0 0;
  color: #bac8d8;
  font-size: 12px;
  line-height: 1.55;
}

.product-cta .btn {
  margin-top: 16px;
}

/* Motion */
@keyframes megaIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes floatDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes cursorMove {
  0%, 16% { transform: translate(0, 0); }
  42% { transform: translate(-82px, 68px); }
  55% { transform: translate(-82px, 68px) scale(0.92); }
  76%, 100% { transform: translate(22px, 118px); }
}

@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(19, 138, 82, 0.22); }
  50% { box-shadow: 0 0 0 9px rgba(19, 138, 82, 0); }
}

@keyframes progressRun {
  0%, 8% { width: 0; }
  28% { width: 27%; }
  50% { width: 54%; }
  72%, 100% { width: 82%; }
}

@keyframes stepOne {
  0%, 100% { border-color: var(--blue); color: #fff; background: var(--blue); }
}

@keyframes stepTwo {
  0%, 22% { border-color: #cbd6e4; color: #7a8797; background: #fff; }
  30%, 100% { border-color: var(--blue); color: #fff; background: var(--blue); }
}

@keyframes stepThree {
  0%, 46% { border-color: #cbd6e4; color: #7a8797; background: #fff; }
  54%, 100% { border-color: var(--blue); color: #fff; background: var(--blue); }
}

@keyframes stepFour {
  0%, 68% { border-color: #cbd6e4; color: #7a8797; background: #fff; }
  76%, 100% { border-color: var(--green); color: #fff; background: var(--green); }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1060px) {
  .mega-nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .mega-panel {
    display: none !important;
  }

  .mobile-menu.open {
    display: grid;
    gap: 4px;
    padding: 14px;
    background: #fff;
    border-top: 1px solid var(--border);
  }

  .mobile-menu details {
    border-bottom: 1px solid var(--border);
  }

  .mobile-menu summary {
    padding: 11px 12px;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
  }

  .mobile-menu a {
    padding: 11px 12px;
    border-radius: 8px;
    color: #475467;
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-menu details a {
    display: block;
    padding-left: 26px;
  }

  .product-layout,
  .product-layout--media-first {
    grid-template-columns: 1fr;
  }

  .product-section,
  .product-section--hero,
  .product-section--soft,
  .product-section--final {
    min-height: auto;
    padding: 76px 0;
  }

  .product-media-wrap,
  .product-layout--media-first .product-media-wrap,
  .product-layout--media-first > div:first-child {
    width: min(100%, 720px);
    max-width: none;
    justify-self: stretch;
    margin: 8px auto 0;
  }
}

@media (max-width: 720px) {
  .product-page .container,
  .product-page .nav-inner,
  .mega-panel-inner,
  .footer-inner {
    width: min(var(--max), calc(100% - 28px));
  }

  .product-page .nav-inner {
    height: 66px;
  }

  .product-section,
  .product-section--hero,
  .product-section--soft,
  .product-section--final {
    padding: 60px 0;
  }

  .product-page h1 {
    font-size: 44px;
  }

  .product-page h2 {
    font-size: 38px;
  }

  .product-lead {
    font-size: 17px;
  }

  .product-copy {
    font-size: 15px;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .floating-card,
  .motion-cursor {
    display: none;
  }

  .product-media {
    border-radius: 18px;
  }

  .process-step span {
    font-size: 8px;
  }

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

@media (max-width: 480px) {
  .product-page h1 {
    font-size: 39px;
  }

  .product-page h2 {
    font-size: 34px;
  }

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

  .status-arrow {
    display: none;
  }

  .status-flow {
    gap: 8px;
  }

  .product-placeholder {
    padding: 20px;
  }

  .product-placeholder-file {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}
