/* JBay Floorplan — product site
   Brand: JBay Solutions (navy #0A2463, lime #7CCE25, teal #1DD3B0, Inter) */

:root {
  --navy: #0a2463;
  --navy-700: #13317d;
  --navy-900: #061642;
  --navy-950: #040f2e;
  --lime: #7cce25;
  --lime-600: #63ad16;
  --teal: #1dd3b0;
  --ink: #1d2433;
  --text: #3b4456;
  --muted: #6b7486;
  --line: #e6e9f0;
  --soft: #f5f7fb;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 6px;
  --shadow-lg: 0 40px 80px -30px rgba(10, 36, 99, 0.35), 0 12px 30px -12px rgba(10, 36, 99, 0.18);
  --shadow-md: 0 18px 40px -20px rgba(10, 36, 99, 0.3);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
}
p {
  margin: 0;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.lime {
  color: var(--lime);
}
.teal {
  color: var(--teal);
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(10, 36, 99, 0.8);
}
.btn-primary:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
}
.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}
.btn-lime {
  background: var(--lime);
  color: var(--navy-950);
  box-shadow: 0 12px 28px -12px rgba(124, 206, 37, 0.9);
}
.btn-lime:hover {
  background: #8ddd34;
  transform: translateY(-2px);
}
.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 14.5px;
}

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(10, 36, 99, 0.5);
}
.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.wordmark {
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1;
}
.wordmark .j {
  color: var(--lime);
}
.wordmark small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--lime-600);
  margin-left: 2px;
}
.brand-sep {
  width: 1px;
  height: 26px;
  background: var(--line);
}
.brand-product {
  font-weight: 650;
  font-size: 16px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-product svg {
  width: 22px;
  height: 22px;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 15px;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  color: var(--navy);
  cursor: pointer;
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 110px;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(29, 211, 176, 0.12), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, rgba(124, 206, 37, 0.1), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(10, 36, 99, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 36, 99, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 6px 18px -12px rgba(10, 36, 99, 0.4);
}
.eyebrow b {
  white-space: nowrap;
  background: var(--lime);
  color: var(--navy-950);
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 12px;
}
.hero h1 {
  margin-top: 26px;
  font-size: clamp(36px, 5.2vw, 62px);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.hero h1 .lime {
  display: block;
}
.hero-sub {
  margin: 24px auto 0;
  max-width: 720px;
  font-size: 19.5px;
  color: var(--text);
}
.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-note svg {
  width: 16px;
  height: 16px;
  color: var(--lime-600);
}

.hero-stage {
  position: relative;
  margin: 64px auto 0;
  max-width: 1120px;
}
.browser {
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(10, 36, 99, 0.08);
}
.browser-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: #f1f3f8;
  border-bottom: 1px solid var(--line);
}
.browser-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d5d9e3;
}
.browser-bar i:nth-child(1) {
  background: #ff6159;
}
.browser-bar i:nth-child(2) {
  background: #ffbd2e;
}
.browser-bar i:nth-child(3) {
  background: #28c941;
}
.browser-bar span {
  margin-left: 14px;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  border-radius: 6px;
  padding: 3px 12px;
  flex: 1;
  max-width: 340px;
}
.float {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
  background: #fff;
}
.float-2d {
  width: 34%;
  right: -4%;
  bottom: -10%;
  animation: bob 7s ease-in-out infinite;
}
.float-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px -2px rgba(10, 36, 99, 0.3);
}

/* live 3D hero */
.hero-live {
  position: relative;
  aspect-ratio: 2000 / 1165;
  background: #f1f3f8;
  overflow: hidden;
}
.hero-poster,
.hero-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 1s var(--ease);
}
.hero-poster {
  object-fit: cover;
}
.hero-3d {
  opacity: 0;
}
.hero-live.is-live .hero-3d {
  opacity: 1;
}
.hero-live.is-live .hero-poster {
  opacity: 0;
  pointer-events: none;
}
.hero-app {
  position: absolute;
  inset: 0;
}
/* 2D and 3D layers cross-fade; the hidden one keeps its size so it's ready instantly */
.hero-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s var(--ease);
}
.hero-layer.on {
  opacity: 1;
  pointer-events: auto;
}
.hero-app .fp-root {
  min-height: 0;
}
.view-switch {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 6;
  display: flex;
  padding: 3px;
  gap: 2px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(10, 36, 99, 0.08);
  box-shadow: 0 6px 18px -10px rgba(10, 36, 99, 0.4);
}
.view-switch button {
  min-width: 44px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.view-switch button:hover:not(:disabled) {
  color: var(--navy);
}
.view-switch button.active {
  background: var(--navy);
  color: #fff;
}
.view-switch button:disabled {
  opacity: 0.4;
  cursor: default;
}
/* the tour's simulated cursor and click */
.tour-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 22px;
  height: 22px;
  margin: -2px 0 0 -3px;
  pointer-events: none;
  opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.04 4.69a.5.5 0 0 1 .65-.65l16 6.5a.5.5 0 0 1-.06.95l-6.13 1.58a2 2 0 0 0-1.43 1.43l-1.58 6.13a.5.5 0 0 1-.95.06z' fill='%230A2463' stroke='white' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  filter: drop-shadow(0 3px 4px rgba(10, 36, 99, 0.35));
  transition: transform 1s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.35s;
}
.tour-cursor.on {
  opacity: 1;
}
.tour-cursor.press {
  scale: 0.85;
}
.tour-ripple {
  position: absolute;
  z-index: 3;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid var(--lime);
  pointer-events: none;
  animation: tour-ripple 0.8s var(--ease) forwards;
}
@keyframes tour-ripple {
  from {
    transform: scale(0.4);
    opacity: 1;
  }
  to {
    transform: scale(3.6);
    opacity: 0;
  }
}
.live-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.6s;
}
.live-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(124, 206, 37, 0.22);
}
.browser:has(.hero-live.is-live) .live-badge {
  opacity: 1;
}

/* guided tour caption */
.tour {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 5;
  width: min(360px, calc(100% - 28px));
  padding: 12px 14px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(10, 36, 99, 0.08);
  box-shadow: 0 12px 30px -14px rgba(10, 36, 99, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
}
.tour-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.tour-dot {
  width: 22px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #d8dce6;
  cursor: pointer;
  transition: background 0.3s, width 0.3s var(--ease);
}
.tour-dot.active {
  width: 34px;
  background: var(--navy);
}
.tour-tag {
  display: inline-block;
  margin-right: 7px;
  padding: 1px 5px;
  border-radius: 4px;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}
.tour-tag--2d {
  background: var(--navy);
  color: #fff;
}
.tour-tag--3d {
  background: var(--teal);
  color: var(--navy-950);
}
.tour-dot--3d.active {
  background: var(--teal);
}
.tour-dot:hover {
  background: var(--navy-700);
}
.tour-text b {
  display: block;
  font-size: 14px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.tour-text span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.tour-bar {
  margin-top: 10px;
  height: 2px;
  border-radius: 2px;
  background: #e6e9f0;
  overflow: hidden;
}
.tour-bar i {
  display: block;
  height: 100%;
  background: var(--lime);
  transform-origin: left;
  animation: tour-progress linear forwards;
}
@keyframes tour-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.tour-resume {
  margin-top: 9px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1.5px solid var(--navy);
  background: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.tour-resume:hover {
  background: var(--navy);
  color: #fff;
}
.float-chip.flash {
  animation: chip-flash 0.6s var(--ease);
}
@keyframes chip-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(124, 206, 37, 0.7), var(--shadow-lg);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(124, 206, 37, 0), var(--shadow-lg);
  }
}
.float-chip {
  position: absolute;
  left: -3%;
  top: 30%;
  background: var(--navy-950);
  color: #e6ecff;
  border-radius: 12px;
  padding: 14px 18px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  box-shadow: var(--shadow-lg);
  animation: bob 8s ease-in-out -2s infinite;
}
.float-chip .k {
  color: var(--teal);
}
.float-chip .s {
  color: var(--lime);
}
.float-chip .n {
  color: #ffd166;
}
.float-chip .c {
  color: #7d8bb3;
}
@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

/* ------------------------------------------------------------------ facts strip */
.facts {
  padding: 60px 0 30px;
  background: var(--soft);
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.fact b {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1.1;
}
.fact b em {
  font-style: normal;
  color: var(--lime-600);
}
.fact span {
  display: block;
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ sections */
section {
  position: relative;
}
.section {
  padding: 110px 0;
}
.section-soft {
  background: var(--soft);
}
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime-600);
  margin-bottom: 14px;
}
.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2,
.split h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
}
.section-head p {
  margin-top: 18px;
  font-size: 18.5px;
}

/* tabs showcase */
.tabs {
  display: inline-flex;
  padding: 5px;
  gap: 4px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px -16px rgba(10, 36, 99, 0.5);
  margin: 0 auto 34px;
}
.tabs-center {
  display: flex;
  justify-content: center;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 8px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tab svg {
  width: 18px;
  height: 18px;
}
.tab:hover {
  color: var(--navy);
}
.tab[aria-selected='true'] {
  background: var(--navy);
  color: #fff;
}
.showcase {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 48px;
  align-items: center;
}
.panel {
  display: none;
}
.panel.active {
  display: contents;
}
.panel .shot {
  animation: fadeUp 0.5s var(--ease);
}
.panel-copy {
  animation: fadeUp 0.5s 0.05s var(--ease) both;
}
.panel-copy h3 {
  font-size: 28px;
  font-weight: 750;
}
.panel-copy > p {
  margin-top: 12px;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061642' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticks li b {
  color: var(--navy);
}
.shot {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.shot:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* split */
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.split.reverse {
  grid-template-columns: 1.2fr 1fr;
}
.split > div > p {
  margin-top: 18px;
  font-size: 18px;
}
.code {
  margin-top: 28px;
  background: var(--navy-950);
  color: #dfe6ff;
  border-radius: var(--radius);
  padding: 38px 24px 22px;
  font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  overflow-x: auto;
  box-shadow: var(--shadow-md);
  position: relative;
}
.code .k {
  color: #9db4ff;
}
.code .t {
  color: var(--teal);
}
.code .s {
  color: var(--lime);
}
.code .n {
  color: #ffd166;
}
.code .c {
  color: #6f7da6;
}
.code-label {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 11px;
  color: #6f7da6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Inter', sans-serif;
}

/* code examples with a tab per framework */
.code-tabs {
  margin-top: 28px;
}
.code-tabs .code {
  margin-top: 0;
}
.code-tabs > [data-fw] + [data-fw] {
  margin-top: 0;
}
.code-tabs > div[data-fw] > .code + .code {
  margin-top: 14px;
}
.code-tabs--top {
  margin-top: 0;
}
.code-tabs-bar {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 10px;
  padding: 3px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.code-tabs-bar button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 0;
  border-radius: 7px;
  background: none;
  font: 600 13.5px 'Inter', sans-serif;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.code-tabs-bar button svg {
  width: 16px;
  height: 16px;
}
.code-tabs-bar button:hover {
  color: var(--navy);
}
.code-tabs-bar button[aria-selected='true'] {
  background: var(--navy);
  color: #fff;
}
.code-tabs-bar button[aria-selected='true'] svg {
  color: var(--lime);
}
.code-tabs [hidden] {
  display: none;
}
.docs-link {
  margin-top: 18px;
}
.docs-link svg {
  width: 18px;
  height: 18px;
}
.nav-docs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-docs svg {
  width: 16px;
  height: 16px;
}

/* dark 3D band */
.band-dark {
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(29, 211, 176, 0.18), transparent 60%),
    radial-gradient(800px 600px at 100% 100%, rgba(124, 206, 37, 0.12), transparent 60%),
    var(--navy-950);
  color: #c4cde6;
}
.band-dark h2,
.band-dark h3 {
  color: #fff;
}
.band-dark .section-head p {
  color: #b3bedd;
}
.gallery-3d {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.gallery-3d .shot {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.gallery-3d .big {
  grid-row: span 2;
  height: 100%;
  object-fit: cover;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 44px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14.5px;
  color: #dfe6ff;
}
.pill svg {
  width: 16px;
  height: 16px;
  color: var(--lime);
}

/* themes section: four screenshots with captions */
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.theme-grid figure {
  margin: 0;
}
.theme-grid figcaption {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}
.theme-grid figcaption b {
  color: var(--navy);
  margin-right: 8px;
}
@media (max-width: 760px) {
  .theme-grid {
    grid-template-columns: 1fr;
  }
}

/* two screenshots stacked (outdoors section) */
.shot-stack {
  display: grid;
  gap: 18px;
}

/* the same gallery and pills on a light section (packs) */
.section-soft .gallery-3d .shot {
  border-color: rgba(10, 36, 99, 0.08);
  box-shadow: 0 30px 60px -34px rgba(10, 36, 99, 0.45);
}
.section-soft .pill {
  border-color: rgba(10, 36, 99, 0.12);
  background: #fff;
  color: var(--navy);
}
.section-soft .pill svg {
  color: #4f9a1a;
}

/* features grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.feature {
  padding: 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 206, 37, 0.18), rgba(29, 211, 176, 0.18));
  color: var(--navy);
  margin-bottom: 16px;
}
.icon-box svg {
  width: 23px;
  height: 23px;
}
.feature h3 {
  font-size: 18.5px;
  font-weight: 700;
}
.feature p {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--muted);
}

/* comparison */
.compare {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: #fff;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.1fr;
}
.compare-row > div {
  padding: 20px 26px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}
.compare-row:first-child > div {
  border-top: 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  background: var(--soft);
}
.compare-row > div:first-child {
  font-weight: 600;
  color: var(--navy);
}
.compare-row > div:nth-child(2) {
  color: var(--muted);
}
.compare-row > div:nth-child(3) {
  background: rgba(124, 206, 37, 0.07);
  color: var(--ink);
  font-weight: 500;
  position: relative;
}
.compare-row:first-child > div:nth-child(3) {
  background: var(--navy);
  color: #fff;
}
.compare-row > div:nth-child(3)::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  margin-right: 10px;
  vertical-align: 2px;
}
.compare-row:first-child > div::before {
  display: none !important;
}
.compare-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* use cases */
.uses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.use {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.use::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 211, 176, 0.18), transparent 70%);
}
.use h3 {
  font-size: 18.5px;
  font-weight: 700;
  margin-top: 4px;
}
.use p {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--muted);
}

/* developer */
.dev-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin-top: 28px;
}
.dev-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.dev-item svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--lime-600);
  margin-top: 2px;
}
.dev-item b {
  display: block;
  color: var(--navy);
  font-size: 15.5px;
}
.dev-item span {
  font-size: 14.5px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ pricing */
.pricing {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(124, 206, 37, 0.12), transparent 70%),
    var(--soft);
}
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 22px;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}
.price.free {
  border-top: 4px solid var(--lime);
}
.price .amount-note {
  min-height: 2.9em;
}
.price {
  position: relative;
  border-radius: 20px;
  padding: 36px 34px 34px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.price.main {
  background: var(--navy);
  color: #c9d3ee;
  border: 0;
  box-shadow: 0 40px 80px -30px rgba(10, 36, 99, 0.7);
}
.price.main h3,
.price.main .amount {
  color: #fff;
}
.price-tag {
  position: absolute;
  top: -13px;
  left: 34px;
  background: var(--lime);
  color: var(--navy-950);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  letter-spacing: 0.02em;
}
.price h3 {
  font-size: 22px;
  font-weight: 750;
}
.price .lead {
  margin-top: 6px;
  font-size: 15.5px;
}
.amount {
  margin-top: 22px;
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--navy);
  line-height: 1;
}
.amount small {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 6px;
  opacity: 0.75;
}
.amount-note {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.85;
}
.price .ticks {
  margin: 26px 0 30px;
}
.price.main .ticks li b {
  color: #fff;
}
.price .btn {
  margin-top: auto;
}

.timeline {
  max-width: 1180px;
  margin: 26px auto 0;
  padding: 34px 34px 30px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
}
.timeline h3 {
  font-size: 20px;
  font-weight: 750;
}
.timeline > p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15.5px;
}
.track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 34px;
}
.track::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 30%;
  top: 15px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--lime), var(--teal));
}
.track::after {
  content: '';
  position: absolute;
  left: 70%;
  right: 10%;
  top: 15px;
  height: 4px;
  background: repeating-linear-gradient(90deg, #c9cfdb 0 8px, transparent 8px 14px);
}
.step {
  position: relative;
  text-align: center;
  padding: 0 6px;
}
.dot {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--lime);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
}
.step.buy .dot {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.step.next .dot {
  border-color: #c9cfdb;
  border-style: dashed;
}
.step b {
  display: block;
  margin-top: 12px;
  color: var(--navy);
  font-size: 15.5px;
}
.step span {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 2px;
}

.price-oem {
  margin: 22px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.price-oem a {
  color: var(--navy);
  font-weight: 700;
}
.promises {
  max-width: 1180px;
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.promise {
  padding: 18px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px dashed #cfd5e2;
  font-size: 14.5px;
  color: var(--muted);
}
.promise b {
  display: block;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 2px;
}

/* faq */
.faq {
  max-width: 860px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  font-size: 18px;
  font-weight: 650;
  color: var(--navy);
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2463' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 44px 22px 0;
  color: var(--text);
}

/* cta */
.cta {
  padding: 0 0 110px;
}
.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 64px 56px;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(124, 206, 37, 0.35), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(29, 211, 176, 0.3), transparent 60%),
    var(--navy);
  color: #c9d3ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-box h2 {
  color: #fff;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  max-width: 620px;
}
.cta-box p {
  margin-top: 12px;
  font-size: 18px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* footer */
footer {
  background: #333333;
  color: #c9c9c9;
  padding: 64px 0 28px;
  font-size: 15px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
}
footer .wordmark {
  color: #fff;
}
footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  letter-spacing: 0;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
footer a {
  text-decoration: none;
  color: #c9c9c9;
}
footer a:hover {
  color: var(--lime);
}
.foot-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #9a9a9a;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 15, 46, 0.86);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 4vh 4vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  cursor: zoom-out;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-height: 88vh;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
  transform: scale(0.96);
  transition: transform 0.35s var(--ease);
}
.lightbox.open img {
  transform: scale(1);
}
.lightbox figcaption {
  margin-top: 14px;
  color: #c9d3ee;
  text-align: center;
  font-size: 14.5px;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.d1 {
  transition-delay: 0.08s;
}
.reveal.d2 {
  transition-delay: 0.16s;
}
.reveal.d3 {
  transition-delay: 0.24s;
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1020px) {
  .showcase,
  .split,
  .split.reverse,
  .price-grid {
    grid-template-columns: 1fr;
  }
  .split.reverse > :first-child {
    order: 2;
  }
  .features,
  .uses {
    grid-template-columns: 1fr 1fr;
  }
  .facts-grid,
  .promises {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-3d {
    grid-template-columns: 1fr;
  }
  .gallery-3d .big {
    grid-row: auto;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .float-chip {
    display: none;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 0;
  }
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: grid;
    place-items: center;
  }
  .brand-sep,
  .brand-product {
    display: none;
  }
  .section {
    padding: 80px 0;
  }
  .features,
  .uses,
  .facts-grid,
  .promises,
  .dev-list,
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .compare-row {
    grid-template-columns: 1fr;
  }
  .compare-row > div:first-child {
    background: var(--soft);
    padding-bottom: 10px;
  }
  .compare-row > div:nth-child(2)::before {
    content: 'Hosted: ';
    font-weight: 600;
  }
  .compare-row:first-child {
    display: none;
  }
  .track {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: left;
  }
  .track::before,
  .track::after {
    display: none;
  }
  .step {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 0 14px;
    text-align: left;
  }
  .step .dot {
    grid-row: span 2;
    margin: 0;
  }
  .step b {
    margin-top: 4px;
  }
  .float-2d {
    position: relative;
    width: 62%;
    right: auto;
    bottom: auto;
    margin: 14px 0 0 auto;
    animation: none;
  }
  .hero-live {
    aspect-ratio: 4 / 3.7;
  }
  .tour {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    padding: 8px 10px;
  }
  .tour-steps {
    margin-bottom: 5px;
    gap: 4px;
  }
  .tour-dot {
    width: 14px;
  }
  .tour-dot.active {
    width: 24px;
  }
  .tour-text b {
    font-size: 13px;
  }
  .tour-text span {
    display: none;
  }
  .view-switch {
    left: 8px;
    top: 8px;
  }
  .tour-bar {
    margin-top: 6px;
  }
  .eyebrow {
    font-size: 12.5px;
  }
  .live-badge {
    display: none;
  }
  .cta-box {
    padding: 44px 28px;
  }
  .tabs {
    overflow-x: auto;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ licence page (licence.html) */
.legal {
  max-width: 780px;
  font-size: 16.5px;
  line-height: 1.7;
}
.legal h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 10px;
}
.legal h1 + p {
  color: var(--muted);
}
.legal h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  scroll-margin-top: 90px;
}
.legal p {
  margin: 12px 0;
}
.legal ul {
  margin: 12px 0;
  padding-left: 22px;
}
.legal li {
  margin: 8px 0;
}
.legal b {
  color: var(--ink);
}
.legal code {
  font: 14px 'JetBrains Mono', monospace;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}
.legal a {
  color: var(--navy-700);
}
.legal-foot {
  margin-top: 48px !important;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.legal-back {
  margin-left: auto;
}
