:root {
  --xp-blue: #245edb;
  --xp-light-blue: #6b93d6;
  --xp-gradient-start: #0058ee;
  --xp-gradient-end: #3f8cf3;
  --win-gray: #ece9d8;
  --win-dark-gray: #808080;
  --glossy-highlight: rgba(255, 255, 255, 0.4);
  --corporate-text: #333;
  --link-blue: #0000ff;
  --bsod-blue: #0000aa;
  --donation-green: #28a745;
  --donation-hover: #218838;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Tahoma", "Verdana", sans-serif;
  background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
  background-attachment: fixed;
  color: var(--corporate-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.crashed {
  overflow: hidden;
}

.bsod {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bsod-blue);
  color: white;
  font-family: "Courier New", monospace;
  padding: 50px;
  z-index: 9999;
  display: none;
  overflow: hidden;
}

.bsod.active {
  display: block;
}

.bsod h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.bsod p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.bsod .error-code {
  margin-top: 30px;
  font-weight: bold;
}

.bsod .restart-hint {
  margin-top: 20px;
  font-size: 0.9rem;
}

header {
  background: linear-gradient(
    to bottom,
    #245edb 0%,
    #3f8cf3 9%,
    #245edb 18%,
    #245edb 92%,
    #3f8cf3 100%
  );
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 100;
}

.start-btn {
  background: linear-gradient(to bottom, #3c8f28 0%, #5cb846 50%, #3c8f28 100%);
  border: 2px solid #fff;
  border-radius: 0 10px 10px 0;
  color: white;
  font-weight: bold;
  font-style: italic;
  padding: 5px 15px 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  font-size: 16px;
  transition: all 0.1s;
}

.start-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.start-btn:active {
  transform: scale(0.98);
}

.start-icon {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #3c8f28;
  font-weight: 900;
  font-family: serif;
}

.address-bar {
  margin-left: 20px;
  background: white;
  border: 2px solid #7a93c7;
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 12px;
  color: #666;
  flex-grow: 1;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.desktop {
  flex-grow: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.window {
  background: var(--win-gray);
  border: 1px solid #00138c;
  border-radius: 8px 8px 0 0;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.title-bar {
  background: linear-gradient(
    to bottom,
    #0058ee 0%,
    #3593ff 4%,
    #288eff 18%,
    #127dff 44%,
    #036dff 100%
  );
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

.window-controls {
  display: flex;
  gap: 5px;
}

.control-btn {
  width: 21px;
  height: 21px;
  border: 1px solid white;
  border-radius: 3px;
  background: linear-gradient(to bottom, #d4e4f7 0%, #70a1e3 100%);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: white;
  cursor: pointer;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.close-btn {
  background: linear-gradient(to bottom, #e08a8a 0%, #c94f4f 100%);
  border-color: #fff;
}

.window-body {
  padding: 20px;
  background: white;
  border: 1px solid #999;
  margin: 3px;
  min-height: 400px;
}

.hero {
  text-align: center;
  margin-bottom: 30px;
}

h1 {
  font-family: "Verdana", sans-serif;
  color: #003399;
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.subtitle {
  font-size: 1.1rem;
  color: #555;
  background: #f0f0f0;
  display: inline-block;
  padding: 5px 15px;
  border: 1px dashed #999;
}

.screenshot-container {
  border: 4px solid #ece9d8;
  border-bottom-color: #fff;
  border-right-color: #fff;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
  margin: 20px auto;
  max-width: 100%;
  position: relative;
}

.screenshot-container img {
  display: block;
  max-width: 100%;
  height: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.feature-item {
  text-align: center;
  padding: 15px;
  border: 1px solid #ccc;
  background: #fff;
  transition: transform 0.2s;
  cursor: default;
}

.feature-item:hover {
  background: #e6f0ff;
  border-color: #0058ee;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  display: block;
}

.feature-title {
  font-weight: bold;
  color: #003399;
  margin-bottom: 5px;
  display: block;
}

.feature-desc {
  font-size: 0.85rem;
  color: #666;
}

.ai-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
  text-align: center;
}

.ai-section h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.ai-logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.ai-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.download-section {
  background: #f9f9f9;
  border: 2px solid #0058ee;
  padding: 20px;
  text-align: center;
  margin-top: 30px;
  position: relative;
}

.new-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: red;
  color: yellow;
  font-weight: bold;
  padding: 5px 10px;
  border: 2px solid white;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  transform: rotate(15deg);
  font-family: "Comic Sans MS", "Chalkboard SE", sans-serif;
}

.xp-button {
  background: linear-gradient(
    to bottom,
    #f2f2f2 0%,
    #ebebeb 50%,
    #dddddd 51%,
    #cfcfcf 100%
  );
  border: 1px solid #707070;
  border-radius: 3px;
  padding: 10px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #ccc;
  text-decoration: none;
  display: inline-block;
  margin-top: 15px;
}

.xp-button:active {
  background: linear-gradient(
    to bottom,
    #cfcfcf 0%,
    #dddddd 49%,
    #ebebeb 50%,
    #f2f2f2 100%
  );
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.xp-button.primary {
  background: linear-gradient(
    to bottom,
    #6b93d6 0%,
    #4f7bc9 50%,
    #3f6cb5 51%,
    #2e5a9e 100%
  );
  color: white;
  border-color: #204070;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
}

.download-btn:active {
  transform: translateY(0);
}

.btn-windows {
  background: linear-gradient(to bottom, #0078d4 0%, #005a9e 100%);
  color: white;
  border: 2px solid #004578;
}

.btn-mac {
  background: linear-gradient(to bottom, #a2aaad 0%, #7d8588 100%);
  color: white;
  border: 2px solid #5c6366;
}

.btn-linux {
  background: linear-gradient(to bottom, #f7b500 0%, #d49a00 100%);
  color: white;
  border: 2px solid #b38200;
}

.btn-icon {
  font-size: 1.5rem;
}

.donation-section {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  border: 3px dashed #ff6b6b;
  padding: 25px;
  margin-top: 30px;
  text-align: center;
  border-radius: 10px;
}

.donation-section h3 {
  color: #d63031;
  margin-bottom: 10px;
}

.donation-section p {
  color: #636e72;
  margin-bottom: 15px;
  font-style: italic;
}

.donate-btn {
  background: linear-gradient(
    to bottom,
    var(--donation-green) 0%,
    var(--donation-hover) 100%
  );
  color: white;
  border: 2px solid #1e7e34;
  padding: 15px 40px;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}

.donate-btn:hover {
  transform: scale(1.05);
  box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.4);
}

.donate-btn:active {
  transform: scale(0.98);
}

.sad-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 10px;
}

.marquee-container {
  background: #000;
  color: #0f0;
  font-family: "Courier New", monospace;
  padding: 5px;
  margin-bottom: 20px;
  border: 2px inset #ccc;
  width: 100%;
  max-width: 900px;
}

.sys-req {
  background: #ffffcc;
  border: 2px dashed #ff9900;
  padding: 15px;
  margin-top: 20px;
  font-size: 0.9rem;
}

.sys-req h4 {
  margin-top: 0;
  color: #cc6600;
}

footer {
  background: #ece9d8;
  border-top: 2px solid #fff;
  padding: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  margin-top: auto;
}

.footer-links a {
  color: #0000ff;
  text-decoration: underline;
  margin: 0 10px;
}

.construction {
  display: inline-block;
  background: repeating-linear-gradient(
    45deg,
    #ffff00,
    #ffff00 10px,
    #000000 10px,
    #000000 20px
  );
  padding: 5px 15px;
  color: white;
  font-weight: bold;
  text-shadow: 1px 1px 2px black;
  margin: 10px 0;
}

.visitor-counter {
  background: black;
  color: red;
  font-family: "Courier New", monospace;
  padding: 5px 15px;
  border: 2px inset #ccc;
  display: inline-block;
  margin-top: 10px;
  letter-spacing: 3px;
}

@media (max-width: 768px) {
  .address-bar {
    display: none;
  }

  h1 {
    font-size: 1.8rem;
  }

  .window {
    width: 95%;
  }

  .window-body {
    padding: 15px;
  }

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

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .download-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .bsod {
    padding: 20px;
  }

  .bsod h1 {
    font-size: 1.5rem;
  }

  .bsod p {
    font-size: 0.85rem;
  }

  .ai-logos {
    flex-direction: column;
    align-items: center;
  }

  .donate-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
  }

  .start-btn {
    font-size: 14px;
    padding: 5px 10px;
  }

  header {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .desktop {
    padding: 10px;
  }

  .subtitle {
    font-size: 0.9rem;
    padding: 3px 10px;
  }

  .feature-icon {
    font-size: 2rem;
  }

  .screenshot-container {
    border-width: 2px;
  }

  .new-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .sys-req {
    font-size: 0.8rem;
  }

  .sys-req ul {
    padding-left: 20px;
  }
}
