:root {
  --orange-50: #fff4ea;
  --orange-100: #ffe2c7;
  --orange-200: #ffc58f;
  --orange-300: #ffa957;
  --orange-400: #ff8c2e;
  --orange-500: #ff7a1a;
  --orange-600: #f0620a;
  --orange-700: #c44a06;
  --orange-800: #8a3305;

  --wine-300: #e0707f;
  --wine-400: #c2404f;
  --wine-500: #9e1f31;
  --wine-600: #7a1426;
  --wine-700: #4f0c19;

  --amber-400: #ffc857;
  --amber-500: #f5b335;

  --green-400: #4ade95;
  --green-500: #22c07a;

  --red-400: #ff7b7b;
  --red-500: #f04848;

  --bg-0: #0d0406;
  --bg-1: #150a0d;
  --bg-2: #1e0f13;
  --bg-3: #2a161c;
  --bg-4: #38202a;
  --line: rgba(255, 226, 210, 0.08);
  --line-strong: rgba(255, 226, 210, 0.16);

  --text-1: #fff5f0;
  --text-2: #dccbc5;
  --text-3: #a8938d;

  --accent-gradient: linear-gradient(135deg, var(--orange-300) 0%, var(--orange-500) 55%, var(--orange-600) 100%);

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-1);
  background-color: var(--bg-0);
  background-image:
    radial-gradient(900px 600px at 85% -10%, rgba(255, 122, 26, 0.18), transparent 60%),
    radial-gradient(800px 700px at -10% 20%, rgba(158, 31, 49, 0.35), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  height: 52px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.2s, border-color 0.2s;
}

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

.btn--sm {
  height: 44px;
  padding: 0 var(--space-3);
  font-size: 15px;
}

.btn--primary {
  color: #1e0a06;
  background: var(--accent-gradient);
  box-shadow:
    0 8px 24px -8px rgba(255, 122, 26, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 36px -8px rgba(255, 122, 26, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--ghost {
  color: var(--text-1);
  background: rgba(255, 226, 210, 0.04);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: rgba(255, 226, 210, 0.1);
  border-color: rgba(255, 226, 210, 0.3);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background-color: rgba(13, 4, 6, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2) var(--space-3);
  height: 80px;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-header__logo {
  display: inline-flex;
  flex-shrink: 0;
}

.site-header__nav {
  display: flex;
  gap: var(--space-1);
  margin-left: var(--space-2);
}

.site-header__link {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s, background-color 0.2s;
}

.site-header__link:hover {
  color: var(--text-1);
  background-color: rgba(255, 226, 210, 0.07);
}

.site-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-header__burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.site-header__burger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-1);
}

.site-header__mobile {
  display: none;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo__mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(255, 122, 26, 0.45));
}

.logo__text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-1);
  white-space: nowrap;
}

.logo__text span {
  color: var(--orange-400);
}

@media (max-width: 960px) {
  .site-header__nav {
    display: none;
  }

  .site-header__burger {
    display: flex;
  }

  .site-header__mobile {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    max-height: 0;
    overflow: hidden;
    padding: 0 var(--space-3);
    background: rgba(13, 4, 6, 0.96);
    border-bottom: 1px solid transparent;
    transition: max-height 0.35s var(--ease-out), padding 0.35s var(--ease-out), border-color 0.35s;
  }

  .site-header__mobile.is-open {
    max-height: 320px;
    padding: var(--space-1) var(--space-3) var(--space-3);
    border-bottom-color: var(--line);
  }

  .site-header__mobile-link {
    padding: var(--space-2);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-2);
  }

  .site-header__mobile-link:hover {
    background: rgba(255, 226, 210, 0.07);
    color: var(--text-1);
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    padding: var(--space-2);
    gap: var(--space-2);
    height: 72px;
  }

  .site-header__actions .btn--sm {
    display: none;
  }

  .site-header__actions {
    margin-left: auto;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-6) var(--space-3) var(--space-10);
}

.hero__glow {
  position: absolute;
  top: 18%;
  left: 50%;
  width: min(1100px, 120vw);
  height: 720px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(255, 122, 26, 0.38), rgba(255, 122, 26, 0.08) 60%, transparent 100%);
  filter: blur(40px);
  pointer-events: none;
  animation: hero-float 9s ease-in-out infinite;
}

@keyframes hero-float {
  0%,
  100% {
    transform: translate(-50%, 0) scale(1);
  }
  50% {
    transform: translate(-50%, -24px) scale(1.04);
  }
}

.hero__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 880px;
  animation: hero-rise 0.9s var(--ease-out) both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 122, 26, 0.35);
  background: rgba(255, 122, 26, 0.1);
  color: var(--orange-200);
  font-size: 14px;
  font-weight: 600;
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-400);
  box-shadow: 0 0 10px var(--orange-400);
}

.hero__title {
  font-size: clamp(40px, 6.2vw, 76px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-1);
}

.hero__title-accent {
  display: block;
  background: linear-gradient(95deg, var(--orange-200) 0%, var(--orange-400) 45%, var(--orange-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(255, 122, 26, 0.35));
}

.hero__lead {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero__actions .btn svg {
  transition: transform 0.25s var(--ease-out);
}

.hero__actions .btn:hover svg {
  transform: translateX(3px);
}

.hero__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
}

.hero__trust svg {
  color: var(--green-400);
  flex-shrink: 0;
}

.hero__visual {
  position: relative;
  animation: hero-rise 1.1s 0.15s var(--ease-out) both;
}

@media (max-width: 960px) {
  .hero {
    padding: var(--space-4) var(--space-2) var(--space-8);
  }

  .hero__inner {
    gap: var(--space-6);
  }
}

@media (max-width: 560px) {
  .hero__lead {
    font-size: 16px;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .hero__trust {
    flex-direction: column;
    gap: 10px;
  }
}

.pw-stage {
  position: relative;
  perspective: 1600px;
}

.pw {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(42, 22, 28, 0.92), rgba(21, 10, 13, 0.96));
  border: 1px solid var(--line-strong);
  box-shadow:
    0 60px 120px -40px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 0 120px -20px rgba(255, 122, 26, 0.35);
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.6s var(--ease-out);
  overflow: hidden;
  text-align: left;
}

.pw::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 169, 87, 0.8), transparent);
  pointer-events: none;
}

.pw__chrome {
  height: 52px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-3);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 4, 6, 0.5);
}

.pw__dots {
  display: inline-flex;
  gap: 6px;
}

.pw__dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 226, 210, 0.18);
}

.pw__dots i:first-child {
  background: var(--orange-500);
}

.pw__title {
  margin: 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.pw__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-400);
}

.pw__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 0 rgba(34, 192, 122, 0.6);
  animation: pw-pulse 2s infinite;
}

@keyframes pw-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 192, 122, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 192, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 192, 122, 0);
  }
}

.pw__body {
  display: grid;
  grid-template-columns: 216px 1fr;
  min-height: 560px;
}

.pw__sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-2);
  border-right: 1px solid var(--line);
  background: rgba(13, 4, 6, 0.35);
}

.pw__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.pw__nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 44px;
  padding: 0 var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-3);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.pw__nav-item:hover {
  color: var(--text-1);
  background: rgba(255, 226, 210, 0.05);
}

.pw__nav-item.is-active {
  color: var(--orange-200);
  background: linear-gradient(90deg, rgba(255, 122, 26, 0.22), rgba(255, 122, 26, 0.04));
  border-color: rgba(255, 122, 26, 0.35);
}

.pw__sidebar-foot {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  background: rgba(255, 226, 210, 0.04);
}

.pw__sidebar-foot strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}

.pw__sidebar-foot small {
  font-size: 12px;
  color: var(--text-3);
}

.pw__avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #1e0a06;
  background: var(--accent-gradient);
}

.pw__main {
  padding: var(--space-3);
  min-width: 0;
  animation: pw-fade 0.45s var(--ease-out);
}

@keyframes pw-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pw-view__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.pw-view__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.pw-view__sub {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-3);
}

.pw-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(13, 4, 6, 0.45);
  padding: var(--space-3);
}

.pw-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: var(--space-2);
}

@media (max-width: 960px) {
  .pw__body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .pw__sidebar {
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: var(--space-1) var(--space-2);
  }

  .pw__nav {
    flex-direction: row;
    flex: 1;
    gap: 4px;
  }

  .pw__nav-item {
    flex: 1;
    justify-content: center;
    padding: 0 var(--space-1);
    font-size: 14px;
  }

  .pw__nav-item span {
    display: none;
  }

  .pw__nav-item.is-active span {
    display: inline;
  }

  .pw__sidebar-foot {
    display: none;
  }

  .pw__main {
    padding: var(--space-2);
  }
}

@media (max-width: 560px) {
  .pw-view__title {
    font-size: 20px;
  }
}

.pw-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.pw-kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 226, 210, 0.05), rgba(255, 226, 210, 0.01));
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.pw-kpi:hover {
  border-color: rgba(255, 122, 26, 0.4);
  transform: translateY(-2px);
}

.pw-kpi__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
}

.pw-kpi__value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}

.pw-kpi__hint {
  font-size: 12px;
  color: var(--text-3);
}

.pw-kpi--danger .pw-kpi__value {
  color: var(--red-400);
}

.pw-alert {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  padding: 12px var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid rgba(240, 72, 72, 0.35);
  background: rgba(240, 72, 72, 0.1);
  color: var(--text-1);
  font-size: 14px;
}

.pw-alert svg {
  flex-shrink: 0;
  color: var(--red-400);
}

.pw-grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-2);
}

.pw-bars {
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.pw-bars__col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pw-bars__track {
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.pw-bars__bar {
  position: relative;
  width: 100%;
  min-height: 6px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--orange-300), var(--wine-500));
  transform-origin: bottom;
  animation: pw-grow 0.8s var(--ease-out) both;
  transition: filter 0.2s, box-shadow 0.2s;
}

.pw-bars__bar:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 24px -4px rgba(255, 122, 26, 0.6);
}

.pw-bars__tip {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-3);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.pw-bars__bar:hover .pw-bars__tip {
  opacity: 1;
}

.pw-bars__label {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}

@keyframes pw-grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.pw-load {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pw-load__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 6px;
}

.pw-load__row strong {
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}

.pw-load__track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 226, 210, 0.08);
  overflow: hidden;
}

.pw-load__fill {
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wine-400), var(--orange-500), var(--orange-300));
  animation: pw-fill 1s var(--ease-out) both;
}

@keyframes pw-fill {
  from {
    width: 0;
  }
  to {
    width: var(--w);
  }
}

.pw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pw-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.pw-chip span {
  min-width: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 226, 210, 0.1);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.pw-chip:hover {
  color: var(--text-1);
  border-color: rgba(255, 226, 210, 0.3);
}

.pw-chip.is-active {
  color: #1e0a06;
  background: var(--accent-gradient);
  border-color: transparent;
}

.pw-chip.is-active span {
  background: rgba(30, 10, 6, 0.18);
}

.pw-table {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}

.pw-table__head,
.pw-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1.5fr) minmax(0, 1.4fr) 90px 130px;
  align-items: center;
  gap: var(--space-2);
  padding: 12px var(--space-2);
}

.pw-table__head {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  background: rgba(255, 226, 210, 0.03);
  border-bottom: 1px solid var(--line);
}

.pw-row {
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s;
  font-size: 14px;
}

.pw-row:last-child {
  border-bottom: none;
}

.pw-row:hover {
  background: rgba(255, 122, 26, 0.06);
}

.pw-row__id {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pw-row__client {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pw-row__client strong {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pw-row__client small {
  color: var(--text-3);
  font-size: 13px;
}

.pw-row__due {
  color: var(--text-2);
}

.pw-row__amount {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pw-row--overdue {
  box-shadow: inset 3px 0 0 var(--red-500);
}

.pw-empty {
  padding: var(--space-4) var(--space-2);
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}

.pw-stage-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pw-stage-progress__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.pw-stage-progress__segments {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}

.pw-stage-progress__segments i {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 226, 210, 0.1);
}

.pw-stage-progress__segments i.is-passed {
  background: var(--orange-600);
}

.pw-stage-progress__segments i.is-current {
  background: var(--orange-300);
  box-shadow: 0 0 10px rgba(255, 169, 87, 0.7);
}

.pw-stage-progress__segments i.is-late {
  background: var(--red-500);
  box-shadow: 0 0 10px rgba(240, 72, 72, 0.7);
}

.pw-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.pw-badge--in_progress {
  color: var(--amber-400);
  background: rgba(255, 200, 87, 0.12);
}

.pw-badge--overdue {
  color: var(--red-400);
  background: rgba(240, 72, 72, 0.14);
}

.pw-badge--done {
  color: var(--green-400);
  background: rgba(34, 192, 122, 0.14);
}

.pw-stock {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.pw-stock__item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) auto auto;
  align-items: center;
  gap: var(--space-2);
  padding: 14px var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(13, 4, 6, 0.35);
  transition: border-color 0.2s;
}

.pw-stock__item:hover {
  border-color: rgba(255, 122, 26, 0.35);
}

.pw-stock__info,
.pw-stock__level {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pw-stock__info strong {
  font-size: 14px;
  font-weight: 600;
}

.pw-stock__info small,
.pw-stock__level small {
  font-size: 12px;
  color: var(--text-3);
}

.pw-stock__meter {
  position: relative;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 226, 210, 0.08);
}

.pw-stock__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange-600), var(--orange-300));
  transition: width 0.5s var(--ease-out);
}

.pw-stock__fill.is-low {
  background: linear-gradient(90deg, var(--red-500), var(--red-400));
}

.pw-stock__min {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 50%;
  width: 2px;
  background: var(--text-2);
  border-radius: 1px;
}

.pw-mini-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255, 226, 210, 0.04);
  color: var(--text-1);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s;
}

.pw-mini-btn:hover:not(:disabled) {
  background: rgba(255, 122, 26, 0.16);
  border-color: rgba(255, 122, 26, 0.5);
}

.pw-mini-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .pw-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pw-grid-2 {
    grid-template-columns: 1fr;
  }

  .pw-table__head {
    display: none;
  }

  .pw-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "id amount"
      "client client"
      "stage due";
    row-gap: 10px;
  }

  .pw-row__id {
    grid-area: id;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .pw-row__client {
    grid-area: client;
  }

  .pw-row__stage {
    grid-area: stage;
  }

  .pw-row__due {
    grid-area: due;
    text-align: right;
    font-size: 13px;
  }

  .pw-row__amount {
    grid-area: amount;
  }

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

  .pw-mini-btn {
    justify-self: end;
  }

  .pw-stock__level {
    grid-column: 1 / -1;
    order: 3;
  }
}

@media (max-width: 560px) {
  .pw-kpi__value {
    font-size: 20px;
  }

  .pw-bars {
    gap: 6px;
  }

  .pw-kpi {
    padding: 12px;
  }
}

/* ERP SYSTEM — sections on top of Bolt design system */

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

main {
  display: block;
}

section {
  position: relative;
  padding: var(--space-10) 0;
  border-top: 1px solid var(--line);
}

section.is-plain {
  border-top: 0;
  padding-top: 0;
}

.sec-head {
  max-width: 720px;
  margin-bottom: var(--space-6);
}

.sec-head h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.sec-head p {
  margin-top: var(--space-2);
  color: var(--text-2);
  font-size: 17px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 var(--space-2);
  margin-bottom: var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 122, 26, 0.35);
  background: rgba(255, 122, 26, 0.1);
  color: var(--orange-200);
  font-size: 14px;
  font-weight: 600;
}

.lead {
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.55;
}

/* generic grid */
.grid {
  display: grid;
  gap: var(--space-2);
}

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

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

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

/* cards */
.card {
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 226, 210, 0.035);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), background-color 0.25s;
}

.card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 226, 210, 0.06);
}

.card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}

.card .ic {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-2);
  color: var(--orange-300);
  background: rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 122, 26, 0.25);
  font-size: 18px;
}

/* problems */
.pain {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(13, 4, 6, 0.4);
}

.pain b {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-300);
  background: rgba(255, 122, 26, 0.1);
  border: 1px solid rgba(255, 122, 26, 0.25);
}

.pain p {
  font-size: 16px;
  font-weight: 600;
}

.pain small {
  display: block;
  margin-top: 5px;
  color: var(--text-3);
  font-size: 14px;
}

/* solution list */
.solve {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.solve:last-child {
  border-bottom: 0;
}

.solve .ok {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green-400);
  background: rgba(74, 222, 149, 0.12);
  border: 1px solid rgba(74, 222, 149, 0.35);
  font-size: 13px;
}

.solve p {
  font-size: 16px;
  font-weight: 600;
}

.solve small {
  display: block;
  margin-top: 3px;
  color: var(--text-3);
  font-size: 14px;
}

/* tabs + panels */
.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(13, 4, 6, 0.5);
  flex-wrap: wrap;
}

.tab {
  height: 38px;
  padding: 0 var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-3);
  font-size: 14.5px;
  font-weight: 600;
  transition: 0.2s;
}

.tab:hover {
  color: var(--text-1);
}

.tab[aria-selected="true"] {
  color: #1e0a06;
  background: var(--accent-gradient);
}

.panel {
  display: none;
}

.panel.on {
  display: block;
  animation: fade 0.3s var(--ease-out);
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* screenshots */
.window {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #eef1f5;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

.window .bar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: #dfe4ea;
  border-bottom: 1px solid #c9d1db;
}

.window .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b6c0cc;
}

.window .dot:nth-child(1) { background: #e8837b; }
.window .dot:nth-child(2) { background: #e8c07b; }
.window .dot:nth-child(3) { background: #8ac9a1; }

.window .url {
  margin-left: 10px;
  flex: 1;
  font-size: 12px;
  color: #5b6675;
  background: #f2f5f8;
  border: 1px solid #cdd6e0;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
}

/* industries */
.ind {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 226, 210, 0.03);
  transition: 0.25s var(--ease-out);
}

.ind:hover {
  border-color: rgba(255, 122, 26, 0.45);
  transform: translateY(-3px);
  background: rgba(255, 122, 26, 0.06);
}

.ind h3 {
  font-size: 18px;
}

.ind p {
  color: var(--text-2);
  font-size: 14.5px;
  flex: 1;
}

.link-more {
  color: var(--orange-300);
  font-weight: 700;
  font-size: 14.5px;
}

.link-more:hover {
  color: var(--orange-200);
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  counter-reset: s;
}

.step {
  position: relative;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-strong);
}

.step:before {
  counter-increment: s;
  content: "0" counter(s);
  position: absolute;
  top: -11px;
  left: 0;
  padding-right: 12px;
  background: var(--bg-0);
  color: var(--orange-400);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.step p {
  color: var(--text-2);
  font-size: 15px;
}

/* calculator */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

.field {
  display: block;
  margin-bottom: var(--space-2);
}

.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-3);
}

.field input {
  width: 100%;
  height: 50px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: rgba(13, 4, 6, 0.6);
  color: var(--text-1);
  font-size: 16px;
  font-weight: 600;
}

.field input:focus {
  outline: none;
  border-color: var(--orange-400);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.15);
}

.calc-out {
  position: sticky;
  top: 96px;
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 122, 26, 0.3);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 122, 26, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(42, 22, 28, 0.9), rgba(21, 10, 13, 0.95));
  box-shadow: 0 40px 90px -50px rgba(255, 122, 26, 0.6);
}

.calc-out .sum {
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.calc-out .sum small {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 15px;
  color: var(--text-2);
}

.calc-row:last-of-type {
  border-bottom: 0;
}

.disclaimer {
  margin-top: var(--space-2);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-3);
}

/* pricing */
.price-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-3);
  align-items: start;
}

.price-card {
  position: relative;
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 122, 26, 0.35);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 122, 26, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(42, 22, 28, 0.92), rgba(21, 10, 13, 0.96));
  box-shadow: 0 50px 100px -50px rgba(255, 122, 26, 0.7);
}

.price-card .sum {
  font-size: clamp(40px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-card .sum small {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-3);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0;
  display: grid;
  gap: 11px;
}

.price-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--text-2);
}

.price-card li:before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(74, 222, 149, 0.14);
  border: 1px solid rgba(74, 222, 149, 0.45);
}

.badge {
  position: absolute;
  top: -13px;
  left: var(--space-4);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  color: #1e0a06;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.trust-item {
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 226, 210, 0.03);
}

.trust-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.trust-item p {
  color: var(--text-2);
  font-size: 15px;
}

/* faq */
.faq {
  max-width: 900px;
  margin: 0 auto;
}

details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

details summary {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary:after {
  content: "+";
  color: var(--orange-400);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

details[open] summary:after {
  content: "–";
}

details .a {
  margin-top: 12px;
  max-width: 62em;
  color: var(--text-2);
  font-size: 15.5px;
}

/* final cta */
.final {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 122, 26, 0.3);
  background:
    radial-gradient(100% 130% at 0% 0%, rgba(255, 122, 26, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(42, 22, 28, 0.9), rgba(21, 10, 13, 0.95));
}

.final h2 {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
  max-width: 22em;
  margin-bottom: 10px;
}

.final p {
  color: var(--text-2);
  max-width: 40em;
}

/* blog */
.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 226, 210, 0.03);
}

.post-card h3 {
  font-size: 18px;
}

.post-card p {
  color: var(--text-2);
  font-size: 14.5px;
  flex: 1;
}

.post-meta {
  font-size: 13px;
  color: var(--text-3);
}

/* inner pages */
.phero {
  position: relative;
  padding: var(--space-6) 0 var(--space-4);
}

.phero h1 {
  font-size: clamp(32px, 4.6vw, 56px);
  letter-spacing: -0.03em;
  max-width: 20em;
  margin-bottom: var(--space-2);
}

.breadcrumbs {
  margin-bottom: var(--space-2);
  font-size: 13.5px;
  color: var(--text-3);
}

.breadcrumbs a:hover {
  color: var(--text-1);
}

.prose {
  max-width: 820px;
}

.prose h2 {
  margin: var(--space-4) 0 var(--space-2);
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: var(--space-3) 0 10px;
  font-size: 20px;
}

.prose p {
  margin-bottom: 14px;
  color: var(--text-2);
}

.prose ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--text-2);
}

.prose li {
  margin-bottom: 8px;
}

.callout {
  margin: var(--space-3) 0;
  padding: 18px 20px;
  border-left: 3px solid var(--orange-400);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(255, 122, 26, 0.08);
  color: var(--text-2);
  font-size: 15.5px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 600;
  transition: 0.2s;
}

.tag:hover {
  color: var(--text-1);
  border-color: rgba(255, 122, 26, 0.5);
}

/* footer */
footer {
  padding: var(--space-6) 0 var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 14.5px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.foot-grid h4 {
  margin-bottom: 14px;
  color: var(--text-1);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot-grid a {
  display: block;
  margin-bottom: 9px;
}

.foot-grid a:hover {
  color: var(--text-1);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

/* responsive */
@media (max-width: 960px) {
  section { padding: var(--space-8) 0; }
  .g3, .g4, .steps, .calc, .price-grid, .g2, .trust-grid { grid-template-columns: 1fr; }
  .calc-out { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .final { padding: var(--space-4); }
}

@media (max-width: 620px) {
  .wrap { padding: 0 var(--space-2); }
  .sec-head h2 { font-size: 28px; }
  .foot-grid { grid-template-columns: 1fr; }
  .brand-text { display: none; }
  .tabs { width: 100%; }
  .tab { flex: 1; font-size: 14px; padding: 0 10px; }
}

/* keep primary CTA visible on phones */
@media (max-width: 560px) {
  .site-header__actions .btn--primary {
    display: inline-flex;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }
  .site-header__inner {
    gap: 8px;
  }
  .site-header__burger {
    width: 40px;
    height: 40px;
  }
}
