:root {
  --color-brand-dark: #0A3D2F;
  --color-brand-mid: #1B7A5C;
  --color-brand-lime: #7ED957;
  --color-accent: #00B386;
  --color-bg: #F7F9F8;
  --color-surface: #FFFFFF;
  --color-text: #1A202C;
  --color-text-muted: #4A5568;
  --color-border: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(10, 61, 47, 0.06);
  --shadow-md: 0 6px 16px rgba(10, 61, 47, 0.12);
  --shadow-lg: 0 12px 28px rgba(10, 61, 47, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --spacing-section: clamp(3rem, 6vw, 5rem);
  --container-max: 1120px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-brand-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.125rem, 2vw, 1.35rem); margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; max-width: 70ch; }
small, .caption { font-size: 0.875rem; color: var(--color-text-muted); }

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--color-brand-lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: var(--spacing-section) 0; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header p { margin: 0.5rem auto 0; color: var(--color-text-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 2px solid transparent;
  user-select: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-brand-dark), var(--color-brand-mid));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary {
  background: transparent;
  color: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
}
.btn-secondary:hover { background: var(--color-brand-dark); color: #fff; }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.9rem; }

/* Layout */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.flex-row { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }

/* Cards */
.card {
  background: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #E6F4EE, #D1FAD3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-brand-mid);
}
.card-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }

/* Table */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #F0F5F2; font-weight: 600; color: var(--color-brand-dark); }
tr:last-child td { border-bottom: none; }

/* FAQ */
details {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  border: 1px solid var(--color-border);
  overflow: hidden;
}
summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; color: var(--color-brand-mid); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 1.25rem 1.25rem; color: var(--color-text-muted); }

/* Header / Footer */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 249, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
nav { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.1rem; color: var(--color-brand-dark); }
.logo img { height: 34px; width: auto; vertical-align: middle; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--color-text); position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-brand-mid); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; bottom: -22px; left: 0; right: 0; height: 3px; background: var(--color-brand-lime); border-radius: 2px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.15); }
footer { background: var(--color-brand-dark); color: #fff; padding: 3.5rem 0; margin-top: 3rem; }
footer p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--color-brand-lime); }

/* SVG Utilities */
.svg-graphic { width: 100%; height: auto; max-width: 600px; display: block; margin: 0 auto; }
svg { overflow: visible; }

/* Animations */
@keyframes flowPath {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}
@keyframes floatNode {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.75; }
  50% { transform: translateY(-6px) scale(1.15); opacity: 1; }
}
@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}
.anim-flow { animation: flowPath 5s ease-in-out infinite; }
.anim-float { animation: floatNode 4.5s ease-in-out infinite; }
.anim-pulse { animation: pulseRing 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim-flow, .anim-float, .anim-pulse { animation: none !important; }
  .card:hover { transform: none; box-shadow: var(--shadow-sm); }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .nav-links { display: none; }
  h1 { font-size: 1.75rem; }
  section { padding: 2.5rem 0; }
}
