/* ==========================================================================
   Listee — Directory & Listing WordPress Theme
   Product landing page stylesheet
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Base & typography
   3.  Layout primitives
   4.  Buttons & chips
   5.  Header & navigation
   6.  Hero
   7.  Browser / device frames
   8.  Cards & grids
   9.  Section-specific blocks
   10. Footer & utilities
   11. Motion
   12. Responsive
   ========================================================================== */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  /* Brand — sampled from the Listee theme itself */
  --c-brand: #c10037;
  --c-brand-dark: #a30030;
  --c-brand-soft: #fceef2;
  --c-brand-line: #f4d3dc;

  --c-navy: #0d233e;
  --c-navy-2: #16324f;
  --c-slate: #374b5c;

  --c-ink: #12233a;
  --c-body: #5b6b7d;
  --c-muted: #8b98a7;

  --c-surface: #ffffff;
  --c-bg: #f6f8fb;
  --c-bg-warm: #fbfcfe;
  --c-line: #e6eaf1;
  --c-line-soft: #eff2f7;

  --c-star: #f5a623;
  --c-ok: #0f9d58;

  /* Type */
  --font-sans: "Encode Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-eyebrow: 0.75rem;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: 1.0625rem;
  --fs-h4: 1.125rem;
  --fs-h3: 1.375rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 2.1vw, 2.75rem);
  --fs-h1: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  --fs-display: clamp(2.25rem, 1.1rem + 4.4vw, 4rem);

  --lh-tight: 1.14;
  --lh-snug: 1.3;
  --lh-body: 1.7;

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3rem;
  --sp-9: 4rem;
  --sp-10: 5rem;
  --section-y: clamp(4rem, 2rem + 6vw, 7rem);

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(13, 35, 62, 0.06);
  --shadow-sm: 0 2px 8px rgba(13, 35, 62, 0.06);
  --shadow-md: 0 10px 30px rgba(13, 35, 62, 0.08);
  --shadow-lg: 0 24px 60px rgba(13, 35, 62, 0.12);
  --shadow-brand: 0 12px 28px rgba(193, 0, 55, 0.24);

  --container: 1200px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.28s;
}

/* ==========================================================================
   2. Base & typography
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-surface);
  color: var(--c-body);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  color: var(--c-ink);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

p {
  margin: 0;
}

a {
  color: var(--c-brand);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--c-brand-dark);
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

strong {
  color: var(--c-ink);
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--c-brand);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection {
  background: var(--c-brand);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  z-index: 200;
  transform: translateX(-50%);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--c-brand);
  color: #fff;
  font-weight: 600;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.4rem + 2vw, 2rem);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tint {
  background: var(--c-bg);
}

.section--warm {
  background: var(--c-bg-warm);
  border-block: 1px solid var(--c-line-soft);
}

.section--dark {
  background: var(--c-navy);
  color: #b9c6d6;
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section-head {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 1.5rem + 2.5vw, 4rem);
  text-align: center;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.section-head p {
  margin-top: var(--sp-4);
  font-size: var(--fs-lead);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--sp-4);
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--c-brand-line);
  border-radius: var(--r-pill);
  background: var(--c-brand-soft);
  color: var(--c-brand);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
}

.eyebrow--onDark {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #ffb3c6;
}

.eyebrow .hex {
  width: 10px;
  height: 11px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.75;
}

.grid {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.2vw, 1.75rem);
}

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

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

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

/* ==========================================================================
   4. Buttons & chips
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

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

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

.btn svg {
  flex: none;
}

.btn--primary {
  background: var(--c-brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
  background: var(--c-brand-dark);
  color: #fff;
}

.btn--outline {
  border-color: var(--c-line);
  background: var(--c-surface);
  color: var(--c-ink);
  box-shadow: var(--shadow-xs);
}

.btn--outline:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
}

.btn--ghostLight {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

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

.btn--white {
  background: #fff;
  color: var(--c-navy);
}

.btn--white:hover {
  background: #fff;
  color: var(--c-brand);
}

.btn--lg {
  padding: 1.0625rem 2rem;
  font-size: 1rem;
  border-radius: var(--r-lg);
}

.btn--sm {
  padding: 0.625rem 1.125rem;
  font-size: 0.8125rem;
}

.btn--block {
  width: 100%;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.4375rem 0.875rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-slate);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.chip svg {
  color: var(--c-brand);
  flex: none;
}

/* ==========================================================================
   5. Header & navigation
   ========================================================================== */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

/* The frosted background lives on a pseudo-element, NOT on .header itself.
   backdrop-filter makes an element the containing block for its fixed-position
   descendants — putting it on .header would trap the mobile drawer inside the
   header's 68px box instead of the viewport. Keep this separation. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: background-color var(--dur) var(--ease);
}

.header.is-stuck::before {
  background: rgba(255, 255, 255, 0.97);
}

.header.is-stuck {
  border-bottom-color: var(--c-line);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--c-ink);
  font-size: 1.3125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex: none;
}

.brand:hover {
  color: var(--c-ink);
}

.brand__mark {
  width: 34px;
  height: 38px;
  flex: none;
}

.brand__sub {
  display: block;
  color: var(--c-muted);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 3px;
}

.nav {
  margin-left: auto;
}

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

.nav__link {
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: var(--r-sm);
  color: var(--c-slate);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  background: var(--c-brand-soft);
  color: var(--c-brand);
}

.nav__cta {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-ink);
  cursor: pointer;
  place-items: center;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 13px;
}

.nav-toggle__bars::before {
  transform: translateY(-6px);
}

.nav-toggle__bars::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(13, 35, 62, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

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

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 1rem + 5vw, 5.5rem));
  padding-bottom: clamp(3rem, 1.5rem + 5vw, 6rem);
  background: linear-gradient(180deg, #fdf7f9 0%, #f7f9fc 46%, #ffffff 100%);
  overflow: hidden;
}

.hero__deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.hero__deco--1 {
  top: 8%;
  left: -90px;
  width: 260px;
  color: var(--c-brand-line);
}

.hero__deco--2 {
  right: -60px;
  bottom: -40px;
  width: 220px;
  color: #dde5ef;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

.hero h1 .accent {
  color: var(--c-brand);
}

.hero__lead {
  margin-top: var(--sp-5);
  max-width: 34rem;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.72;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: var(--sp-7);
}

.hero__note {
  margin-top: var(--sp-4);
  color: var(--c-muted);
  font-size: var(--fs-small);
}

.hero__chips {
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-line);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: clamp(3rem, 2rem + 2vw, 4.5rem);
  padding: var(--sp-6) var(--sp-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.stat {
  text-align: center;
  padding-inline: 0.5rem;
  border-left: 1px solid var(--c-line-soft);
}

.stat:first-child {
  border-left: 0;
}

.stat__num {
  display: block;
  color: var(--c-ink);
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  display: block;
  margin-top: 0.25rem;
  color: var(--c-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ==========================================================================
   7. Browser / device frames
   ========================================================================== */

.frame {
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.frame__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--c-line-soft);
  background: #f4f6fa;
}

.frame__dots {
  display: flex;
  gap: 0.3125rem;
  flex: none;
}

.frame__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9dfe8;
}

.frame__dots i:first-child {
  background: #f2b8c2;
}

.frame__url {
  flex: 1;
  min-width: 0;
  padding: 0.25rem 0.625rem;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 0.6875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame__shot {
  display: block;
  width: 100%;
  background: var(--c-bg);
}

.hero__visual {
  position: relative;
}

.hero__visual .frame {
  position: relative;
  z-index: 2;
}

.hero__float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6875rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
}

.hero__float--a {
  left: -18px;
  bottom: 12%;
}

.hero__float--b {
  right: -14px;
  top: 14%;
}

.hero__float .hexicon {
  width: 34px;
  height: 38px;
  flex: none;
}

.hero__float b {
  display: block;
  color: var(--c-ink);
  font-size: 0.875rem;
  line-height: 1.25;
}

.hero__float span {
  display: flex;
  color: var(--c-muted);
  font-size: 0.75rem;
  line-height: 1.3;
  justify-content: center;
  align-items: center;
}

.hexicon {
  display: grid;
  place-items: center;
  background: var(--c-brand-soft);
  color: var(--c-brand);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.hexicon--brand {
  background: var(--c-brand);
  color: #fff;
}

.hexicon--navy {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Device mockups */

.devices {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.05fr);
  gap: clamp(1rem, 0.5rem + 2vw, 2.25rem);
  align-items: end;
}

.device {
  position: relative;
}

.device--desktop .device__screen {
  border: 10px solid var(--c-navy);
  border-radius: 16px;
  overflow: hidden;
  background: var(--c-navy);
  box-shadow: var(--shadow-lg);
}

.device--desktop::after {
  content: "";
  display: block;
  width: 26%;
  height: 12px;
  margin: 0 auto;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #16324f, #0d233e);
}

.device--phone .device__screen {
  border: 8px solid var(--c-navy);
  border-radius: 30px;
  overflow: hidden;
  background: var(--c-navy);
  box-shadow: var(--shadow-lg);
}

.device__screen img {
  width: 100%;
  display: block;
}

.device__label {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--c-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   8. Cards & grids
   ========================================================================== */

.card {
  padding: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--c-brand-line);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}

.card p {
  font-size: 0.9375rem;
  line-height: 1.68;
}

.card__icon {
  width: 46px;
  height: 51px;
  margin-bottom: var(--sp-4);
}

/* Use-case card */

.usecase {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.375rem 1.25rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  color: var(--c-body);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.usecase:hover {
  transform: translateY(-4px);
  border-color: var(--c-brand-line);
  box-shadow: var(--shadow-md);
  color: var(--c-body);
}

.usecase__icon {
  width: 38px;
  height: 42px;
}

.usecase b {
  color: var(--c-ink);
  font-size: 0.9375rem;
  font-weight: 700;
}

.usecase span {
  font-size: 0.8125rem;
  line-height: 1.55;
}

/* Demo card */

.demo {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.demo:hover {
  transform: translateY(-5px);
  border-color: var(--c-brand-line);
  box-shadow: var(--shadow-md);
}

.demo__thumb {
  position: relative;
  display: block;
  aspect-ratio: 1440 / 940;
  overflow: hidden;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line-soft);
}

.demo__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}

.demo:hover .demo__thumb img {
  transform: scale(1.035);
}

.demo__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(13, 35, 62, 0.55);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.demo:hover .demo__overlay,
.demo__thumb:focus-visible .demo__overlay {
  opacity: 1;
}

.demo__overlay span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.25rem;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--c-navy);
  font-size: 0.875rem;
  font-weight: 700;
}

.demo__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.125rem;
}

.demo__body h3 {
  font-size: 1rem;
  margin-bottom: 0.125rem;
}

.demo__body span {
  color: var(--c-muted);
  font-size: 0.8125rem;
}

.demo__link {
  flex: none;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.demo__link::after {
  content: " \2192";
}

/* Checklist */

.checklist {
  display: grid;
  gap: 0.875rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.checklist svg {
  flex: none;
  margin-top: 2px;
  color: var(--c-brand);
}

.checklist--onDark li {
  color: #b9c6d6;
}

.checklist--onDark svg {
  color: #ff8fa9;
}

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

/* ==========================================================================
   9. Section-specific blocks
   ========================================================================== */

/* Marquee-free logo/compat strip */

.compat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.compat__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-slate);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}

.compat__item svg {
  color: var(--c-brand);
  flex: none;
}

/* Workflow */

.flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.flow__step {
  position: relative;
  padding: 1.5rem 1rem 1.25rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-xs);
  text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.flow__step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.flow__num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 38px;
  margin-bottom: 0.75rem;
  background: var(--c-brand);
  color: #fff;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  font-size: 0.875rem;
  font-weight: 800;
}

.flow__step h3 {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.flow__step p {
  font-size: 0.8125rem;
  line-height: 1.55;
}

/* Split media panels */

.split__media {
  position: relative;
}

.split__content h2 {
  margin-bottom: var(--sp-4);
}

.split__content .lead {
  margin-bottom: var(--sp-6);
}

.panel-badge {
  position: absolute;
  z-index: 3;
  right: -12px;
  bottom: -16px;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.8125rem 1.0625rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.panel-badge b {
  display: block;
  color: var(--c-ink);
  font-size: 0.9375rem;
  line-height: 1.2;
}

.panel-badge span {
  display: flex;
  color: #fff;
  font-size: 0.75rem;
  justify-content: center;
  align-items: center;
}

/* UI gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.875rem, 0.5rem + 1vw, 1.5rem);
}

.gallery__item {
  position: relative;
  display: block;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top center;
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item--tall img {
  aspect-ratio: 16 / 23;
}

.gallery__cap {
  padding: 1rem 1rem;
  border-top: 1px solid var(--c-line-soft);
  color: var(--c-slate);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
}

/* Trust cards */

.trust {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
}

.trust__icon {
  width: 42px;
  height: 47px;
  flex: none;
}

.trust h3 {
  font-size: 1rem;
  margin-bottom: 0.375rem;
}

.trust p {
  font-size: 0.875rem;
  line-height: 1.62;
  color: #a8b8ca;
}

/* Final CTA */

.cta {
  position: relative;
  padding: clamp(3rem, 2rem + 4vw, 5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #0d233e 0%, #1b2f4d 52%, #7a0526 100%);
  color: #c3cfdd;
  text-align: center;
  overflow: hidden;
}

.cta__hexes {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.16;
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}

.cta h2 {
  color: #fff;
  margin-bottom: var(--sp-4);
}

.cta p {
  font-size: var(--fs-lead);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin-top: var(--sp-7);
}

.cta__meta {
  margin-top: var(--sp-5);
  color: #93a4b8;
  font-size: var(--fs-small);
}

/* ==========================================================================
   10. Footer & utilities
   ========================================================================== */

.footer {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  background: var(--c-navy);
  color: #93a4b8;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.footer .brand {
  color: #fff;
}

.footer .brand:hover {
  color: #fff;
}

.footer__about p {
  margin-top: var(--sp-4);
  max-width: 30rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer h4 {
  margin-bottom: var(--sp-4);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer__links {
  display: grid;
  gap: 0.6875rem;
}

.footer__links a {
  color: #93a4b8;
  font-size: 0.9375rem;
}

.footer__links a:hover {
  color: #fff;
}

.footer__cta {
  margin-top: var(--sp-6);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer__bottom a {
  color: #93a4b8;
}

.footer__bottom a:hover {
  color: #fff;
}

.to-top {
  position: fixed;
  right: clamp(1rem, 0.5rem + 1vw, 1.75rem);
  bottom: clamp(1rem, 0.5rem + 1vw, 1.75rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: #fff;
  color: var(--c-brand);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease), background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--c-brand);
  color: #fff;
  border: 1px solid var(--c-brand);
}

/* ==========================================================================
   11. Motion
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

.reveal[data-delay="1"] {
  transition-delay: 0.07s;
}

.reveal[data-delay="2"] {
  transition-delay: 0.14s;
}

.reveal[data-delay="3"] {
  transition-delay: 0.21s;
}

.reveal[data-delay="4"] {
  transition-delay: 0.28s;
}

.reveal[data-delay="5"] {
  transition-delay: 0.35s;
}

/* No-JS and reduced-motion safety: content must never stay hidden. */

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

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .card:hover,
  .demo:hover,
  .usecase:hover,
  .flow__step:hover,
  .gallery__item:hover {
    transform: none;
  }
}

/* ==========================================================================
   12. Responsive
   ========================================================================== */

@media (max-width: 1280px) {
  .hero__float--a {
    left: 0;
  }

  .hero__float--b {
    right: 0;
  }
}

@media (max-width: 1080px) {
  .nav__link {
    padding-inline: 0.625rem;
    font-size: 0.875rem;
  }

  .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  /* Header collapses into a drawer */
  .nav-toggle {
    display: grid;
    position: absolute;
    right: 20px;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 99;
    width: min(340px, 86vw);
    margin: 0;
    padding: calc(var(--header-h) + 1.25rem) 1.25rem 1.5rem;
    background: #fff;
    border-left: 1px solid var(--c-line);
    box-shadow: -20px 0 60px rgba(13, 35, 62, 0.16);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.32s var(--ease), visibility 0.32s var(--ease);
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav__link {
    padding: 0.8125rem 0.875rem;
    font-size: 1rem;
    border-radius: var(--r-md);
  }

  .nav__cta {
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--c-line);
  }

  .nav__cta .btn {
    width: 100%;
  }

  .header__actions {
    display: none;
  }

  /* Layout stacking */
  .hero__inner,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--reverse .split__media {
    order: 0;
  }

  .hero__visual {
    order: -1;
  }

  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-5) var(--sp-4);
  }

  .stat:nth-child(odd) {
    border-left: 0;
  }

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

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

  .gallery__item--tall {
    grid-row: auto;
  }

  .gallery__item--tall img {
    aspect-ratio: 16 / 11;
  }

  .devices {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .device--phone {
    width: min(230px, 60%);
  }

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

  .footer__about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .hero__float {
    display: none;
  }

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

  .grid--2,
  .grid--3,
  .grid--4,
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .checklist--cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__cta .btn,
  .cta__actions .btn {
    width: 100%;
  }

  .demo__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .panel-badge {
    right: 0;
    bottom: -12px;
    padding: 0.625rem 0.875rem;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 400px) {
  .hero__stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat {
    border-left: 0;
  }

  .flow {
    grid-template-columns: minmax(0, 1fr);
  }
}
