:root {
  color-scheme: light;
  --desktop: #0b7f83;
  --desktop-dark: #075b62;
  --win: #c3c7cb;
  --win-light: #ffffff;
  --win-mid: #dfe3e6;
  --win-dark: #111111;
  --win-shadow: #808080;
  --title: #000080;
  --title-2: #0f3f8f;
  --text: #111111;
  --muted: #3e4854;
  --green: #1e7f39;
  --amber: #f2c94c;
  --danger: #9d1b1b;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--desktop);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--desktop);
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a {
  color: #001a8a;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.site-header,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--win-light);
  text-decoration: none;
}

.brand-logo {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  background: #172b58;
  border: 2px solid var(--win-light);
  box-shadow: 2px 2px 0 #003a3d;
  image-rendering: pixelated;
}

.brand-logo::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid;
  border-color: #ffffff #070f25 #070f25 #ffffff;
  background: #0e1b3c;
}

.brand-logo-roof,
.brand-logo-house,
.brand-logo-door {
  position: absolute;
  z-index: 1;
  display: block;
}

.brand-logo-roof {
  left: 8px;
  top: 8px;
  width: 24px;
  height: 8px;
  background: #32f2c7;
  box-shadow: 4px 4px 0 #19a98f, 8px 8px 0 #19a98f;
  transform: skewY(-26deg);
}

.brand-logo-house {
  left: 12px;
  top: 19px;
  width: 18px;
  height: 14px;
  background: #dffef8;
  border: 2px solid #19a98f;
  box-shadow: 3px 3px 0 #070f25;
}

.brand-logo-door {
  left: 20px;
  top: 25px;
  width: 5px;
  height: 8px;
  background: #172b58;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: #d8f5f1;
  font-size: 13px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.top-nav a,
.win-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 2px solid;
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
  background: var(--win);
  color: var(--text);
  box-shadow: 1px 1px 0 var(--win-shadow);
  font: 700 15px Tahoma, Verdana, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.top-nav a:active,
.win-button:active {
  border-color: var(--win-dark) var(--win-light) var(--win-light) var(--win-dark);
  box-shadow: none;
  transform: translate(1px, 1px);
}

.win-button.primary {
  background: #e8f2ff;
}

.hero {
  width: min(var(--max), calc(100% - 32px));
  min-height: calc(100vh - 116px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(440px, 1fr);
  gap: 44px;
  align-items: center;
  padding: 28px 0 38px;
}

.hero-copy {
  color: var(--win-light);
}

.system-line {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 10px;
  border: 1px solid #b7fffa;
  background: #053c42;
  color: #e9fffc;
  font-size: 14px;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  color: var(--win-light);
  font-size: 54px;
  line-height: 1.02;
  text-shadow: 3px 3px 0 #00383d;
}

.hero-text {
  max-width: 420px;
  margin: 18px 0 0;
  color: #e8fffb;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.trust-note {
  max-width: 420px;
  margin: 18px 0 0;
  color: #dcfffa;
  font-size: 14px;
}

.pc-scene {
  position: relative;
  min-height: 570px;
}

.desk-shadow {
  position: absolute;
  right: 4%;
  bottom: 56px;
  width: 76%;
  height: 34px;
  background: #064f55;
  border-radius: 50%;
}

.monitor-shell {
  position: absolute;
  right: 17%;
  top: 28px;
  width: min(650px, 78vw);
  max-width: 650px;
}

.monitor-bezel {
  padding: 24px;
  background: #d2d0c4;
  border: 4px solid;
  border-color: #f8f6e8 #58564f #58564f #f8f6e8;
  box-shadow: 14px 16px 0 #064a50;
}

.screen-glass {
  min-height: 360px;
  padding: 18px;
  background: #11262a;
  border: 8px solid #1f1f1f;
  box-shadow: inset 0 0 0 4px #0b1114;
}

.monitor-neck {
  width: 120px;
  height: 52px;
  margin: 0 auto;
  background: #bdb9ac;
  border: 3px solid;
  border-color: #eee9d8 #5f5b52 #5f5b52 #eee9d8;
}

.monitor-base {
  width: 300px;
  height: 42px;
  margin: 0 auto;
  background: #c9c5b8;
  border: 3px solid;
  border-color: #f7f2df #59544b #59544b #f7f2df;
}

.tower {
  position: absolute;
  right: 1%;
  bottom: 72px;
  width: 150px;
  height: 320px;
  background: #d2d0c4;
  border: 4px solid;
  border-color: #f8f6e8 #58564f #58564f #f8f6e8;
  box-shadow: 10px 12px 0 #064a50;
}

.drive-slot {
  width: 96px;
  height: 18px;
  margin: 42px auto 0;
  background: #242424;
  border: 2px inset #8d8a80;
}

.drive-slot.short {
  width: 62px;
  margin-top: 22px;
}

.power-light {
  width: 18px;
  height: 18px;
  margin: 132px auto 0;
  background: #3cff8a;
  border: 2px solid #235234;
}

.win-window {
  background: var(--win);
  border: 3px solid;
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.main-window {
  min-height: 312px;
}

.win-titlebar {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 7px;
  background: var(--title);
  color: var(--win-light);
  font-size: 14px;
  font-weight: 700;
}

.win-controls {
  white-space: nowrap;
}

.win-body {
  padding: 18px;
}

.desktop-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--title);
  font-size: 14px;
  font-weight: 700;
}

.icon-box {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: #172b58;
  color: #e9f0ff;
  border: 2px solid;
  border-color: #ffffff #111111 #111111 #ffffff;
}

.screen-title {
  margin: 28px 0 0;
  font-size: 22px;
  font-weight: 700;
}

.screen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.screen-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 26px;
  padding: 9px;
  border: 2px inset var(--win-light);
  background: var(--win-mid);
  font-size: 14px;
}

.status-ready,
.visit-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.screen-status strong {
  color: var(--green);
}

.visit-counter strong {
  min-width: 44px;
  color: #001a8a;
  font-family: Consolas, "Courier New", monospace;
  text-align: right;
}

.site-strip {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.site-strip article,
.notice-box,
.license-section article {
  padding: 18px;
  background: var(--win);
  border: 3px solid;
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
}

.site-strip h2,
.license-section h2,
.notice-box h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.site-strip p,
.notice-box p,
.license-section p {
  margin: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 22px 0 32px;
  color: #e8fffb;
  font-size: 14px;
}

.inner-page {
  background: var(--desktop);
}

.inner-main {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.wide-window {
  max-width: 1100px;
}

.license-main {
  width: min(1120px, calc(100% - 32px));
}

.content-body h1 {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1.1;
}

.content-body > p {
  max-width: 760px;
  margin: 0 0 20px;
  color: #1f2933;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 2px inset var(--win-light);
  background: var(--win-mid);
  color: var(--text);
  text-decoration: none;
}

.contact-row span {
  color: var(--muted);
}

.contact-row strong {
  overflow-wrap: anywhere;
}

.notice-box {
  margin-top: 24px;
}

.page-actions,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.license-section {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 2px solid var(--win-shadow);
}

.license-section > h2 {
  margin-bottom: 12px;
}

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

.license-section article h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.license-section article p {
  margin-bottom: 12px;
}

.license-section article span {
  display: inline-block;
  padding: 5px 8px;
  background: #eef4ff;
  border: 1px solid var(--win-shadow);
  color: #1b2450;
  font-size: 13px;
  font-weight: 700;
}

.ai-section {
  padding: 22px;
  background: #eef7ef;
  border: 3px solid;
  border-color: var(--win-light) var(--green) var(--green) var(--win-light);
}

.ai-section p + p {
  margin-top: 12px;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
}

.dialog-backdrop[hidden] {
  display: none;
}

.download-dialog {
  width: min(560px, 100%);
}

.title-button {
  min-width: 26px;
  min-height: 22px;
  border: 2px solid;
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
  background: var(--win);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.link-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.link-field span {
  font-weight: 700;
}

.link-field input {
  width: 100%;
  min-height: 38px;
  padding: 8px;
  border: 2px inset var(--win-light);
  background: var(--win-light);
  color: var(--text);
  font: 15px Consolas, "Courier New", monospace;
}

.mirror-line,
.copy-status {
  margin: 14px 0 0;
  font-size: 14px;
}

.copy-status {
  min-height: 21px;
  color: var(--green);
  font-weight: 700;
}

.error-page .inner-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pc-scene {
    min-height: 500px;
  }

  .monitor-shell {
    left: 0;
    right: auto;
    width: min(620px, 100%);
  }

  .tower {
    right: 0;
  }

  .site-strip,
  .license-grid {
    grid-template-columns: 1fr;
  }
}

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

  .top-nav {
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: 42px;
  }

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

  .pc-scene {
    min-height: auto;
  }

  .monitor-shell {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
  }

  .desk-shadow {
    display: none;
  }

  .monitor-bezel {
    padding: 14px;
  }

  .screen-glass {
    min-height: 290px;
    padding: 10px;
  }

  .screen-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .monitor-neck,
  .monitor-base,
  .tower {
    display: none;
  }

  .content-body h1 {
    font-size: 30px;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }

  .dialog-actions,
  .hero-actions,
  .page-actions,
  .screen-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .win-button {
    width: 100%;
  }
}
