:root {
  --bg: #0b1020;
  --card: #151a2b;
  --accent: #4fd1c5;
  --accent-soft: rgba(79, 209, 197, 0.12);
  --text-main: #f5f7ff;
  --text-soft: #c3c7dd;
  --text-muted: #8b90aa;
  --border-subtle: #262b3f;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --space-xs: 0.8rem;
  --space-sm: 1.2rem;
  --space-md: 1.6rem;
  --space-lg: 2.4rem;
  --space-xl: 3.2rem;
}

html {
  font-size: 62.5%;
  /* = 10px → 1rem = 10px */
  /* font-size: 100%; /* = 16px */
}


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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #151a2b 0, #050814 55%, #02030a 100%);
  color: var(--text-main);
  min-height: 100vh;
  padding: var(--space-xs) var(--space-sm);
}

.page {
  width: 90%;
  max-width: 128rem;
  /* or 1280px if you prefer tighter */
  margin: 0 auto;
  /* centers on desktop, full width on mobile */
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(10, 14, 30, 0.9));
  border-radius: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
  padding: var(--space-xs);
  backdrop-filter: blur(1.8rem);
}

header {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2.2rem;
  margin-bottom: 2.4rem;
}

@media (max-width: 768px) {
  header {
    grid-template-columns: minmax(0, 1fr);
  }

  .page {
    width: 100%;
  }

  .brand,
  .tagline {
    padding: 2.2rem 1.8rem 1.6rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.0rem 1.0rem
    /* tighter horizontal gap, no vertical gap */
  ;
}


.brand-mark {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 1.2rem;
  background: radial-gradient(circle at 30% 20%, #ffffff 0, #4fd1c5 32%, #1a365d 70%, #020617 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020617;
  font-weight: 800;
  font-size: 1.8rem;
  box-shadow: 0 1.0rem 2.5rem rgba(0, 0, 0, 0.55);
}

.brand-mark img {
  height: 4.2rem;
  width: 4.2rem;
  margin-left: 3.0rem;
  object-fit: contain;
  object-position: center;
  display: inline-block;
}


.brand-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.brand-text span:first-child {
  font-weight: 650;
  letter-spacing: 0.03em;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.brand-text span:last-child {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.tagline {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(79, 209, 197, 0.4);
  background: radial-gradient(circle at top left, var(--accent-soft), transparent 70%);
  color: var(--accent);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  white-space: normal;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2.2rem;
}

@media (max-width: 768px) {
  main {
    grid-template-columns: minmax(0, 1fr);
  }

  .page {
    padding: 0.6rem 0.4rem 0.3rem;
  }
}

h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 1.0rem;
}

.lead {
  font-size: 1.4rem;
  color: var(--text-soft);
  max-width: 34rem;
  line-height: 1.5;
  margin-bottom: 1.8rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.pill {
  font-size: 1.1rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.pill strong {
  font-weight: 600;
  color: var(--accent);
}

.section-title {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.card,
.link-card {
  background: radial-gradient(circle at top left, rgba(79, 209, 197, 0.08), rgba(10, 14, 30, 0.96));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.6rem 1.6rem 1.4rem;
}

.card h2,
.card em {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 1.3rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.card ul {
  list-style: none;
  margin-top: 0.4rem;
}

.card li {
  font-size: 1.2rem;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
  display: flex;
  gap: 0.6rem;
}

.card li::before {
  content: "•";
  color: var(--accent);
  margin-top: 0.1rem;
}

.side-card {
  background: radial-gradient(circle at top, rgba(79, 209, 197, 0.16), rgba(15, 23, 42, 0.98));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 1.6rem 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.0rem;
}

.side-card h2,
.link-card a {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.side-card p {
  font-size: 1.3rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.img-card {
  background:none;
  border-radius: var(--radius-lg);
  border: 3px solid var(--accent);
  padding: 0.2rem 0.2rem 0.1rem;
}

.img-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  padding: 0.5rem 1.0rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-soft);
}

.badge span {
  font-weight: 600;
  color: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.0rem;
  margin-top: 0.4rem;
}

a {
  color: #5ff3e6;
  /* brighter, more readable teal */
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(95, 243, 230, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

a:hover,
.link-card a:hover,
.link-search {
  color: #9ffcf3;
  border-color: rgba(159, 252, 243, 0.9);
  text-shadow: 0 0 6px rgba(95, 243, 230, 0.6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 1.3rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.08s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #4fd1c5, #38bdf8);
  color: #020617;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.45);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-soft);
  border-color: rgba(148, 163, 184, 0.4);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.7);
}

footer {
  margin-top: 1.8rem;
  padding-top: 1.0rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

footer span strong {
  font-weight: 600;
  color: var(--text-soft);
}

footer a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted rgba(79, 209, 197, 0.5);
}

footer a:hover {
  border-bottom-style: solid;
}

/* ============================
   Table Styling — Sprint Theme
   ============================ */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.65rem 0;
  /* 1.5 × 1.75 */
  color: var(--text-color);
  font-size: 1.66rem;
  /* 0.95 × 1.75 */
}

/* Base cell styling */
table th,
table td {
  padding: 1.4rem 2.1rem;
  /* harmonised with your 1.75 rhythm */
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  /* keeps columns tidy */
}

/* Header styling */
table th {
  color: var(--accent);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}

/* Hover effect */
table tr:hover {
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
}

/* Remove last border */
table tr:last-child td {
  border-bottom: none;
}


    .hero-grid,
    .intro-grid,
    .landscape-grid,
    .compare-grid {
      display: grid;
      gap: 1.5rem;
    }

    .hero-grid {
      grid-template-columns: 1.3fr 0.9fr;
      align-items: start;
    }

    .intro-grid {
      grid-template-columns: repeat(3, 1fr);
      margin-top: 1.5rem;
    }

    .landscape-grid {
      margin-top: 1.5rem;
    }

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

    .stack-card {
      position: relative;
      overflow: hidden;
    }

    .stack-card::after {
      content: "";
      position: absolute;
      inset: auto -10% -25% auto;
      width: 16rem;
      height: 16rem;
      background: radial-gradient(circle, rgba(95, 242, 214, 0.16), transparent 68%);
      pointer-events: none;
    }

    .stack {
      display: grid;
      gap: 0.9rem;
      position: relative;
      z-index: 1;
    }

    .stack-item {
      position: relative;
      padding: 1rem 1.1rem;
    }

    .stack-item:not(:last-child)::after {
      content: "↓";
      position: absolute;
      left: 50%;
      bottom: -1.25rem;
      transform: translateX(-50%);
      color: var(--accent-color, #5ff2d6);
      font-size: 1.2rem;
      font-weight: 700;
    }

    .stack-item strong,
    .mini-card strong {
      display: block;
      margin-bottom: 0.25rem;
    }

    .stack-item.missing {
      border-style: dashed;
    }

    .stack-item.highlight {
      box-shadow: 0 0 0 1px rgba(95, 242, 214, 0.35) inset;
    }

    .layer-grid {
      display: grid;
      grid-template-columns: 0.95fr 1.55fr;
      gap: 1rem;
      align-items: start;
    }

    .number-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 2.2rem;
      height: 2.2rem;
      border-radius: 999px;
      margin-bottom: 0.9rem;
      font-weight: 700;
    }

    .tag-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.7rem;
      margin-bottom: 1rem;
    }

    .two-col {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }

    .quote-card {
      text-align: center;
    }

    .quote-card p {
      max-width: 100%;
      margin: 0 auto;
      font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    }

    .comparison-table-wrap {
      overflow-x: auto;
    }

    /* Tweak table sizing so laptops show table without horizontal scroll
       while mobile can still scroll if needed. */
    .comparison-table-wrap table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.95rem; /* slightly smaller on desktop */
    }

    .comparison-table-wrap th,
    .comparison-table-wrap td {
      padding: 0.5rem 0.75rem;
      text-align: left;
    }

    @media (max-width: 980px) {
      .comparison-table-wrap table {
        font-size: 0.85rem; /* smaller on mobile */
      }

      .comparison-table-wrap th,
      .comparison-table-wrap td {
        padding: 0.4rem 0.6rem;
      }
    }

    .footer-note {
      margin-top: 1rem;
    }

    @media (max-width: 780px) {

      .hero-grid,
      .intro-grid,
      .layer-grid,
      .two-col {
        grid-template-columns: 1fr;
      }
    }

/* Optional: allow wrapping for specific cells */
td.wrap {
  white-space: normal;
  word-break: break-word;
}

/* ============================
   List Styling — Sprint Theme
   ============================ */

ul,
ol {
  margin: 2.1rem 0 2.1rem 2.45rem;
  /* 1.2 & 1.4 × 1.75 */
  padding: 0;
  color: var(--text-color);
  line-height: 1.55;
  font-size: 1.925rem;
  /* 1.1 × 1.75 */
}

ul li,
ol li {
  margin: 0.7rem 0;
  /* 0.4 × 1.75 */
  padding-left: 0.7rem;
}

/* Teal accent bullets */
ul li::marker {
  color: var(--accent-color);
}

/* Numbered lists */
ol li::marker {
  color: var(--accent-color);
  font-weight: 600;
}

/* Nested lists */
ul ul,
ol ol,
ul ol,
ol ul {
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
}

/* ============================
   Card + Table Overflow Handling
   ============================ */

.card {
  overflow-x: auto;
  /* horizontal scroll when needed */
  -webkit-overflow-scrolling: touch;
}

/* Modern intrinsic sizing: table grows only as wide as needed */
.card table {
  width: max-content;
  /* expands to content width */
  min-width: 100%;
  /* but never smaller than the card */
  border-collapse: collapse;
}