/* Root Variables */
:root {
  --bg: #f9f6f2;
  --card-bg: #f1f1f1;
  --text: #111;
  --muted: #666;
  --accent: #0070f3;
  --accent-hover: #0059cc;
  --input-bg: #ffffff;
  --font: 'Poppins', sans-serif;
}


/* Global Reset */
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.site-header {
  position: relative;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
  padding: 1rem 0;
}

.site-header.scrolled {
  background-color: var(--card-bg);
  backdrop-filter: blur(6px);
}

/* Header Layout */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.branding {
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
  margin-right: 1rem;
}

.branding-content {
  display: flex;
  flex-direction: column;
}

.branding-small {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.small-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.site-title {
  font-size: 2rem;
  margin: 0;
  font-weight: bold;
  color: var(--text);
}

.tagline {
  font-size: 1rem;
  margin-top: 0.25rem;
  color: var(--muted);
}

/* Nav */
.nav {
  margin-top: 1rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Mobile Nav */
/* Mobile Toggle (Hamburger) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
}

/* Mobile Nav */
.mobile-nav {
  overflow: hidden;
  max-height: 0;
  background-color: var(--card-bg);
  transition: max-height 0.4s ease;
  display: none; /* ⬅️ Important: default hide */
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
}

.mobile-nav.open {
  display: flex; /* ⬅️ Important: flex when open */
  max-height: 500px;
}

.mobile-nav a {
  padding: 1rem;
  border-bottom: 1px solid var(--muted);
  color: var(--text);
  text-align: center;
}

.mobile-nav a:hover {
  color: var(--accent);
}

/* Only show mobile menu on smaller screens */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
}

/* Hide mobile nav completely at desktop size */
@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}


/* Hero */
.header-hero {
  text-align: center;
  padding: 4rem 0 2rem 0;
}

/* Cards and Grids */
.card, .pulse-card, .newsletter-card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.pulse-card {
  border-left: 4px solid var(--accent);
}
.exposure-grid:empty {
  display: none;
}
.exposure-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between; /* even space */
}

.exposure-grid > .card {
  flex: 0 0 calc(50% - 0.75rem); /* fixed 2 cards per row */
  max-width: calc(50% - 0.75rem);
}

@media (max-width: 768px) {
  .exposure-grid > .card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
.card .output {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Each Card */
.exposure-grid > div {
  flex: 1 1 320px;
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-left: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
}

.exposure-grid > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}
/* Special Classes */
.tags {
  display: inline-block;
  background-color: var(--accent);
  color: white !important;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  opacity: 0.85;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.sector-muted {
  font-size: 0.85rem;
  color: var(--muted);
}

.metrics-disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.changelog-month {
  font-size: 1.75rem;
  margin-top: 2rem;
  color: var(--accent);
}

/* Buttons */
.button {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 10px 20px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease, transform 0.3s ease;
  font-family: var(--font);
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.5px;
}

.button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.button:focus {
  outline: none;
  box-shadow: 0 0 8px var(--accent-hover);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.button-sm {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* Lists */
.pulse-list, .cloud-list, .metric-list {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin-top: 1rem;
}

/* Newsletter */
.newsletter {
  margin-top: 2rem;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.newsletter input[type="email"] {
  padding: 0.75rem;
  margin-top: 1rem;
  margin-right: 0.5rem;
  border: 1px solid var(--muted);
  border-radius: 5px;
  background: var(--input-bg);
  color: var(--text);
}

.newsletter button {
  margin-top: 1rem;
}

/* Footer */
.footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--muted);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent);
}

.social-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.footer-bottom {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-disclaimer {
  text-align: right;
  max-width: 600px;
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

html {
  transition: background-color 0.4s ease, color 0.4s ease;
}

.tool-teaser {
  margin-top: 2.5rem;
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.tool-teaser h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.tool-teaser p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.button.primary {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: var(--accent);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 2rem;
}

.coming-soon .container {
  max-width: 500px;
}

.coming-soon h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.coming-soon .tagline {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
}