/* ============================================================
   Envoi Tech – Shared Stylesheet
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #2D6A4F;
  --green-dark: #1B4332;
  --green-bright: #52B788;
  --green-light: #D8F3DC;
  --white: #ffffff;
  --gray-50: #f8faf9;
  --gray-200: #e0e5e2;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --dark: #111111;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(45, 106, 79, 0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 1.5rem;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

nav:not(.privacy-nav) {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.30) 0%,
    rgba(255, 255, 255, 0.14) 100%
  );
  backdrop-filter: blur(28px) saturate(200%) brightness(1.08);
  -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 8px 32px rgba(45, 106, 79, 0.10);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark img { width: 34px; height: 34px; object-fit: cover; }
.logo-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.4s ease;
}
.logo-text .logo-accent {
  font-weight: 400;
  color: var(--green);
}

nav:not(.privacy-nav) .logo-text { color: var(--gray-800); }

.nav-cta {
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

nav:not(.privacy-nav) .nav-cta,
.privacy-nav .nav-cta {
  background: var(--green);
  color: var(--white);
  border: none;
}
nav:not(.privacy-nav) .nav-cta:hover { background: var(--green-dark); }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
footer .logo-text { color: rgba(255,255,255,0.85); }
footer .logo-text .logo-accent { color: var(--green-bright); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--green-bright); }
.footer-copy {
  font-size: 0.8rem;
  width: 100%;
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 0.5rem;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--green-bright);
  color: var(--green-dark);
  text-decoration: none;
  padding: 0.8rem 1.75rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  transition: filter 0.15s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  text-decoration: none;
  padding: 0.8rem 1.75rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.25);
  transition: background 0.15s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   INDEX PAGE
   ============================================================ */

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 100%);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  color: var(--white);
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(82, 183, 136, 0.18);
  color: var(--green-bright);
  border: 1px solid rgba(82, 183, 136, 0.35);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 680px;
  margin: 0 auto 1.25rem;
}
.hero h1 span { color: var(--green-bright); }
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}
.hero-buttons {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── SECTION WRAPPER ── */
.section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gray-800);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 540px;
  margin-bottom: 3rem;
}

/* ── FEATURES ── */
.features { background: var(--gray-50); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.4rem;
}
.feature-card p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.55; }

/* ── ADMIN SECTION ── */
.admin-section {
  background: var(--green-light);
}
.admin-inner {
  max-width: 680px;
}
.admin-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
}
.admin-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-800);
}
.admin-feature svg {
  flex-shrink: 0;
  color: var(--green);
}

/* ── HOW IT WORKS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  counter-reset: steps;
}
.step { counter-increment: steps; }
.step-num {
  width: 40px;
  height: 40px;
  background: var(--green);
  color: var(--green-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.step-num::before { content: counter(steps); }
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.55; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  text-align: center;
  padding: 4.5rem 1.5rem;
}
.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.cta-band p { color: rgba(255,255,255,0.75); margin-bottom: 2rem; font-size: 1.05rem; }

/* ============================================================
   PRIVACY PAGE
   ============================================================ */

.privacy-nav {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.30) 0%,
    rgba(255, 255, 255, 0.14) 100%
  );
  backdrop-filter: blur(28px) saturate(200%) brightness(1.08);
  -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 8px 32px rgba(45, 106, 79, 0.10);
}
.privacy-nav .nav-inner {
  max-width: 760px;
  height: 58px;
}
.privacy-nav .logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.privacy-nav .logo-mark img { width: 30px; height: 30px; }
.privacy-nav .logo-text { color: var(--gray-800); }

.back-link {
  color: var(--green);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: opacity 0.15s;
}
.back-link:hover { opacity: 0.75; }
.back-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-wrap {
  max-width: 760px;
  margin: 2.5rem auto;
  padding: 0 1.5rem 4rem;
  background: var(--gray-50);
}
.card {
  background: var(--white);
  border-radius: 14px;
  padding: 2.5rem 2.75rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 16px rgba(45,106,79,0.07);
}
.card h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--green);
  margin-bottom: 0.3rem;
}
.meta {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}
.card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}
.card p { font-size: 0.95rem; color: var(--gray-600); margin-bottom: 0.75rem; }
.card ul {
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}
.card ul li {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 0.35rem;
}
.card a { color: var(--green); }
.card a:hover { color: var(--green-dark); }
.card strong { color: var(--gray-800); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }
  .card { padding: 1.75rem 1.5rem; }
}
