:root {
  --xp-blue: #1f65d6;
  --xp-blue-dark: #0b3d98;
  --xp-blue-light: #65a2ff;
  --xp-green: #4aa51c;
  --xp-grass: #79c934;
  --ethernet-yellow: #ffd228;
  --ethernet-gold: #f4a900;
  --window: #ece9d8;
  --window-edge: #ffffff;
  --window-shadow: rgba(6, 23, 64, 0.3);
  --ink: #11224a;
  --muted: #46587d;
  --line: #9ba8c9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Tahoma, Verdana, Segoe UI, sans-serif;
  background:
    linear-gradient(180deg, #8fc9ff 0%, #d8efff 34%, #80c43a 35%, #2f801a 100%);
  min-width: 320px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 236, 112, 0.22), transparent 26%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 50%, rgba(0, 0, 0, 0.06));
  z-index: 1;
}

a {
  color: inherit;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: soft-light;
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  color: #fff;
  background: linear-gradient(180deg, #2f7df0 0%, #1656c4 48%, #0f3a99 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.start-button,
.task-tabs a,
.tray {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.start-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 14px;
  text-decoration: none;
  font-weight: 700;
  text-transform: lowercase;
  background: linear-gradient(180deg, #78d64d, #268114);
}

.start-dot {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, #f0462f 0 50%, #19a4ff 50%),
    linear-gradient(#ffd42d 0 50%, #22b440 50%);
  background-blend-mode: normal;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.task-tabs {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.task-tabs a {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 30px;
  padding: 5px 12px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
  white-space: nowrap;
}

.tray {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 10px;
  background: rgba(0, 38, 123, 0.32);
  white-space: nowrap;
}

.router-light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9cff5a;
  box-shadow: 0 0 8px #9cff5a;
  animation: blink 1.2s steps(2) infinite;
}

.hero {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 44px);
  display: flex;
  align-items: center;
  padding: clamp(84px, 9vw, 132px) clamp(18px, 6vw, 76px) 150px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 28, 83, 0.78) 0%, rgba(8, 28, 83, 0.46) 42%, rgba(8, 28, 83, 0.12) 100%),
    url("assets/hero-ethernet-2000.png") center / cover no-repeat;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(37, 106, 22, 0.85));
  z-index: -1;
}

.hero-copy {
  width: min(720px, 100%);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--ethernet-yellow);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-subtitle {
  max-width: 590px;
  margin-bottom: 28px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.xp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 2px solid #fff;
  border-right-color: #7a7a7a;
  border-bottom-color: #7a7a7a;
  border-radius: 3px;
  color: #0f265f;
  font: 700 0.95rem Tahoma, Verdana, sans-serif;
  text-decoration: none;
  background: linear-gradient(180deg, #fffdf2, #d8d2bd);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.xp-button.primary {
  color: #1b2d05;
  background: linear-gradient(180deg, #fff8a6, var(--ethernet-yellow) 54%, var(--ethernet-gold));
}

.xp-button.pending {
  opacity: 0.78;
  cursor: not-allowed;
}

.xp-button:not(:disabled):hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.floating-window,
.window {
  background: var(--window);
  border: 2px solid var(--xp-blue-dark);
  border-radius: 8px 8px 4px 4px;
  box-shadow: 0 18px 42px var(--window-shadow);
  overflow: hidden;
}

.floating-window {
  position: absolute;
  color: var(--ink);
  text-shadow: none;
}

.window-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 32px;
  padding: 6px 9px;
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  background: linear-gradient(180deg, var(--xp-blue-light), var(--xp-blue) 45%, var(--xp-blue-dark));
}

.window-controls {
  font-family: Verdana, sans-serif;
  white-space: nowrap;
}

.window-body {
  padding: 14px;
}

.window-body p {
  margin-bottom: 10px;
}

.boot-window {
  right: clamp(18px, 8vw, 88px);
  bottom: 92px;
  width: min(320px, calc(100vw - 36px));
}

.msn-window {
  right: clamp(18px, 10vw, 160px);
  top: 78px;
  width: min(240px, calc(100vw - 36px));
}

.compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid #45a91f;
  border-radius: 999px;
  color: #205b0d;
  font-size: 0.78rem;
  font-weight: 700;
  background: #d9ffd0;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #33be26;
}

.progress {
  height: 17px;
  border: 1px solid #7b8fb4;
  background: #fff;
  overflow: hidden;
}

.progress span {
  display: block;
  width: 66%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #2fbc32 0,
    #2fbc32 9px,
    #78e66e 9px,
    #78e66e 14px
  );
  animation: loading 2.2s linear infinite;
}

.section {
  position: relative;
  z-index: 2;
  padding: clamp(56px, 8vw, 104px) clamp(18px, 6vw, 76px);
}

.manifesto-section {
  background: linear-gradient(180deg, rgba(45, 128, 26, 0.9), rgba(25, 78, 15, 0.95));
}

.manifesto-window {
  width: min(820px, 100%);
  margin: 0 auto;
}

.menu-row {
  padding: 5px 10px;
  border-bottom: 1px solid #b8b099;
  color: #313131;
  font-size: 0.86rem;
  background: #f8f5e8;
  word-spacing: 12px;
}

.notepad-text {
  padding: clamp(22px, 4vw, 40px);
  min-height: 390px;
  color: #101010;
  font-family: "Courier New", monospace;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.35;
  background:
    linear-gradient(90deg, rgba(20, 95, 210, 0.08) 1px, transparent 1px),
    linear-gradient(#fffef4, #fffef4);
  background-size: 26px 100%, auto;
}

.notepad-text p {
  margin-bottom: 2px;
}

.memories-section {
  background:
    linear-gradient(180deg, rgba(223, 242, 255, 0.94), rgba(128, 200, 72, 0.92)),
    linear-gradient(90deg, transparent 0, transparent 23px, rgba(255, 255, 255, 0.22) 24px);
}

.section-heading {
  width: min(980px, 100%);
  margin: 0 auto 28px;
}

.section-heading h2 {
  color: #0b3d98;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.memory-card {
  min-height: 238px;
  padding: 18px;
  border: 2px solid #fff;
  border-right-color: #7e8cae;
  border-bottom-color: #7e8cae;
  border-radius: 6px;
  background: rgba(245, 242, 225, 0.95);
  box-shadow: 0 12px 28px rgba(15, 45, 98, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.memory-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 45, 98, 0.24);
}

.memory-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.shortcut-icon-img {
  display: block;
  width: 86px;
  height: 86px;
  margin: -4px 0 10px;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(15, 45, 98, 0.22));
}

.meme-folder-section {
  background:
    linear-gradient(180deg, rgba(128, 200, 72, 0.92), rgba(7, 30, 88, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 26px);
}

.meme-folder {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.folder-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #b8b099;
  color: #313131;
  font-size: 0.84rem;
  background: linear-gradient(180deg, #fffdf4, #ddd7bf);
  overflow-x: auto;
}

.folder-toolbar span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.folder-toolbar span:not(.folder-path) {
  border-color: #fff #8e8a78 #8e8a78 #fff;
  background: #ece9d8;
}

.folder-path {
  flex: 1;
  min-width: 220px;
  border-color: #9d9a8a;
  background: #fff;
  font-family: "Courier New", monospace;
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(16px, 3vw, 26px);
  background:
    linear-gradient(90deg, rgba(20, 95, 210, 0.07) 1px, transparent 1px),
    linear-gradient(#f8f5e8, #f8f5e8);
  background-size: 28px 100%, auto;
}

.meme-card {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 2px solid #fff;
  border-right-color: #7e8cae;
  border-bottom-color: #7e8cae;
  border-radius: 5px;
  background: #fffdf4;
  box-shadow: 0 12px 24px rgba(15, 45, 98, 0.18);
}

.meme-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid #9ba8c9;
  background: #dfefff;
}

.meme-card figcaption {
  margin-top: 8px;
  color: #0b3d98;
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cable-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(7, 30, 88, 0.95), rgba(8, 17, 45, 0.98)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 12px);
  overflow: hidden;
}

.cable-path {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 50%;
  height: 110px;
  transform: translateY(-50%) rotate(-2deg);
  pointer-events: none;
  opacity: 0.9;
}

.cable-path span {
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff269, var(--ethernet-yellow) 52%, #d99100);
  box-shadow: 0 0 28px rgba(255, 210, 40, 0.48);
}

.cable-path span:nth-child(1) {
  top: 0;
}

.cable-path span:nth-child(2) {
  top: 36px;
}

.cable-path span:nth-child(3) {
  top: 72px;
}

.cable-copy,
.mini-windows {
  position: relative;
  z-index: 1;
}

.cable-copy {
  width: min(780px, 100%);
}

.cable-copy p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: #dce8ff;
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  line-height: 1.55;
}

.mini-windows {
  display: grid;
  gap: 12px;
}

.mini-window {
  padding: 13px 14px;
  border: 2px solid #fff;
  border-right-color: #7182ad;
  border-bottom-color: #7182ad;
  border-radius: 4px;
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-weight: 700;
  background: #f8f5e8;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.connection-section {
  background:
    linear-gradient(180deg, rgba(128, 200, 72, 0.92), rgba(238, 248, 255, 0.96));
}

.settings-window {
  width: min(760px, 100%);
  margin: 0 auto;
}

.settings-body {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 24px;
  padding: clamp(22px, 4vw, 36px);
  align-items: start;
}

.connection-icon {
  position: relative;
  width: 100px;
  height: 76px;
}

.connection-icon span {
  position: absolute;
  bottom: 0;
  width: 54px;
  height: 40px;
  border: 3px solid #25579d;
  border-radius: 6px;
  background: #d9eaff;
}

.connection-icon span:first-child {
  left: 0;
}

.connection-icon span:last-child {
  right: 0;
}

.connection-icon::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 14px;
  height: 12px;
  border-radius: 999px;
  background: var(--ethernet-yellow);
  box-shadow: 0 0 14px rgba(255, 210, 40, 0.8);
}

.settings-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.settings-list div {
  display: grid;
  grid-template-columns: minmax(90px, 140px) 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #c7c0a9;
}

.settings-list dt {
  color: var(--muted);
  font-weight: 700;
}

.settings-list dd {
  margin: 0;
  font-family: "Courier New", monospace;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.community-section {
  padding-bottom: 120px;
  background: linear-gradient(180deg, rgba(238, 248, 255, 0.96), rgba(28, 90, 190, 0.9));
}

.forum-panel {
  width: min(900px, 100%);
  margin: 0 auto;
  border: 2px solid #0d3484;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f5e8;
  box-shadow: 0 20px 40px rgba(6, 23, 64, 0.22);
}

.forum-head,
.forum-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.4fr);
  gap: 16px;
  padding: 13px 16px;
}

.forum-head {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, var(--xp-blue-light), var(--xp-blue-dark));
}

.forum-row {
  border-top: 1px solid #c7c0a9;
}

.forum-row:nth-child(odd) {
  background: #fffdf4;
}

.forum-row a {
  color: #0b55c4;
  font-weight: 700;
}

.topic {
  font-weight: 700;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 44px;
  z-index: 29;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 7px 12px;
  color: #0f265f;
  font-size: 0.78rem;
  background: rgba(248, 245, 232, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
}

@keyframes blink {
  50% {
    opacity: 0.28;
  }
}

@keyframes loading {
  0% {
    transform: translateX(-18px);
  }
  100% {
    transform: translateX(18px);
  }
}

@media (max-width: 860px) {
  .taskbar {
    grid-template-columns: auto 1fr;
  }

  .task-tabs {
    display: none;
  }

  .tray {
    justify-self: end;
  }

  .hero {
    min-height: calc(100vh - 44px);
    flex-direction: column;
    align-items: flex-start;
    padding-top: 78px;
    background-position: center top;
  }

  .hero-copy {
    padding-top: 14px;
  }

  .floating-window {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    margin-top: 18px;
  }

  .msn-window {
    display: none;
  }

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

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

  .cable-section {
    grid-template-columns: 1fr;
  }

  .cable-path {
    opacity: 0.42;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-actions,
  .xp-button {
    width: 100%;
  }

  .memory-grid {
    grid-template-columns: 1fr;
  }

  .memory-card {
    min-height: 158px;
  }

  .shortcut-icon-img {
    width: 74px;
    height: 74px;
  }

  .meme-grid {
    grid-template-columns: 1fr;
  }

  .settings-body {
    grid-template-columns: 1fr;
  }

  .settings-list div,
  .forum-head,
  .forum-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: none;
  }
}
