/* ===== Design tokens ===== */
:root {
  --navy: #0b1f3a;
  --navy-700: #112a4d;
  --navy-600: #1b3a63;
  --ink: #0f172a;
  --slate: #475569;
  --slate-light: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --green: #10b981;
  --green-light: #34d399;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(11, 31, 58, 0.25);
  --shadow-lg: 0 30px 60px -20px rgba(11, 31, 58, 0.35);
  --max: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }

p { color: var(--slate); }
.muted { color: var(--slate-light); font-size: 1.08rem; }
.accent { color: var(--green); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #04261a; box-shadow: 0 8px 20px -8px rgba(16, 185, 129, 0.6); }
.btn-primary:hover { background: var(--green-light); box-shadow: 0 12px 26px -8px rgba(16, 185, 129, 0.7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); background: var(--bg-alt); }
.btn-sm { padding: 9px 18px; font-size: 0.92rem; }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-size: 1.12rem; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.brand-name strong { font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--slate); font-weight: 500; font-size: 0.96rem; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-primary { color: #04261a; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 84px 0 72px;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(16, 185, 129, 0.10), transparent 60%),
    radial-gradient(700px 400px at 0% 0%, rgba(27, 58, 99, 0.08), transparent 55%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.lede { font-size: 1.2rem; color: var(--slate); margin: 22px 0 30px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-points { list-style: none; display: grid; gap: 8px; }
.hero-points li { color: var(--slate); font-weight: 500; }

/* hero mock card */
.hero-visual { display: flex; justify-content: center; }
.mock-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  transform: rotate(-1deg);
}
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mock-title { font-weight: 800; color: var(--ink); }
.mock-time { font-size: 0.82rem; color: var(--slate-light); background: var(--bg-alt); padding: 4px 10px; border-radius: 999px; }
.mock-task { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); margin-bottom: 10px; border: 1px solid var(--line); }
.mock-task div { display: flex; flex-direction: column; }
.mock-task small { color: var(--slate-light); font-size: 0.78rem; }
.mock-task .check {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 800; flex-shrink: 0;
}
.mock-task.done { background: rgba(16, 185, 129, 0.07); border-color: rgba(16, 185, 129, 0.25); }
.mock-task.done .check { background: var(--green); color: #fff; }
.mock-task.warn { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.3); }
.mock-task .warn-x { background: var(--amber); color: #fff; }
.mock-task.pending { opacity: 0.85; }
.pending-dot { border: 2px dashed var(--slate-light); }
.mock-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 0.82rem; color: var(--slate-light); }
.bar { flex: 1; height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--green); border-radius: 999px; }

/* ===== Trust strip ===== */
.trust { background: var(--navy); color: #cdd9e8; padding: 26px 0; }
.trust p { color: #9fb3cf; text-align: center; font-weight: 500; font-size: 1.02rem; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 52px; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { margin-top: 14px; }

.problem h2 { margin-bottom: 16px; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.96rem; }

/* ===== Cards (task types) ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(16, 185, 129, 0.4); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--bg-alt);
  display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.98rem; }
.feature-card { background: linear-gradient(180deg, #fff, #f3fbf7); border-color: rgba(16, 185, 129, 0.3); }

/* ===== Hierarchy ===== */
.hierarchy { max-width: 720px; margin: 0 auto; display: grid; gap: 6px; }
.tier {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; text-align: center; box-shadow: var(--shadow);
}
.tier-label { display: block; font-weight: 800; font-size: 1.1rem; color: var(--ink); margin-bottom: 4px; }
.tier p { font-size: 0.95rem; }
.tier-1 { background: var(--navy); border-color: var(--navy); }
.tier-1 .tier-label { color: #fff; }
.tier-1 p { color: #9fb3cf; }
.tier-2 { width: 86%; margin: 0 auto; }
.tier-3 { width: 72%; margin: 0 auto; }
.tier-4 { width: 58%; margin: 0 auto; border-color: rgba(16, 185, 129, 0.5); background: #f3fbf7; }
.tier-arrow { text-align: center; color: var(--slate-light); font-size: 1.3rem; line-height: 1; }

/* ===== Reporting ===== */
.reporting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-list { list-style: none; display: grid; gap: 16px; margin: 26px 0 30px; }
.feature-list li { padding-left: 30px; position: relative; color: var(--slate); }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800;
}
.feature-list strong { color: var(--ink); }

.email-mock { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.email-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.email-head .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.email-subj { margin-left: 10px; font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.email-body { padding: 22px; }
.email-greet { color: var(--slate); margin-bottom: 18px; }
.stat-row { display: flex; gap: 12px; margin-bottom: 20px; }
.stat { flex: 1; background: var(--bg-alt); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; }
.stat-num.good { color: var(--green); } .stat-num.warn { color: var(--amber); } .stat-num.bad { color: var(--red); }
.stat-lbl { font-size: 0.76rem; color: var(--slate-light); }
.email-list { list-style: none; display: grid; gap: 10px; }
.email-list li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--slate); }
.pill { font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.pill.good { background: rgba(16,185,129,0.15); color: #047857; }
.pill.warn { background: rgba(245,158,11,0.18); color: #b45309; }
.pill.bad { background: rgba(239,68,68,0.15); color: #b91c1c; }

/* ===== Benefits ===== */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.benefit { padding: 26px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.benefit h3 { margin-bottom: 8px; }
.benefit p { font-size: 0.95rem; }

/* ===== CTA ===== */
.cta {
  padding: 90px 0;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(16, 185, 129, 0.15), transparent 60%),
    var(--navy);
  color: #fff;
}
.cta h2 { color: #fff; }
.cta p { color: #b9c8de; margin: 16px auto 32px; max-width: 560px; }
.lead-form { max-width: 560px; margin: 0 auto; }
.form-row { display: flex; gap: 14px; margin-bottom: 14px; }
.lead-form input {
  flex: 1; width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--navy-600); background: var(--navy-700); color: #fff;
  font-family: inherit; font-size: 1rem;
}
.lead-form input::placeholder { color: #7e93b3; }
.lead-form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,0.25); }
.lead-form .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 0.84rem; color: #8499b8; margin-top: 14px; text-align: center; }

/* ===== Footer ===== */
.site-footer { background: #07182e; color: #9fb3cf; padding: 56px 0 28px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-footer .brand-name { color: #fff; }
.footer-tag { margin-top: 12px; color: #7e93b3; font-size: 0.95rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: #9fb3cf; text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; font-size: 0.85rem; color: #64799a; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .reporting-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed; top: 70px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform 0.25s ease; pointer-events: none;
  }
  .nav-links.open { transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 12px 0; }
  .nav-links a.btn-primary { margin-top: 8px; }
  .nav-toggle { display: flex; }
  .steps, .cards, .benefits { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 14px; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 60px 0; }
}
