/* Index.css - Updated: Very small screen fixes + text-based scale labels */

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #fff;
  background: #000;
  overflow-x: hidden;
}

.background {
  min-height: 100vh;
  background: linear-gradient(to bottom, #000, #111);
  position: relative;
}

.content {
  margin-right: 380px;
  margin-left: 40px;
  padding: 280px 40px 120px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Welcome & Scale Intro */
.welcome-section,
.scale-introduction {
  padding: 50px 20px;
  margin-bottom: 50px;
}

.welcome-section h1 {
  font-size: 44px;
  margin-bottom: 20px;
  color: #ff9900;
}

.welcome-section p,
.scale-introduction p {
  font-size: 22px;
  max-width: 850px;
  margin: 0 auto 40px;
  color: #ffffff;
}

.cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: #ff9900;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
}

.scale-introduction h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: #ff9900;
}

/* Electricity Separator */
.electricity-separator {
  height: 10px;
  width: 90%;
  max-width: 900px;
  margin: 100px auto;
  background: linear-gradient(90deg,
    #00aaff 0%,
    #00aaff 35%,
    #ffffff 40%,
    #ffff00 43%,
    #ff6600 46%,
    #ff0000 50%,
    #ff6600 54%,
    #ffff00 57%,
    #ffffff 60%,
    #00aaff 65%,
    #00aaff 100%);
  background-size: 500% 100%;
  background-position: 50% 0;
  box-shadow:
    0 0 4px #ff0000,
    0 0 8px rgba(255,102,0,0.25),
    0 0 12px rgba(0,170,255,0.15);
  position: relative;
  border-radius: 6px;
  animation: center-out-expand 12s infinite ease-in-out;
}

.electricity-separator::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0,170,255,0.25) 15%,
    rgba(255,255,255,0.25) 30%,
    rgba(255,255,0,0.25) 40%,
    rgba(255,102,0,0.25) 45%,
    rgba(255,0,0,0.25) 50%,
    rgba(255,102,0,0.25) 55%,
    rgba(255,255,0,0.25) 65%,
    rgba(0,170,255,0.25) 85%,
    transparent);
  opacity: 0.12;
  filter: blur(4px);
  animation: faint-edge 10s infinite alternate;
}

@keyframes center-out-expand {
  0%, 100% {
    background-size: 220% 100%;
    background-position: 50% 0;
  }
  50% {
    background-size: 600% 100%;
    background-position: 50% 0;
  }
}

@keyframes faint-edge {
  0% { opacity: 0.1; }
  100% { opacity: 0.25; }
}

/* Scale Block */
.scale-block {
  margin-bottom: 80px;
}

/* Scale Sections */
.scale-section {
  padding: 45px 20px;
  margin-bottom: 60px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.scale-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.scale-image,
.scale-info {
  flex: 1;
  min-width: 300px;
}

.scale-image img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(255,153,0,0.3);
  margin-bottom: 20px;
}

.scale-info h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #ff9900;
}

/* Small text label under each section header on very small screens */
.scale-section .scale-label {
  display: none;
  font-size: 14px;
  font-weight: bold;
  color: #ff9900;
  margin: -30px 0 20px;
  text-align: center;
  opacity: 0.9;
}

/* Vertical Scale Line */
.vertical-scale-line {
  position: absolute;
  right: 280px;
  top: var(--scale-start);
  height: var(--scale-height);
  width: 8px;
  background: #ffffff;
  box-shadow: 0 0 25px #ffffff, 0 0 50px rgba(255,255,255,0.6);
  z-index: 5;
  pointer-events: none;
}

.vertical-scale-line::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: repeating-linear-gradient(to bottom, #ffffff 0px, #ffffff 8px, transparent 8px, transparent 24px);
  transform: translateX(-50%);
  opacity: 0.6;
}

.scale-marker {
  position: absolute;
  right: -340px;
  width: 300px;
  text-align: left;
  font-size: 15px;
  color: #ffffff;
  opacity: 1;
  transition: all 0.4s ease;
}

.scale-marker span {
  display: block;
  line-height: 1.6;
  font-weight: bold;
  white-space: nowrap;
}

.scale-marker::before {
  content: '';
  position: absolute;
  left: -90px;
  top: 50%;
  width: 90px;
  height: 8px;
  background: #ffffff;
  box-shadow: 0 0 20px #ffffff;
  transform: translateY(-50%);
}

.scale-marker.active {
  opacity: 1;
  transform: translateX(-30px);
  color: #ff9900;
}

.scale-marker.apartment { top: -1.5%; }
.scale-marker.home      { top: 15%; }
.scale-marker.business  { top: 35%; }
.scale-marker.building  { top: 53%; }
.scale-marker.town      { top: 68%; }
.scale-marker.city      { top: 85%; }

/* Lotto Mining (unchanged) */
.lotto-mining {
  padding: 50px 20px;
  margin: 60px auto;
  max-width: 900px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: transparent;
}

.lotto-mining h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #ff9900;
}

.lotto-mining h2 span {
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
}

.lottery-pitch {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: #ffffff !important;
}

.rotating-gallery {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid #ff9900;
  box-shadow: 0 0 25px rgba(255,153,0,0.3);
  position: relative;
  height: 240px;
  background: rgba(0,0,0,0.5);
}

.rotating-gallery h3 {
  font-size: 26px;
  margin: 20px 0 15px;
  color: #ff9900;
  text-align: center;
}

.carousel {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  animation: slideCarousel 45s linear infinite;
}

.carousel:hover {
  animation-play-state: paused;
}

.miner-slide {
  flex: 0 0 220px;
  width: 220px;
  padding: 15px 10px;
  text-align: center;
  background: rgba(0,0,0,0.7);
  box-sizing: border-box;
}

.miner-slide img {
  width: 100%;
  max-height: 130px;
  object-fit: contain;
  margin-bottom: 10px;
}

.miner-slide p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #ffffff !important;
}

.miner-slide p strong {
  color: #ff9900;
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}

@keyframes slideCarousel {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────────────────────────── */

/* Extreme small screens (≤ 340px) ─────────────────────────────────────── */
/* Index.css - Updated: Very small screen fixes + text-based scale labels */

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #fff;
  background: #000;
  overflow-x: hidden;
}

.background {
  min-height: 100vh;
  background: linear-gradient(to bottom, #000, #111);
  position: relative;
}

.content {
  margin-right: 380px;
  margin-left: 40px;
  padding: 280px 40px 120px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Welcome & Scale Intro */
.welcome-section,
.scale-introduction {
  padding: 50px 20px;
  margin-bottom: 50px;
}

.welcome-section h1 {
  font-size: 44px;
  margin-bottom: 20px;
  color: #ff9900;
}

.welcome-section p,
.scale-introduction p {
  font-size: 22px;
  max-width: 850px;
  margin: 0 auto 40px;
  color: #ffffff;
}

.cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: #ff9900;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
}

.scale-introduction h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: #ff9900;
}

/* Electricity Separator */
.electricity-separator {
  height: 10px;
  width: 90%;
  max-width: 900px;
  margin: 100px auto;
  background: linear-gradient(90deg,
    #00aaff 0%,
    #00aaff 35%,
    #ffffff 40%,
    #ffff00 43%,
    #ff6600 46%,
    #ff0000 50%,
    #ff6600 54%,
    #ffff00 57%,
    #ffffff 60%,
    #00aaff 65%,
    #00aaff 100%);
  background-size: 500% 100%;
  background-position: 50% 0;
  box-shadow:
    0 0 4px #ff0000,
    0 0 8px rgba(255,102,0,0.25),
    0 0 12px rgba(0,170,255,0.15);
  position: relative;
  border-radius: 6px;
  animation: center-out-expand 12s infinite ease-in-out;
}

.electricity-separator::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0,170,255,0.25) 15%,
    rgba(255,255,255,0.25) 30%,
    rgba(255,255,0,0.25) 40%,
    rgba(255,102,0,0.25) 45%,
    rgba(255,0,0,0.25) 50%,
    rgba(255,102,0,0.25) 55%,
    rgba(255,255,0,0.25) 65%,
    rgba(0,170,255,0.25) 85%,
    transparent);
  opacity: 0.12;
  filter: blur(4px);
  animation: faint-edge 10s infinite alternate;
}

@keyframes center-out-expand {
  0%, 100% {
    background-size: 220% 100%;
    background-position: 50% 0;
  }
  50% {
    background-size: 600% 100%;
    background-position: 50% 0;
  }
}

@keyframes faint-edge {
  0% { opacity: 0.1; }
  100% { opacity: 0.25; }
}

/* Scale Block */
.scale-block {
  margin-bottom: 80px;
}

/* Scale Sections */
.scale-section {
  padding: 45px 20px;
  margin-bottom: 60px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.scale-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.scale-image,
.scale-info {
  flex: 1;
  min-width: 300px;
}

.scale-image img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(255,153,0,0.3);
  margin-bottom: 20px;
}

.scale-info h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #ff9900;
}

/* Small text label under each section header on very small screens */
.scale-section .scale-label {
  display: none;
  font-size: 14px;
  font-weight: bold;
  color: #ff9900;
  margin: -30px 0 20px;
  text-align: center;
  opacity: 0.9;
}

/* Vertical Scale Line */
.vertical-scale-line {
  position: absolute;
  right: 280px;
  top: var(--scale-start);
  height: var(--scale-height);
  width: 8px;
  background: #ffffff;
  box-shadow: 0 0 25px #ffffff, 0 0 50px rgba(255,255,255,0.6);
  z-index: 5;
  pointer-events: none;
}

.vertical-scale-line::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: repeating-linear-gradient(to bottom, #ffffff 0px, #ffffff 8px, transparent 8px, transparent 24px);
  transform: translateX(-50%);
  opacity: 0.6;
}

.scale-marker {
  position: absolute;
  right: -340px;
  width: 300px;
  text-align: left;
  font-size: 15px;
  color: #ffffff;
  opacity: 1;
  transition: all 0.4s ease;
}

.scale-marker span {
  display: block;
  line-height: 1.6;
  font-weight: bold;
  white-space: nowrap;
}

.scale-marker::before {
  content: '';
  position: absolute;
  left: -90px;
  top: 50%;
  width: 90px;
  height: 8px;
  background: #ffffff;
  box-shadow: 0 0 20px #ffffff;
  transform: translateY(-50%);
}

.scale-marker.active {
  opacity: 1;
  transform: translateX(-30px);
  color: #ff9900;
}

.scale-marker.apartment { top: -1.5%; }
.scale-marker.home      { top: 15%; }
.scale-marker.business  { top: 35%; }
.scale-marker.building  { top: 53%; }
.scale-marker.town      { top: 68%; }
.scale-marker.city      { top: 85%; }

/* Lotto Mining (unchanged) */
.lotto-mining {
  padding: 50px 20px;
  margin: 60px auto;
  max-width: 900px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: transparent;
}

.lotto-mining h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #ff9900;
}

.lotto-mining h2 span {
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
}

.lottery-pitch {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: #ffffff !important;
}

.rotating-gallery {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid #ff9900;
  box-shadow: 0 0 25px rgba(255,153,0,0.3);
  position: relative;
  height: 240px;
  background: rgba(0,0,0,0.5);
}

.rotating-gallery h3 {
  font-size: 26px;
  margin: 20px 0 15px;
  color: #ff9900;
  text-align: center;
}

.carousel {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  animation: slideCarousel 45s linear infinite;
}

.carousel:hover {
  animation-play-state: paused;
}

.miner-slide {
  flex: 0 0 220px;
  width: 220px;
  padding: 15px 10px;
  text-align: center;
  background: rgba(0,0,0,0.7);
  box-sizing: border-box;
}

.miner-slide img {
  width: 100%;
  max-height: 130px;
  object-fit: contain;
  margin-bottom: 10px;
}

.miner-slide p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #ffffff !important;
}

.miner-slide p strong {
  color: #ff9900;
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}

@keyframes slideCarousel {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────────────────────────── */

/* Extreme small screens (≤ 340px) ─────────────────────────────────────── */
@media (max-width: 340px) {
  html {
    font-size: 13.8px;          /* slightly smaller base → everything scales down */
  }

  body {
    font-size: 1rem;            /* 13.8px base */
  }

  .content {
    margin-top: 300px;          /* increased for more visible top space on the page */
    padding-top: 220px;         /* increased top padding for breathing room at the top */
    width: 92%;
  }

  .welcome-section,
  .scale-introduction {
    padding: 20px 0;
    margin-bottom: 30px;
  }

  .welcome-section h1 {
    font-size: 28px;            /* px */
    line-height: 1.15;
    margin-bottom: 14px;
    margin-top: 110px;
  }

  .welcome-section p,
  .scale-introduction p {
    font-size: 14px;            /* px */
    line-height: 1.38;
    margin-bottom: 24px;
  }

  .scale-introduction h2 {
    font-size: 16px !important; /* reduced in px – smaller headline, with !important to force it */
    line-height: 1.1;
    margin-bottom: 20px;
  }

  .scale-block h2 {
    font-size: 16px;
  }

  .scale-section {
    padding: 36px 22px 28px;    /* increased top + side padding – adds top space for content and prevents right overflow */
    margin-bottom: 36px;
    border-width: 1px;
    border-radius: 12px;
    overflow: hidden;           /* safety net */
    box-sizing: border-box;
  }

  .scale-section h3 {
    font-size: 22px;            /* px */
    margin-bottom: 12px;
  }

  .scale-info p,
  .scale-info ul {
    font-size: 13px;            /* px */
    line-height: 1.45;
  }

  .scale-info ul {
    padding-left: 14px;         /* reduced to give more right room */
    margin: 12px 0;
  }

  .scale-info li {
    margin-bottom: 0.7em;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    padding-right: 8px;
  }

  .scale-grid {
    gap: 12px;                  /* keeps the gap you said is OK */
  }

  .scale-image {
    margin-bottom: 4px;
  }

  .scale-image img {
    max-height: 180px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(255,153,0,0.18); /* much softer */
    margin-bottom: 0;
  }

  .scale-info {
    margin-top: 12px;           /* increased top margin for content */
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    padding-right: 8px;
  }

  .cta-button {
    padding: 8px 6px;         
    font-size: 11px;            /* px – smaller text */
    border-radius: 3px;         
    display: block;
    width: 50%;
    max-width: 50%;
    text-align: center;
  }

  /* Electricity separator - make it less dramatic */
  .electricity-separator {
    height: 6px;
    margin: 50px auto;
    max-width: 240px;
    box-shadow: 0 0 6px #ff6600;
    border-radius: 3px;
  }

  /* Scale labels on tiny screens - make them smaller but still readable */
  .scale-section .scale-label {
    font-size: 11px;            /* px */
    line-height: 1.3;
    margin: -20px 0 24px;       /* increased bottom margin – pushes content down for top space */
    opacity: 0.85;
  }

  /* ── Lotto section (if you uncomment it later) ── */
  .lotto-mining h2 {
    font-size: 22px;            /* px */
  }

  .lotto-mining h2 span {
    font-size: 28px;            /* px */
  }

  .rotating-gallery {
    height: 160px;
    border-width: 1px;
  }

  .carousel {
    animation-duration: 60s;   /* slower so people can actually read */
  }

  .miner-slide {
    flex: 0 0 140px;
    width: 140px;
    padding: 10px 6px;
  }

  .miner-slide img {
    max-height: 80px;
  }

  .miner-slide p {
    font-size: 10px;            /* px */
  }

  .miner-slide p strong {
    font-size: 12px;            /* px */
  }

  /* Critical overflow fix – keeps the working version without overflow */
  .scale-image,
  .scale-info {
    min-width: 0;
  }
}

/* ── Extreme small screens (≤ 400px) ─────────────────────────────────────── */
@media (max-width: 400px) {
  html {
    font-size: 13.8px;          /* slightly smaller base → everything scales down */
  }

  body {
    font-size: 1rem;            /* 13.8px base */
  }

  .content {
    padding: 
      110px 12px 60px !important;   /* very tight top/bottom */
    margin: 0;
    width: 95%;
  }

  .welcome-section,
  .scale-introduction {
    padding: 20px 0;
    margin-bottom: 30px;
  }

  .welcome-section h1 {
    font-size: 1.9rem;           /* ≈26-28px */
    line-height: 1.15;
    margin-bottom: 14px;
  }

  .welcome-section p,
  .scale-introduction p {
    font-size: 1rem;            /* 13.8px */
    line-height: 1.38;
    margin-bottom: 24px;
  }

  .scale-introduction h2 {
    font-size: 1.65rem;         /* ≈23px */
    line-height: 1.2;
    margin-bottom: 20px;
  }

  .scale-section {
    padding: 24px 14px;
    margin-bottom: 36px;
    border-width: 1px;
    border-radius: 12px;
  }

  .scale-section h3 {
    font-size: 1.55rem;         /* ≈21-22px */
    margin-bottom: 12px;
  }

  .scale-info p,
  .scale-info ul {
    font-size: 0.94rem;         /* ≈13px */
    line-height: 1.45;
  }

  .scale-info ul {
    padding-left: 18px;
    margin: 12px 0;
  }

  .scale-info li {
    margin-bottom: 0.7em;
  }

  .scale-grid {
    gap: 20px;
  }

  .scale-image img {
    max-height: 180px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(255,153,0,0.18); /* much softer */
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 6px;
    min-height: 34px;           /* better touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Electricity separator - make it less dramatic */
  .electricity-separator {
    height: 6px;
    margin: 50px auto;
    max-width: 240px;
    box-shadow: 0 0 6px #ff6600;
    border-radius: 3px;
  }

  /* Scale labels on tiny screens - make them smaller but still readable */
  .scale-section .scale-label {
    font-size: 0.78rem;
    line-height: 1.3;
    margin: -20px 0 16px;
    opacity: 0.85;
  }

  /* ── Lotto section (if you uncomment it later) ── */
  .lotto-mining h2 {
    font-size: 1.6rem;
  }

  .lotto-mining h2 span {
    font-size: 1.9rem;
  }

  .rotating-gallery {
    height: 160px;
    border-width: 1px;
  }

  .carousel {
    animation-duration: 60s;   /* slower so people can actually read */
  }

  .miner-slide {
    flex: 0 0 140px;
    width: 140px;
    padding: 10px 6px;
  }

  .miner-slide img {
    max-height: 80px;
  }

  .miner-slide p {
    font-size: 0.74rem;
  }

  .miner-slide p strong {
    font-size: 0.86rem;
  }
}


/* Very small phones (≤ 480px) */
@media (max-width: 480px) {
  .content {
    width: 94%;
    max-width: none;
    padding: 120px 14px 70px;
    margin-right: 0;
    margin-left: 0;
  }

  /* Completely hide visual scale line + markers */
  .vertical-scale-line,
  .scale-marker {
    display: none !important;
  }

  /* Show text labels above each section and make them SMALLER */
  .scale-section::before {
    display: block !important;
    content: attr(data-label) !important; /* fallback - but we override per class */
    font-size: 11px !important;           /* ← this is the key change: smaller size */
    font-weight: bold;
    color: #ff9900;
    text-align: center;
    margin: -8px 0 16px;
    line-height: 1.32;
    opacity: 0.92;
    letter-spacing: 0.3px;
  }

  /* Ensure the classes still provide the content */
  .scale-section.small-apartments::before {
    content: "Leiligheter (~50 m² • 1–2 kW • 50–100 TH/s • 4–8 USD/dag)" !important;
  }
  .scale-section.homeowners::before {
    content: "Enebolig (~100–200 m² • 2–4 kW • 100–200 TH/s • 8–16 USD/dag)" !important;
  }
  .scale-section.small-business::before {
    content: "Små bedrifter (~300–800 m² • 8–15 kW • 400–750 TH/s • 30–60 USD/dag)" !important;
  }
  .scale-section.bigger-buildings::before {
    content: "Større bygg (~2–10k m² • 50–200 kW • 2.5–10 PH/s • 200–800 USD/dag)" !important;
  }
  .scale-section.towns::before {
    content: "Bygder (~50k+ m² • 1–5 MW • 50–250 PH/s • 4k–20k USD/dag)" !important;
  }
  .scale-section.cities::before {
    content: "Byer (~500k+ m² • 10+ MW • 500+ PH/s • Mill./mnd)" !important;
  }

  /* Layout & overflow protection – keep these */
  .scale-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .scale-section {
    padding: 24px 16px 32px !important;
    overflow: hidden;
  }

  .scale-info {
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 2px;
  }

  .scale-info h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
    margin-top: 5px;
    margin-bottom: 5px;
    line-height: 1.2;
  }

  .scale-info p,
  .scale-info ul,
  .scale-info li {
    font-size: 0.94rem;
    line-height: 1.48;
  }

  .scale-info ul {
    padding-left: 1.35rem;
    margin: 12px 0;
  }

  .scale-info li {
    margin-bottom: 0.85em;
    padding-right: 0.4rem;
  }

  .scale-image {
    width: 100%;
    max-width: 100%;
    margin-bottom: 5px;
  }

  .scale-image img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px;
  }

  .welcome-section h1 {
    font-size: 2rem;
  }

  .scale-introduction h2 {
    font-size: 1.7rem;
  }

  .welcome-section p,
  .scale-introduction p {
    font-size: 1rem;
  }
}

/* Small phones & portrait tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .content {
    width: 80%;
    padding: 180px 25px 100px;
    margin-right: 0;
    margin-left: 0;
  }

  .vertical-scale-line {
    right: 120px;
  }

  .vertical-scale-line,
  .scale-marker {
    display: none;
  }

  .welcome-section h1 {
    font-size: 38px;
  }

  .scale-introduction h2 {
    font-size: 32px;
  }

  .scale-info h3 {
    font-size: 26px;
    margin-top: -60px;
  }

  .scale-info p, .scale-info ul {
    font-size: 14px;
  }

  .lotto-mining h2 {
    font-size: 30px;
  }

  .rotating-gallery {
    height: 220px;
  }

  .miner-slide {
    flex: 0 0 200px;
    width: 200px;
  }
}

/* Tablets & small laptops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .content {
    margin-right: 40px;
    margin-left: 40px;
    padding: 220px 30px 100px;
  }

  .vertical-scale-line,
  .electricity-separator {
    display: none;
  }

  .scale-grid {
    flex-direction: column;
  }

  .welcome-section h1 {
    font-size: 40px;
  }
}

/* Large laptops & desktops (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .content {
    max-width: 1000px;
    padding: 260px 40px 120px;
  }
}

/* Full HD & larger (1441px+) */
@media (min-width: 1441px) {
  .content {
    max-width: 1200px;
    padding: 300px 60px 140px;
  }

  .welcome-section h1 {
    font-size: 48px;
  }

  .scale-introduction h2 {
    font-size: 40px;
  }

  .scale-info h3 {
    font-size: 34px;
  }
}

/* Ultra-wide / 4K (2560px+) */
@media (min-width: 2560px) {
  .content {
    max-width: 1400px;
    padding: 320px 80px 160px;
  }

  .welcome-section h1 {
    font-size: 56px;
  }

  .scale-introduction h2 {
    font-size: 44px;
  }

  .rotating-gallery {
    height: 280px;
  }

  .miner-slide {
    flex: 0 0 260px;
    width: 260px;
  }

  .miner-slide img {
    max-height: 160px;
  }
}

/* ── Extreme small screens (≤ 400px) ─────────────────────────────────────── */
@media (max-width: 400px) {
  html {
    font-size: 13.8px;          /* slightly smaller base → everything scales down */
  }

  body {
    font-size: 1rem;            /* 13.8px base */
  }

  .content {
    padding: 
      110px 12px 60px !important;   /* very tight top/bottom */
    margin: 0;
    width: 95%;
  }

  .welcome-section,
  .scale-introduction {
    padding: 20px 0;
    margin-bottom: 30px;
  }

  .welcome-section h1 {
    font-size: 1.9rem;           /* ≈26-28px */
    line-height: 1.15;
    margin-bottom: 14px;
  }

  .welcome-section p,
  .scale-introduction p {
    font-size: 1rem;            /* 13.8px */
    line-height: 1.38;
    margin-bottom: 24px;
  }

  .scale-introduction h2 {
    font-size: 1.65rem;         /* ≈23px */
    line-height: 1.2;
    margin-bottom: 20px;
  }

  .scale-section {
    padding: 24px 14px;
    margin-bottom: 36px;
    border-width: 1px;
    border-radius: 12px;
  }

  .scale-section h3 {
    font-size: 1.55rem;         /* ≈21-22px */
    margin-bottom: 12px;
  }

  .scale-info p,
  .scale-info ul {
    font-size: 0.94rem;         /* ≈13px */
    line-height: 1.45;
  }

  .scale-info ul {
    padding-left: 18px;
    margin: 12px 0;
  }

  .scale-info li {
    margin-bottom: 0.7em;
  }

  .scale-grid {
    gap: 20px;
  }

  .scale-image img {
    max-height: 180px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(255,153,0,0.18); /* much softer */
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 6px;
    min-height: 34px;           /* better touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Electricity separator - make it less dramatic */
  .electricity-separator {
    height: 6px;
    margin: 50px auto;
    max-width: 240px;
    box-shadow: 0 0 6px #ff6600;
    border-radius: 3px;
  }

  /* Scale labels on tiny screens - make them smaller but still readable */
  .scale-section .scale-label {
    font-size: 0.78rem;
    line-height: 1.3;
    margin: -20px 0 16px;
    opacity: 0.85;
  }

  /* ── Lotto section (if you uncomment it later) ── */
  .lotto-mining h2 {
    font-size: 1.6rem;
  }

  .lotto-mining h2 span {
    font-size: 1.9rem;
  }

  .rotating-gallery {
    height: 160px;
    border-width: 1px;
  }

  .carousel {
    animation-duration: 60s;   /* slower so people can actually read */
  }

  .miner-slide {
    flex: 0 0 140px;
    width: 140px;
    padding: 10px 6px;
  }

  .miner-slide img {
    max-height: 80px;
  }

  .miner-slide p {
    font-size: 0.74rem;
  }

  .miner-slide p strong {
    font-size: 0.86rem;
  }
}


/* Very small phones (≤ 480px) */
@media (max-width: 480px) {
  .content {
    width: 94%;
    max-width: none;
    padding: 120px 14px 70px;
    margin-right: 0;
    margin-left: 0;
  }

  /* Completely hide visual scale line + markers */
  .vertical-scale-line,
  .scale-marker {
    display: none !important;
  }

  /* Show text labels above each section and make them SMALLER */
  .scale-section::before {
    display: block !important;
    content: attr(data-label) !important; /* fallback - but we override per class */
    font-size: 11px !important;           /* ← this is the key change: smaller size */
    font-weight: bold;
    color: #ff9900;
    text-align: center;
    margin: -8px 0 16px;
    line-height: 1.32;
    opacity: 0.92;
    letter-spacing: 0.3px;
  }

  /* Ensure the classes still provide the content */
  .scale-section.small-apartments::before {
    content: "Leiligheter (~50 m² • 1–2 kW • 50–100 TH/s • 4–8 USD/dag)" !important;
  }
  .scale-section.homeowners::before {
    content: "Enebolig (~100–200 m² • 2–4 kW • 100–200 TH/s • 8–16 USD/dag)" !important;
  }
  .scale-section.small-business::before {
    content: "Små bedrifter (~300–800 m² • 8–15 kW • 400–750 TH/s • 30–60 USD/dag)" !important;
  }
  .scale-section.bigger-buildings::before {
    content: "Større bygg (~2–10k m² • 50–200 kW • 2.5–10 PH/s • 200–800 USD/dag)" !important;
  }
  .scale-section.towns::before {
    content: "Bygder (~50k+ m² • 1–5 MW • 50–250 PH/s • 4k–20k USD/dag)" !important;
  }
  .scale-section.cities::before {
    content: "Byer (~500k+ m² • 10+ MW • 500+ PH/s • Mill./mnd)" !important;
  }

  /* Layout & overflow protection – keep these */
  .scale-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .scale-section {
    padding: 24px 16px 32px !important;
    overflow: hidden;
  }

  .scale-info {
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 2px;
  }

  .scale-info h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
    margin-top: 5px;
    margin-bottom: 5px;
    line-height: 1.2;
  }

  .scale-info p,
  .scale-info ul,
  .scale-info li {
    font-size: 0.94rem;
    line-height: 1.48;
  }

  .scale-info ul {
    padding-left: 1.35rem;
    margin: 12px 0;
  }

  .scale-info li {
    margin-bottom: 0.85em;
    padding-right: 0.4rem;
  }

  .scale-image {
    width: 100%;
    max-width: 100%;
    margin-bottom: 5px;
  }

  .scale-image img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px;
  }

  .welcome-section h1 {
    font-size: 2rem;
  }

  .scale-introduction h2 {
    font-size: 1.7rem;
  }

  .welcome-section p,
  .scale-introduction p {
    font-size: 1rem;
  }
}

/* Small phones & portrait tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .content {
    width: 80%;
    padding: 180px 25px 100px;
    margin-right: 0;
    margin-left: 0;
  }

  .vertical-scale-line {
    right: 120px;
  }

  .vertical-scale-line,
  .scale-marker {
    display: none;
  }

  .welcome-section h1 {
    font-size: 38px;
  }

  .scale-introduction h2 {
    font-size: 32px;
  }

  .scale-info h3 {
    font-size: 26px;
  }

  .scale-info p, .scale-info ul {
    font-size: 14px;
  }

  .lotto-mining h2 {
    font-size: 30px;
  }

  .rotating-gallery {
    height: 220px;
  }

  .miner-slide {
    flex: 0 0 200px;
    width: 200px;
  }
}

/* Tablets & small laptops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .content {
    margin-right: 40px;
    margin-left: 40px;
    padding: 220px 30px 100px;
  }

  .vertical-scale-line,
  .electricity-separator {
    display: none;
  }

  .scale-grid {
    flex-direction: column;
  }

  .welcome-section h1 {
    font-size: 40px;
  }
}

/* Large laptops & desktops (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .content {
    max-width: 1000px;
    padding: 260px 40px 120px;
  }
}

/* Full HD & larger (1441px+) */
@media (min-width: 1441px) {
  .content {
    max-width: 1200px;
    padding: 300px 60px 140px;
  }

  .welcome-section h1 {
    font-size: 48px;
  }

  .scale-introduction h2 {
    font-size: 40px;
  }

  .scale-info h3 {
    font-size: 34px;
  }
}

/* Ultra-wide / 4K (2560px+) */
@media (min-width: 2560px) {
  .content {
    max-width: 1400px;
    padding: 320px 80px 160px;
  }

  .welcome-section h1 {
    font-size: 56px;
  }

  .scale-introduction h2 {
    font-size: 44px;
  }

  .rotating-gallery {
    height: 280px;
  }

  .miner-slide {
    flex: 0 0 260px;
    width: 260px;
  }

  .miner-slide img {
    max-height: 160px;
  }
}