:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-strong: #111417;
  --text: #15171a;
  --muted: #687076;
  --line: #dfe3df;
  --accent: #2f6bff;
  --accent-soft: #eaf0ff;
  --accent-2: #17a56b;
  --accent-3: #ffb84d;
  --shadow: 0 22px 60px rgba(20, 29, 38, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(247, 248, 245, 0.88);
  border-bottom: 1px solid rgba(223, 227, 223, 0.75);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--surface-strong);
  border-radius: 8px;
}

.page-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.tab-button,
.header-cta,
.primary-action,
.secondary-action,
.lead-form button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tab-button {
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
}

.tab-button.active {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 8px 22px rgba(20, 29, 38, 0.08);
}

.header-cta,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #fff;
  background: var(--text);
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.page-section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 54px 0 44px;
}

.signal-line {
  max-width: 620px;
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(40px, 5.2vw, 70px);
  line-height: 1.08;
  font-weight: 800;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 620px;
  margin-bottom: 30px;
  color: #4c565e;
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.hero-actions .primary-action,
.hero-actions .secondary-action {
  min-width: 148px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin: 0;
}

.hero-proof div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-proof dt {
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
}

.hero-proof dd {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.product-stage {
  position: relative;
}

.product-stage::before {
  content: "";
  position: absolute;
  inset: -32px 32px 32px -32px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 184, 77, 0.18));
  border-radius: 18px;
  transform: rotate(-2deg);
}

.screen-frame {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(21, 23, 26, 0.08);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  background: #f0f2f4;
  border-bottom: 1px solid #e0e4e8;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d6dc;
}

.window-bar strong {
  margin-left: 10px;
  color: #5d666f;
  font-size: 13px;
}

.product-preview {
  min-height: 520px;
  padding: 24px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.preview-toolbar,
.preview-row,
.preview-card,
.chat-item,
.sheet-row {
  border: 1px solid #e4e8ec;
  background: #fff;
  border-radius: 8px;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px;
  margin-bottom: 16px;
}

.preview-toolbar strong {
  font-size: 18px;
}

.mini-button {
  padding: 8px 10px;
  color: #fff;
  background: var(--accent);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.preview-card {
  padding: 14px;
}

.preview-card span,
.sheet-row span,
.chat-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.preview-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.meter {
  overflow: hidden;
  height: 7px;
  background: #eef1f4;
  border-radius: 99px;
}

.meter i {
  display: block;
  height: 100%;
  width: var(--value, 70%);
  background: var(--accent);
  border-radius: inherit;
}

.preview-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.preview-row,
.sheet-row {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  font-size: 13px;
}

.status {
  width: fit-content;
  padding: 5px 8px;
  color: #0d6a43;
  background: #dcf8eb;
  border-radius: 7px;
  font-weight: 800;
}

.sheet-table,
.chat-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.sheet-row {
  grid-template-columns: 1.1fr 1fr 1fr 0.8fr;
}

.formula-box {
  margin-top: 16px;
  padding: 16px;
  color: #eef6ff;
  background: #111417;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
}

.chat-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
}

.chat-item p {
  margin: 0;
  color: #2b3034;
  line-height: 1.6;
}

.reply-chip {
  align-self: start;
  padding: 8px 10px;
  color: #fff;
  background: var(--accent-2);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 34px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2,
.offer-copy h2,
.lead-section h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.section-heading p,
.offer-copy p,
.lead-section p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.pain-section,
.workflow-section,
.offer-section,
.lead-section {
  padding: 84px 0;
}

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

.pain-card {
  min-height: 180px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pain-card b {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
}

.pain-card p {
  margin: 0;
  color: #58616a;
  line-height: 1.75;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.step {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 26px;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  font-weight: 800;
}

.step h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.offer-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 34px;
  align-items: center;
}

.offer-copy {
  padding: 44px;
  color: #fff;
  background: var(--surface-strong);
  border-radius: 14px;
}

.offer-copy p {
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.72);
}

.offer-copy ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.offer-copy li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--accent-3);
  font-weight: 900;
}

.pricing-card {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(20, 29, 38, 0.08);
}

.price-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 800;
}

.price {
  margin-bottom: 10px;
  font-size: 46px;
  font-weight: 800;
}

.price-note {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.wide {
  width: 100%;
}

.lead-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: #343b41;
  font-size: 14px;
  font-weight: 800;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid #d9dee3;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  background: #fbfcfd;
  outline: 0;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.lead-form button {
  color: #fff;
  background: var(--accent);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent-2);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

body[data-page="excel"] {
  --accent: #7a4df3;
  --accent-soft: #f0ebff;
  --accent-2: #0d9aa6;
  --accent-3: #ffcf5a;
}

body[data-page="support"] {
  --accent: #e0522d;
  --accent-soft: #fff0eb;
  --accent-2: #238c5a;
  --accent-3: #ffd166;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .brand,
  .header-cta {
    justify-self: center;
  }

  .page-tabs {
    overflow-x: auto;
    justify-content: start;
    padding-bottom: 2px;
  }

  .tab-button {
    flex: 0 0 auto;
  }

  .hero,
  .section-heading,
  .offer-section,
  .lead-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 30px;
    min-height: 0;
  }

  .product-preview {
    min-height: 440px;
  }

  .pain-grid,
  .workflow {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 620px) {
  .page-section {
    width: min(100% - 28px, 1160px);
  }

  .hero-proof,
  .preview-grid,
  .preview-row,
  .sheet-row,
  .chat-item {
    grid-template-columns: 1fr;
  }

  .product-stage::before {
    inset: -16px 12px 20px -12px;
  }

  .product-preview {
    padding: 16px;
  }

  .offer-copy {
    padding: 28px;
  }

  .site-footer {
    flex-direction: column;
  }
}
