@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #fdfdfd;
  --surface: #ffffff;
  --surface-soft: #eef5f6;
  --text: #1f2933;
  --muted: #52616d;
  --accent: #0d7c8e;
  --accent-dark: #0b5f6c;
  --accent-title: #183E4B;
  --border: #d8e3e6;
  --shadow: 0 10px 30px rgba(13, 44, 53, 0.08);
  font-family: 'Open Sans', 'Segoe UI', Tahoma, sans-serif;
}
/* Global Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Text Selection, (highlight text) */
::selection {
  background: rgba(13, 124, 142, 0.2);
}

body {
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Links */
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

.container {
  max-width: 950px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.container.narrow {
  max-width: 800px;
}

/* site header, mobile no sticky */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}
@media (max-width: 767px) {
  header.site-header {
    position: static;
  }
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.prod-name {
  color: #24313d;
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.35rem 0.8rem;
  border-radius: 25px;
  font-size: 0.96rem;
  font-weight: 600;
  transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.site-nav a.active {
  color: var(--text);
  border-color: rgba(13, 124, 142, 0.6);
  background: var(--surface-soft);
}

.site-nav a:hover {
  color: var(--text);
  border-color: rgba(13, 124, 142, 0.6);
  background: var(--surface-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

main.container {
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
}

.prod {
  margin-bottom: 1.4rem;
}

.prod .title { 
  color: var(--accent-title);
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.content-title { 
  color: var(--accent-title); 
  font-size: 1.3rem; 
  font-weight: 600; 
  margin-bottom: 1rem; 
  margin-top: 1rem;
}

p {
  margin-bottom: 1rem;
  /* max-width: 74ch; */
}

details {
  margin: 0.8rem 0;
}

details summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}

.image-clickable {
  /* margin-top: -20px; */
  text-align: center;
}

.image-clickable img {
  width: 45%;
  height: auto;
}

.image-credit {
  font-size: 0.85rem;
  color: #555;
  margin-top: 6px;
}

ul {
  padding-left: 1.5rem;
}

.callout {
  border-left: 4px solid var(--accent);
  background: var(--surface-soft);
  padding: 0.9rem 1.1rem;
  border-radius: 0 10px 10px 0;
  margin: 1.1rem 0;
  color: var(--text);
  /* max-width: 74ch; */
}

.callout strong {
  color: var(--accent-dark);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 1.75rem;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  background: var(--surface);
  text-align: center;
}

.stat-card .sc-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1.1;
}

.stat-card .sc-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.viz-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 2rem auto 1.2rem;
  padding: 1rem 1.15rem 1.15rem;
  width: 95%;
  max-width: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.viz-cta p {
  color: #39566b;
  font-size: 0.94rem;
  font-weight: 600;
  margin-bottom: 0rem;
  max-width: none;
  width: 100%;
  text-align: center;
}

/* Buttons */
/* .buttons { margin-top: 1rem; } */
.btn1, .btn2, .btn3 {
  display: inline-block;
  margin-top: 0.8rem;
  margin-right: 0.8rem;
  max-width: max-content;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  font-weight: 450;
  background-color: var(--accent);
  color: var(--surface);
  border-radius: 25px;
  transition: transform 0.15s ease, background-color 0.15s ease;
  cursor: pointer; 
}

.btn1:hover, .btn2:hover, .btn3:hover {
  background-color: var(--accent-dark);
  transform: translateY(-1px);
  /* box-shadow: 0 8px 20px rgba(13, 124, 142, 0.24); */
  color: var(--surface);
}

.var-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1rem 0 1.5rem;
}

.var-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  background: var(--surface);
}

.var-card .var-name {
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 0.92rem;
}

.var-card .var-role {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Scroll to top button */
#topButton {
  display: none;
  position: fixed;
  bottom: 22px;
  right: 26px;
  z-index: 99;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.93);
  cursor: pointer;
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

#topButton:hover {
  background: var(--surface-soft);
}

.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 0.02rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
}

strong { color: var(--accent-title); }