:root {
  color-scheme: dark;
  --accent: #ffc365;
  --accent-strong: #ffb433;
  --bg: #000000;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.22);
  --glass: rgba(18, 18, 18, 0.58);
  --glass-strong: rgba(18, 18, 18, 0.72);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.58), 0 10px 28px rgba(0, 0, 0, 0.42);
  --glass-shine: radial-gradient(ellipse at 18% 0%, rgba(255, 195, 101, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(255, 195, 101, 0.08), transparent 30%, rgba(255, 255, 255, 0.045) 100%);
  --radius: 8px;
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --text: #101010;
  --muted: rgba(16, 16, 16, 0.72);
  --soft: rgba(255, 255, 255, 0.5);
  --line: rgba(16, 16, 16, 0.16);
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --shadow: 0 28px 80px rgba(15, 23, 42, 0.22), 0 10px 28px rgba(15, 23, 42, 0.12);
  --glass-shine: radial-gradient(ellipse at 18% 0%, rgba(255, 195, 101, 0.24), transparent 44%),
    linear-gradient(135deg, rgba(255, 195, 101, 0.12), transparent 32%, rgba(255, 255, 255, 0.46) 100%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

button,
input,
select {
  font: inherit;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 80px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-shine), var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(255, 195, 101, 0.08);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: var(--accent);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(255, 195, 101, 0.45);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn,
.primary-btn,
.ghost-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.primary-btn::before,
.ghost-btn::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 48%;
  z-index: -1;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 18px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.12) 72%, transparent);
  opacity: 0.72;
  pointer-events: none;
}

.primary-btn::after,
.ghost-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  pointer-events: none;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--soft);
}

.icon-btn:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 195, 101, 0.7);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: #111;
  border-color: rgba(255, 210, 132, 0.88);
  background: linear-gradient(135deg, #ffd98b 0%, var(--accent) 42%, var(--accent-strong) 100%);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(255, 195, 101, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.72), inset 0 -14px 28px rgba(168, 95, 0, 0.16);
}

.primary-btn::after {
  background: radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.64), transparent 32%),
    radial-gradient(circle at 78% 100%, rgba(255, 154, 0, 0.22), transparent 36%);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03));
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 -18px 34px rgba(0, 0, 0, 0.24), 0 14px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.ghost-btn::after {
  background: radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.22), transparent 32%),
    radial-gradient(circle at 84% 100%, rgba(255, 195, 101, 0.16), transparent 36%);
}

.hero {
  min-height: auto;
  display: grid;
  align-items: end;
  padding: clamp(14px, 3vh, 34px) 0 clamp(24px, 5vh, 52px);
  min-width: 0;
}

.hero-inner {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.glass {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-shine), var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(255, 195, 101, 0.08);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.hero-copy {
  padding: clamp(22px, 4vw, 44px);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.06;
}

h1 {
  max-width: 940px;
  font-size: clamp(38px, 5.1vw, 72px);
  overflow-wrap: normal;
  text-wrap: balance;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
}

h3 {
  font-size: clamp(20px, 2.4vw, 28px);
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.big-cta {
  min-height: 82px;
  padding: 0 34px;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 900;
}

.metric-grid,
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.metric,
.hero-metric {
  min-height: 112px;
  padding: 18px;
}

.metric strong,
.hero-metric strong {
  display: block;
  color: var(--accent);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
}

.metric span,
.hero-metric span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.35;
}

.tag-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 195, 101, 0.5);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 195, 101, 0.12);
  font-size: 14px;
  font-weight: 800;
}


.section {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 42px);
}

.section > * + * {
  margin-top: 18px;
}

.section p,
.section li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.section p {
  margin-bottom: 0;
}

.section ul {
  margin: 0;
  padding-left: 20px;
}


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

.trust-section {
  padding-top: clamp(20px, 3vw, 30px);
  padding-bottom: clamp(20px, 3vw, 30px);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.trust-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  min-width: 0;
  text-align: center;
}

.trust-avatars {
  display: flex;
  justify-content: center;
  min-height: 78px;
}

.trust-avatars img {
  width: 78px;
  height: 78px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.trust-avatars.is-pair img + img {
  margin-left: -22px;
}

.trust-card h3 {
  font-size: 16px;
  line-height: 1.22;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.library-section {
  padding-left: 0;
  padding-right: 0;
}

.library-current {
  max-width: none;
  margin: 10px 0 0;
  text-align: center;
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
}

.library-filter {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 18px;
}

.library-filter label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.library-filter select {
  width: min(420px, 100%);
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  color: var(--text);
  background: var(--glass-shine), var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  outline: none;
}

.case-card.is-hidden,
.case-card[hidden] {
  display: none !important;
}

.case-image {
  overflow: hidden;
  padding: 10px;
}

.case-image img {
  width: 100%;
  border-radius: 6px;
}

.result-screenshot {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.story-quote {
  border-left: 4px solid var(--accent);
}

.story-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.story-author img {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.story-quote blockquote {
  margin: 22px 0 0;
  padding: 0;
}

.result-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 18px;
}

.image-pair,
.image-triplet {
  display: grid;
  gap: 14px;
}

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

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

.note,
.quote {
  padding: 20px;
  border-left: 4px solid var(--accent);
  color: var(--text);
  background: var(--glass-strong);
}

.danger-note {
  padding: 20px;
  border-left: 4px solid #ff4d4d;
  color: var(--text);
  background: rgba(255, 77, 77, 0.12);
}

.review-media {
  display: grid;
  gap: 18px;
}

.review-gif {
  width: min(520px, 100%);
  margin: 0 auto;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 22px 22px 22px 70px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: var(--accent);
  font-weight: 900;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.stats-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-line {
  padding: 18px;
  min-height: 106px;
}

.stat-line span {
  display: block;
  color: var(--muted);
}

.stat-line strong {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 30px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-wrap table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.table-wrap th {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.table-wrap td strong {
  color: var(--text);
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

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

.case-card {
  display: grid;
  overflow: hidden;
  min-height: 100%;
  color: var(--text);
  text-decoration: none;
  grid-template-rows: auto 1fr;
}

.case-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case-cover-abstract {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 26%, rgba(255, 195, 101, 0.88), transparent 12%),
    radial-gradient(circle at 76% 70%, rgba(255, 255, 255, 0.22), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03));
}

.case-cover-abstract::before,
.case-cover-abstract::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 195, 101, 0.36);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.case-cover-abstract::before {
  width: 42%;
  height: 42%;
  left: 12%;
  top: 18%;
  transform: rotate(-8deg);
}

.case-cover-abstract::after {
  width: 34%;
  height: 34%;
  right: 14%;
  bottom: 16%;
  transform: rotate(10deg);
}

.case-card-body {
  padding: 18px;
}

.case-card-body p {
  color: var(--muted);
  line-height: 1.5;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--text);
  background: var(--soft);
  outline: none;
}

.field textarea {
  min-height: 128px;
  padding: 14px;
  resize: vertical;
  line-height: 1.45;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(255, 195, 101, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 195, 101, 0.16);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.result-box {
  padding: 16px;
  min-height: 96px;
}

.result-box span {
  color: var(--muted);
  font-size: 14px;
}

.result-box strong {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-size: clamp(24px, 3vw, 34px);
}

.roi-box {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 148px;
  padding: 22px;
  text-align: center;
}

.roi-box strong {
  font-size: clamp(42px, 6vw, 76px);
}

.trend-chart {
  padding: clamp(16px, 3vw, 26px);
  overflow: hidden;
}

.trend-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(255, 195, 101, 0.7);
}

.legend-dot.spend {
  background: #8fc7ff;
  box-shadow: 0 0 24px rgba(143, 199, 255, 0.52);
}

.trend-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.trend-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.trend-axis,
.trend-label {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.trend-revenue {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(255, 195, 101, 0.32));
}

.trend-spend {
  fill: none;
  stroke: #8fc7ff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(143, 199, 255, 0.24));
}

.trend-point {
  cursor: help;
  stroke: rgba(255, 255, 255, 0.68);
  stroke-width: 2;
}

.trend-point.revenue {
  fill: var(--accent);
}

.trend-point.spend {
  fill: #8fc7ff;
}

.trend-table {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.trend-cell {
  padding: 12px;
  min-height: 92px;
}

.trend-cell strong,
.trend-cell span {
  display: block;
}

.trend-cell strong {
  color: var(--text);
  font-size: 16px;
}

.trend-cell span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.trend-tooltip {
  position: fixed;
  z-index: 80;
  display: none;
  min-width: 220px;
  padding: 14px;
  pointer-events: none;
}

.trend-tooltip.is-visible {
  display: block;
}

.trend-tooltip strong,
.trend-tooltip span {
  display: block;
}

.trend-tooltip strong {
  color: var(--text);
  font-size: 17px;
}

.trend-tooltip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
}

.modal.is-open {
  display: flex;
}

.modal-card {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.status {
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero {
    padding-top: clamp(12px, 3vh, 24px);
  }

  .hero-inner,
  .two-col,
  .calculator-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 640px) {
  .page {
    width: min(100% - 28px, 560px);
    padding-top: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    padding-top: 12px;
  }

  .metric-grid,
  .hero-metrics,
  .stats-list,
  .image-pair,
  .image-triplet,
  .results,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .trust-avatars img {
    width: 70px;
    height: 70px;
  }

  .trust-avatars {
    min-height: 70px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 44px);
    overflow-wrap: break-word;
  }

  .hero-copy {
    padding: 22px;
  }

  .big-cta {
    min-height: 78px;
    padding: 0 18px;
    font-size: clamp(22px, 6.2vw, 28px);
    white-space: normal;
  }

  .topbar .primary-btn {
    min-height: 42px;
    padding: 0 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .result-split {
    grid-template-columns: 1fr;
  }

  .story-author {
    align-items: flex-start;
  }

  .trend-head {
    display: grid;
  }

  .trend-svg {
    min-width: 620px;
  }

  .trend-chart {
    overflow-x: auto;
  }

  .trend-table {
    grid-template-columns: 1fr;
  }
}
