    :root {
      --bg: #eef3f9;
      --surface: #ffffff;
      --surface-alt: #f6f9fc;

      --text: #172033;
      --text-muted: #718096;

      --primary: #2563eb;
      --primary-dark: #1d4ed8;
      --accent: #00b8a9;

      --border: #dce4ee;
      --border-strong: #c8d4e3;

      --shadow-sm:
        0 2px 8px rgba(15, 23, 42, 0.05);

      --shadow-md:
        0 8px 24px rgba(15, 23, 42, 0.08);

      --radius: 14px;
      --radius-sm: 10px;

      --max-width: 1200px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      min-height: 100vh;

      font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
                   "Segoe UI", sans-serif;

      font-size: 18px;
      line-height: 1.6;
      font-weight: 400;

      color: var(--text);
      background:
        radial-gradient(
          circle at top right,
          rgba(37, 99, 235, 0.08),
          transparent 35%
        ),
        var(--bg);

      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    /* --------------------------------
       Main page sections
    -------------------------------- */

    .hero,
    .row {
      width: min(100% - 2rem, var(--max-width));
      margin-inline: auto;
    }

    .hero {
      padding: clamp(2rem, 5vw, 4.5rem) 0
               clamp(2rem, 4vw, 3.5rem);
    }

    .hero h1 {
      margin: 0;

      font-size: clamp(2.2rem, 5vw, 4rem);
      line-height: 1.05;
      font-weight: 800;
      letter-spacing: -0.04em;

      color: var(--text);
    }

    .hero h1::after {
      content: "";
      display: block;

      width: 64px;
      height: 4px;

      margin-top: 1rem;

      border-radius: 999px;
      background: linear-gradient(
        90deg,
        var(--primary),
        var(--accent)
      );
    }

    .hero h2 {
      margin: 1rem 0 0;

      font-size: clamp(1.25rem, 2.5vw, 1.75rem);
      line-height: 1.3;
      font-weight: 600;

      color: #334155;
    }

    .hero p {
      margin: 0.4rem 0 0;
      font-size: 1rem;
    }

    .hero .author {
      margin-top: 1.5rem;

      font-size: 1.2rem;
      font-weight: 600;

      color: var(--text-muted);
    }

    .hero .date {
      font-size: 1rem;
      color: #94a3b8;
    }

    /* --------------------------------
       Section
    -------------------------------- */

    .row {
      margin-bottom: 1.5rem;
      padding: clamp(1.25rem, 3vw, 2rem);

      background: rgba(255, 255, 255, 0.88);

      border: 1px solid var(--border);
      border-radius: var(--radius);

      box-shadow: var(--shadow-sm);

      backdrop-filter: blur(8px);
    }

    .row h2 {
      margin: 0 0 1.25rem;

      font-size: clamp(1.25rem, 2.5vw, 1.65rem);
      line-height: 1.25;
      font-weight: 700;
      letter-spacing: -0.02em;

      color: var(--text);
    }

    .row h2::before {
      content: "";
      display: inline-block;

      width: 4px;
      height: 1.1em;

      margin-right: 0.65rem;

      vertical-align: -0.15em;

      border-radius: 999px;
      background: linear-gradient(
        180deg,
        var(--primary),
        var(--accent)
      );
    }

    /* --------------------------------
       Instance container
    -------------------------------- */

    .srow {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1rem;
      width: 100%;
      margin: 0;
      padding: 0;
      border: 0;
      background: transparent;
    }

    /* --------------------------------
       Instance cards
    -------------------------------- */

    .instance {
      margin: 0;
      padding: 0;

      background: var(--surface);

      border: 1px solid var(--border);
      border-radius: var(--radius-sm);

      box-shadow: var(--shadow-sm);

      overflow: hidden;

      transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
    }

    .instance:hover {
      transform: translateY(-3px);

      border-color: rgba(37, 99, 235, 0.45);

      box-shadow: var(--shadow-md);
    }

    .instance a {
      display: flex;
      align-items: center;
      justify-content: space-between;

      min-height: 74px;
      padding: 1rem 1.15rem;

      color: var(--text);
      text-decoration: none;

      font-size: 1rem;
      font-weight: 700;

      transition:
        background-color 160ms ease,
        color 160ms ease;
    }

    .instance a::after {
      /*content: "→";*/

      font-size: 1.25rem;
      font-weight: 400;

      color: var(--primary);

      transition: transform 160ms ease;
    }

    .instance a:hover {
      color: var(--primary-dark);
      background: #f5f8ff;
    }

    .instance a:hover::after {
      transform: translateX(4px);
    }

    .instance a:focus-visible {
      outline: 3px solid rgba(37, 99, 235, 0.3);
      outline-offset: -3px;
    }

    /* --------------------------------
       How To section
    -------------------------------- */

    .howto {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
      gap: clamp(2rem, 5vw, 4rem);
      /*border: solid 1px red;*/

      align-items: center;
    }

    .howto-content {
      padding: 0;
    }

    .howto-content h2 {
      margin-bottom: 1.75rem;
    }

/*    .howto-content p {
      margin: 0;
      max-width: 680px;
      font-size: 1.2rem;
      line-height: 1.65;
      color: var(--text-muted);
    }*/

    .howto-item {
      padding: 0 0 1.25rem;
      margin-bottom: 1.25rem;

      border-bottom: 1px solid var(--border);
    }

    .howto-item:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: 0;
    }

    .howto-item h3 {
      margin: 0 0 0.4rem;

      font-size: 1.2rem;
      line-height: 1.4;
      font-weight: 700;

      color: var(--text);
    }

    .howto-item p {
      margin: 0;

      max-width: 680px;

      font-size: 1.2rem;
      line-height: 1.65;

      color: var(--text-muted);
    }

    .howto-image {
      padding: 0;

      display: flex;
      align-items: center;
      justify-content: center;

      min-height: 260px;

      background:
        linear-gradient(
          135deg,
          rgba(37, 99, 235, 0.08),
          rgba(0, 184, 169, 0.08)
        );

      border: 1px solid var(--border);
      border-radius: var(--radius);

      overflow: hidden;
    }

    .howto-image img {
      display: block;

      width: 100%;
      height: auto;

      max-height: 420px;

      object-fit: contain;
    }


/* =================================
   HOW TO / IMAGE MODAL SECTION
================================= */

.howto-modal {
  display: grid;

  /*PCH*/
  /* 56% text / 44% image */
  grid-template-columns: 56% 44%;

  gap: 0;

  padding: 0;

  overflow: hidden;
}


/* ---------------------------------
   Left content
--------------------------------- */

.howto-modal-content {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.howto-modal-content h2 {
  margin-top: 0;
  margin-bottom: 2rem;
}

.howto-answer {
  padding: 0 0 1.25rem;
  margin-bottom: 1.25rem;

  border-bottom: 1px solid var(--border);
}

.howto-answer:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.howto-answer h3 {
  margin: 0 0 0.4rem;

  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 700;

  color: var(--text);
}

.howto-answer p {
  margin: 0;

  font-size: 1.2rem;
  line-height: 1.65;

  color: var(--text-muted);
}


/* ---------------------------------
   Right image
--------------------------------- */

.howto-modal-image {
  min-width: 0;
  padding: 0;
}

.image-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  /* min-height: 380px; */
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #0b1220;
  /*cursor: zoom-in;*/
  overflow: hidden;
}

.image-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  /* min-height: 380px; */
  object-fit: cover;
  transition:
    transform 350ms ease,
    filter 350ms ease;
}


/* Dark overlay */

.image-overlay {
  position: absolute;

  inset: 0;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 0.5rem;

  color: white;

  background: rgba(7, 15, 30, 0.0);

  font-size: 0.8rem;
  font-weight: 600;

  opacity: 0;

  transition:
    opacity 200ms ease,
    background 200ms ease;
}

.image-trigger:hover img {
  transform: scale(1.025);
  filter: brightness(0.78);
}

.image-trigger:hover .image-overlay {
  opacity: 1;
  background: rgba(7, 15, 30, 0.25);
}

.image-trigger:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}




/* =================================
   FULLSCREEN MODAL
================================= */

body.modal-open {
  overflow: hidden;
}

.image-modal {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: clamp(1rem, 3vw, 3rem);

  opacity: 0;

  transition: opacity 180ms ease;
}

.image-modal.is-open {
  opacity: 1;
}


/* Background */

.modal-backdrop {
  position: absolute;

  inset: 0;

  background: rgba(3, 8, 20, 0.88);

  backdrop-filter: blur(8px);
}


/* Modal window */

.modal-content {
  position: relative;

  z-index: 1;

  display: flex;
  flex-direction: column;

  width: min(1400px, 96vw);
  height: min(900px, 94vh);

  background: #0b1220;

  border: 1px solid rgba(255,255,255,0.15);

  border-radius: 14px;

  box-shadow:
    0 30px 80px rgba(0,0,0,0.45);

  overflow: hidden;

  transform: scale(0.96);

  transition: transform 180ms ease;
}

.image-modal.is-open .modal-content {
  transform: scale(1);
}


/* Modal header */

.modal-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  min-height: 54px;

  padding: 0.75rem 1rem;

  color: #e8eef7;

  background: #101a2d;

  border-bottom: 1px solid rgba(255,255,255,0.1);

  font-size: 0.85rem;
  font-weight: 600;
}


/* Close button */

.modal-close {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  padding: 0;

  border: 0;
  border-radius: 8px;

  color: #dbe5f2;
  background: transparent;

  font-size: 1.8rem;
  font-weight: 300;

  cursor: pointer;

  transition:
    background 150ms ease,
    color 150ms ease;
}

.modal-close:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}

.modal-close:focus-visible {
  outline: 2px solid var(--primary);
}


/* Modal image */

.modal-image-container {
  flex: 1;

  display: flex;

  align-items: center;
  justify-content: center;

  min-height: 0;

  padding: clamp(0.5rem, 2vw, 1.5rem);
}

.modal-image-container img {
  display: block;

  max-width: 100%;
  max-height: 100%;

  width: auto;
  height: auto;

  object-fit: contain;
}

:root {
  --dev-border-color: red;
}

  /* VSTATS */

.traffic-count {
  color: #778;
  font-size: 2.4rem;
}

.vstats-header {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 400;
}

.vstats-content {
  height: 110px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 4rem;
  /* border-top: 1px solid var(--dev-border-color); */
}

.bar {
  position: relative;
  display: inline-block;
  width: 14px;
  border-radius: 999px;
  background: linear-gradient(to top,
      rgba(30, 55, 25, .4),
      rgba(120, 125, 125, .9));
  opacity: 0.2;
}

.bar-text {
  visibility: hidden;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #cccccc30;
  color: #222;
  padding: 8px 8px;
  border-radius: 20px;
  white-space: nowrap;
  font-size: 0.8rem;
}

.bar:hover .bar-text {
  visibility: visible;
}

/* Responsive */

@media (max-width: 1200px) {
  .bar {
    width: 10px;
  }
}

@media (max-width: 900px) {
  .bar {
    width: 10px;
  }
}

@media (max-width: 750px) {
  .bar {
    width: 6px;
  }
}


/* =================================
   MOBILE
================================= */

@media (max-width: 760px) {

  .howto-modal {
    grid-template-columns: 1fr;
  }

  .howto-modal-content {
    order: 2;
  }

  .howto-modal-image {
    order: 1;
  }

  .image-trigger,
  .image-trigger img {
    min-height: 240px;
  }

  .image-overlay {
    opacity: 1;

    background: linear-gradient(
      transparent,
      rgba(7,15,30,0.5)
    );

    justify-content: flex-end;

    padding-bottom: 1.25rem;
  }

  .modal-content {
    width: 100%;
    height: 90vh;

    border-radius: 10px;
  }
}


/* =================================
   REDUCED MOTION
================================= */

@media (prefers-reduced-motion: reduce) {

  .image-modal,
  .modal-content,
  .image-trigger img,
  .image-overlay {
    transition: none;
  }
}



    /* --------------------------------
       Responsive
    -------------------------------- */

    @media (max-width: 760px) {
      .howto {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }

      .howto-image {
        order: -1;
        min-height: 200px;
      }
    }

    @media (max-width: 640px) {
      body {
        font-size: 16px;
      }

      .hero,
      .row {
        width: min(100% - 1.25rem, var(--max-width));
      }

      .hero {
        padding-top: 2rem;
      }

      .row {
        padding: 1rem;
        margin-bottom: 1rem;
      }

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

      .instance a {
        min-height: 64px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }

      *,
      *::before,
      *::after {
        transition: none !important;
      }
    }
