/* ===================================================================
   AI Automation Tools — directory styles
   You shouldn't need to edit this; tweak colours via the variables below.
   =================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #eef1f7;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-soft: #eef2ff;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .05);
  --shadow-lg: 0 12px 40px rgba(99, 102, 241, .18);
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: var(--shadow-lg);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 14px 30px; font-size: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__brand { font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: .92rem; font-weight: 500; }
.nav__links a { color: var(--muted); transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  background: var(--accent-soft); color: var(--accent) !important;
  padding: 8px 16px; border-radius: 999px; font-weight: 600;
}
@media (max-width: 680px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 88px 0 72px;
  background:
    radial-gradient(900px 400px at 50% -10%, var(--accent-soft), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
#bgCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.hero__eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
  letter-spacing: .02em;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.08; max-width: 820px; margin: 0 auto;
}
.hero__tagline {
  font-size: 1.18rem; color: var(--muted);
  max-width: 600px; margin: 20px auto 0;
}
.hero__cta { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 52px;
}
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 26px; min-width: 150px; box-shadow: var(--shadow);
}
.stat__value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.stat__label { font-size: .85rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; border-top: 1px solid var(--border); }
.section--alt { background: var(--bg-alt); }
/* Distinct, subtle tint per band so sections read as clearly separate */
#featured { background: linear-gradient(180deg, #ffffff, #f6f7fc); }
#feature { background: linear-gradient(180deg, #f8f6fd, #f3f0fb); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section__head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
.section__head p { color: var(--muted); margin-top: 10px; font-size: 1.05rem; }

/* ---------- Grids & cards ---------- */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.grid--featured {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.grid--featured .card { flex: 0 1 340px; max-width: 360px; }
.grid__empty { text-align: center; color: var(--muted); padding: 40px 0; }
.list-cta {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; color: var(--muted); font-weight: 500;
}

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.card--featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
  box-shadow: var(--shadow);
}
/* "Featured slot available" placeholder cards */
.card--slot {
  justify-content: center; align-items: center; text-align: center; gap: 12px;
  background: var(--accent-soft);
  border: 2px dashed var(--accent);
  box-shadow: none;
}
.card--slot:hover { transform: translateY(-4px); }
.card__top { display: flex; align-items: center; gap: 14px; }
.card__logo {
  width: 48px; height: 48px; border-radius: 12px; flex: 0 0 48px;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.1rem;
  object-fit: cover; overflow: hidden;
}
.card__name { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.card__cat { font-size: .8rem; color: var(--muted); }
.card__tagline { color: #334155; font-size: .96rem; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.card__link { font-weight: 600; font-size: .9rem; color: var(--accent); }
.card__link:hover { text-decoration: underline; }
.badge {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.badge--founding { background: linear-gradient(135deg, #f59e0b, #f97316); }

/* ---------- Controls ---------- */
.controls { display: flex; flex-direction: column; gap: 16px; margin-bottom: 34px; }
.controls__search {
  width: 100%; max-width: 420px; margin: 0 auto;
  padding: 13px 18px; border: 1px solid var(--border); border-radius: 999px;
  font-size: .98rem; font-family: inherit; background: #fff;
}
.controls__search:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.controls__filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip {
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500;
  cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip--active { background: var(--text); color: #fff; border-color: var(--text); }

/* ---------- Pricing ---------- */
.pricing {
  display: grid; gap: 22px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 960px; margin: 0 auto;
}
.plan {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; background: var(--surface); display: flex; flex-direction: column; gap: 16px;
}
.plan--highlight {
  border-color: var(--accent); box-shadow: var(--shadow-lg);
  position: relative; transform: translateY(-6px);
}
.plan--highlight::before {
  content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 4px 14px; border-radius: 999px;
}
.plan__name { font-weight: 700; font-size: 1.1rem; }
.plan__price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; }
.plan__price span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan__was {
  text-decoration: line-through; color: var(--muted);
  font-size: 1.15rem; font-weight: 600; margin-right: 10px;
}
.plan__note { font-size: .82rem; color: var(--accent); font-weight: 600; }
.plan__perks { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: .92rem; color: #334155; }
.plan__perks li { padding-left: 26px; position: relative; }
.plan__perks li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800;
}
.pricing__foot { text-align: center; color: var(--muted); margin-top: 34px; }
.pricing__foot a { color: var(--accent); font-weight: 600; }

/* ---------- Subscribe ---------- */
.subscribe { background: var(--text); color: #fff; padding: 60px 0; }
.subscribe__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.subscribe h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.subscribe p { color: #cbd5e1; margin-top: 8px; max-width: 480px; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer__inner { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.footer__disclosure { font-size: .85rem; color: var(--muted); }
.footer__meta { font-size: .85rem; color: var(--muted); }
.footer__meta a { color: var(--accent); }
