:root {
  --primary: #0f766e;
  --primary-light: #14b8a6;
  --primary-dark: #0d5c56;
  --primary-glow: rgba(20, 184, 166, 0.25);
  --accent: #0ea5e9;
  --success: #059669;
  --bg-light: #f0fdfa;
  --bg-warm: #fafaf9;
  --text-dark: #134e4a;
  --text-muted: #5a7a77;
  --border: #ccfbf1;
  --border-muted: #e6f5f3;
  --white: #ffffff;
  --shadow: rgba(15, 118, 110, 0.08);
  --shadow-hover: rgba(15, 118, 110, 0.18);
  --radius: 20px;
  --radius-sm: 12px;
}

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-warm);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--primary-glow), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(20, 184, 166, 0.05), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(14, 165, 233, 0.04), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-muted);
  padding: 18px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(15, 118, 110, 0.04);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow);
}

.logo h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: rgba(15, 118, 110, 0.08);
}

/* Hero */
.hero {
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  line-height: 1.2;
  position: relative;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  font-weight: 500;
  line-height: 1.7;
}

/* Sections */
.section {
  padding: 48px 24px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(240, 253, 250, 0.5) 100%);
  position: relative;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 32px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 2px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 12px var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
  transition: height 0.3s ease;
}

.card:hover::before {
  height: 100%;
}

.card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}

.card .value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}

.card .change {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  margin-top: 4px;
}

.card .change.negative {
  color: #e11d48;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 12px var(--shadow);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  opacity: 0.8;
}

.stat-card .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.stat-card .value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 4px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  font-weight: 600;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 4px 14px var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

/* Footer */
.footer {
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
  border-top: 1px solid var(--border-muted);
  padding: 40px 24px;
  margin-top: 64px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: 0.3;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

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

.footer p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Contact form */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Policy page */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border-muted);
  box-shadow: 0 4px 24px var(--shadow);
}

.policy-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 32px;
  margin-bottom: 12px;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.policy-content ul {
  margin: 16px 0 16px 24px;
  color: var(--text-muted);
}

.policy-content li {
  margin-bottom: 8px;
}

/* Office cards */
.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.office-card {
  background: var(--white);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
}

.office-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.office-card:hover img {
  transform: scale(1.05);
}

.office-card-body {
  padding: 20px;
}

.office-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.office-card p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Buttons - enhanced */
.btn {
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow-hover);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn:active {
  transform: translateY(0);
}

/* Card hover */
.card,
.stat-card,
.office-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.stat-card:hover,
.office-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--shadow-hover);
  border-color: var(--border);
}

/* Mobile menu */
.menu-toggle {
  display: none !important;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary-dark);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 20px;
  color: #5eead4;
}

/* Policy TOC */
.policy-toc {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 32px;
  border: 1px solid var(--border-muted);
}

.policy-toc h3 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.policy-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.policy-toc li {
  margin-bottom: 8px;
}

.policy-toc a {
  color: var(--primary);
  font-weight: 500;
}

.policy-toc a:hover {
  text-decoration: underline;
}

/* Support card */
.support-card {
  cursor: pointer;
}

/* Feature tabs */
.feature-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.feature-tabs button {
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
}

.feature-tabs button:hover,
.feature-tabs button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.feature-panel {
  display: none;
}

.feature-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .container {
  animation: fadeInUp 0.8s ease-out;
}

.section .card-grid .card,
.section .stats-row .stat-card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.section .card-grid .card:nth-child(1),
.section .stats-row .stat-card:nth-child(1) { animation-delay: 0.05s; }
.section .card-grid .card:nth-child(2),
.section .stats-row .stat-card:nth-child(2) { animation-delay: 0.1s; }
.section .card-grid .card:nth-child(3),
.section .stats-row .stat-card:nth-child(3) { animation-delay: 0.15s; }
.section .card-grid .card:nth-child(4),
.section .stats-row .stat-card:nth-child(4) { animation-delay: 0.2s; }

/* Back to top */
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 24px 24px;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    z-index: 99;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex !important;
  }

  .hero h2 {
    font-size: 28px;
  }
}

