:root {
  --navy: #232b38;
  --navy-deep: #1b2430;
  --charcoal: #232b38;
  --charcoal-deep: #1b2430;
  --teal: #0f766e;
  --teal-dark: #0a5c56;
  --teal-soft: rgba(15, 118, 110, 0.1);
  --teal-glow: rgba(15, 118, 110, 0.22);
  --accent: #0f766e;
  --accent-dark: #0a5c56;
  --accent-soft: rgba(15, 118, 110, 0.14);
  --bg: #f4f6f8;
  --bg-alt: #e8edf3;
  --bg-warm: #f7f5f0;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --text: #232b38;
  --text-muted: #475569;
  --text-soft: #64748b;
  --border: rgba(35, 43, 56, 0.1);
  --border-strong: rgba(35, 43, 56, 0.16);
  --shadow-sm: 0 2px 10px rgba(35, 43, 56, 0.05);
  --shadow: 0 16px 48px rgba(35, 43, 56, 0.1);
  --shadow-lg: 0 28px 70px rgba(35, 43, 56, 0.14);
  --shadow-glow: 0 0 0 1px rgba(15, 118, 110, 0.08), 0 20px 50px rgba(15, 118, 110, 0.12);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --header-h: 80px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter", system-ui, sans-serif;
  --brand: "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.25, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-med: 0.5s;
  --duration-slow: 0.85s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
}

::selection {
  background: rgba(13, 122, 113, 0.18);
  color: var(--charcoal-deep);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.grain,
.scroll-progress,
.marquee-section,
.hero-aurora,
.hero-glow,
.pixel-field-photo {
  display: none;
}

.pixel-field {
  display: none;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 45%;
  filter: saturate(0.85) contrast(1.08) brightness(0.72);
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 16, 22, 0.88) 0%, rgba(12, 16, 22, 0.62) 42%, rgba(12, 16, 22, 0.35) 70%, rgba(12, 16, 22, 0.55) 100%),
    linear-gradient(180deg, rgba(12, 16, 22, 0.35) 0%, rgba(12, 16, 22, 0.15) 45%, rgba(12, 16, 22, 0.72) 100%);
}

body::before {
  display: none;
}

main {
  position: relative;
  z-index: 2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
}

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

p {
  margin: 0 0 1em;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.12;
  margin: 0 0 0.55em;
  color: var(--charcoal);
  letter-spacing: -0.035em;
  font-weight: 800;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: 6.5rem 0;
  counter-increment: section;
}

.section--surface {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid var(--border);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  padding: 0.38rem 0.85rem 0.38rem 0.65rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.section-label::before {
  content: counter(section, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.68rem;
  letter-spacing: 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  margin-bottom: 0.65rem;
  font-weight: 800;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
  max-width: 38rem;
}

.section-head-light .section-label {
  color: #9ee8df;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.section-head-light .section-label::before {
  background: rgba(127, 212, 203, 0.18);
  color: #9ee8df;
}

.section-head-light h2 {
  color: #f4f7f8;
}

.section-head-light p {
  color: rgba(244, 247, 248, 0.72);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.82rem 1.45rem;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--duration-fast) var(--ease-out),
    background var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    color var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.28) 50%, transparent 58%);
  transform: translateX(-130%);
  transition: transform 0.55s var(--ease-out);
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(130%);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  /* Solid + gradient: solid fallback avoids “white text on empty bg” when gradient fails. */
  background-color: #0f766e;
  background-image: linear-gradient(145deg, #0f766e 0%, #0a5c56 100%);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.28);
}

.btn-primary:hover {
  background-color: #109187;
  background-image: linear-gradient(145deg, #109187 0%, #0a5c56 100%);
  color: #fff !important;
  box-shadow: 0 12px 32px rgba(13, 122, 113, 0.32);
}

/* Always solid teal — never use --navy/--charcoal (dark theme remaps them to light). */
.btn-accent,
a.btn-accent,
button.btn-accent {
  background-color: #0f766e !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: 0 8px 28px rgba(15, 118, 110, 0.32);
}

.btn-accent:hover,
a.btn-accent:hover,
button.btn-accent:hover {
  background-color: #109187 !important;
  color: #fff !important;
  box-shadow: 0 12px 32px rgba(13, 122, 113, 0.36);
}

.btn::after {
  display: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-outline {
  background: var(--surface);
  color: var(--charcoal);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: rgba(13, 122, 113, 0.35);
  color: var(--teal-dark);
  box-shadow: var(--shadow-glow);
}

.btn-lg {
  min-height: 54px;
  padding-inline: 1.65rem;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

.btn-nav {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(244, 246, 248, 0.82);
  border-bottom: 1px solid transparent;
  transition:
    height 0.35s var(--ease-out),
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease,
    backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  --header-h: 68px;
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 36px rgba(18, 22, 29, 0.08);
}

/* Glass header over cinematic hero — always readable */
.site-header--over-hero:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(12, 16, 22, 0.72) 0%, rgba(12, 16, 22, 0.28) 70%, transparent 100%);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom-color: transparent;
  box-shadow: none;
}

.site-header--over-hero:not(.is-scrolled) .logo-name,
.site-header--over-hero:not(.is-scrolled) .logo-sub {
  color: rgba(255, 255, 255, 0.92);
}

.site-header--over-hero:not(.is-scrolled) .logo-sub {
  color: rgba(158, 232, 223, 0.9);
}

.site-header--over-hero:not(.is-scrolled) .nav-links {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.site-header--over-hero:not(.is-scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.78);
}

.site-header--over-hero:not(.is-scrolled) .nav-links a:hover,
.site-header--over-hero:not(.is-scrolled) .nav-links a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.site-header--over-hero:not(.is-scrolled) .nav-toggle span {
  background: #fff;
}

.site-header--over-hero:not(.is-scrolled) .theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: none;
}

.site-header--over-hero:not(.is-scrolled) .nav-pill {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(20, 24, 32, 0.55);
  border-color: rgba(255, 255, 255, 0.18);
}

.header-inner {
  position: relative;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
}

.logo:hover {
  color: inherit;
}

.logo-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--border), 0 4px 14px rgba(35, 43, 56, 0.1);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.site-header.is-scrolled .logo-mark {
  width: 40px;
  height: 40px;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 0.12rem;
}

.logo-name {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
  transition: font-size 0.35s var(--ease-out);
}

.site-header.is-scrolled .logo-name {
  font-size: 0.82rem;
}

.logo-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.brand-display {
  margin: 0 0 0.65rem;
  font-family: var(--brand);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.brand-product {
  font-family: var(--brand);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.brand-inline {
  font-family: var(--brand);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-links a {
  position: relative;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--charcoal);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.nav-pill:hover {
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--teal-dark);
}

.nav-links a:hover {
  color: var(--charcoal);
  background: rgba(13, 122, 113, 0.06);
}

.nav-links a.is-active {
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-weight: 700;
}

.site-nav .btn {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--charcoal);
  border-radius: 2px;
}

/* Hero — cinematic full-bleed */
.hero {
  position: relative;
  isolation: isolate;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

.hero--cinema {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  display: flex;
  align-items: center;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 1.5rem) 0 2.5rem;
  background: #12161d;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-cinema-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
}

.hero-glow {
  position: absolute;
  inset: -20% 20% auto -10%;
  height: 70%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.16), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.hero--cinema .eyebrow {
  color: rgba(158, 232, 223, 0.95);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 122, 113, 0.15);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.7; }
}

.hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  margin-bottom: 1rem;
  line-height: 1.08;
  font-weight: 900;
  max-width: 11.5em;
}

.hero--cinema h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5.4vw, 3.85rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 14em;
  margin-bottom: 1.15rem;
  line-height: 1.06;
}

.hero-lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero--cinema .hero-lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.35rem;
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-trust li {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
}

.hero-industries {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hero--cinema .hero-industries {
  color: rgba(255, 255, 255, 0.62);
}

.hero-industries a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero--cinema .hero-industries a {
  color: #9ee8df;
}

/* Diagonal slash splits */
.slash-split {
  --slash-angle: 9%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(78vh, 680px);
  position: relative;
  overflow: hidden;
}

.slash-split--erp {
  --slash-angle: 10%;
}

.slash-split--production {
  --slash-angle: 12%;
}

.slash-split--erp-fin {
  --slash-angle: 14%;
}

.slash-split--erp-wms {
  --slash-angle: 11%;
}

.slash-split__panel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100%;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3.5rem);
}

.slash-split__panel--dark {
  background: #12161d;
  color: #fff;
  z-index: 2;
  clip-path: polygon(0 0, calc(100% - var(--slash-angle)) 0, 100% 100%, 0 100%);
  padding-right: clamp(2.5rem, 7vw, 5rem);
}

.slash-split__panel--light {
  background: var(--bg);
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--slash-angle) 100%);
  margin-left: calc(var(--slash-angle) * -1);
  padding-left: clamp(2.5rem, 7vw, 5rem);
}

.slash-split__panel--teal {
  background: linear-gradient(155deg, #0a5c56 0%, #0f766e 45%, #12161d 120%);
  color: #fff;
  z-index: 2;
  clip-path: polygon(0 0, calc(100% - var(--slash-angle)) 0, 100% 100%, 0 100%);
  padding-right: clamp(2.5rem, 7vw, 5rem);
}

.slash-split:not(.slash-split--reverse) .slash-split__panel--media {
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--slash-angle) 100%);
  margin-left: calc(var(--slash-angle) * -1);
  padding-left: clamp(2rem, 5vw, 3.5rem);
}

.slash-split__panel--media {
  background: #e8edf3;
  z-index: 1;
  justify-content: center;
}

.slash-split--reverse .slash-split__panel--media {
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--slash-angle)) 100%, 0 100%);
  z-index: 2;
  padding-right: clamp(2rem, 6vw, 4rem);
}

.slash-split--reverse .slash-split__panel--light {
  clip-path: polygon(var(--slash-angle) 0, 100% 0, 100% 100%, 0 100%);
  margin-left: calc(var(--slash-angle) * -1);
  z-index: 1;
}

.slash-split--apps .slash-split__panel--media {
  clip-path: polygon(0 0, calc(100% - var(--slash-angle)) 0, 100% 100%, 0 100%);
  background:
    radial-gradient(600px 320px at 30% 40%, rgba(15, 118, 110, 0.12), transparent 60%),
    #1a212c;
  z-index: 2;
}

.slash-split__content {
  max-width: 28rem;
  width: 100%;
}

.slash-split__content h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  color: inherit;
}

.slash-split__lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 28rem;
}

.slash-split__panel--light .slash-split__lead {
  color: var(--text-muted);
}

.slash-split__note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.section-label--on-dark {
  color: #9ee8df;
}

.hero-stats--on-dark {
  margin: 0;
}

.slash-media {
  margin: 0;
  width: min(100%, 560px);
}

.slash-split--erp-wms .slash-media {
  width: min(100%, 720px);
}

.slash-media figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.slash-split__panel--dark .slash-media figcaption,
.slash-split__panel--media .slash-media figcaption {
  color: rgba(35, 43, 56, 0.65);
}

.slash-split--apps .slash-media figcaption,
.slash-split--apps .slash-split__panel--media {
  color: rgba(255, 255, 255, 0.7);
}

.device--browser-fit {
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.device__viewport--erp {
  aspect-ratio: 1024 / 496;
  background: #12161d;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.device__viewport--erp-tall {
  aspect-ratio: 1536 / 1024;
  background: #e8edf3;
}

.device__viewport--erp-wms {
  aspect-ratio: 1024 / 475;
  background: #e8edf3;
}

.device__viewport--erp-wms img {
  background: #e8edf3;
}

.device__viewport--erp img,
.device__viewport--erp video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #12161d;
}

.device__viewport--erp-tall img {
  background: #e8edf3;
}

.slash-devices {
  position: relative;
  width: min(100%, 520px);
  margin-inline: auto;
  padding: 1rem 0 1.5rem;
}

.slash-devices .device--tablet {
  --device-w: min(100%, 460px);
}

.slash-devices__phone {
  position: absolute;
  right: -4%;
  bottom: -2%;
  --device-w: min(150px, 32vw);
  z-index: 2;
  transform: rotate(7deg);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}

.slash-split--carver {
  --slash-angle: 13%;
}

.slash-split--wms-app {
  --slash-angle: 11%;
}

.slash-split__panel--phones {
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(520px 280px at 55% 40%, rgba(15, 118, 110, 0.14), transparent 62%),
    #e8edf3;
}

.phone-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  width: min(100%, 520px);
  margin-inline: auto;
  padding: 0.5rem 0 0.25rem;
}

.phone-pair__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.phone-pair__item .device--phone {
  --device-w: min(210px, 38vw);
  filter: drop-shadow(0 18px 36px rgba(35, 43, 56, 0.22));
}

.phone-pair__item:first-child .device--phone {
  transform: rotate(-3deg);
}

.phone-pair__item:last-child .device--phone {
  transform: rotate(3deg);
}

.phone-pair__item figcaption {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

[data-theme="dark"] .phone-pair__item figcaption,
.slash-split__panel--phones .phone-pair__item figcaption {
  color: rgba(238, 242, 246, 0.78);
}

.slash-split--driver-print {
  --slash-angle: 12%;
}

.slash-split__panel--printer {
  justify-content: center;
  background:
    radial-gradient(420px 280px at 50% 45%, rgba(15, 118, 110, 0.1), transparent 60%),
    #f4f6f8;
}

.printer-shot {
  margin: 0;
  width: min(100%, 360px);
  text-align: center;
}

.printer-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
  object-fit: contain;
  mix-blend-mode: normal;
}

.printer-shot.lightbox-trigger {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.printer-shot figcaption {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}

.printer-shot__note {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(238, 242, 246, 0.55);
}

[data-theme="dark"] .printer-shot figcaption,
.slash-split__panel--printer .printer-shot figcaption {
  color: rgba(238, 242, 246, 0.78);
}

.nav-contacts {
  display: contents;
}

@media (max-width: 900px) {
  .nav-contacts {
    display: grid;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.25rem;
  }

  .nav-contacts .nav-pill {
    width: 100%;
    margin: 0;
  }

  .nav-pill--tg {
    background: rgba(15, 118, 110, 0.18);
    border-color: rgba(158, 232, 223, 0.28);
    color: #9ee8df;
  }
}

.feature-ticks {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.feature-ticks li {
  position: relative;
  padding-left: 1.45rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}

.feature-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #9ee8df;
  box-shadow: 0 0 0 3px rgba(158, 232, 223, 0.2);
}

[data-theme="dark"] .slash-split__panel--phones,
[data-theme="dark"] .slash-split__panel--printer {
  background:
    radial-gradient(520px 280px at 55% 40%, rgba(15, 118, 110, 0.18), transparent 62%),
    #1a212c;
}

[data-theme="dark"] .printer-shot img {
  background: transparent;
}

@media (max-width: 960px) {
  .slash-split,
  .slash-split--reverse,
  .slash-split--apps,
  .slash-split--erp,
  .slash-split--production,
  .slash-split--erp-fin,
  .slash-split--erp-wms,
  .slash-split--carver,
  .slash-split--wms-app,
  .slash-split--driver-print {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .slash-split__panel--dark,
  .slash-split__panel--light,
  .slash-split__panel--teal,
  .slash-split__panel--media,
  .slash-split:not(.slash-split--reverse) .slash-split__panel--media,
  .slash-split--reverse .slash-split__panel--media,
  .slash-split--reverse .slash-split__panel--light,
  .slash-split--apps .slash-split__panel--media {
    clip-path: none;
    margin-left: 0;
    padding: 2.5rem 1.25rem;
  }

  .slash-devices__phone {
    right: 4%;
    --device-w: min(130px, 34vw);
  }

  .phone-pair {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    width: 100%;
    max-width: 280px;
  }

  .phone-pair__item {
    width: 100%;
  }

  .phone-pair__item .device--phone {
    --device-w: min(240px, 72vw);
  }

  .phone-pair__item:first-child .device--phone,
  .phone-pair__item:last-child .device--phone {
    transform: none;
  }

  .phone-pair__item figcaption {
    color: rgba(238, 242, 246, 0.78);
  }

  .printer-shot {
    width: min(100%, 280px);
  }
}

.brand-card {
  margin: 0;
  padding: 1.4rem 1.4rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.brand-card img {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  object-fit: contain;
}

.brand-card figcaption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.shot-frame {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.shot-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  z-index: 1;
}

.shot-frame img {
  width: 100%;
  height: auto;
  display: block;
  background: linear-gradient(180deg, #eef2f6 0%, #e4eaef 100%);
}

.shot-frame figcaption {
  padding: 0.75rem 1rem 0.95rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 600;
  border-top: 1px solid var(--border);
}

.shot-frame--wide {
  max-width: 100%;
}

.product-shots {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  align-items: start;
}

.product-shots .shot-frame {
  margin: 0;
}

@media (max-width: 900px) {
  .product-shots {
    grid-template-columns: 1fr;
  }
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.phone-card {
  display: grid;
  gap: 0.85rem;
}

/* Device mockups (phone + browser) */
.device {
  position: relative;
  max-width: 100%;
}

.device--phone {
  --device-w: 200px;
  width: var(--device-w);
  margin-inline: auto;
}

.device--phone.device--sm { --device-w: min(210px, 52vw); }
.device--phone.device--md { --device-w: min(220px, 56vw); }
.device--phone.device--lg { --device-w: min(230px, 58vw); }
.device--phone.device--xl { --device-w: min(240px, 60vw); }

.device__shell {
  position: relative;
  padding: 11px 9px 14px;
  border-radius: 38px;
  background: linear-gradient(155deg, #3a4454 0%, #1a212c 38%, #0c1018 100%);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.device__island {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 2;
  width: 32%;
  min-width: 72px;
  max-width: 110px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050608;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.device__screen {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0a0e14;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.device--phone .device__screen {
  aspect-ratio: 390 / 844;
  max-height: 430px;
}

.device__screen img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  display: block;
}

.device--phone .device__screen img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.device__home-bar {
  width: 34%;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.device--browser {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.device--browser .device__chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(180deg, #eef2f6 0%, #e4eaef 100%);
  border-bottom: 1px solid var(--border);
}

.device__dots {
  display: flex;
  gap: 0.35rem;
}

.device__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d9e2;
}

.device__dots span:nth-child(1) { background: #ff5f57; }
.device__dots span:nth-child(2) { background: #febc2e; }
.device__dots span:nth-child(3) { background: #28c840; }

.device__url {
  flex: 1;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d8e0e8;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device__viewport {
  background: #eef1f4;
}

.device--browser .device__viewport img,
.device--browser .device__viewport video {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: top center;
  display: block;
}

/* Landscape tablet (weighing operator) — always wider than phones */
.device--tablet {
  --device-w: min(100%, 640px);
  width: var(--device-w);
  margin-inline: auto;
}

.device--tablet .device__shell {
  padding: 14px 18px 14px 24px;
  border-radius: 28px;
  background:
    linear-gradient(155deg, #6a7280 0%, #3d4554 22%, #1c232e 58%, #0c1016 100%);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 2px rgba(0, 0, 0, 0.28);
}

.device--tablet .device__shell::before {
  content: "";
  position: absolute;
  top: 26%;
  right: -3px;
  width: 3px;
  height: 42px;
  border-radius: 0 2px 2px 0;
  background: #2a3140;
}

.device--tablet .device__island {
  display: none;
}

.device--tablet .device__camera {
  position: absolute;
  top: 50%;
  left: 9px;
  z-index: 2;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4a5362 0%, #050608 68%);
  box-shadow:
    0 0 0 3px #1a212c,
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.device--tablet .device__screen {
  border-radius: 6px;
  background: #0a0e14;
  overflow: hidden;
}

.device--tablet .device__screen img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.device--tablet .device__home-bar {
  display: none;
}

.apps-preview-tablet {
  width: 100%;
  --device-w: min(100%, 620px);
}

.apps-preview-phone {
  --device-w: min(210px, 48vw);
  align-self: center;
}

.app-preview .device--tablet {
  justify-self: stretch;
}

.device--browser.device--dark .device__chrome {
  background: linear-gradient(180deg, #2a3140 0%, #1a212c 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.device--browser.device--dark .device__url {
  background: #12161d;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
}

.hero-device-stack {
  position: relative;
}

.hero-device-stack .device--phone.hero-phone-float {
  position: absolute;
  right: -4%;
  bottom: -8%;
  z-index: 3;
  --device-w: min(140px, 32vw);
  transform: rotate(6deg);
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.35));
}

.phone-shell,
.device--phone[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out);
}

.story-panel .device--phone {
  --device-w: min(210px, 100%);
  margin-inline: auto;
}

.case-phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: end;
}

.case-phones .device--phone {
  --device-w: 100%;
}

.case-phones .device--phone:nth-child(2) {
  transform: translateY(-12px);
}

.phone-shell {
  border-radius: 32px;
  padding: 0.65rem;
  background: linear-gradient(155deg, #141922 0%, #252f3c 55%, #1a212c 100%);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-shell img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  object-position: top;
  border-radius: 22px;
  background: #111;
}

.phone-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-meta img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.phone-meta h3 {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
}

.phone-meta p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.apps-icons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: center;
}

.apps-icons div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--charcoal);
}

.apps-icons img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--border);
}

.apps-note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.hero-stats div {
  /* Hard dark surface — theme tokens flip to light in dark mode */
  background: linear-gradient(160deg, #1b2430 0%, #232b38 100%);
  color: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.7rem;
  font-size: 0.76rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-stats--on-dark div {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
}

.hero-footnote {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-footnote code {
  font-size: 0.72rem;
  background: var(--bg-alt);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* Aurora mesh */
.hero-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: aurora-drift 22s ease-in-out infinite alternate;
}

.aurora-blob--1 {
  width: 420px;
  height: 420px;
  top: -8%;
  left: -5%;
  background: rgba(15, 118, 110, 0.35);
}

.aurora-blob--2 {
  width: 360px;
  height: 360px;
  top: 10%;
  right: -8%;
  background: rgba(35, 43, 56, 0.16);
  animation-delay: -7s;
  animation-duration: 28s;
}

.aurora-blob--3 {
  width: 280px;
  height: 280px;
  bottom: 5%;
  left: 35%;
  background: rgba(127, 212, 203, 0.25);
  animation-delay: -14s;
  animation-duration: 24s;
}

@keyframes aurora-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
  100% { transform: translate(-20px, 25px) scale(0.95); }
}

/* Hero media + floating badges */
.hero-media-wrap {
  position: relative;
}

.hero-video-frame {
  position: relative;
}

.hero-video,
.hero-video-fallback {
  width: 100%;
  height: auto;
  display: block;
  background: #eef1f4;
}

.hero-video-fallback,
.hero-illustration-img {
  width: 100%;
  height: auto;
  display: block;
  background: #eef1f4;
}

.hero-illustration {
  display: block;
  width: 100%;
}

.hero-video-frame.no-video .hero-video {
  display: none;
}

.hero-video-frame.no-video .hero-illustration {
  display: block;
}

.hero-video-frame:not(.no-video) .hero-illustration,
.device__viewport--erp:not(.no-video) .hero-illustration {
  display: none;
}

.device__viewport--erp.no-video .hero-video {
  display: none;
}

.device__viewport--erp.no-video .hero-illustration {
  display: block;
  width: 100%;
  height: 100%;
}

.float-badge {
  position: absolute;
  z-index: 2;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 28px rgba(18, 22, 29, 0.14);
  color: var(--charcoal);
  animation: float-badge 5.5s ease-in-out infinite;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(-1deg); }
}

.float-badge--1 { top: 8%; left: -4%; animation-delay: 0s; }
.float-badge--2 { top: 18%; right: -6%; animation-delay: -1s; }
.float-badge--3 { bottom: 28%; left: -8%; animation-delay: -2s; }
.float-badge--4 { bottom: 12%; right: -4%; animation-delay: -3s; }

.hero-stats .count-up {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
  color: #9ee8df;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.hero-stats .stat-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Marquee */
.marquee-section {
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, var(--bg) 0%, var(--surface) 50%, var(--bg) 100%);
  padding: 1rem 0;
  overflow: hidden;
}

.marquee {
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 2.75rem;
  width: max-content;
  animation: marquee-scroll 42s linear infinite;
}

.marquee-track span {
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
}

.marquee-track span:nth-child(odd) {
  color: var(--teal-dark);
}

.marquee-track span::before {
  content: "◆";
  margin-right: 0.65rem;
  font-size: 0.45rem;
  vertical-align: middle;
  color: var(--accent-dark);
  opacity: 0.85;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* App tabs + preview */
.app-showcase {
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) 1.2fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.app-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.app-tab {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.25;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    color var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) ease;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.app-tab img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.app-tab:hover {
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--charcoal);
}

.app-tab.is-active {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal-dark);
  transform: translateX(4px);
}

.app-preview {
  position: relative;
  min-height: 380px;
}

.app-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(200px, 0.8fr);
  gap: 1.25rem;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.app-panel.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: relative;
}

.app-panel:has(.device--phone) {
  grid-template-columns: minmax(180px, 240px) 1fr;
  justify-content: start;
}

.app-panel:has(.device--phone) .apps-preview-phone {
  justify-self: start;
}

.app-panel-copy h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
}

.app-panel-copy p {
  margin: 0 0 0.55rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.app-panel-copy p:last-child {
  margin-bottom: 0;
}

.app-panel-copy strong {
  color: var(--charcoal);
  font-weight: 700;
}

.apps-link-note {
  margin: 1.75rem 0 0;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: var(--teal-soft);
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.apps-link-note p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--charcoal);
}

.apps.section {
  padding-bottom: 3.5rem;
}

[data-theme="dark"] .apps-link-note {
  background: rgba(15, 118, 110, 0.16);
  border-color: rgba(158, 232, 223, 0.22);
}

[data-theme="dark"] .apps-link-note p,
[data-theme="dark"] .app-panel-copy strong {
  color: #e2e8f0;
}

[data-theme="dark"] .app-panel-copy p {
  color: rgba(226, 232, 240, 0.72);
}

/* Hub diagram — circle with ray labels (Relief-inspired) */
.hub-section {
  background: var(--surface);
  padding: 4.5rem 0 4rem;
}

.hub-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hub-title {
  margin: 0;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--charcoal);
  max-width: 14em;
}

.hub-title__accent {
  color: var(--teal);
}

.hub-desc {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 28rem;
  padding-top: 0.35rem;
}

.hub-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  min-height: 560px;
}

.hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.hub-lines line {
  stroke: #9aa3b2;
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  opacity: 0.85;
}

.hub-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3.2rem;
  width: min(260px, 22vw);
  z-index: 2;
  flex-shrink: 0;
}

.hub-side--left {
  align-items: flex-end;
}

.hub-side--right {
  align-items: flex-start;
}

.hub-item {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hub-item--left {
  align-items: flex-end;
  text-align: right;
}

.hub-item--right {
  align-items: flex-start;
  text-align: left;
}

.hub-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 4px 4px 14px rgba(35, 43, 56, 0.22);
  white-space: nowrap;
}

.hub-item__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--text-muted);
  max-width: 200px;
}

.hub-center {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.hub-circle {
  width: min(520px, 42vw);
  height: min(520px, 42vw);
  border-radius: 50%;
  overflow: hidden;
  background: #d9dde3;
  box-shadow: 0 24px 60px rgba(35, 43, 56, 0.16);
}

.hub-circle__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
}

.hub-circle__overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(240px, 46%);
  height: min(240px, 46%);
  border-radius: 50%;
  background: rgba(35, 43, 56, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  z-index: 3;
  backdrop-filter: blur(4px);
}

.hub-circle__text {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}

.hub-circle__text small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: #9ee8df;
}

[data-theme="dark"] .hub-section {
  background: var(--bg);
}

[data-theme="dark"] .hub-title {
  color: #f1f5f9;
}

[data-theme="dark"] .hub-pill {
  background: #1e293b;
  box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .hub-circle__overlay {
  background: rgba(15, 23, 32, 0.9);
}

[data-theme="dark"] .hub-lines line {
  stroke: #64748b;
}

@media (max-width: 1100px) {
  .hub-circle {
    width: min(420px, 40vw);
    height: min(420px, 40vw);
  }

  .hub-side {
    width: min(220px, 20vw);
    gap: 2.4rem;
  }

  .hub-pill {
    min-width: 140px;
    padding: 0.8rem 1.35rem;
    font-size: 0.95rem;
  }

  .hub-body {
    min-height: 460px;
  }
}

@media (max-width: 900px) {
  .hub-header {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .hub-body {
    flex-direction: column;
    gap: 1.75rem;
    min-height: 0;
  }

  .hub-lines {
    display: none;
  }

  .hub-side {
    width: 100%;
    flex-flow: row wrap;
    justify-content: center;
    gap: 1rem 1.25rem;
    align-items: stretch;
  }

  .hub-side--left,
  .hub-side--right {
    align-items: center;
  }

  .hub-item,
  .hub-item--left,
  .hub-item--right {
    align-items: center;
    text-align: center;
    flex: 1 1 140px;
    max-width: 200px;
  }

  .hub-circle {
    width: min(360px, 78vw);
    height: min(360px, 78vw);
    order: -1;
  }

  .hub-center {
    order: -1;
  }
}

.phone-shell--large img {
  max-height: 480px;
}

/* Bento grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 0.85rem;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.15rem;
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--duration-fast) ease,
    transform var(--duration-med) var(--ease-out),
    box-shadow var(--duration-med) var(--ease-out);
}

.bento-card:hover {
  border-color: rgba(13, 122, 113, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.bento-card--hero {
  grid-column: span 2;
  grid-row: span 2;
  padding: 1.65rem;
  background:
    linear-gradient(145deg, #fff 0%, rgba(13, 122, 113, 0.05) 100%),
    radial-gradient(420px 180px at 100% 0%, rgba(229, 184, 74, 0.12), transparent 60%);
  border-color: rgba(13, 122, 113, 0.18);
}

.bento-card img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin-bottom: 0.7rem;
}

.bento-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

.bento-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.bento-card--hero img {
  width: 48px;
  height: 48px;
}

.bento-card--hero h3 {
  font-size: 1.25rem;
}

.bento-card--wide {
  grid-column: 1 / -1;
}

.bento-tag {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Compare table */
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.compare-table thead th {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  font-family: var(--display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.compare-table tbody th {
  font-weight: 700;
  color: var(--charcoal);
  width: 22%;
}

.compare-highlight {
  background: linear-gradient(180deg, rgba(13, 122, 113, 0.08) 0%, rgba(13, 122, 113, 0.04) 100%);
  font-weight: 700;
}

.cmp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.cmp-good { background: rgba(15, 118, 110, 0.15); color: var(--teal-dark); }
.cmp-mid { background: rgba(232, 184, 74, 0.2); color: #8a6a1a; }
.cmp-bad { background: rgba(196, 92, 92, 0.15); color: #9a4b4b; }

/* Flow diagram */
.flow-diagram {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.5rem 1rem 0.75rem;
  background:
    radial-gradient(680px 180px at 50% 0%, rgba(127, 212, 203, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.flow-svg {
  width: 100%;
  height: auto;
  display: block;
}

.flow-bg-grid {
  opacity: 0.55;
}

.flow-path--main {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.flow-path--shadow,
.flow-path--energy {
  opacity: 0;
  transition: opacity 0.8s ease 0.4s;
}

.flow-diagram.is-animated .flow-path--main {
  stroke-dashoffset: 0;
}

.flow-diagram.is-animated .flow-path--shadow {
  opacity: 1;
}

.flow-diagram.is-animated .flow-path--energy {
  opacity: 1;
  animation: flow-energy-march 2.2s linear infinite;
}

@keyframes flow-energy-march {
  to { stroke-dashoffset: -40; }
}

.flow-packet {
  opacity: 0;
}

.flow-diagram.is-animated .flow-packet {
  opacity: 1;
}

.flow-node-halo {
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0.35;
  animation: flow-node-ping 4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.flow-node:nth-child(1) .flow-node-halo { animation-delay: 0s; }
.flow-node:nth-child(2) .flow-node-halo { animation-delay: 1s; }
.flow-node:nth-child(3) .flow-node-halo { animation-delay: 2s; }
.flow-node:nth-child(4) .flow-node-halo { animation-delay: 3s; }

.flow-node--client .flow-node-halo {
  stroke: #0f766e;
}

@keyframes flow-node-ping {
  0%, 100% { transform: scale(0.92); opacity: 0.25; }
  6% { transform: scale(1.22); opacity: 0.95; }
  14% { transform: scale(1); opacity: 0.35; }
}

.flow-node-glass {
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.28));
}

.flow-node-icon {
  opacity: 0.92;
}

.flow-node-label {
  fill: rgba(255, 255, 255, 0.92);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.flow-node-label--gold {
  fill: #f0d48a;
}

.flow-packets,
.flow-path--energy,
.flow-bg-grid {
  display: none;
}

.flow-diagram.is-reduced .flow-path--main,
.flow-diagram.is-reduced .flow-path--shadow,
.flow-diagram.is-reduced .flow-path--energy {
  stroke-dashoffset: 0;
  opacity: 1;
  animation: none;
}

/* Case progress bars */
.case-bars {
  display: grid;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}

.bar-row {
  display: grid;
  gap: 0.55rem;
}

.bar-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  align-items: baseline;
}

.bar-title {
  font-weight: 750;
  color: var(--charcoal);
}

.bar-values {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.bar-track {
  position: relative;
  height: 10px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
}

.bar-track--single {
  height: 12px;
}

.bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--bar-color, var(--teal));
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-fill--before {
  opacity: 0.35;
  z-index: 1;
}

.bar-fill--after {
  z-index: 2;
}

.bar-track.is-animated .bar-fill {
  width: calc(var(--target-width, 0) * 1%);
}

.count-up {
  font-variant-numeric: tabular-nums;
}

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

.pain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.45rem;
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--duration-fast) ease,
    transform var(--duration-med) var(--ease-out),
    box-shadow var(--duration-med) var(--ease-out);
}

.pain-card:hover {
  border-color: rgba(13, 122, 113, 0.28);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.pain-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
}

.pain-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.pain-problem {
  color: var(--text-muted);
}

.pain-solve {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* Solutions */
.solutions {
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(127, 212, 203, 0.12), transparent 55%),
    linear-gradient(165deg, #12161d 0%, #1a212c 42%, #0a4f4a 115%);
  color: #fff;
}

.steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
}

.step-num {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-family: var(--display);
  font-size: 0.85rem;
  color: #7fd4cb;
}

.step h3 {
  color: #fff;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.platform-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.platform-split article {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}

.platform-split img {
  max-height: 120px;
  width: auto;
  margin-bottom: 0.9rem;
  object-fit: contain;
}

.platform-split-screen {
  max-height: 280px;
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.platform-split h3 {
  margin-bottom: 0.35rem;
}

.platform-split p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modules-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.modules-strip span {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
  font-weight: 650;
}

/* Case */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: stretch;
  max-width: 720px;
}

.case-metrics {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-head {
  background: var(--bg-alt);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.was {
  color: #9a4b4b;
}

.now {
  color: var(--teal-dark);
  font-weight: 800;
}

.case-quote {
  margin: 0;
  background:
    linear-gradient(155deg, var(--charcoal-deep) 0%, var(--charcoal) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

.case-quote p {
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.case-quote footer {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.quote-note {
  opacity: 0.75;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  max-width: 52rem;
  margin-inline: auto;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration-med) var(--ease-out),
    box-shadow var(--duration-med) var(--ease-out),
    border-color var(--duration-fast) ease;
}

.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(13, 122, 113, 0.22);
}

.price-card-featured {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.badge {
  margin: 0;
  width: fit-content;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: #0a5c56;
  font-size: 0.75rem;
  font-weight: 800;
}

[data-theme="dark"] .badge {
  background: rgba(94, 196, 184, 0.16);
  color: #9ee8df;
}

.badge--quiet {
  background: var(--paper, #eef2f6);
  color: var(--text-muted);
}

[data-theme="dark"] .badge--quiet {
  background: rgba(255, 255, 255, 0.08);
}

.price {
  margin: 0;
  color: var(--text-muted);
}

.price-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.65rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.price-card ul {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
  flex: 1;
}

.price-card .btn {
  margin-top: auto;
}

.pricing-footnote {
  margin: 1.35rem auto 0;
  max-width: 40rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

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

.verticals-scene {
  margin: 0 0 1.5rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #12161d;
}

.verticals-scene img {
  width: 100%;
  height: min(42vw, 380px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.vertical-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.45rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.vertical-card h3 {
  margin: 0;
}

.vertical-card p {
  margin: 0;
  color: var(--text-muted);
  flex: 1;
}

.vertical-status {
  margin: 0;
  width: fit-content;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--paper, #eef2f6);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vertical-card--live {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: var(--shadow-glow);
}

.vertical-card--live .vertical-status {
  background: var(--teal-soft);
  color: #0a5c56;
}

[data-theme="dark"] .vertical-card--live .vertical-status {
  background: rgba(94, 196, 184, 0.16);
  color: #9ee8df;
}

[data-theme="dark"] .btn-outline,
[data-theme="dark"] a.btn-outline,
[data-theme="dark"] button.btn-outline {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #eef2f6 !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  box-shadow: none;
}

[data-theme="dark"] .btn-outline:hover,
[data-theme="dark"] a.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  border-color: rgba(158, 232, 223, 0.5) !important;
}

.vertical-card .btn {
  margin-top: 0.35rem;
  width: 100%;
  text-align: center;
}

.verticals-magnet {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text);
}

.verticals-magnet a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.7rem;
  max-width: 48rem;
}

.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 1rem 1.15rem;
  font: inherit;
  font-weight: 750;
  color: var(--charcoal);
  cursor: pointer;
}

/* accordion-panel styles → see Polish section below */

/* CTA */
.section--cta {
  padding-bottom: 5rem;
}

@media (max-width: 900px) {
  .section--cta {
    padding-bottom: 7.5rem;
  }

  .site-footer {
    padding-bottom: 6.5rem;
  }
}

.cta {
  padding-top: 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.cta-copy {
  /* Fixed dark panel — theme --charcoal flips light in dark mode */
  background:
    linear-gradient(160deg, #151b24 0%, #232b38 55%, #0a4f4a 130%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  color: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-copy::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 212, 203, 0.18), transparent 68%);
  pointer-events: none;
}

.cta-copy h2 {
  color: #fff;
  position: relative;
}

.cta-copy p {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
}

.lead-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-lg);
}

.cta-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  position: relative;
}

.contacts-list {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
  position: relative;
}

.contact-label {
  display: block;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 0.2rem;
}

.contacts-list a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  color: #fff;
}

.contacts-list a:hover {
  color: #9ee8df;
}

.form-title {
  font-family: var(--display);
  font-size: 1.25rem;
  margin-bottom: 1.15rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea {
  background: #12161d;
  color: #eef2f6;
  border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .field textarea::placeholder {
  color: #8b95a5;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.28);
  border-color: var(--teal);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #c45c5c;
}

.field-pills {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}

.field-pills legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.field-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.field-pill {
  cursor: pointer;
}

.field-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.field-pill span {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: #232b38;
  font-size: 0.88rem;
  font-weight: 700;
}

[data-theme="dark"] .field-pill span {
  background: #12161d;
  color: #eef2f6;
  border-color: rgba(255, 255, 255, 0.18);
}

.field-pill input:focus-visible + span {
  outline: 2px solid rgba(15, 118, 110, 0.35);
}

.field-pill input:checked + span {
  border-color: #0f766e;
  background: rgba(15, 118, 110, 0.12);
  color: #0a5c56;
}

[data-theme="dark"] .field-pill input:checked + span {
  background: #0f766e;
  color: #fff;
  border-color: #0f766e;
}

.form-status {
  min-height: 1.25em;
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-status.is-ok {
  color: var(--teal-dark);
}

.form-status.is-err {
  color: #a11f1f;
}

.form-note {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

[data-theme="dark"] .form-note {
  color: #b0b8c4;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 1px !important;
  width: 1px !important;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #151b24 0%, #0d1118 100%);
  color: rgba(255, 255, 255, 0.72);
  padding: 3rem 0 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .site-footer {
  background: linear-gradient(180deg, #151b24 0%, #0d1118 100%);
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: end;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 128px;
  height: auto;
  background: #f7f5f0;
  border-radius: 12px;
  padding: 0.55rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.footer-brand p {
  margin: 0;
  max-width: 30rem;
  line-height: 1.65;
  font-size: 0.95rem;
}

.footer-brand strong {
  color: #fff;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.88rem;
}

.footer-meta a {
  color: #7fd4cb;
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out),
    filter var(--duration-slow) var(--ease-out);
}

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

main {
  counter-reset: section;
}

main,
.site-footer,
.marquee-section,
.mobile-cta {
  position: relative;
  z-index: 1;
}

.site-header {
  z-index: 60;
}

/* ── Polish: scroll progress ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 70;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0f766e, #2dd4bf, #e5b84a);
  border-radius: 0 2px 2px 0;
  transform-origin: left center;
  transition: width 0.1s linear;
}

.mobile-cta {
  display: none;
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #0f766e;
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 40px rgba(15, 118, 110, 0.4);
  transform: translateY(120%);
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0;
}

.mobile-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.text-gradient {
  background: linear-gradient(125deg, var(--teal-dark) 0%, var(--teal) 38%, #5ec4b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient--gold {
  background: linear-gradient(120deg, var(--teal-dark) 0%, var(--teal) 50%, #5ec4b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.65em) rotate(1.2deg);
  filter: blur(4px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out),
    filter 0.65s var(--ease-out);
}

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

[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
  will-change: transform;
}

[data-spotlight] {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  overflow: hidden;
}

[data-spotlight]::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: radial-gradient(420px circle at var(--spot-x) var(--spot-y), rgba(15, 118, 110, 0.14), transparent 45%);
}

[data-spotlight]:hover::before {
  opacity: 1;
}

.gradient-border {
  position: relative;
  padding: 2px;
  border: 0;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg, var(--teal), var(--navy), var(--teal));
  background-size: 200% 200%;
  animation: gradient-border-shift 6s ease infinite;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.price-card-inner {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.55rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
}

.gradient-border .price-card-inner .btn {
  margin-top: auto;
}

@keyframes gradient-border-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.pricing-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.pricing-toggle {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.pricing-toggle-btn {
  border: 0;
  background: transparent;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
}

.pricing-toggle-btn.is-active {
  background: var(--teal);
  color: #fff;
}

.pricing-save {
  font-size: 0.72rem;
  font-weight: 800;
}

.pricing-toggle-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.step--glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.story-scroll {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.steps--glass {
  display: grid;
}

/* Process list — editorial numbered steps */
.process-list {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.process-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.process-list__num {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #9ee8df;
  padding-top: 0.15rem;
}

.process-list h3 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 1.15rem;
}

.process-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  max-width: 36rem;
}

/* Light background variant — must follow base rules for specificity */
.process-list--on-light,
.hub-section .process-list {
  border-top-color: rgba(35, 43, 56, 0.14);
}

.process-list--on-light li,
.hub-section .process-list li {
  border-bottom-color: rgba(35, 43, 56, 0.14);
}

.process-list--on-light .process-list__num,
.hub-section .process-list .process-list__num {
  color: var(--teal);
}

.process-list--on-light h3,
.hub-section .process-list h3 {
  color: var(--charcoal);
}

.process-list--on-light p,
.hub-section .process-list p {
  color: var(--text-muted);
}

[data-theme="dark"] .process-list--on-light,
[data-theme="dark"] .hub-section .process-list {
  border-top-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .process-list--on-light li,
[data-theme="dark"] .hub-section .process-list li {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .process-list--on-light h3,
[data-theme="dark"] .hub-section .process-list h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .process-list--on-light p,
[data-theme="dark"] .hub-section .process-list p {
  color: rgba(241, 245, 249, 0.72);
}

[data-theme="dark"] .process-list--on-light .process-list__num,
[data-theme="dark"] .hub-section .process-list .process-list__num {
  color: #9ee8df;
}

.story-sticky {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1.25rem 0;
}

.story-step-label {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7fd4cb;
}

.story-title {
  color: #fff;
  margin-bottom: 0.5rem;
}

.story-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  max-width: 22rem;
}

.story-panels {
  display: grid;
  gap: 1.25rem;
}

.story-panel {
  min-height: 42vh;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.45;
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
}

.story-panel.is-active {
  opacity: 1;
  transform: none;
  border-color: rgba(127, 212, 203, 0.45);
}

.story-panel .device--browser {
  max-width: 100%;
}

.story-panel img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  object-position: top center;
  border-radius: 12px;
  background: #111;
}

.lightbox-trigger {
  cursor: zoom-in;
  position: relative;
}

.lightbox-trigger::after {
  content: "";
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E")
    center / 1.15rem no-repeat,
    rgba(18, 22, 29, 0.72);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(4px) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out);
  pointer-events: none;
  z-index: 4;
}

.lightbox-trigger:hover::after,
.lightbox-trigger:focus-visible::after {
  opacity: 1;
  transform: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 16, 0.88);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  cursor: zoom-out;
}

.lightbox__chrome {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox__counter {
  margin: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.lightbox__close {
  pointer-events: auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.04);
}

.lightbox__stage {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: min(1280px, 94vw);
  max-height: min(86vh, 900px);
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.35s var(--ease-out);
}

.lightbox.is-open .lightbox__stage {
  transform: none;
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 820px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  background: #0f131a;
  transform-origin: center center;
  transition: transform 0.15s ease;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__img.is-zoomed {
  cursor: grabbing;
}

.lightbox__caption {
  margin: 0;
  max-width: 40rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 600;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__nav--prev {
  left: clamp(0.5rem, 2vw, 1.5rem);
}

.lightbox__nav--next {
  right: clamp(0.5rem, 2vw, 1.5rem);
}

.lightbox__hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .lightbox__nav {
    display: none;
  }

  .lightbox__hint {
    display: none;
  }

  .lightbox-trigger::after {
    opacity: 0.9;
    transform: none;
  }
}

.testimonial-carousel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-track {
  position: relative;
  min-height: 9rem;
}

.testimonial-slide {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.testimonial-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: relative;
}

.testimonial-slide p {
  font-size: 1.12rem;
  line-height: 1.45;
  margin: 0 0 0.75rem;
}

.testimonial-slide footer {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.testimonial-dots {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
}

.testimonial-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.testimonial-dots button.is-active {
  width: 22px;
  background: #7fd4cb;
}

.accordion-trigger {
  align-items: center;
}

.accordion-chevron {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -0.15rem;
}

.accordion-item.is-open .accordion-chevron {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 1.15rem;
  transition: grid-template-rows 0.3s ease, padding 0.3s ease;
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
  padding: 0 1.15rem 1.05rem;
}

.accordion-panel[hidden] {
  display: none;
}

.accordion-panel-inner {
  overflow: hidden;
}

.accordion-panel-inner p {
  margin: 0;
  color: var(--text-muted);
}

.field-float {
  position: relative;
  margin-bottom: 1rem;
}

.field-float input,
.field-float textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.05rem 0.9rem 0.55rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.field-float textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.field-float-label {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
  transition: transform 0.18s ease, font-size 0.18s ease, color 0.18s ease;
}

.field-float input:focus,
.field-float textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.28);
  border-color: var(--teal);
}

.field-float input:focus + .field-float-label,
.field-float textarea:focus + .field-float-label,
.field-float input:not(:placeholder-shown) + .field-float-label,
.field-float textarea:not(:placeholder-shown) + .field-float-label {
  transform: translateY(-0.55rem);
  font-size: 0.72rem;
  color: var(--teal);
}

.hero-grid--asymmetric {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.25rem 2.5rem;
  align-items: center;
}

.hero-brand--overlap {
  position: relative;
  z-index: 2;
  margin-left: clamp(-2rem, -4vw, -0.5rem);
  transform: translateX(clamp(0px, 2vw, 24px));
}

.hero-illustration-frame {
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(13, 122, 113, 0.08);
}

.hero-illustration-frame::after {
  content: "";
  position: absolute;
  inset: auto -8% -12% 8%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(13, 122, 113, 0.18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Case photo gallery — phone mockups */
.case-photos {
  display: grid;
  grid-template-columns: 1.35fr 0.82fr 0.82fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  align-items: center;
}

.case-photo {
  position: relative;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.case-photo .device--tablet {
  --device-w: 100%;
}

.case-photo .device--phone {
  --device-w: min(190px, 100%);
}

.case-photo:nth-child(2) .device--phone,
.case-photo:nth-child(3) .device--phone {
  transform: none;
}

.case-photo figcaption {
  position: static;
  margin-top: 0.75rem;
  padding: 0;
  background: none;
  color: var(--text-muted);
  text-align: center;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Theme toggle */
.theme-toggle {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  color: var(--charcoal);
  transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.theme-toggle:hover {
  border-color: rgba(13, 122, 113, 0.35);
}

.theme-toggle-icon {
  font-size: 1.05rem;
  line-height: 1;
}

[data-theme="dark"] .theme-toggle-icon--sun,
:root:not([data-theme="dark"]) .theme-toggle-icon--moon,
[data-theme="light"] .theme-toggle-icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle-icon--moon {
  display: block;
}

/* Dark mode tokens */
[data-theme="dark"] {
  color-scheme: dark;
  --charcoal: #eef2f6;
  --charcoal-deep: #f8fafc;
  --navy: #d7dde6;
  --navy-deep: #eef2f6;
  --teal-soft: rgba(94, 196, 184, 0.14);
  --teal-glow: rgba(94, 196, 184, 0.22);
  --accent-soft: rgba(94, 196, 184, 0.12);
  --bg: #12161d;
  --bg-alt: #1a212c;
  --bg-warm: #161b22;
  --surface: #1a212c;
  --surface-glass: rgba(26, 33, 44, 0.78);
  --text: #eef2f6;
  --text-muted: #9aa3af;
  --text-soft: #6b7280;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(94, 196, 184, 0.12), 0 20px 50px rgba(15, 118, 110, 0.18);
}

[data-theme="dark"] body {
  background: #12161d;
}

[data-theme="dark"] .pixel-field {
  display: none;
}

[data-theme="dark"] .hero-atmosphere::after {
  background:
    linear-gradient(100deg, rgba(18, 22, 29, 0.94) 0%, rgba(18, 22, 29, 0.82) 40%, rgba(18, 22, 29, 0.45) 75%, rgba(18, 22, 29, 0.72) 100%),
    linear-gradient(180deg, rgba(18, 22, 29, 0.35) 0%, rgba(18, 22, 29, 0.88) 100%);
}

[data-theme="dark"] body::before {
  display: none;
}

[data-theme="dark"] .grain {
  opacity: 0.05;
  mix-blend-mode: soft-light;
}

[data-theme="dark"] .site-header {
  background: rgba(18, 22, 29, 0.82);
}

[data-theme="dark"] .site-header--over-hero:not(.is-scrolled) {
  background: transparent;
}

[data-theme="dark"] .hero-proof {
  background: var(--bg);
}

[data-theme="dark"] .brand-product {
  color: #eef2f6;
}


[data-theme="dark"] .vertical-status {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(15, 20, 28, 0.92);
}

[data-theme="dark"] .nav-links {
  background: rgba(21, 28, 38, 0.92);
}

[data-theme="dark"] .section--surface {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  border-top-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .section-label {
  background: var(--surface);
  color: #9ee8df;
}

[data-theme="dark"] .lead-form,
[data-theme="dark"] .pain-card,
[data-theme="dark"] .bento-card,
[data-theme="dark"] .price-card,
[data-theme="dark"] .vertical-card,
[data-theme="dark"] .compare-table-wrap,
[data-theme="dark"] .case-bars {
  background: var(--surface);
}

[data-theme="dark"] .marquee-section {
  background: linear-gradient(90deg, var(--bg) 0%, var(--surface) 50%, var(--bg) 100%);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] .logo-name {
  color: var(--text);
}

@media (max-width: 960px) {
  .case-photos {
    grid-template-columns: 1fr 1fr;
    max-width: min(100%, 560px);
    margin-inline: auto;
  }

  .case-photo--tablet {
    grid-column: 1 / -1;
  }

  .case-photo:nth-child(2) .device--phone {
    transform: none;
  }

  .hero-device-stack .device--phone.hero-phone-float {
    --device-w: min(100px, 24vw);
    right: 2%;
    bottom: -4%;
  }

  .case-photo--hero {
    grid-row: span 1;
  }

  .hero-grid--asymmetric,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .steps,
  .pain-grid,
  .price-grid,
  .case-grid,
  .cta-grid,
  .platform-split,
  .apps-grid,
  .app-showcase,
  .bento-grid,
  .vertical-grid {
    grid-template-columns: 1fr;
  }

  .verticals-scene img {
    height: 200px;
  }

  .bento-card--hero,
  .bento-card--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .app-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .app-tab {
    width: auto;
    flex: 1 1 calc(50% - 0.5rem);
  }

  .app-tab.is-active {
    transform: none;
  }

  .app-preview {
    min-height: 320px;
  }

  .app-panel,
  .app-panel:has(.device--phone) {
    grid-template-columns: 1fr;
  }

  .app-panel:has(.device--phone) .apps-preview-phone {
    justify-self: center;
  }

  .hero-brand--overlap {
    margin-left: 0;
    transform: none;
  }

  .theme-toggle {
    display: none;
  }

  .float-badge {
    display: none;
  }

  .story-scroll {
    display: none;
  }

  .steps.steps--glass {
    display: grid;
  }

  .mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 6.5rem;
  }

  .pricing-footnote {
    margin-bottom: 1.5rem;
    padding-inline: 0.25rem;
  }

  .price-card-featured,
  .gradient-border {
    transform: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(18, 22, 29, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 11px;
    z-index: 80;
  }

  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    margin: 3.5px 0;
    background: #fff !important;
    border-radius: 999px;
  }

  .site-header.is-scrolled .nav-toggle {
    background: #232b38;
    border-color: rgba(255, 255, 255, 0.12);
  }

  .site-header.is-scrolled .nav-toggle span {
    background: #fff !important;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + 0.35rem);
    left: 0.75rem;
    right: 0.75rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 1rem;
    border-radius: 22px;
    background-color: #0e1218 !important;
    background-image: none !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
    z-index: 90;
    max-height: calc(100dvh - var(--header-h) - 1.5rem);
    overflow: auto;
  }

  .site-nav.is-open {
    display: flex !important;
    animation: rb-nav-in 0.28s var(--ease-out);
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(8, 10, 14, 0.72);
    pointer-events: auto;
  }

  @keyframes rb-nav-in {
    from {
      opacity: 0;
      transform: translateY(-10px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    padding: 0.2rem;
    border: 0;
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: none;
    border-radius: 16px;
    gap: 0.2rem;
  }

  .nav-links a,
  .site-header--over-hero:not(.is-scrolled) .nav-links a,
  .site-header--over-hero:not(.is-scrolled) .site-nav.is-open .nav-links a {
    padding: 0.95rem 1rem;
    border-bottom: 0;
    border-radius: 12px;
    color: #eef2f6 !important;
    text-transform: none;
    letter-spacing: -0.01em;
    font-size: 1.02rem;
    font-weight: 650;
    background: transparent;
  }

  .nav-links a:hover,
  .nav-links a.is-active,
  .site-header--over-hero:not(.is-scrolled) .nav-links a:hover,
  .site-header--over-hero:not(.is-scrolled) .nav-links a.is-active {
    background: rgba(15, 118, 110, 0.28) !important;
    color: #9ee8df !important;
  }

  .site-nav .btn-nav {
    margin-top: 0.15rem;
    width: 100%;
    border-bottom: 0;
    min-height: 50px;
  }

  .nav-pill,
  .site-header--over-hero:not(.is-scrolled) .nav-pill {
    margin-top: 0;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #eef2f6 !important;
    width: 100%;
  }

  .nav-pill:hover {
    color: #9ee8df !important;
    border-color: rgba(158, 232, 223, 0.4) !important;
  }

  .site-nav .theme-toggle,
  .site-header--over-hero:not(.is-scrolled) .theme-toggle {
    align-self: center;
    margin-top: 0.15rem;
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #eef2f6 !important;
  }

  .site-header--over-hero:not(.is-scrolled) .site-nav.is-open {
    background: #12161d !important;
  }

  .hero--cinema {
    min-height: 100svh;
    min-height: 100dvh;
    height: 100svh;
    height: 100dvh;
    padding: calc(var(--header-h) + 1.25rem) 0 2rem;
    align-items: center;
  }

  .hero--cinema h1 {
    font-size: clamp(1.75rem, 7.2vw, 2.55rem);
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .logo-sub {
    display: none;
  }

  .process-list li {
    grid-template-columns: 4rem 1fr;
    gap: 0.75rem;
  }

  .apps-preview-phone {
    --device-w: min(200px, 56vw);
  }

  .device--tablet {
    --device-w: min(100%, 520px);
  }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

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

  .reveal,
  .reveal-word {
    filter: none !important;
  }

  .btn,
  .pain-card,
  .aurora-blob,
  .marquee-track,
  .float-badge,
  .bar-fill,
  .flow-path--main,
  .flow-path--energy,
  .flow-node-halo,
  .flow-packet {
    animation: none !important;
    transition: none !important;
  }

  .flow-path--main {
    stroke-dashoffset: 0;
  }

  .flow-path--shadow,
  .flow-path--energy {
    opacity: 1;
  }

  .flow-packets {
    display: none;
  }

  .bar-fill {
    width: calc(var(--target-width, 100) * 1%) !important;
  }
}
