:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #0f243f;
  --ink-soft: #58667a;
  --brand-navy: #03254f;
  --brand-yellow: #fcd728;
  --success: #16a34a;
  --danger: #dc2626;
  --line: #d9e1ea;
  --shadow: 0 18px 38px rgba(4, 29, 66, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Barlow", "Segoe UI", sans-serif;
  color: var(--ink);
  /*background: radial-gradient(circle at 0 0, #ffffff 0%, #f4f7fb 45%, #edf2f8 100%);*/
  background: radial-gradient(circle at 0 0, #ffffff 0%, #ffffff 45%, #d8eaff 100%);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
}

.hero-glow {
  position: absolute;
  top: -180px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 215, 40, 0.35), rgba(252, 215, 40, 0) 72%);  
  pointer-events: none;
  filter: blur(12px);
}

.text-center {
  text-align: center;
}

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.brand-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(244, 247, 251, 0.86);
  border-bottom: 1px solid rgba(3, 37, 79, 0.08);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(3, 37, 79, 0.14);
}

.brand-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-navy);
  font-size: 1.08rem;
}

.hero {
  position: relative;
  padding: 74px 0 48px;
  overflow: hidden;
  background-image: url('hero-bg.png');
  background-position: top right;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(252, 215, 40, 0.45);
  background: rgba(252, 215, 40, 0.17);
  color: var(--brand-navy);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.87rem;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-yellow);
  box-shadow: 0 0 0 rgba(252, 215, 40, 0.9);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(252, 215, 40, 0.8);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(252, 215, 40, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(252, 215, 40, 0);
  }
}

.hero h1 {
  margin: 16px 0 14px;
  line-height: 1.06;
  font-size: clamp(2rem, 4.5vw, 4rem);
  color: var(--ink);
}

.hero h1 span {
  color: var(--brand-yellow);
  background: linear-gradient(90deg, #fcd728, #ffd95f);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 720px;
  color: var(--ink-soft);
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.feature-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 20px rgba(4, 29, 66, 0.04);
}

.card.pad {
  padding: 18px;
}

.card h3,
.card h4,
.card h5,
.card p {
  margin: 0;
}

.icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--brand-navy);
  background: rgba(252, 215, 40, 0.2);
  margin-bottom: 8px;
}

.section {
  padding: 38px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
}

.section-head p {
  margin-top: 6px;
  color: var(--ink-soft);
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(3, 37, 79, 0.03);
}

.before-after > div {
  padding: 24px;
}

.before-after .left {
  border-right: 1px solid var(--line);
}

.before-after h4 {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.before-after ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.before-after li {
  display: flex;
  gap: 8px;
  align-items: start;
  color: var(--ink-soft);
}

.before-after li::before {
  content: "•";
  color: var(--danger);
  line-height: 1;
}

.before-after .right {
  background: #fff;
}

.before-after .right li {
  color: var(--ink);
  font-weight: 500;
}

.before-after .right li::before {
  color: var(--success);
}

.note {
  margin-top: 12px;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 0.88rem;
}

.note.warn {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #9f1239;
}

.note.good {
  background: #fefce8;
  border: 1px solid #fde68a;
  color: var(--brand-navy);
}

.calc-shell {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 12px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 18px rgba(2, 24, 51, 0.05);
  padding: 14px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.badge-letter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(252, 215, 40, 0.2);
  color: var(--brand-navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.panel-head h3 {
  margin: 0;
  font-size: 1rem;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.row + .row {
  margin-top: 10px;
}

.help {
  color: var(--ink-soft);
  font-size: 0.79rem;
}

.value-pill {
  border-radius: 999px;
  background: rgba(3, 37, 79, 0.1);
  color: var(--brand-navy);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 2px 9px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--brand-navy);
}

input[type="number"],
input[type="text"] {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  width: 100%;
  font: inherit;
  color: var(--ink);
}

input[type="number"]:focus,
input[type="text"]:focus {
  outline: 2px solid rgba(3, 37, 79, 0.16);
  border-color: rgba(3, 37, 79, 0.35);
}

button {
  font: inherit;
}

.switch-row {
  display: flex;
  gap: 6px;
  background: rgba(3, 37, 79, 0.05);
  border-radius: 10px;
  padding: 4px;
}

.toggle {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  color: var(--ink-soft);
  font-weight: 600;
}

.toggle.active {
  background: #fff;
  color: var(--brand-navy);
  box-shadow: 0 4px 12px rgba(3, 37, 79, 0.15);
}

.toggle.currency {
  min-width: 96px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.pricing-grid strong {
  display: block;
  font-size: 0.98rem;
  color: var(--brand-navy);
}

.pricing-grid small {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.65rem;
}

.soft-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-soft);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

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

.chip {
  border: 1px solid #f2ca6a;
  background: #fff;
  color: var(--brand-navy);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.81rem;
  cursor: pointer;
}

.chip.active {
  background: #f4b717;
  border-color: #f4b717;
  color: #fff;
}

.break-even {
  border-radius: 12px;
  border: 1px solid #f6d594;
  background: #fff9e8;
  padding: 10px;
  margin-top: 8px;
  font-size: 0.88rem;
}

.kpi-hero {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 12px;
}

.net-card {
  background: var(--brand-navy);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow);
}

.net-card h4 {
  margin: 0;
  color: #c3d2e8;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
}

.net-value {
  margin-top: 6px;
  font-size: clamp(2rem, 4.3vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
}

.net-sub {
  margin-top: 5px;
  font-size: 0.82rem;
  color: #dbe8f8;
}

.metrics {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.metrics span {
  display: block;
  color: #90a8c8;
  font-size: 0.67rem;
  text-transform: uppercase;
}

.metrics strong {
  display: block;
  font-size: 1.27rem;
}

.metrics .hours {
  color: #63d18d;
}

.metrics .roi {
  color: var(--brand-yellow);
}

.glance-bar {
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  margin-top: 6px;
}

.seg-cost {
  background: var(--brand-navy);
}

.seg-revenue {
  background: var(--brand-yellow);
}

.seg-time {
  background: #1aaf61;
}

.seg-software {
  background: #10b981;
}

.legend {
  margin-top: 9px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.legend i {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 2px;
  margin-right: 4px;
}

.table-like {
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
}

.table-like .row {
  border-bottom: 1px solid rgba(3, 37, 79, 0.08);
  padding-bottom: 5px;
}

.table-like .row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.table-like .label {
  color: var(--ink-soft);
}

.table-like .ok {
  color: var(--success);
  font-weight: 600;
}

.table-like .warn {
  color: var(--brand-navy);
  font-weight: 600;
}

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

.btn {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 9px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 600;
}

.btn.primary {
  background: var(--brand-navy);
  color: #fff;
  border-color: var(--brand-navy);
}

.how {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.how summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-soft);
}

.how p {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.cta-block {
  margin-top: 34px;
  text-align: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.cta-btn {
  margin-top: 12px;
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 10px 15px;
  background: var(--brand-navy);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.footer {
  text-align: center;
  font-size: 0.79rem;
  color: var(--ink-soft);
  padding: 20px 0 34px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 550ms ease forwards;
}

.reveal.d2 {
  animation-delay: 90ms;
}

.reveal.d3 {
  animation-delay: 180ms;
}

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

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .calc-shell {
    grid-template-columns: 1fr;
  }

  .kpi-hero {
    position: static;
  }
}

@media (max-width: 780px) {
  .before-after {
    grid-template-columns: 1fr;
  }

  .before-after .left {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

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