:root {
  --color-text-primary: #e0e0e0;
  --color-text-secondary: #ccc;
  --color-text-tertiary: #bbb;
  --color-text-muted: #aaa;
  --color-bg-dark: #121212;
  --color-bg-header: #2F3339;
  --color-primary: #029CF2;
  --color-border: rgba(34, 34, 34, 0.5);
  --color-border-light: rgba(255, 255, 255, 0.1);
  --color-border-lighter: rgba(255, 255, 255, 0.2);
  --color-card-bg: rgba(255, 255, 255, 0.05);
  --color-card-bg-hover: rgba(255, 255, 255, 0.07);
  --color-shadow: rgba(0, 0, 0, 0.3);
}

html {
      scroll-behavior: smooth;
      scroll-padding-top: 80px;
    }

    body {
      margin: 0;
      font-family: Arial, sans-serif;
      color: var(--color-text-primary);
      background: var(--color-bg-dark);
      position: relative;
      z-index: 0;
    }

    body::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: url('img/bg.png') center calc(var(--parallax-bg-pos, 0px)) / cover repeat-y;
      z-index: -1;
      pointer-events: none;
      will-change: background-position;
    }

    header,
    footer {
      padding: 1rem 2rem;
      background: var(--color-bg-header);
    }

    header {
      display: flex;
      align-items: center;
      border-bottom: 1px solid var(--color-border);
    }

    header .logo {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    header .logo img {
      height: 32px;
      width: 32px;
    }

    header h1 {
      margin: 0;
      font-size: 1.5rem;
      color: var(--color-text-primary);
    }

    header .buttons {
      display: flex;
      gap: 0.5rem;
      margin-left: auto;
    }

    header .buttons a {
      padding: 0.5rem 1rem;
      background: var(--color-primary);
      color: #fff;
      border-radius: 1rem;
      text-decoration: none;
      border: 1px solid transparent;
      transition: border-color 0.3s ease, box-shadow 0.2s ease;
    }

    header .buttons a:hover {
      border-color: #fff;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    }

    main {
      max-width: 1000px;
      margin: 0 auto;
      padding: 3rem 1.5rem;
      background: transparent;
    }

    section {
      margin-bottom: 3rem;
      text-align: center;
      background: transparent;
    }

    section h2 {
      font-size: 2.4rem;
      margin-bottom: 1rem;
      color: var(--color-text-secondary);
    }

    section p {
      max-width: 600px;
      margin: 0.75rem auto 0;
      font-size: 1.2rem;
      line-height: 1.7;
      color: var(--color-text-tertiary);
    }

    .hero-logo {
      max-width: 300px;
      margin: 2rem auto;
      display: block;
    }

    .promo {
      margin-top: 2rem;
    }

    .promo img {
      max-width: 100%;
      border-radius: 1rem;
      box-shadow: 0 2px 8px var(--color-shadow);
      background: transparent;
    }

    /* Downloads */
    .downloads {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.5rem;
      margin-top: 2rem;
    }

    .download-title {
      font-size: 1.25rem;
      margin-bottom: 0.25rem;
      display: flex;
      align-items: baseline;
      justify-content: center;
      gap: 0.5rem;
    }

    .download-latest {
      font-size: 0.75rem;
      font-weight: normal;
    }

    .downloads p {
      font-size: 0.95rem;
      margin: 0.5rem 0 0;
    }

    /* Cards and feature overview blocks */
    .card,
    .feature-overview {
      background: var(--color-card-bg);
      backdrop-filter: blur(5px);
      border-radius: 1rem;
      border: 1px solid var(--color-border-light);
      box-shadow: 0 4px 12px var(--color-shadow);
      padding: 1.5rem;
      text-align: center;
      transition: box-shadow 0.2s, border-color 0.3s, background-color 0.3s;
      overflow: visible;
    }

    .card:hover,
    .feature-overview:hover {
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
      border-color: var(--color-primary);
      background: var(--color-card-bg-hover);
    }

    .card h3 {
      margin: 0.5rem 0;
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      color: var(--color-text-muted);
    }

    .card img.platform {
      height: 24px;
      width: auto;
    }

    .card p {
      color: var(--color-text-secondary);
      margin: 0.5rem 0 0;
    }

    .card a {
      color: var(--color-primary);
      text-decoration: none;
    }

    /* Feature flex */
    .feature-flex {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      align-items: center;
      margin-bottom: 3rem;
    }

    .feature-reverse {
      flex-direction: row-reverse;
    }

    .feature-flex div {
      flex: 1;
      min-width: 250px;
    }

    .feature-flex img {
      max-width: 100%;
      display: block;
      margin: 0 auto;
    }

    /* Feature content */
    .feature-overview {
      padding: 60px; /* ensures room for shadows */
    }

    .feature-overview h3 {
      font-size: 1.4rem;
      margin-bottom: 1rem;
      color: #ddd;
    }

    .feature-overview p {
      font-size: 1.05rem;
      line-height: 1.6;
      margin-top: 0.5rem;
      color: var(--color-text-secondary);
    }

    .feature-overview .img-wrap {
      display: inline-block;
      border-radius: 6px;
      box-sizing: border-box;
    }

    .feature-overview .img-wrap img {
      display: block;
      width: 100%;
      height: auto;
      margin: 0;
      border-radius: 6px;
      box-sizing: border-box;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
      background-clip: padding-box;
    }

    /* Table styling */
    table.simulator {
      width: 100%;
      border-collapse: collapse;
      text-align: center;
      margin: 0 auto;
      max-width: 800px;
    }

    table.simulator th,
    table.simulator td {
      padding: 0.75rem;
      text-align: center;
    }

    table.simulator th {
      border-bottom: 1px solid var(--color-border-lighter);
      color: var(--color-text-secondary);
    }

    table.simulator td {
      border-bottom: 1px solid var(--color-border-light);
      color: var(--color-text-tertiary);
    }

    /* CTA and links */
    .cta a {
      display: inline-block;
      margin: 0.5rem;
      padding: 0.75rem 1.5rem;
      font-size: 1rem;
      background: var(--color-primary);
      color: #fff;
      border-radius: 1rem;
      text-decoration: none;
    }

    footer {
      border-top: 1px solid var(--color-border);
      text-align: center;
      font-size: 0.85rem;
      color: var(--color-text-muted);
      margin-top: 2rem;
    }

    .links {
      margin-top: 0.5rem;
    }

    .links a {
      color: var(--color-primary);
      text-decoration: none;
      margin: 0 0.5rem;
    }