:root {
  --bg: #0a0a0f;
  --bg-subtle: #111118;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-muted: #8a8a9a;
  --accent: #5ce0d8;
  --accent-glow: rgba(92, 224, 216, 0.15);
  --accent-dark: #3db8b0;
  --border: #2a2a35;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- HERO ---- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(92, 224, 216, 0.08) 0%, transparent 70%),
              var(--bg);
}

.hero-inner {
  max-width: 780px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  margin-bottom: 36px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: #fff;
}

.hero h1 .accent {
  color: var(--accent);
}

.lede {
  font-size: 1.2rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-stat-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ---- PROBLEM ---- */
.problem {
  padding: 100px 24px;
  background: var(--bg-subtle);
}

.problem-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.problem h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 18px;
}

.problem > .problem-inner > p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 620px;
  margin: 0 auto 48px;
}

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

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
}

.problem-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ---- FEATURES ---- */
.features {
  padding: 100px 24px;
}

.features-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 16px;
}

.features h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 56px;
}

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

.feature-block {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  transition: border-color 0.2s;
}

.feature-block:hover {
  border-color: var(--accent-dark);
}

.feature-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-block h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.feature-block p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---- HOW IT WORKS ---- */
.how {
  padding: 100px 24px;
  background: var(--bg-subtle);
}

.how-inner {
  max-width: 720px;
  margin: 0 auto;
}

.how h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 56px;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.how-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---- CLOSING ---- */
.closing {
  padding: 120px 24px;
  text-align: center;
  background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(92, 224, 216, 0.06) 0%, transparent 70%),
              var(--bg);
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 24px;
}

.closing-text {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.75;
}

/* ---- FOOTER ---- */
.site-footer {
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* ---- APP SHELL ---- */
.app-nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  height: 60px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-right: 40px;
}
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--fg); background: var(--bg-card); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-user { font-family: var(--font-display); font-size: 0.85rem; color: var(--fg-muted); }
.nav-logout {
  background: none;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--font-display);
  transition: border-color 0.2s, color 0.2s;
}
.nav-logout:hover { border-color: var(--accent); color: var(--accent); }

.app-layout { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

/* ---- DASHBOARD ---- */
.dash-header { margin-bottom: 32px; }
.dash-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #fff; }
.dash-subtitle { color: var(--fg-muted); font-size: 0.95rem; margin-top: 4px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.stat-card .stat-label { font-size: 0.78rem; color: var(--fg-muted); font-family: var(--font-display); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.stat-card .stat-val { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: #fff; line-height: 1; }
.stat-card.accent .stat-val { color: var(--accent); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.panel-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.panel-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: #fff; }
.panel-link { font-size: 0.82rem; color: var(--accent); text-decoration: none; }
.panel-link:hover { text-decoration: underline; }
.panel-body { padding: 0; }
.section-list { list-style: none; }
.section-list li { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.section-list li:last-child { border-bottom: none; }
.section-list .item-main { flex: 1; }
.section-list .item-name { font-weight: 500; color: var(--fg); font-size: 0.95rem; }
.section-list .item-meta { font-size: 0.82rem; color: var(--fg-muted); margin-top: 2px; }
.section-list .item-right { text-align: right; }
.section-list .item-time { font-family: var(--font-display); font-size: 0.88rem; font-weight: 500; color: var(--accent); }
.section-list .item-amount { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--fg); }
.section-list .badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 0.75rem; font-family: var(--font-display); font-weight: 600; }
.badge-pending { background: rgba(255,200,0,0.15); color: #ffc800; border: 1px solid rgba(255,200,0,0.25); }
.badge-overdue { background: rgba(255,80,80,0.15); color: #ff8080; border: 1px solid rgba(255,80,80,0.25); }
.badge-paid { background: rgba(92,224,216,0.15); color: var(--accent); border: 1px solid rgba(92,224,216,0.25); }
.badge-confirmed { background: rgba(92,224,216,0.1); color: var(--accent); border: 1px solid rgba(92,224,216,0.2); }
.badge-completed { background: rgba(80,255,120,0.15); color: #50ff78; border: 1px solid rgba(80,255,120,0.2); }
.section-list .empty-state { padding: 32px 20px; text-align: center; color: var(--fg-muted); font-size: 0.9rem; }

/* ---- CALENDAR ---- */
.calendar-controls { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.calendar-controls h2 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: #fff; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav a, .cal-nav button { padding: 8px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; color: var(--fg); font-size: 0.85rem; font-family: var(--font-display); cursor: pointer; text-decoration: none; transition: border-color 0.2s; }
.cal-nav a:hover, .cal-nav button:hover { border-color: var(--accent); color: var(--accent); }
.calendar-grid { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.cal-header { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
.cal-header span { padding: 12px; text-align: center; font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; color: var(--fg-muted); letter-spacing: 1px; text-transform: uppercase; }
.cal-body { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-day { min-height: 110px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 8px; }
.cal-day:nth-child(7n) { border-right: none; }
.cal-day-num { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; color: var(--fg-muted); margin-bottom: 6px; }
.cal-day.today .cal-day-num { color: var(--accent); }
.cal-event { display: block; padding: 3px 6px; background: var(--accent-glow); border: 1px solid var(--accent); border-radius: 4px; font-size: 0.72rem; color: var(--accent); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.cal-event:hover { background: rgba(92,224,216,0.25); }
.cal-empty { height: 80px; }

/* ---- FORMS ---- */
.form-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; margin-bottom: 24px; }
.form-section h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.single { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; }
.form-field label { font-size: 0.82rem; font-weight: 500; color: var(--fg-muted); font-family: var(--font-display); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--fg); font-size: 0.95rem; font-family: var(--font-body); outline: none; transition: border-color 0.2s; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 80px; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 8px; font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 0.2s, border-color 0.2s, color 0.2s; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: transparent; border-color: var(--border); color: var(--fg); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: transparent; border-color: rgba(255,80,80,0.4); color: #ff8080; }
.btn-danger:hover { background: rgba(255,80,80,0.1); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.page-header h1 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; }
.page-header-right { display: flex; gap: 10px; align-items: center; }

/* ---- TABLES ---- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 16px; text-align: left; font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; color: var(--fg-muted); letter-spacing: 1px; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.92rem; color: var(--fg); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table .col-actions { text-align: right; white-space: nowrap; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-stat-row {
    gap: 28px;
  }

  .hero {
    min-height: auto;
    padding: 60px 20px 48px;
  }

  .problem, .features, .how, .closing {
    padding: 64px 20px;
  }

  .how-step {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-stat-row {
    flex-direction: column;
    gap: 20px;
  }
}