/* ===========================
   Theme + Global
=========================== */
:root {
    --color-bg: #0b1530;
    --color-bg-soft: #0f1f46;
    --color-surface: #ffffff;
    --color-surface-soft: #f9f9f9;
    --color-text: #f3f4ff;
    --color-text-dark: #1f2933;
    --color-text-muted: #9ca3af;
    --color-accent: #1D2951;
    --color-nav-bg: rgba(11, 21, 48, 0.94);
    --color-danger: #dc3545;
    --shadow-soft: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-strong: 0 12px 30px rgba(0,0,0,0.35);

    /* Bento */
    --bento-gap: 1rem;
    --bento-card-bg: #ffffff;
    --bento-border: #e6e8ef;
    --bento-radius: 14px;
    --bento-shadow: 0 6px 16px rgba(0,0,0,0.06);
    --bento-head: #0f172a;
    --bento-text: #334155;
    --bento-accent: #1D2951;
  }

  body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
  }

  /* ===========================
     Navbar (dark blue)
  =========================== */
  .navbar,
  .navbar.container {
    background: var(--color-nav-bg); /* dark blue, slightly translucent */
    color: #ffffff;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    position: sticky;
    top: 0;
    z-index: 2; /* above rainbow */
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  .navbar .logo {
    margin: 0;
  }

  .navbar .logo a {
    display: flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
  }

  .navbar .navbar-logo {
    height: 53px;
    width: auto;
    vertical-align: middle;
    border-radius: 6px;
    margin-left: 5px;
    margin-bottom: -2px;
  }

  /* Legacy nav (if still used somewhere) */
  .nav-links,
  .main-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
  }

  .nav-links li a,
  .main-links li a,
  .primary-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;

  }

  .nav-links li a:hover,
  .main-links li a:hover,
  .primary-nav a:hover {
    background-color: rgba(255,255,255,0.12);
  }

  /* ===========================
     Primary 3-item navbar (Home + Login/Register or Profile/Logout)
  =========================== */
  .primary-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: -7rem;
  }

  /* Logout in primary nav */
  .primary-logout-form {
    margin: 0;
  }

  .primary-logout-btn {
    color: rgb(24, 19, 69);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
  }

  .primary-logout-btn:hover {
    background-color: rgba(255,255,255,0.12);
  }

  /* ===========================
     Right side user grid (desktop)
  =========================== */
  .user-links-grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-row-gap: 0.5rem;
    grid-column-gap: 1rem;
    font-size: 0.875rem;
  }

  .notif-link,
  .profile-link {
    color: #ffffff;
    text-decoration: none;
  }

  .notif-link:hover,
  .profile-link:hover {
    color: #ddd;
  }

  /* Notification bubble (unified) */
  .notification-count {
    background-color: red;
    color: #ffffff;
    border-radius: 50%;
    padding: 0 5px;
    font-size: 0.9em;
    margin-left: 5px;
  }

  /* Token balance */
  .token-balance {
    color: #ffd700;
    font-weight: bold;
  }

  /* Logout form/button (user grid version) */
  .logout-form {
    margin: 0;
    display: inline;
  }

  .logout-btn {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
  }

  .logout-btn:hover {
    background-color: rgba(255,255,255,0.12);
    color: #ddd;
    border-color: #ddd;
  }

  /* Shared hover states */
  .main-links li a:hover,
  .notif-link:hover,
  .profile-link:hover,
  .logout-btn:hover {
    color: #ddd;
  }

  /* ===========================
     "More" dropdown button (3-line) + menu
  =========================== */
  .nav-more-wrapper {
    position: relative;
  }

  .nav-more-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
  }

  .nav-more-toggle span {
    display: block;
    height: 2px;
    width: 70%;
    background: #ffffff;
    border-radius: 999px;
  }

  /* Dropdown panel */
  .nav-more-menu {
    position: absolute;
    top: 110%;
    right: 0;
    min-width: 220px;
    background: var(--color-bg-soft);
    border-radius: 10px;
    padding: 0.75rem 0.85rem 0.85rem;
    box-shadow: var(--shadow-strong);
    display: none;
    z-index: 999;
  }

  /* Show when open */
  .nav-more-wrapper.is-open .nav-more-menu {
    display: block;
  }

  /* Links inside dropdown */
  .nav-more-links {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
  }

  .nav-more-links li {
    margin-bottom: 0.35rem;
  }

  .nav-more-links a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 0.25rem 0.15rem;
    border-radius: 4px;
  }

  .nav-more-links a:hover {
    background: rgba(148,163,184,0.2);
  }

  /* User info inside dropdown */
  .nav-more-user {
    border-top: 1px solid rgba(148,163,184,0.4);
    padding-top: 0.5rem;
    font-size: 0.85rem;
    color: #cbd5f5;
  }

  .nav-more-notif {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: inherit;
    margin-bottom: 0.25rem;
  }

  .nav-more-notif:hover {
    text-decoration: underline;
  }

  .nav-more-balance {
    opacity: 0.9;
  }

  /* ===========================
     Aux hamburger pattern (kept as legacy)
  =========================== */
  .aux-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .aux-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #ffffff;
    border-radius: 999px;
  }

  .aux-menu-list {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .aux-menu-list.is-open {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: absolute;
    top: 100%;
    right: 1rem;
    background: #020617;
    padding: 0.6rem 0.9rem;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-strong);
    z-index: 999;
  }

  .aux-menu-list.is-open a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
  }

  .aux-menu-list.is-open a:hover {
    text-decoration: underline;
  }

  @media (min-width: 769px) {
    .aux-menu-toggle,
    .aux-menu-list {
      display: none;
    }
  }

  /* ===========================
     Messages
  =========================== */
  .messages {
    width: 90%;
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 5px;
    background-color: #f4f6f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #111827;
  }

  .messages .success {
    background-color: #d4edda;
    color: #155724;
  }

  .messages .error {
    background-color: #f8d7da;
    color: #721c24;
  }

  .messages .warning {
    background-color: #fff3cd;
    color: #856404;
  }

  /* ===========================
     Main content + dataset cards
  =========================== */
  main {
    width: 90%;
    margin: 2rem auto;
    background-color: var(--color-surface);
    color: var(--color-text-dark);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: var(--shadow-soft);
  }

  .section-title {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    text-align: center;
    font-family: "Cormorant Garamond", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 600;
  }

  .sub-section-title {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .dataset-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }

  .dataset-card {
    background-color: var(--color-surface-soft);
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 1.5rem;
    width: calc(30% - 2rem);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .dataset-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  .dataset-card a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
  }

  .dataset-card a:hover {
    color: var(--color-accent);
  }

  /* Generic button */
  .btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: #ffffff;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
  }

  .btn:hover {
    background-color: #ffffff;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
  }

  /* Buy Now Button */
  .buy-btn {
    background-color: #61ff6e;
    color: #ffffff;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }

  .buy-btn:hover {
    background-color: #710800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }

  .buy-btn:active {
    background-color: #4fa9d9;
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  }

  /* Danger button */
  .btn-danger {
    background-color: var(--color-danger);
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
  }

  .btn-danger:hover {
    background-color: #c82333;
  }

  /* Responsive dataset cards */
  @media (max-width: 768px) {
    .dataset-card {
      width: calc(100% - 2rem);
    }
  }

  /* ===========================
     Hero + Color drip + Waves
  =========================== */
  .hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0f172a, #1e293b);
    color: #ffffff;
    text-align: center;
    padding: 6rem 2rem;
  }

  .hero-text {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
  }

  .hero-text h1 {
    margin-bottom: 1.25rem;
  }

  /* Hero title */
  .hero-title {
    font-family: "Cormorant Garamond", "Playfair Display", "Times New Roman", serif;
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1.2;
    letter-spacing: 0.04em;
    color: #e5e7eb;
    text-shadow: 0 2px 6px rgba(0,0,0,0.55);
    margin-bottom: 1.25rem;
  }

  /* Each word (JS spans) */
  #hero-title span {
    display: inline-block;
    margin-right: 0.25rem;
    transition: color 0.3s ease, transform 0.3s ease;
    color: inherit;
  }

  /* Hero lead text */
  .hero-lead {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: #e5e7eb;
    max-width: 720px;
    margin: 0.75rem auto 0;
  }

  @media (min-width: 769px) {
    .hero-lead {
      color: #e5e7eb;
    }
  }

  /* Gold metallic glow words */
  #hero-title span.gold-glow {
    background: linear-gradient(
      135deg,
      #b69121 0%,
      #e9cf73 25%,
      #fff4b0e7 45%,
      #d6b23a 70%,
      #e8df87 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
      0 0 6px rgba(255,239,140,0.7),
      0 0 16px rgba(255,239,160,0.4);
    animation: metallicShine 2.8s ease-in-out infinite;
  }

  @keyframes metallicShine {
    0%   { background-position: 0% 50%; filter: brightness(1); }
    50%  { background-position: 100% 50%; filter: brightness(1.3); }
    100% { background-position: 0% 50%; filter: brightness(1); }
  }

  /* Hero CTA + sections */

  .cta-button {
    background-color: #19264a;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    margin: 0.5rem;
    display: inline-block;
  }

  .features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 1.5rem;
    margin: 2rem 0;
  }

  .feature {
    background: #f9f9f9;
    padding: 1rem;
    text-align: center;
  }

  .how-it-works,
  .testimonials {
    margin: 2rem 0;
  }

  .testimonials blockquote {
    background: #eee;
    padding: 1rem;
    border-left: 4px solid #19264a;
    margin-bottom: 1rem;
  }

  .call-to-action {
    text-align: center;
    margin: 2rem 0;
  }

  /* Color drip background */
  .color-drip-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2;
    mix-blend-mode: screen;
    filter: url(#gooey);
  }

  .color-drip-bg .drop {
    position: absolute;
    top: -40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    opacity: 0.8;
    background: linear-gradient(135deg, #e879f9, #60a5fa, #5eead4);
    animation: dripFall 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }

  .color-drip-bg .drop.d1 { left: 10%; animation-delay: 0s; }
  .color-drip-bg .drop.d2 { left: 35%; width: 65px; height: 65px; animation-delay: 2s; }
  .color-drip-bg .drop.d3 { left: 60%; width: 45px; height: 45px; animation-delay: 4s; }
  .color-drip-bg .drop.d4 { left: 80%; width: 55px; height: 55px; animation-delay: 1s; }

  @keyframes dripFall {
    0%   { transform: translateY(-60px) scale(0.8); opacity: 1; }
    50%  { transform: translateY(770px) scale(1.1); opacity: 1; }
    100% { transform: translateY(890px) scale(0.9); opacity: 0; }
  }

  /* Color-layer hue shift */
  .color-drip-bg .color-layer {
    background: linear-gradient(180deg, rgba(96,165,250,0.3), rgba(232,121,249,0.25), rgba(94,234,212,0.3));
    animation: hueShift 20s ease-in-out infinite alternate;
  }

  @keyframes hueShift {
    0%   { filter: hue-rotate(0deg) brightness(1); }
    100% { filter: hue-rotate(30deg) brightness(1.3); }
  }

  /* Waves at bottom */
  .color-drip-bg .wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400%;
    height: 160px;
    background: radial-gradient(circle at 50% 80%, rgba(94,234,212,0.45), rgba(96,165,250,0.35), rgba(232,121,249,0.35));
    opacity: 0.9;
    transform: translateX(0);
    animation: waveMove 12s linear infinite;
    filter: blur(2px) brightness(1.1);
    z-index: 1;
  }

  .color-drip-bg .wave:nth-child(6) {
    bottom: 0;
    opacity: 0.8;
    animation-delay: 0s;
  }

  .color-drip-bg .wave:nth-child(7) {
    bottom: 10px;
    opacity: 0.6;
    animation-delay: -2s;
    animation-duration: 16s;
  }

  .color-drip-bg .wave:nth-child(8) {
    bottom: 20px;
    opacity: 0.4;
    animation-delay: -4s;
    animation-duration: 20s;
  }

  .color-drip-bg .wave::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 400%;
    height: 100%;
    background: repeating-radial-gradient(
      circle at 50% 60%,
      rgba(255,255,255,0.2) 0%,
      rgba(255,255,255,0.1) 10%,
      transparent 11%
    );
    opacity: 0.5;
    animation: ripple 6s linear infinite;
  }

  @keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  @keyframes ripple {
    0% { transform: translateX(0) scaleY(1); }
    50% { transform: translateX(-25%) scaleY(1.05); }
    100% { transform: translateX(-50%) scaleY(1); }
  }

  /* Hokusai-style wave lines */
  .color-drip-bg svg.wave-art {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150%;
    height: 150px;
    z-index: 1;
  }

  .wave-path {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.4));
    animation: waveFlow 12s ease-in-out infinite alternate;
  }

  .wave-path.main {
    stroke: rgba(94,234,212,0.9);
    animation: waveFlow 10s ease-in-out infinite alternate;
  }

  .wave-path.mid {
    stroke: rgba(96,165,250,0.6);
    animation: waveFlow 14s ease-in-out infinite alternate-reverse;
  }

  .wave-path.back {
    stroke: rgba(232,121,249,0.4);
    animation: waveFlow 18s ease-in-out infinite alternate;
  }

  @keyframes waveFlow {
    0%   { transform: translateX(0) translateY(0); }
    25%  { transform: translateX(-1%) translateY(-3px); }
    50%  { transform: translateX(-2%) translateY(2px); }
    75%  { transform: translateX(1%) translateY(-4px); }
    100% { transform: translateX(2%) translateY(0); }
  }

  /* ===========================
     Bento Grid
  =========================== */
  .bento .section-title {
    margin-bottom: 1.25rem;
  }

  .bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--bento-gap);
  }

  .bento-card {
    background: var(--bento-card-bg);
    border: 1px solid var(--bento-border);
    border-radius: var(--bento-radius);
    box-shadow: var(--bento-shadow);
    padding: 1.1rem 1.1rem 1rem;
    color: var(--bento-text);
  }

  .bento-span-3 { grid-column: span 3; }
  .bento-span-4 { grid-column: span 4; }
  .bento-span-6 { grid-column: span 6; }

  .bento-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .35rem;
  }

  .bento-head h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--bento-head);
  }

  .step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg,#ffd04d,#ffc107 60%,#e6a500);
    color: #222;
    font-weight: 700;
    font-size: .9rem;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  }

  .bento-card p { margin: 0 0 .4rem; }

  .bento-list {
    margin: .25rem 0 0 .95rem;
    padding: 0;
  }

  .bento-list li { margin: .25rem 0; }

  .bento-card a {
    color: var(--bento-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .eyebrow-wrap { margin-bottom:.75rem; }

  .eyebrow {
    font-size:.75rem;
    font-weight:600;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:var(--color-text-muted);
    margin-bottom:.15rem;
  }

  @media (max-width: 1024px){
    .bento-span-6 { grid-column: span 12; }
    .bento-span-4 { grid-column: span 6; }
    .bento-span-3 { grid-column: span 6; }
  }
  @media (max-width: 640px){
    .bento-span-6,
    .bento-span-4,
    .bento-span-3 { grid-column: span 12; }
  }

  /* ===========================
     GPU status bar
  =========================== */
  .gpu-status-bar {
    background-color: #d2f4d2;
    color: #0a4810;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
  }

  .gpu-on-text {
    font-size: 0.9rem;
    font-weight: bold;
  }

  .force-off-form {
    margin: 0;
  }

  .force-off-btn {
    background: #ffffff;
    border: 1px solid #0a4810;
    color: #0a4810;
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
  }

  .force-off-btn:hover {
    background: #cce0cc;
  }

  /* ===========================
     Footer (site-footer)
  =========================== */
  .site-footer {
    background: #020617;
    color: #e5e7eb;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    font-size: 0.95rem;
  }

  .site-footer a {
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
  }

  .site-footer a:hover {
    opacity: 1;
    text-decoration: underline;
  }

  .site-footer .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2.5rem;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 2.3fr);
    gap: 2rem;
    align-items: flex-start;
  }

  .footer-brand {
    max-width: 420px;
  }

  .footer-logo {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
  }

  .footer-brand p {
    margin: 0;
    color: var(--color-text-muted);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.75rem;
    color: var(--color-text-muted);
  }

  .footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .footer-col li {
    margin-bottom: 0.4rem;
  }

  .footer-social {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .footer-newsletter {
    text-align: center;
    border-top: 1px solid #111827;
    padding-top: 1.5rem;
  }

  .footer-newsletter form {
    max-width: 480px;
    margin: 0 auto;
  }

  .footer-newsletter label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #e5e7eb;
  }

  .footer-newsletter-row {
    display: flex;
    gap: 0.5rem;
  }

  .footer-newsletter-row input[type="email"] {
    flex: 1;
    border-radius: 999px;
    border: 1px solid #4b5563;
    background: #020617;
    color: #e5e7eb;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .footer-newsletter-row input[type="email"]::placeholder {
    color: #6b7280;
  }

  .footer-newsletter-row button {
    border-radius: 999px;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    background: #0f766e;
    color: #ecfeff;
    cursor: pointer;
  }

  .footer-newsletter-row button:hover {
    background: #115e59;
  }

  .footer-note {
    margin: 0.4rem 0 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
  }

  .footer-bottom {
    border-top: 1px solid #111827;
    margin-top: 2rem;
    padding-top: 0.75rem;
  }

  .footer-bottom-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
  }

  .footer-bottom-secondary {
    text-align: right;
  }

  /* Footer responsive */
  @media (max-width: 1024px) {
    .footer-top {
      grid-template-columns: 1fr;
    }
    .footer-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  @media (max-width: 768px) {
    .footer-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-bottom-inner {
      max-width: 1120px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }
    .footer-bottom-secondary {
      text-align: left;
    }
    .footer-newsletter-row {
      flex-direction: column;
      align-items: stretch;
    }
    .footer-newsletter-row button {
      width: 100%;
    }
  }

  @media (max-width: 520px) {
    .footer-grid {
      grid-template-columns: 1fr;
    }
  }


  /* Control hub section */

.data-hub {
  max-width: 1040px;
  margin: 4rem auto;
  text-align: center;
}

.data-hub-title {
  margin-bottom: 0.5rem;
}

.data-hub-intro {
  max-width: 760px;
  margin: 0 auto 1.75rem;
  color: #6b7280;
  font-size: 0.95rem;
}

.data-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  text-align: left; /* cards themselves are left-aligned */
}

/* Cards */
.hub-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hub-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.hub-card p {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
}

.hub-card ul {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Buttons inside cards */
.hub-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;               /* full width INSIDE the card */
  box-sizing: border-box;    /* include padding in width */
  margin-top: auto;          /* push to bottom of card */
}

/* Two buttons stacked in the last card */
.hub-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Hub footer CTA */
.data-hub-footer {
  margin-top: 1.75rem;
  text-align: center;
}

.data-hub-footer p {
  margin: 0 0 0.75rem;
  color: #4b5563;
  font-size: 0.95rem;
}
