/* Flexicore Landing */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--fg-default);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ------- Layout helpers ------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--terracotta-600);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--fg-default);
}

.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 56ch;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 240ms var(--ease-default), border-color 240ms, box-shadow 240ms, padding 240ms;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-default);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg-default);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--coffee-800);
  display: grid;
  place-items: center;
  color: #FAF7F2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-name b {
  color: var(--terracotta-600);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 160ms, background 160ms;
}

.nav-links a:hover {
  color: var(--fg-default);
  background: var(--bg-hover);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 140ms, border 140ms, color 140ms, transform 80ms;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--coffee-800);
  color: #FAF7F2;
}

.btn-primary:hover {
  background: var(--coffee-900);
}

.btn-secondary {
  background: transparent;
  color: var(--fg-default);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-hover);
}

.btn-brand {
  background: var(--terracotta-600);
  color: #fff;
}

.btn-brand:hover {
  background: var(--terracotta-700);
}

.btn-lg {
  height: 50px;
  padding: 0 22px;
  font-size: 15px;
}

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

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--border-default);
  background: var(--surface);
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 28px;
}

.hero-eyebrow-row .pill {
  background: var(--terracotta-50);
  color: var(--terracotta-700);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  color: var(--terracotta-600);
  position: relative;
  white-space: nowrap;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 12px;
  background: var(--terracotta-100);
  z-index: -1;
  border-radius: 2px;
}

.hero p.lede {
  font-size: 20px;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border-default);
  flex-wrap: wrap;
}

.hero-meta .stat .v {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--fg-default);
  line-height: 1;
}

.hero-meta .stat .v sup {
  font-size: 18px;
  color: var(--terracotta-600);
}

.hero-meta .stat .l {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  margin-top: 6px;
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: 20px;
  background: var(--coffee-800);
  overflow: visible;
  /* allow cards to bleed outside */
  box-shadow: var(--shadow-lg);
}

/* Image wrapper clips the photo + gradient to the rounded container */
.hero-img-wrap {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  pointer-events: none;
}

.hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(217, 96, 59, 0.35), transparent 55%),
    linear-gradient(180deg, transparent 40%, rgba(26, 21, 12, 0.65));
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

/* Floating mini-cards in hero */
.hero-card {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.hero-card.c1 {
  top: 38px;
  left: -32px;
  width: 248px;
}

.hero-card.c2 {
  bottom: 36px;
  right: -36px;
  width: 268px;
  animation-delay: -3s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hc-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 8px;
}

.hc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0;
  font-size: 13px;
}

.hc-row .sku {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}

.hc-row .qty {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  display: inline-block;
}

.dot.sage {
  background: var(--sage-500);
}

.dot.amber {
  background: var(--amber-500);
}

.dot.brand {
  background: var(--terracotta-500);
}

.dot.slate {
  background: var(--slate-500);
}

.dot.slateblue {
  background: var(--slateblue-500);
}

.dot.coffee {
  background: var(--coffee-500);
}

.bar-wrap {
  display: flex;
  gap: 4px;
  height: 36px;
  align-items: flex-end;
  margin-top: 8px;
}

.bar-wrap .bar {
  flex: 1;
  background: var(--terracotta-300);
  border-radius: 2px;
}

.bar-wrap .bar.h {
  background: var(--terracotta-600);
}

/* Hero card total row */
.hc-row.hc-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border-default);
  font-weight: 600;
}

.hc-row.hc-total .qty {
  color: var(--terracotta-600);
}

/* Fleet mock card */
.hero-card .bar-wrap {
  width: 90px;
}

.hc-fleet-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.hc-fleet-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hc-fleet-sub {
  color: var(--terracotta-600);
  font-size: 18px;
}

.hc-fleet-label {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

.hero-card .bar-wrap .bar:nth-child(1) {
  height: 30%;
}

.hero-card .bar-wrap .bar:nth-child(2) {
  height: 55%;
}

.hero-card .bar-wrap .bar:nth-child(3) {
  height: 80%;
}

.hero-card .bar-wrap .bar:nth-child(4) {
  height: 60%;
}

.hero-card .bar-wrap .bar:nth-child(5) {
  height: 95%;
}

.hero-card .bar-wrap .bar:nth-child(6) {
  height: 70%;
}

.hero-card .bar-wrap .bar:nth-child(7) {
  height: 85%;
}

/* Marquee logos */
.logos {
  padding: 36px 0 0;
  margin-top: 20px;
}

.logos-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 22px;
}

.logos-row {
  display: flex;
  gap: 56px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0.75;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--coffee-700);
}

.logo-text.serif {
  font-style: italic;
}

.logo-text.bold {
  font-weight: 700;
}

/* ============ SECTION DEFAULTS ============ */
section {
  position: relative;
}

.section-pad {
  padding: 110px 0;
}

.section-pad-sm {
  padding: 80px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.nav-links a.active {
  color: var(--fg-default);
  background: var(--bg-hover);
}

.accent {
  font-style: normal;
  color: var(--terracotta-600);
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 54px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 14px 0 18px;
}

.section-head p {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 60ch;
  margin: 0;
}

/* ============ STORY / ABOUT ============ */
.story {
  background: var(--paper);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-art {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: var(--coffee-100);
  border: 1px solid var(--border-default);
}

.story-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-art .stamp {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-md);
}

.bullet-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.bullet-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 16px;
  color: var(--fg-default);
}

.bullet-list li:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.bullet-list .check {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--terracotta-50);
  color: var(--terracotta-700);
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.bullet-list .check svg {
  width: 12px;
  height: 12px;
}

.story-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 760px;
}

.story-lede {
  font-size: 18px;
  color: var(--fg-muted);
  margin-top: 24px;
  max-width: 54ch;
}

/* ============ SOLUTIONS ============ */
.solutions {
  background: var(--canvas);
}

.sol-tabs {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: stretch;
}

.sol-tablist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.sol-tab {
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  padding: 18px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: background 160ms, border 160ms;
}

.sol-tab:hover {
  background: var(--bg-hover);
}

.sol-tab.active {
  background: var(--paper);
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
}

.sol-tab .idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-subtle);
  width: 30px;
}

.sol-tab .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--fg-default);
}

.sol-tab .arrow {
  margin-left: auto;
  opacity: 0;
  transition: opacity 140ms, transform 140ms;
  color: var(--terracotta-600);
}

.sol-tab.active .arrow {
  opacity: 1;
  transform: translateX(2px);
}

.sol-panel {
  background: var(--paper);
  border: 1px solid var(--border-default);
  border-radius: 18px;
  overflow: visible;
  display: none;
}

.sol-panel.active {
  display: block;
  animation: fadeUp 360ms var(--ease-default);
}

.sol-panel-head {
  padding: 36px 40px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.sol-panel-head .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--terracotta-700);
  background: var(--terracotta-50);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.sol-panel-head h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 14px;
}

.sol-panel-head p {
  font-size: 16px;
  color: var(--fg-muted);
  max-width: 60ch;
  margin: 0;
}

.sol-panel-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.sol-panel-body:has(.sol-features:only-child) {
  grid-template-columns: 1fr;
}

.sol-panel-body:has(.sol-features:only-child) .sol-features {
  border-right: 0;
}

.sol-features {
  padding: 28px 40px 36px;
  border-right: 1px solid var(--border-subtle);
  border-bottom-left-radius: 17px;
}

.sol-features h4 {
  font-size: 11px;
  color: var(--fg-subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sol-features ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sol-features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 14px;
  color: var(--fg-default);
}

.sol-features li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--terracotta-500);
  margin-top: 8px;
}

.sol-visual {
  padding: 32px 40px;
  background: var(--coffee-50);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  min-height: 360px;
  border-bottom-right-radius: 17px;
}

.sol-wms-visual {
  position: absolute;
  right: -40px;
  top: 35px;
  width: 350px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.18));
  animation: floatAnim 6s ease-in-out infinite;
  pointer-events: none;
  /* Allows clicks to pass through if necessary */
}

.sol-tms-visual {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 310px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.18));
  animation: floatAnimCenter 6s ease-in-out infinite;
  animation-delay: 1.5s;
  pointer-events: none;
}

.sol-market-visual {
  position: absolute;
  right: -40px;
  top: 35px;
  width: 420px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.18));
  animation: floatAnim 6s ease-in-out infinite;
  animation-delay: 3s;
  /* Staggers the floating effect with WMS and TMS */
  pointer-events: none;
}

.sol-courier-visual {
  position: absolute;
  right: -35px;
  top: 40px;
  width: 380px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.18));
  animation: floatAnim 6s ease-in-out infinite;
  animation-delay: 4.5s;
  /* Staggers the floating effect with WMS, TMS, and Market */
  pointer-events: none;
}

@keyframes floatAnim {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes floatAnimCenter {

  0%,
  100% {
    transform: translateY(-50%);
  }

  50% {
    transform: translateY(calc(-50% - 12px));
  }
}

/* Solution preview mocks */
.mock {
  background: var(--paper);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 14px;
  font-size: 12px;
}

.mock-title {
  font-size: 11px;
  color: var(--fg-subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 13px;
  border-top: 1px solid var(--border-subtle);
}

.mock-row:first-of-type {
  border-top: 0;
}

.mock-row.mt {
  margin-top: 10px;
}

.mock-row .mono {
  font-family: var(--font-mono);
  font-size: 12px;
}

.mock-inset {
  padding: 18px;
}

.value-up {
  color: var(--sage-700);
}

.value-warn {
  color: var(--amber-700);
}

.badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge.sage {
  background: var(--sage-50);
  color: var(--sage-700);
}

.badge.amber {
  background: var(--amber-50);
  color: var(--amber-700);
}

.badge.brand {
  background: var(--terracotta-50);
  color: var(--terracotta-700);
}

.badge.slate {
  background: var(--slate-50);
  color: var(--slate-700);
}

.route-svg {
  width: 100%;
  height: auto;
}

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

.mp-tile {
  background: var(--paper);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-default);
  letter-spacing: -0.01em;
  text-align: center;
  padding: 4px;
}

.mp-tile.tok {
  color: #03AC0E;
}

.mp-tile.shp {
  color: #E11D48;
}

.mp-tile.tik {
  color: #111;
}

.mp-tile.laz {
  color: #0F146D;
}

.mp-tile.shy {
  color: #95BF47;
}

.mp-tile.zal {
  color: #000;
}

.mp-tile.woo {
  color: #7F54B3;
}

.mp-tile.bli {
  color: #0095DA;
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.kpi-card {
  background: var(--paper);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 14px;
}

.kpi-card .v {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--fg-default);
}

.kpi-card .l {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.kpi-card .delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--sage-700);
  margin-top: 6px;
}

/* ============ BENEFITS ============ */
.benefits {
  background: var(--paper);
  border-top: 1px solid var(--border-default);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.benefit {
  padding: 28px;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 160ms;
}

.benefit:hover {
  background: var(--coffee-50);
}

.benefit:nth-child(3n) {
  border-right: 0;
}

.benefit:nth-last-child(-n+3) {
  border-bottom: 0;
}

.benefit .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--terracotta-50);
  color: var(--terracotta-700);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.benefit .icon svg {
  width: 20px;
  height: 20px;
}

.benefit h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.benefit p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ============ FAQ / QUICK ANSWERS ============ */
.faq {
  background: var(--paper);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

.faq-list {
  border-top: 1px solid var(--border-default);
}

.faq-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-default);
  align-items: start;
}

.faq-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--terracotta-600);
  padding-top: 6px;
}

.faq-copy h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.faq-copy p {
  margin: 0;
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-muted);
}

/* ============ STATS BAND ============ */
.stats {
  background: var(--coffee-800);
  color: #FAF7F2;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(217, 96, 59, 0.18), transparent 50%);
}

.stats .container {
  position: relative;
}

.stats-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.stats-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #FAF7F2;
  max-width: 16ch;
}

.stats-head p {
  color: rgba(250, 247, 242, 0.7);
  max-width: 40ch;
  font-size: 16px;
  margin: 0;
}

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

.stat-card {
  border-left: 1px solid rgba(250, 247, 242, 0.15);
  padding: 12px 24px;
}

.stat-card .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 5.5vw, 72px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #FAF7F2;
}

.stat-card .v sup {
  font-size: 0.45em;
  color: var(--terracotta-400);
  font-weight: 600;
  vertical-align: super;
  margin-left: 4px;
  letter-spacing: 0;
}

.stat-card .l {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(250, 247, 242, 0.7);
  line-height: 1.45;
}

/* ============ CASE STUDIES / BLOG PREVIEW ============ */
.cases {
  background: var(--canvas);
}

.cases-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  max-width: none;
  flex-wrap: wrap;
}

.cases-head-copy {
  max-width: 560px;
}

.cases-head .cases-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 54px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 14px 0 0;
}

/* Card as link */
a.case-card--link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

a.case-card--link *,
a.case-card--link *:hover {
  text-decoration: none;
}

a.case-card--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Meta date row */
.case-stats--meta {
  padding-top: 14px;
}

.case-stats--meta .l {
  font-size: 12px;
  color: var(--fg-subtle);
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

/* Skeleton loading cards */
.case-card-skeleton {
  background: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
  min-height: 340px;
  background: linear-gradient(90deg, var(--coffee-100) 25%, var(--coffee-50) 50%, var(--coffee-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-card {
  background: var(--paper);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 220ms var(--ease-default), box-shadow 220ms;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-cover {
  aspect-ratio: 16 / 10;
  position: relative;
  background: var(--coffee-100);
  overflow: hidden;
}

.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-cover .product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(42, 36, 24, 0.85);
  color: #FAF7F2;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.case-body {
  padding: 24px 26px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-body .client {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-subtle);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.case-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.case-body p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0 0 18px;
}

.case-stats {
  display: flex;
  gap: 24px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.case-stats .v {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--terracotta-700);
}

.case-stats .l {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ============ CTA ============ */
.cta {
  padding: 100px 0;
  background: var(--paper);
  border-top: 1px solid var(--border-default);
}

.cta-card {
  background: var(--canvas);
  border: 1px solid var(--border-default);
  border-radius: 24px;
  padding: 64px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 48px;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--terracotta-100), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 14px 0 18px;
  position: relative;
}

.cta-card p {
  font-size: 17px;
  color: var(--fg-muted);
  margin: 0 0 28px;
  position: relative;
  max-width: 44ch;
}

.cta-copy {
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

.cta-side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cta-side .pill {
  background: var(--paper);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 14px;
  color: var(--fg-default);
}

.cta-side .pill .ic {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--terracotta-50);
  color: var(--terracotta-700);
  display: grid;
  place-items: center;
  flex: none;
}

.cta-side .pill .ic svg {
  width: 16px;
  height: 16px;
}

.cta-side .pill .l {
  font-size: 11px;
  color: var(--fg-subtle);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.cta-side .pill .v {
  font-weight: 500;
}

.contact-form {
  position: relative;
  background: var(--paper);
  /*border: 1px solid var(--border-default);*/
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

.field-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field label {
  color: var(--fg-default);
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: var(--canvas);
  color: var(--fg-default);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 140ms, box-shadow 140ms, background 140ms;
}

.field input,
.field select {
  height: 46px;
  padding: 0 13px;
}

.field textarea {
  resize: vertical;
  min-height: 126px;
  padding: 12px 13px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--paper);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(70, 189, 214, 0.18);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--fg-subtle);
}

.contact-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.contact-form-actions .btn {
  flex: none;
}

.contact-msg {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.4;
}

.contact-msg--error {
  color: var(--danger-fg);
}

.contact-success {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--success-border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.contact-success .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--success-bg);
  color: var(--success-fg);
}

.contact-success .ic svg {
  width: 18px;
  height: 18px;
}

.contact-success h3 {
  font-size: 20px;
  margin: 1px 0 6px;
}

.contact-success p {
  margin: 0;
  font-size: 15px;
}

/* ============ FOOTER ============ */
footer {
  background: var(--coffee-900);
  color: rgba(250, 247, 242, 0.7);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.1);
}

.footer-grid h4 {
  color: #FAF7F2;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  padding: 7px 0;
  font-size: 14px;
}

.footer-grid a {
  color: rgba(250, 247, 242, 0.65);
  text-decoration: none;
  transition: color 140ms;
}

.footer-grid a:hover {
  color: #FAF7F2;
}

.footer-about p {
  font-size: 14px;
  max-width: 36ch;
  line-height: 1.6;
  margin: 18px 0 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FAF7F2;
}

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

.footer-brand .brand-name {
  font-size: 22px;
  color: #FAF7F2;
}

.footer-brand .brand-name b {
  color: var(--terracotta-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(250, 247, 242, 0.15);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: rgba(250, 247, 242, 0.65);
  transition: color 140ms, background 140ms, border-color 140ms;
}

.socials a:hover {
  color: #FAF7F2;
  background: rgba(250, 247, 242, 0.06);
  border-color: rgba(250, 247, 242, 0.3);
}

.socials svg {
  width: 16px;
  height: 16px;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 800ms var(--ease-default),
    transform 800ms var(--ease-default);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 {
  transition-delay: 80ms;
}

.reveal.delay-2 {
  transition-delay: 160ms;
}

.reveal.delay-3 {
  transition-delay: 240ms;
}

.reveal.delay-4 {
  transition-delay: 320ms;
}

.reveal.delay-5 {
  transition-delay: 400ms;
}

.reveal.delay-6 {
  transition-delay: 480ms;
}

.reveal.from-left {
  transform: translateX(-40px);
}

.reveal.from-right {
  transform: translateX(40px);
}

.reveal.from-left.in,
.reveal.from-right.in {
  transform: translateX(0);
}

.reveal.scale {
  transform: scale(0.94) translateY(20px);
}

.reveal.scale.in {
  transform: scale(1) translateY(0);
}

/* ── Word-by-word reveal ── */
.aw {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.aw-w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.85em);
  transition:
    opacity 680ms var(--ease-spring),
    transform 680ms var(--ease-spring);
  will-change: opacity, transform;
}

.aw-w.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Auto-stagger grid  [data-stagger] ── */
[data-stagger]>* {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms var(--ease-spring),
    transform 700ms var(--ease-spring);
  will-change: opacity, transform;
}

[data-stagger].in>* {
  opacity: 1;
  transform: translateY(0);
}

/* ── Eyebrow line grow-in ── */
.eyebrow::before {
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 600ms var(--ease-spring);
}

.eyebrow.in::before {
  transform: scaleX(1);
}

/* ── Hero cursor spotlight ── */
.hero {
  --spot-x: 45%;
  --spot-y: 35%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(900px circle at var(--spot-x) var(--spot-y),
      rgba(70, 189, 214, 0.08),
      transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* ── Parallax layer ── */
[data-parallax] {
  will-change: transform;
}

/* ── Card tilt — smooth reset ── */
.case-card,
.hero-card,
.kpi-card {
  transform-style: preserve-3d;
}

/* ── Animated gradient text (stat values) ── */
.grad-num {
  background: linear-gradient(135deg, var(--cyan-600) 0%, var(--slateblue-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* number rolling */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sol-tabs {
    grid-template-columns: 1fr;
  }

  .sol-tablist {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .sol-tablist::-webkit-scrollbar {
    display: none;
  }

  .sol-tab {
    flex: none;
    min-width: 200px;
  }

  .sol-panel {
    overflow: hidden;
    /* Prevent horizontal scroll on mobile */
  }

  .sol-panel-body {
    grid-template-columns: 1fr;
  }

  .sol-features {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
    border-bottom-left-radius: 0;
  }

  .sol-visual {
    border-bottom-left-radius: 17px;
    border-bottom-right-radius: 17px;
    padding: 24px 20px;
    min-height: auto;
  }

  .sol-wms-visual,
  .sol-tms-visual,
  .sol-market-visual,
  .sol-courier-visual {
    position: relative;
    right: auto;
    bottom: auto;
    top: auto;
    margin: 16px 0 0;
    display: block;
    width: 90%;
    max-width: 340px;
    align-self: center;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.12));
    animation: none;
  }

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

  .benefit:nth-child(3n) {
    border-right: 1px solid var(--border-subtle);
  }

  .benefit:nth-child(2n) {
    border-right: 0;
  }

  .benefit:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--border-subtle);
  }

  .benefit:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .faq-item {
    grid-template-columns: 56px 1fr;
    gap: 18px;
  }

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 12px;
  }

  .cta-card {
    grid-template-columns: 1fr;
    padding: 48px 36px;
  }

  .contact-form {
    max-width: 720px;
    width: 100%;
  }

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

@media (max-width: 720px) {
  .container {
    padding: 0 20px;
  }

  .nav-links,
  .nav-cta .btn-secondary {
    display: none;
  }

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

  .hero {
    padding: 110px 0 70px;
  }

  .section-pad {
    padding: 80px 0;
  }

  .hero-card.c1 {
    left: 8px;
    top: 16px;
    width: 200px;
  }

  .hero-card.c2 {
    right: 8px;
    bottom: 16px;
    width: 220px;
  }

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

  .benefit {
    border-right: 0 !important;
    border-bottom: 1px solid var(--border-subtle) !important;
  }

  .benefit:last-child {
    border-bottom: 0 !important;
  }

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

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

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

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

  .cta-card {
    padding: 36px 24px;
    border-radius: 18px;
  }

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

  .contact-form {
    padding: 20px;
  }

  .contact-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .faq-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .faq-index {
    padding-top: 0;
  }

  .hero-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* nav drawer (mobile) */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(26, 21, 12, 0.4);
  z-index: 200;
  display: none;
  animation: fadeUp 200ms var(--ease-default);
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer .panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86%;
  max-width: 360px;
  background: var(--paper);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer a {
  display: block;
  padding: 14px 12px;
  border-radius: 10px;
  color: var(--fg-default);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.mobile-drawer a:hover {
  background: var(--bg-hover);
}

.mobile-drawer .drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.mobile-drawer .close-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-default);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
