/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --teal-600: #0f766e;
  --teal-700: #0d6560;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-600);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { color: var(--gray-900); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
a { text-decoration: none; color: inherit; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn svg { flex-shrink: 0; }

.btn-primary {
  background: var(--teal-600);
  color: var(--white);
  border-color: var(--teal-600);
}
.btn-primary:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,118,110,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-ghost:hover {
  border-color: var(--teal-600);
  color: var(--teal-600);
}

.btn-white {
  background: var(--white);
  color: var(--teal-700);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--green-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-nav {
  padding: 9px 22px;
  font-size: 0.9rem;
  background: var(--teal-600);
  color: var(--white);
  border-color: var(--teal-600);
}
.btn-nav:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.3s;
}
.nav.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--gray-800);
}
.logo strong { font-weight: 800; color: var(--teal-600); }
.logo-icon { width: 38px; height: 38px; border-radius: 9px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal-600); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding: 130px 0 60px;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.hero-bg {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-50) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  background: var(--green-50);
  color: var(--green-800);
  border: 1px solid var(--green-200);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 { margin-bottom: 20px; }
.highlight {
  color: var(--teal-600);
  position: relative;
}
.highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 6px;
  background: var(--green-200);
  border-radius: 3px;
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray-500);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Dashboard Mock */
.dashboard-mock {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03);
  overflow: hidden;
}

.mock-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mock-dots span:nth-child(1) { background: #ef4444; }
.mock-dots span:nth-child(2) { background: #f59e0b; }
.mock-dots span:nth-child(3) { background: #22c55e; }
.mock-url {
  font-size: 0.75rem;
  color: var(--gray-400);
  background: var(--white);
  padding: 4px 14px;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  flex: 1;
  text-align: center;
}

.mock-body { display: flex; min-height: 280px; }

.mock-sidebar {
  width: 52px;
  padding: 16px 0;
  background: var(--teal-600);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.mock-nav-item {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}
.mock-nav-item.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.mock-content { flex: 1; padding: 18px; }

.mock-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.mock-stat {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 14px;
}
.mock-stat-label {
  display: block;
  font-size: 0.65rem;
  color: var(--gray-400);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.mock-stat-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gray-800);
}
.mock-stat-trend {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 4px;
}
.mock-stat-trend.up { color: var(--green-700); background: var(--green-50); }
.mock-stat-trend.down { color: var(--teal-600); background: #f0fdfa; }

.mock-chart-area {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 14px;
}
.mock-chart-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 12px;
}
.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 90px;
}
.mock-bar {
  flex: 1;
  background: var(--green-200);
  border-radius: 5px 5px 0 0;
  position: relative;
  transition: background 0.2s;
  min-height: 8px;
}
.mock-bar.active { background: var(--teal-600); }
.mock-bar span {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: var(--gray-400);
  font-weight: 600;
}

/* ===== Stats Bar ===== */
.stats-bar {
  padding: 40px 0;
  background: var(--teal-600);
}
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2px;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* ===== Section Common ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.section-header p {
  margin-top: 14px;
  color: var(--gray-500);
  font-size: 1.05rem;
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--green-50);
  color: var(--teal-600);
  border: 1px solid var(--green-200);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal-600);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.feature-card:hover {
  border-color: var(--green-200);
  box-shadow: 0 8px 30px rgba(15,118,110,0.08);
  transform: translateY(-4px);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-card h3 { margin: 18px 0 10px; }
.feature-card p { color: var(--gray-500); font-size: 0.92rem; line-height: 1.65; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; }

/* ===== How It Works ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--gray-50);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  position: relative;
  transition: all 0.3s;
}
.step:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}
.step h3 { margin: 12px 0 8px; }
.step p { color: var(--gray-500); font-size: 0.92rem; }

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--teal-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.step-icon svg { width: 24px; height: 24px; }

.step-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--teal-600);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

/* ===== Who Section ===== */
.who-section {
  padding: 100px 0;
  background: var(--white);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.role-card {
  text-align: center;
  padding: 44px 32px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  background: var(--white);
}
.role-card h3 { margin: 18px 0 10px; }
.role-card p { color: var(--gray-500); font-size: 0.92rem; }

.role-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--teal-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--green-200);
}
.role-icon svg { width: 28px; height: 28px; }

/* ===== CTA Banner ===== */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--teal-600) 0%, var(--green-700) 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.cta-content h2 {
  color: var(--white);
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.cta-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
  background: var(--gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 { margin: 14px 0 16px; }
.contact-info p { color: var(--gray-500); font-size: 1.02rem; margin-bottom: 36px; line-height: 1.7; }

.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-50);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-value {
  display: block;
  font-size: 0.95rem;
  color: var(--gray-700);
  font-weight: 600;
}

.contact-form-wrapper {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--gray-800);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(15,118,110,0.1);
}
.form-group textarea { resize: vertical; }

/* ===== Footer ===== */
.footer {
  padding: 56px 0 0;
  background: var(--gray-900);
  color: var(--gray-400);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { max-width: 300px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo span { color: var(--gray-300); }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; color: var(--gray-500); }

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

.footer-links h4 {
  color: var(--gray-200);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.88rem;
  color: var(--gray-500);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green-400); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.82rem;
  color: var(--gray-600);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-top { flex-direction: column; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .btn-nav { text-align: center; }

  .hero { padding: 110px 0 40px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { display: none; }

  .stats-container { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .features-grid { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }

  .roles-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-links-row { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}
