/* ============================================================
   CSS CUSTOM PROPERTIES (variables)
   Referenced throughout as var(--name). Change once, updates everywhere.
   ============================================================ */
:root {
  --gold: #C9A84C;          /* primary gold accent */
  --gold-light: #E8C97A;    /* lighter gold for hover states */
  --gold-dim: #8A6E2F;      /* darker/muted gold for tags, subtle text */
  --bg: #060605;            /* darkest background (main page bg) */
  --bg2: #0D0D0A;           /* slightly lighter bg (alternating sections) */
  --bg3: #131310;           /* lightest bg (active cards) */
  --text: #EAE6DA;          /* primary text color */
  --text-dim: #7A7668;      /* secondary/muted text */
  --border: rgba(201,168,76,0.12); /* subtle gold-tinted border */
  --radius: 20px;           /* standard border-radius for cards */
  --radius-lg: 32px;        /* larger radius for bigger cards */
}

/* ============================================================
   RESET & BASE
   ============================================================ */

/* Remove default browser margin/padding on everything */
* { margin:0; padding:0; box-sizing:border-box; }

/* Smooth scrolling when clicking anchor links (e.g. #features) */
html { scroll-behavior:smooth; }

html { overflow-x: hidden; } /* fix Android Chrome fixed-position offset bug */

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ============================================================
   NAVIGATION
   Fixed pill-shaped nav bar centered at the top of the page.
   ============================================================ */
nav {
  position: fixed;           /* stays visible while scrolling */
  top: 1.5rem;
  left: 0; right: 0;
  margin: 0 auto;            /* centers it regardless of screen width */
  z-index: 100;              /* sits above all other content */
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  background: rgba(13,13,10,0.7); /* semi-transparent so content shows through */
  backdrop-filter: blur(24px);    /* frosted glass blur effect */
  border: 1px solid var(--border);
  border-radius: 100px;      /* pill shape */
  width: min(900px, 90vw);   /* max 900px, but never wider than 90% of screen */
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  white-space: nowrap; /* prevent the logo from wrapping to two lines */
}

/* Italic "by CesaSec" suffix inside the logo */
.nav-logo span { color: var(--text-dim); font-weight: 300; font-style: italic; }

/* Nav links list — horizontal row of links */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold); }

/* EN / PL toggle buttons */
.lang-switch { display: flex; gap: 0.4rem; }

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s;
  border-radius: 100px;
}

/* Highlighted state for the currently selected language */
.lang-btn.active, .lang-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

/* ============================================================
   HERO SECTION
   Full-screen opening section with animated background blobs.
   ============================================================ */
.hero {
  min-height: 100vh;         /* at least full screen height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;   /* extra top padding so content clears the fixed nav */
  position: relative;
  overflow: hidden;          /* clip the blobs so they don't cause scrollbars */
}

/* ============================================================
   BLOBS
   Large blurred circles that float around in the background.
   ============================================================ */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);        /* heavy blur turns them into soft glows */
  opacity: 0.65;
  animation: blobFloat linear infinite;
  pointer-events: none;      /* clicks pass through them to content below */
}

/* Individual blob sizes, positions, and colors */
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #E8C97A 0%, #C9A84C 40%, transparent 75%);
  top: -150px; left: -150px;
  animation-duration: 12s;
  animation-name: blobFloat1;
}

.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #C9A84C 0%, #8A6E2F 45%, transparent 75%);
  bottom: -100px; right: -100px;
  animation-duration: 14s;
  animation-name: blobFloat2;
  opacity: 0.55;
}

.blob-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #E8C97A 0%, #C9A84C 50%, transparent 75%);
  top: 30%; right: 3%;
  animation-duration: 10s;
  animation-name: blobFloat3;
  opacity: 0.45;
}

.blob-4 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #C9A84C 0%, transparent 70%);
  bottom: 10%; left: 2%;
  animation-duration: 13s;
  animation-name: blobFloat4;
  opacity: 0.4;
}

/* Blob movement keyframes — each blob drifts on a unique path */
@keyframes blobFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(140px, 100px) scale(1.08); }
  50%  { transform: translate(80px, 180px) scale(0.93); }
  75%  { transform: translate(-60px, 90px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blobFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-120px, -140px) scale(1.1); }
  66%  { transform: translate(-160px, -60px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blobFloat3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-140px, 100px) scale(1.08); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blobFloat4 {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(100px, -90px) scale(1.12); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Dark radial gradient overlay that fades the blobs toward the edges,
   keeping the center readable */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 20%, rgba(6,6,5,0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Content sits above the blobs and vignette */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Small pill badge above the headline (e.g. "Coming 2026 / 2027") with animated dot */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards; /* starts invisible, fades in after 0.2s */
}

/* Animated dot before the badge text */
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Pulsing dot animation */
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.4; transform:scale(0.7); } }

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 8vw, 7rem); /* responsive: min 3.5rem, scales with viewport, max 7rem */
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards; /* delays 0.4s for staggered entrance */
}

.hero h1 em { font-style: italic; color: var(--gold); }

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-dim);
  font-style: italic;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-desc {
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}

/* Primary (gold filled) button */
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,0.3); }

/* Secondary (transparent/outlined) button */
.btn-secondary {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.9rem 2.5rem;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* Slide-up + fade-in animation used by hero elements on page load */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ============================================================
   STATS BAR
   Row of four "0 / ∞" stats below the hero CTA.
   ============================================================ */
.stats-bar {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  margin-top: 5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;          /* clips child borders to the rounded corners */
  background: rgba(13,13,10,0.6);
  backdrop-filter: blur(20px);
}

/* Each individual stat cell */
.stat-item {
  padding: 1.2rem 2.5rem;
  text-align: center;
  border-right: 1px solid var(--border); /* divider between cells */
  flex: 1;                   /* all cells share equal width */
}

.stat-item:last-child { border-right: none; } /* no divider after the last cell */

/* Large number (e.g. "0" or "∞") */
.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  display: block;
  letter-spacing: 0.05em;
}

/* Label below the number (e.g. "Servers. Ever.") */
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.3rem;
  display: block;
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */

/* All sections get generous vertical padding; max-width container inside */
section { padding: 7rem 4rem; position: relative; }

.section-inner { max-width: 1100px; margin: 0 auto; }

/* Small label above section titles (e.g. "WHAT IT DOES") with a gold line before it */
.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.section-title em { font-style: italic; color: var(--gold); }

.section-sub {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 3.5rem;
}

/* ============================================================
   FEATURES SECTION
   Three-column card grid.
   ============================================================ */
.features { background: var(--bg2); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

/* Subtle gold glow that appears on hover via the ::after pseudo-element */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201,168,76,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: var(--radius-lg);
}

.feature-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.feature-card:hover::after { opacity: 1; }

/* Emoji icon container */
.feature-icon-wrap {
  width: 52px; height: 52px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.feature-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.feature-desc { font-size: 0.88rem; line-height: 1.7; color: var(--text-dim); }

/* ============================================================
   SECURITY SECTION
   Two-column card grid — each card explains one security mechanism.
   ============================================================ */
.security { background: var(--bg); }

.security-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 0;
}

/* Each security card — icon on the left, text on the right */
.sec-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: border-color 0.3s;
}

.sec-card:hover { border-color: rgba(201,168,76,0.25); }

/* Emoji icon box */
.sec-icon {
  width: 44px; height: 44px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0; /* prevents the icon from shrinking if text is long */
}

.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.sec-desc { font-size: 0.82rem; line-height: 1.6; color: var(--text-dim); }

/* Small technical label at the bottom of each card (e.g. "X25519 ECDH") */
.sec-tag { display: inline-block; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dim); margin-top: 0.5rem; background: rgba(201,168,76,0.08); padding: 0.2rem 0.6rem; border-radius: 100px; }

/* ============================================================
   ATTACKS SECTION
   Three-column grid of attack types, each with a "Blocked" badge.
   ============================================================ */
.attacks { background: var(--bg2); }

.attacks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Individual attack row — attack name on the left, "Blocked" badge on the right */
.attack-pill {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.3s;
}

.attack-pill:hover { border-color: rgba(201,168,76,0.2); }
.attack-name { font-size: 0.85rem; color: var(--text-dim); }

/* Green "Blocked" badge */
.blocked-badge {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4CAF50;
  background: rgba(76,175,80,0.1);
  border: 1px solid rgba(76,175,80,0.2);
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  white-space: nowrap; /* prevents badge text from wrapping */
}

/* ============================================================
   COMING SOON SECTION
   Large decorative year number with a glow behind it.
   ============================================================ */
.coming { background: var(--bg); text-align: center; position: relative; overflow: hidden; }

/* Subtle centered radial glow behind the year number */
.coming::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.coming-inner { max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }

/* Giant faded year number (decorative) */
.coming-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 300;
  color: rgba(201,168,76,0.1); /* very faint */
  line-height: 1;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

/* The "/" between 2026 and 27 is slightly brighter */
.coming-year span { color: rgba(201,168,76,0.5); }

/* Email input + submit button combined in one pill shape */
.waitlist-wrap {
  display: flex;
  gap: 0;
  margin-top: 2.5rem;
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.waitlist-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.9rem 1.5rem;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  outline: none;
}

.waitlist-input::placeholder { color: var(--text-dim); }

.waitlist-btn {
  background: var(--gold);
  color: var(--bg);
  border: none;
  padding: 0.9rem 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
  border-radius: 0 100px 100px 0; /* only right side rounded — left merges with input */
}

.waitlist-btn:hover { background: var(--gold-light); }
.waitlist-note { font-size: 0.75rem; color: var(--text-dim); margin-top: 1rem; }
/* Success messages — hidden by default, shown by JS after form submit */
.waitlist-success { display: none; color: var(--gold); font-size: 0.9rem; margin-top: 1.5rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg2);
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
}

.footer-sub { font-size: 0.72rem; color: var(--text-dim); margin-top: 0.2rem; }
.footer-sub a { color: var(--gold-dim); text-decoration: none; }

/* Global link reset — makes all links inherit the dim color by default */
a { color: var(--text-dim); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }

.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.72rem; color: var(--text-dim); text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }

/* ============================================================
   LANGUAGE SYSTEM
   Elements with data-lang="pl" are hidden by default (English is default).
   Adding class "pl" to <body> flips visibility — hides EN, shows PL.
   The .flex variants are for elements that use display:flex instead of display:block.
   ============================================================ */
[data-lang="pl"] { display: none; }
body.pl [data-lang="en"] { display: none; }
body.pl [data-lang="pl"] { display: block; }
body.pl [data-lang="pl"].flex { display: flex; } /* for flex elements (e.g. hero-badge) */
[data-lang="en"].flex { display: flex; }

/* ============================================================
   HAMBURGER BUTTON
   Hidden on desktop, shown on mobile via the media query below.
   Three <span> elements act as the three bars.
   ============================================================ */
.nav-hamburger {
  display: none; /* hidden on desktop */
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
/* Each bar */
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
/* When open: top bar rotates to form the top of an X */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
/* Middle bar disappears */
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
/* Bottom bar rotates to form the bottom of an X */
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE RESPONSIVE (max 900px)
   ============================================================ */
@media(max-width: 900px) {
  /* Tighter nav padding on small screens */
  nav { padding: 0.8rem 1.2rem; gap: 1rem; }
  .nav-logo { font-size: 1.1rem; white-space: normal; display: flex; flex-direction: column; gap: 0.1rem; }
  .nav-logo a { display: inline; font-size: 0.65rem; }


  /* Nav links hidden by default on mobile */
  .nav-links { display: none; }

  /* When JS adds the "open" class, show the dropdown below the nav */
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 5rem;              /* sits just below the nav bar */
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    background: rgba(6,6,5,0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0;
    z-index: 99;            /* below the nav (z-index 100) but above everything else */
    gap: 0;
  }
  .nav-links.open li { width: 100%; text-align: center; }
  .nav-links.open a { display: block; padding: 0.9rem 2rem; font-size: 0.9rem; }

  /* Re-apply language hiding inside the open menu.
     Needed because ".nav-links.open a { display: block }" has higher specificity
     than the global [data-lang] rules, so we override it here explicitly. */
  .nav-links.open a[data-lang="pl"] { display: none; }
  body.pl .nav-links.open a[data-lang="en"] { display: none; }
  body.pl .nav-links.open a[data-lang="pl"] { display: block; }

  /* Show the hamburger button */
  .nav-hamburger { display: flex; }

  /* Reduce section padding on small screens */
  section { padding: 5rem 1.5rem; }

  /* Stack all multi-column layouts to single column */
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 2rem; }
  .security-cards { grid-template-columns: 1fr; }
  .sec-card { padding: 1.5rem; }

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

  /* Stack footer links below the logo */
  footer { flex-direction: column; gap: 1.5rem; text-align: center; padding: 2rem 1.5rem; }

  /* Stats bar stacks vertically; dividers switch from right to bottom */
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }

  /* Shrink blobs so they don't dominate the small screen */
  .blob-1 { width: 280px; height: 280px; top: -80px; left: -80px; }
  .blob-2 { width: 240px; height: 240px; bottom: -60px; right: -60px; }
  .blob-3 { display: none; } /* third and fourth blobs removed entirely on mobile */
  .blob-4 { display: none; }
}
