:root {
  --bg: #0b0e14;
  --bg-alt: #10141d;
  --card: #151a25;
  --border: #232a3a;
  --text: #e6e9f0;
  --muted: #9aa3b5;
  --accent: #4f8cff;
  --accent-2: #22d3ee;
  --green: #34d399;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 640px; }

h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -0.01em; margin-bottom: 12px; text-align: center; }
h3 { font-size: 1.1rem; margin-bottom: 6px; }

.gradient {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
/* No flex `gap` here: the wordmark is a bare text node plus a <span>, so each
   becomes its own anonymous flex item and a gap would split "AgentGuardian"
   into "Agent Guardian". Space the icon with a margin instead. */
.logo { display: inline-flex; align-items: center; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.logo img { border-radius: 6px; display: block; margin-right: 9px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-links a:not(.btn):hover { color: var(--text); }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
}
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-small { padding: 7px 16px; font-size: 0.88rem; }
.btn-large { padding: 14px 30px; font-size: 1.05rem; }
.btn-block { display: block; text-align: center; width: 100%; }

/* HERO */
.hero { padding: 96px 0 72px; text-align: center; }
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.hero .sub {
  max-width: 640px;
  margin: 20px auto 32px;
  color: var(--muted);
  font-size: 1.12rem;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-points {
  display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  margin-top: 34px; color: var(--muted); font-size: 0.92rem;
}

/* SECTIONS */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-problem { background: var(--bg-alt); }

/* GRID + CARDS */
.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 760px; margin-left: auto; margin-right: auto; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* STEPS */
.steps { list-style: none; max-width: 640px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700;
}
.steps h3 { margin-bottom: 2px; }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* PRICING */
.sub { color: var(--muted); text-align: center; max-width: 600px; margin: 0 auto; }
.pricing-grid { margin-top: 40px; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card ul { list-style: none; margin: 18px 0 24px; flex-grow: 1; }
.price-card li { padding: 6px 0; color: var(--muted); font-size: 0.95rem; }
.price-card li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.price { font-size: 2.2rem; font-weight: 800; margin-top: 8px; }
.price s { color: var(--muted); font-size: 1.3rem; font-weight: 500; margin-right: 8px; }
.price-note { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.price-card-highlight { border-color: var(--accent); box-shadow: 0 0 40px rgba(79, 140, 255, 0.15); }
/* Scoped to .card so it outranks `.card p`, which was overriding the colour and
   leaving the pill in muted grey on a bright gradient — effectively unreadable. */
.card .ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #0b1220; font-size: 0.78rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
  margin: 0;
}

/* UTILITY */
.tiny { color: var(--muted); font-size: 0.82rem; margin-top: 8px; text-align: center; }

/* FOOTER */
.footer { padding: 40px 0; text-align: center; color: var(--muted); border-top: 1px solid var(--border); }

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  
}

.price-fineprint { margin-top: 12px; text-align: center; }

/* Links inside body copy. Without this, anchors fall back to the browser
   default (#0000EE), which is close to unreadable on the dark background. */
.footer a,
.tiny a {
  color: var(--accent);
  text-decoration: none;
}
.footer a:hover,
.tiny a:hover {
  text-decoration: underline;
}
