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

:root {
  --bg: #f8f6f2;
  --surface: #ffffff;
  --surface-hover: #faf8f5;
  --primary: #065f46;
  --primary-light: #059669;
  --primary-dark: #064e3b;
  --primary-gradient: linear-gradient(135deg, #065f46, #059669);
  --accent-gradient: linear-gradient(135deg, #065f46, #059669, #10b981);
  --text: #1c1917;
  --text-secondary: #78716c;
  --border: #e7e5e4;
  --success: #16a34a;
  --gold: #b45309;
  --danger: #dc2626;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── Header ─── */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: var(--border);
}

.logo {
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: -0.4px;
}

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

.nav a {
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(6, 95, 70, 0.06);
}

.nav a.active {
  color: var(--primary-dark);
  background: rgba(6, 95, 70, 0.08);
  font-weight: 600;
}

/* ─── Container ─── */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ─── Hero ─── */

.hero {
  text-align: center;
  padding: 5rem 0 3.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #1c1917 0%, #065f46 50%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: auto;
  padding: 0.9rem 2.25rem;
  font-size: 1rem;
}

/* ─── Typography ─── */

h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 0.5rem; }

.subtitle {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* ─── Grid ─── */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.25rem; }
  .hero { padding: 3rem 0 2rem; }
  .container { padding: 2rem 1.25rem; }
  .header { padding: 0 1.25rem; }
  .header::after { left: 1.25rem; right: 1.25rem; }
}

/* ─── Card ─── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.card:hover {
  border-color: rgba(6, 95, 70, 0.12);
  box-shadow: var(--shadow-hover);
}

.card h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ─── Stats ─── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s;
  box-shadow: var(--shadow);
  position: relative;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 95, 70, 0.12);
  box-shadow: var(--shadow-hover);
}

.stat-card:hover::before { opacity: 1; }

.stat-card .number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-card .label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  font-weight: 500;
}

/* ─── Form ─── */

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #faf9f7;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.25s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(6, 95, 70, 0.08);
}

/* ─── Button ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
  width: 100%;
  text-decoration: none;
  letter-spacing: -0.2px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 95, 70, 0.25);
}

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

/* ─── Results ─── */

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.result-item:last-child { border-bottom: none; }

.result-item .label {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.result-item .value {
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
}

/* ─── Table ─── */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

thead th {
  padding: 0 1rem 0.75rem 1rem;
  text-align: left;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(231, 229, 228, 0.6);
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover td {
  background: rgba(6, 95, 70, 0.02);
}

/* ─── Badge ─── */

.badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--active { background: rgba(22, 163, 74, 0.08); color: var(--success); border: 1px solid rgba(22, 163, 74, 0.15); }
.badge--pending { background: rgba(180, 83, 9, 0.08); color: var(--gold); border: 1px solid rgba(180, 83, 9, 0.15); }
.badge--closed { background: rgba(120, 113, 108, 0.08); color: var(--text-secondary); border: 1px solid rgba(120, 113, 108, 0.12); }

/* ─── Footer ─── */

.footer {
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 3rem 2rem 0;
}

.footer-content {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-heading {
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
}

.footer-link {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.2rem 0;
  transition: color 0.2s;
}

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

.footer-text {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── Toast ─── */

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--surface);
  border: 1px solid rgba(22, 163, 74, 0.2);
  color: var(--text);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.35s, transform 0.35s;
  z-index: 999;
  backdrop-filter: blur(20px);
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Nav badge ─── */

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: super;
  margin-left: -0.4rem;
}

/* ─── Toolbar ─── */

.toolbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.toolbar select,
.toolbar input {
  padding: 0.6rem 0.85rem;
  background: #faf9f7;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  transition: all 0.25s;
}

.toolbar select:focus,
.toolbar input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(6, 95, 70, 0.08);
}

.toolbar input {
  flex: 1;
  min-width: 160px;
}

.toolbar select { min-width: 150px; }

/* ─── Small buttons ─── */

.btn-sm {
  padding: 0.35rem 0.75rem;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.2);
}

.btn-sm--active {
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(6, 95, 70, 0.25);
}

.btn-sm--danger { background: linear-gradient(135deg, #dc2626, #ef4444); }
.btn-sm--danger:hover { box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2); }

.btn-sm + .btn-sm { margin-left: 0.4rem; }

/* ─── Animations ─── */

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

.hero, .stats-grid, .card, .grid > section {
  animation: fadeInUp 0.6s ease-out both;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

.stats-grid > :nth-child(1) { animation-delay: 0.05s; }
.stats-grid > :nth-child(2) { animation-delay: 0.1s; }
.stats-grid > :nth-child(3) { animation-delay: 0.15s; }
.stats-grid > :nth-child(4) { animation-delay: 0.2s; }
.stats-grid > :nth-child(5) { animation-delay: 0.25s; }
.stats-grid > :nth-child(6) { animation-delay: 0.3s; }

/* ─── Hero extras ─── */

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(6, 95, 70, 0.08);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-meta {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Section alternate ─── */

.section-alt {
  background: rgba(6, 95, 70, 0.03);
  padding: 4rem 0;
  margin: 2rem 0;
}

.section-alt .container {
  padding-top: 0;
  padding-bottom: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ─── Features ─── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 95, 70, 0.12);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(6, 95, 70, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .section-alt { padding: 2.5rem 0; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ─── Steps ─── */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 95, 70, 0.12);
  box-shadow: var(--shadow-hover);
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 1rem;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-arrow {
  display: flex;
  align-items: center;
  color: var(--primary-light);
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .step-arrow {
    transform: rotate(90deg);
    justify-content: center;
  }
}

/* ─── 3-column grid ─── */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.service-card {
  text-align: center;
  padding: 2.25rem 1.75rem;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(6, 95, 70, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 1.25rem;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── CTA block ─── */

.product-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card .btn {
  margin-top: auto;
  width: 100%;
}

.product-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.product-icon {
  width: 64px;
  height: 64px;
  background: rgba(6, 95, 70, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 1rem;
}

.product-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.product-category {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── CTA block ─── */

.cta-block {
  background: var(--primary-gradient);
  border-radius: var(--radius);
  padding: 3.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.cta-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.cta-content .btn {
  background: #fff;
  color: var(--primary-dark);
}

.cta-content .btn:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ─── FAQ ─── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.faq-item:hover {
  border-color: rgba(6, 95, 70, 0.12);
}

.faq-question {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── Chart bars ─── */

.chart-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chart-bar-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chart-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  min-width: 100px;
  text-align: right;
  flex-shrink: 0;
}

.chart-track {
  flex: 1;
  height: 24px;
  background: rgba(6, 95, 70, 0.06);
  border-radius: 8px;
  overflow: hidden;
}

.chart-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.6s ease;
  min-width: 4px;
}

.chart-fill--green { background: var(--primary-gradient); }
.chart-fill--gold { background: linear-gradient(135deg, #b45309, #d97706); }
.chart-fill--gray { background: linear-gradient(135deg, #78716c, #a8a29e); }

.chart-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  min-width: 60px;
}

@media (max-width: 768px) {
  .chart-label { min-width: 70px; font-size: 0.75rem; }
}
