:root {
  --ink: #101827;
  --muted: #667085;
  --line: #d8dde8;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --navy: #11224d;
  --navy-2: #1d356c;
  --green: #16b984;
  --gold: #f5b942;
  --danger: #db5b5b;
  --shadow: 0 22px 70px rgba(17, 34, 77, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #eef4e8 0%, #f7f9fc 34%, #ffffff 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(216, 221, 232, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--navy);
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--navy);
}

.hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(520px, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(44px, 7vw, 88px) clamp(20px, 5vw, 72px) 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 28px;
  color: #3d4a63;
  font-size: 21px;
  line-height: 1.45;
}

.hero-actions,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(22, 185, 132, 0.24);
}

.button.secondary {
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.meta-row {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.meta-row span {
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.preview-panel {
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.preview-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  padding: 70px clamp(20px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: var(--paper);
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--navy);
  font-weight: 900;
}

.step p,
.download-card p,
.safety p,
.feedback p {
  color: var(--muted);
  line-height: 1.55;
}

.audience {
  background: #f8fafc;
}

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

.audience-grid article {
  min-height: 82px;
  padding: 18px;
  display: flex;
  align-items: center;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.download {
  background: var(--navy);
}

.download-card {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 320px;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
  background: #ffffff;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: #344054;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--green);
}

.file-card {
  padding: 24px;
  color: #fff;
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
}

.file-type {
  display: inline-block;
  margin-bottom: 28px;
  padding: 8px 10px;
  color: var(--navy);
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.file-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.file-card p {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.74);
}

.setup {
  background: #0f172a;
  color: #e2e8f0;
}

.setup-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.setup h2 {
  color: #f1f5f9;
}

.setup-note {
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.5;
}

.setup-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.setup-card {
  background: #1e293b;
  border: 1px solid #334155;
  padding: 24px 18px 22px;
  text-align: center;
  position: relative;
}

.card-step-num {
  display: inline-block;
  padding: 4px 14px;
  margin-bottom: 16px;
  background: var(--green);
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.setup-card h3 {
  color: #f1f5f9;
  font-size: 16px;
  margin: 16px 0 6px;
}

.setup-card p {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}

/* --- Windows Properties Dialog --- */
.win-dialog {
  background: #f0f0f0;
  border: 1px solid #999;
  text-align: left;
  font-size: 11px;
  color: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.win-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  font-size: 11px;
  font-weight: 600;
}

.win-title-icon { font-size: 14px; }
.win-close {
  margin-left: auto;
  color: #999;
  font-size: 16px;
  line-height: 1;
}

.win-tabs {
  display: flex;
  gap: 0;
  padding: 0 8px;
  background: #f0f0f0;
  border-bottom: 1px solid #ccc;
}

.win-tab {
  padding: 5px 12px 4px;
  font-size: 10px;
  color: #555;
  border: 1px solid transparent;
  border-bottom: none;
  cursor: default;
}

.win-tab.active {
  background: #fff;
  border-color: #ccc;
  color: #1a1a1a;
  font-weight: 700;
  margin-bottom: -1px;
}

.win-body {
  padding: 12px;
  background: #fff;
}

.win-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
}

.win-file-icon svg { display: block; }

.win-filename {
  font-size: 13px;
  font-weight: 600;
}

.win-prop-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 6px 0;
}

.win-prop-row {
  display: flex;
  gap: 8px;
  padding: 2px 0;
  font-size: 10px;
  color: #444;
}

.win-prop-label {
  color: #1a1a1a;
  font-weight: 600;
  min-width: 70px;
  flex-shrink: 0;
}

.win-security-box {
  margin-top: 6px;
  padding: 8px;
  background: #fff9e6;
  border: 1px solid #e6d5a0;
}

.win-security-label {
  font-weight: 700;
  font-size: 10px;
  margin-bottom: 3px;
}

.win-security-text {
  font-size: 9px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 6px;
}

.win-unblock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #1a1a1a;
  cursor: default;
  position: relative;
}

.win-checkbox {
  font-size: 16px;
  color: #0078d4;
}

.cursor-anim {
  font-size: 18px;
  animation: cursorBounce 1.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes cursorBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-6px); opacity: 0.6; }
}

.win-footer {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 12px;
  background: #f0f0f0;
  border-top: 1px solid #ddd;
}

.win-btn {
  padding: 4px 16px;
  font-size: 10px;
  border: 1px solid #bbb;
  background: #e8e8e8;
  color: #1a1a1a;
  cursor: default;
}

.win-btn-primary {
  background: #0078d4;
  color: #fff;
  border-color: #005a9e;
  font-weight: 700;
}

/* --- Excel Window Mockup --- */
.excel-window {
  background: #fff;
  border: 1px solid #999;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  overflow: hidden;
}

.excel-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: #217346;
  color: #fff;
  font-size: 11px;
}

.excel-ribbon-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.excel-save-icon { font-size: 12px; }

.excel-title-text {
  font-size: 10px;
  opacity: 0.9;
}

.excel-window-btns {
  display: flex;
  gap: 2px;
}

.wb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 14px;
  font-size: 10px;
  color: rgba(255,255,255,0.8);
}

.wb-close:hover { background: #c42b1c; }

.excel-ribbon {
  display: flex;
  gap: 0;
  padding: 0 4px;
  background: #217346;
  border-bottom: 2px solid #1a5c37;
}

.excel-ribbon span {
  padding: 3px 8px;
  font-size: 9px;
  color: rgba(255,255,255,0.85);
}

.excel-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 10px;
  flex-wrap: wrap;
}

.excel-alert-yellow {
  background: #fff3cd;
  border-bottom: 1px solid #f0d98c;
  color: #664d03;
}

.excel-alert-red {
  background: #f8d7da;
  border-bottom: 1px solid #f1aeb5;
  color: #58151c;
}

.alert-icon { font-size: 14px; }

.alert-text {
  flex: 1;
  font-size: 9px;
  line-height: 1.3;
}

.alert-text strong {
  font-size: 10px;
}

.alert-btn {
  padding: 4px 14px;
  font-size: 9px;
  font-weight: 800;
  border: none;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.alert-btn-yellow {
  background: #e8b730;
  color: #3d2e00;
  animation: btnPulseYellow 2s ease-in-out infinite;
}

.alert-btn-red {
  background: #dc3545;
  color: #fff;
  animation: btnPulseRed 2s ease-in-out infinite;
}

@keyframes btnPulseYellow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 12px #e8b73088, 0 0 4px #e8b730; }
}

@keyframes btnPulseRed {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 12px #dc354588, 0 0 4px #dc3545; }
}

.excel-sheet {
  padding: 0;
}

.excel-cell-header {
  display: grid;
  grid-template-columns: 24px repeat(5, 1fr);
  background: #f3f3f3;
  border-bottom: 1px solid #ddd;
}

.excel-cell-header span {
  padding: 2px 0;
  text-align: center;
  font-size: 9px;
  color: #888;
  font-weight: 600;
  border-right: 1px solid #e8e8e8;
}

.excel-cell-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  border-bottom: 1px solid #eee;
  min-height: 18px;
}

.excel-cell-row .rn {
  font-size: 8px;
  color: #999;
  text-align: center;
  padding: 2px 0;
  background: #f9f9f9;
  border-right: 1px solid #e8e8e8;
}

.cell-vl {
  background: #11224d;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  padding: 4px;
  letter-spacing: 0.04em;
}

.cell-sub {
  color: #16b984;
  font-size: 8px;
  text-align: center;
  padding: 2px;
}

.excel-cell-row.dim span:not(.rn) {
  color: #bbb;
  font-size: 9px;
  padding: 2px 6px;
}

@media (max-width: 980px) {
  .setup-steps-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

.feedback {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
  background: #ffffff;
}

.feedback-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #cbd5e1;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: #0d1834;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .download-card,
  .setup,
  .feedback {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .audience-grid,
  .check-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .audience-grid,
  .check-list {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 18px;
  }
}
