/* Extracted from templates/home.html */
:root {
  --bg: #f3f6f8;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #5a6473;
  --line: #dde4ea;
  --brand: #198754;
  --brand-dark: #13653f;
  --ink: #0f172a;
  --dark-surface: #111827;
}

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

html,
body {
  width: 100%;
}

body {
  background: radial-gradient(circle at 20% -10%, #e7f5ee 0%, transparent 45%), var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.menu a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.menu a:hover {
  color: var(--brand);
}

.actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-outline {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.hero {
  padding: 72px 0 50px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid #c6ead8;
  border-radius: 999px;
  background: #effaf4;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 14px;
}

.hero p {
  max-width: 760px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-row {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  color: #607286;
  font-weight: 600;
  font-size: 0.92rem;
}

section {
  padding: 54px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 30px;
}

.section-head h2 {
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.1);
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #e9f7f0;
  color: var(--brand);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.card h3 {
  color: var(--ink);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.how-wrap .card {
  text-align: center;
}

.step {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #edf4ff;
  color: #315ca9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 10px;
}

.referral {
  background: linear-gradient(140deg, #0f172a, #18253d);
  color: #d6deeb;
  border-top: 1px solid #2b364a;
  border-bottom: 1px solid #2b364a;
}

.referral .section-head h2 {
  color: #fff;
}

.referral .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #d8e1ef;
}

.referral .card h3 {
  color: #fff;
}

.referral .tag {
  background: rgba(25, 135, 84, 0.2);
  color: #72dfad;
}

.cta {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 42px 24px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.07);
}

.cta h2 {
  color: var(--ink);
  margin-bottom: 10px;
}

.cta p {
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 20px;
}

footer {
  margin-top: 56px;
  background: var(--dark-surface);
  border-top: 1px solid #2c3444;
  color: #bec7d4;
  padding: 44px 0 24px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 24px;
}

footer h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1rem;
}

.foot-list {
  list-style: none;
}

.foot-list li {
  margin-bottom: 8px;
}

.foot-list a:hover {
  color: #fff;
}

.copyright {
  margin-top: 24px;
  border-top: 1px solid #2b3445;
  padding-top: 14px;
  font-size: 0.86rem;
  color: #94a0b3;
  text-align: center;
}

@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .menu {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .actions {
    width: 100%;
  }

  .actions .btn {
    flex: 1;
  }

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

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

  section {
    padding: 42px 0;
  }
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 12px 20px;
}

.mobile-menu a {
  padding: 10px 0;
  font-weight: 600;
  color: var(--muted);
}

.mobile-menu a:hover {
  color: var(--brand);
}

.mobile-menu.open {
  display: flex;
}

@media (max-width: 980px) {
  .menu {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .actions {
    display: none;
  }
}