:root {
  --primary: #0f5132;
  --primary-dark: #003820;
  --emerald: #10b981;
  --coral: #f43f5e;
  --surface: #f8f9ff;
  --card: #ffffff;
  --on-surface: #0b1c30;
  --muted: #404942;
  --outline: #c0c9c0;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 16px -4px rgba(15, 23, 42, 0.03);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 249, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(192, 201, 192, 0.5);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--on-surface);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(15, 81, 50, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--outline);
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  color: var(--on-surface);
  font-size: 1.1rem;
}

/* Main */
main {
  flex: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

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

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.35);
}

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

.btn-ghost {
  background: var(--card);
  color: var(--on-surface);
  border: 1px solid rgba(192, 201, 192, 0.8);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Phone mock */
.phone {
  margin: 0 auto;
  max-width: 280px;
  background: linear-gradient(160deg, var(--primary-dark), var(--primary));
  border-radius: 28px;
  padding: 1.25rem 1.1rem 1.5rem;
  color: #fff;
  box-shadow: 0 20px 40px -12px rgba(15, 81, 50, 0.4);
}

.phone-top {
  font-size: 0.7rem;
  opacity: 0.75;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.phone-balance {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.phone-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.phone-bar > span {
  display: block;
  height: 100%;
  width: 46%;
  background: var(--emerald);
  border-radius: 4px;
}

.phone-meta {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-bottom: 1.1rem;
}

.phone-row {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.phone-row strong {
  font-weight: 600;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: #fff;
  border-block: 1px solid rgba(192, 201, 192, 0.35);
}

.section h2 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-lead {
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 2rem;
}

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

.card {
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.section-alt .card {
  background: var(--surface);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(15, 81, 50, 0.1);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

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

/* Legal pages */
.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: var(--muted);
  margin-top: 0.35rem;
}

.prose {
  max-width: 720px;
  padding-bottom: 3.5rem;
}

.prose h2 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.prose p,
.prose li {
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.prose ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.prose strong {
  color: var(--on-surface);
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-inner a {
  color: #fff;
  opacity: 0.9;
  margin-left: 1rem;
  font-size: 0.9rem;
}

.footer-inner a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-brand {
  font-weight: 700;
  color: #fff;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.7;
  width: 100%;
  margin-top: 0.5rem;
}

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

  .phone {
    order: -1;
  }

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

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1rem;
    border-bottom: 1px solid var(--outline);
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(192, 201, 192, 0.35);
  }
}
