:root {
  --ink: #17202a;
  --muted: #607080;
  --line: #dce4ea;
  --paper: #ffffff;
  --soft: #f4f7f9;
  --brand: #173f5f;
  --brand-2: #20639b;
  --accent: #f6b43a;
  --success: #1e7a55;
  --shadow: 0 20px 55px rgba(20, 42, 60, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(140deg, rgba(32, 99, 155, .08), transparent 560px), var(--soft);
  font-family: "Segoe UI", Arial, sans-serif;
}
body.personnel {
  --brand: #5a1f2a;
  --brand-2: #7a2e2c;
  --accent: #c9822f;
  --soft: #f7f2ed;
  --line: #e6d8ca;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}
.brand img { width: 52px; height: 52px; object-fit: contain; }
.top-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.top-links a { color: var(--brand); font-weight: 800; text-decoration: none; }
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: 42px;
  min-height: 560px;
  padding: 58px;
  color: #fff;
  background: linear-gradient(125deg, var(--brand), var(--brand-2));
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -120px;
  top: -140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 { margin: 0 0 18px; font-size: clamp(42px, 5.8vw, 70px); line-height: .98; }
.hero p { max-width: 670px; margin: 0; color: rgba(255,255,255,.84); font-size: 18px; line-height: 1.65; }
.badges, .actions, .facts { display: flex; flex-wrap: wrap; gap: 10px; }
.badges { margin: 22px 0 0; }
.badge, .fact {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: 13px;
  font-weight: 850;
}
.actions { margin-top: 26px; }
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #1f1b14;
  background: var(--accent);
  font-weight: 900;
  text-decoration: none;
}
.btn.secondary { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.09); }
.btn.dark { color: #fff; background: var(--brand); }
.hero-visual {
  display: grid;
  min-height: 390px;
  place-items: center;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 18px;
  background: rgba(255,255,255,.11);
  backdrop-filter: blur(8px);
}
.hero-visual img { max-height: 355px; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(0,0,0,.24)); }
.hero-visual.screenshot { padding: 12px; background: rgba(255,255,255,.94); }
.hero-visual.screenshot img { width: 100%; max-height: none; border-radius: 10px; }
.section { padding: 82px 0; }
.section-head { display: grid; grid-template-columns: 1fr minmax(280px, 440px); align-items: end; gap: 28px; margin-bottom: 30px; }
.section-head h2 { margin: 6px 0 0; color: var(--brand); font-size: clamp(32px, 4.3vw, 50px); line-height: 1.04; }
.section-head p { margin: 0; color: var(--muted); line-height: 1.65; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .update-card, .install-step, .security-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(20,42,60,.06);
}
.feature-card span { color: var(--accent); font-size: 13px; font-weight: 900; }
.feature-card h3, .update-card h3, .install-step h3 { margin: 10px 0 9px; color: var(--brand); font-size: 22px; }
.feature-card p, .update-card p, .install-step p, .security-card p { margin: 0; color: var(--muted); line-height: 1.62; }
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 30px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.showcase img { width: 100%; border-radius: 13px; }
.showcase h2 { margin: 8px 0 14px; color: var(--brand); font-size: 38px; }
.showcase p, .showcase li { color: var(--muted); line-height: 1.65; }
.showcase ul { margin: 18px 0 0; padding-left: 20px; }
.updates { background: color-mix(in srgb, var(--brand) 5%, white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.update-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.install-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-no { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: var(--brand); border-radius: 50%; font-weight: 900; }
.download-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  margin-bottom: 82px;
  padding: 36px;
  color: #fff;
  background: linear-gradient(125deg, var(--brand), var(--brand-2));
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.download-panel h2 { margin: 6px 0 10px; font-size: 38px; }
.download-panel p { margin: 0; color: rgba(255,255,255,.82); line-height: 1.6; }
.download-panel .facts { margin-top: 18px; }
.download-panel .actions { margin: 0; justify-content: flex-end; }
.security-card { margin-top: 18px; border-left: 5px solid var(--success); }
.security-card strong { color: var(--brand); }
.hash { overflow-wrap: anywhere; font: 12px/1.6 Consolas, monospace; }
.footer { padding: 26px 0 40px; color: var(--muted); text-align: center; font-size: 14px; }

@media (max-width: 940px) {
  .hero, .showcase, .section-head, .download-panel { grid-template-columns: 1fr; }
  .hero { padding: 40px; }
  .feature-grid, .update-grid { grid-template-columns: repeat(2, 1fr); }
  .install-grid { grid-template-columns: repeat(2, 1fr); }
  .download-panel .actions { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 24px, 1160px); }
  .topbar { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  .hero { min-height: 0; padding: 28px 22px; border-radius: 16px; }
  .hero-visual { min-height: 260px; padding: 18px; }
  .hero h1 { font-size: 42px; }
  .section { padding: 60px 0; }
  .feature-grid, .update-grid, .install-grid { grid-template-columns: 1fr; }
  .showcase, .download-panel { padding: 24px; border-radius: 15px; }
  .actions .btn { width: 100%; }
}
