/* ===========================
   Base / Reset (Modern SaaS: White + Blue)
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Core */
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;

  /* Surfaces */
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --border: #e2e8f0;

  /* Brand */
  --primary: #1d4ed8;
  --primaryHover: #1e40af;
  --primarySoft: #eff6ff;
  --primaryText: #ffffff;

  /* Effects */
  --shadow: 0 14px 40px rgba(2, 6, 23, 0.10);
  --ring: 0 0 0 4px rgba(29, 78, 216, 0.18);

  --radius: 18px;
  --radius-lg: 26px;

  --container: 1120px;
  --pad: 20px;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1100px 500px at 15% -10%, rgba(29, 78, 216, 0.10), transparent 55%),
    radial-gradient(900px 450px at 85% 0%, rgba(29, 78, 216, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;

  /* UPDATED: offset for fixed header (match 60px header) */
  padding-top: 60px;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

.muted {
  color: var(--muted);
}

/* ===========================
   Header / Nav
=========================== */
.site-header {
  /* UPDATED: sticky -> fixed */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);

  /* NEW: shadow transition (shadow added via .scrolled class) */
  box-shadow: none;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

/* NEW: applied by your scroll script */
.site-header.scrolled {
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.10);
  background: rgba(255, 255, 255, 0.92);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* UPDATED: smaller header height */
  min-height: 60px;

  /* UPDATED: tighter spacing */
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  /* UPDATED: tighter vertical padding */
  padding: 6px 0;
}

/* Optional badge behind icon (your HTML includes it) */
.brand-badge {
  /* UPDATED: remove blue badge background */
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: none;
}

/* Brand icon image */
.brand-icon {
  /* keep your sizing */
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;

  /* UPDATED: remove drop-shadow for a cleaner look */
  filter: none;
}

.brand-text {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  align-items: center;

  /* UPDATED: tighter nav spacing */
  gap: 12px;

  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;

  /* UPDATED: tighter padding */
  padding: 7px 9px;

  /* slightly tighter radius */
  border-radius: 10px;
}

.nav a:hover {
  color: var(--text);
  background: rgba(29, 78, 216, 0.08);
  text-decoration: none;
}

.nav-cta {
  background: rgba(29, 78, 216, 0.10);
  border: 1px solid rgba(29, 78, 216, 0.20);

  /* UPDATED: tighter CTA padding */
  padding: 7px 11px;
}

/* Focus accessibility */
.btn:focus-visible,
.nav a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* NEW: ensure anchor navigation doesn’t hide headings under fixed header */
#about,
#solution,
#how,
#pricing,
#faq,
#contact {
  scroll-margin-top: 76px;
}

/* ===========================
   Hero
=========================== */
.hero {
  padding: 64px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-trust {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.05);
}

.trust-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
}

/* Hero card */
.hero-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chip {
  display: inline-block;
  font-weight: 800;
  font-size: 12px;
  color: var(--primary);
  background: rgba(29, 78, 216, 0.10);
  border: 1px solid rgba(29, 78, 216, 0.18);
  padding: 6px 10px;
  border-radius: 999px;
}

.card-title {
  margin: 12px 0 8px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.card-sub {
  margin: 0 0 16px;
  color: var(--muted);
}

.checklist {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.checklist li {
  margin: 8px 0;
}

.hero-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.text-link {
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
}

/* ===========================
   Sections
=========================== */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--primarySoft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 70ch;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 52px rgba(2, 6, 23, 0.12);
  border-color: rgba(29, 78, 216, 0.18);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* ===========================
   Features (TINY ICONS)
=========================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 52px rgba(2, 6, 23, 0.12);
  border-color: rgba(29, 78, 216, 0.22);
}

.feature-media {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(29, 78, 216, 0.10);
  border: 1px solid rgba(29, 78, 216, 0.18);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature-img {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  object-fit: contain;
  display: block;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

/* ===========================
   Steps
=========================== */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-num {
  font-weight: 900;
  font-size: 18px;
  width: 64px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(29, 78, 216, 1);
  color: #ffffff;
}

.step-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.step-body p {
  margin: 0;
  color: var(--muted);
}

/* Callout */
.callout {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.callout h3 {
  margin: 0 0 6px;
}

.callout p {
  margin: 0;
  color: var(--muted);
}

/* ===========================
   Pricing
=========================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.price-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.price-card.featured {
  border-color: rgba(29, 78, 216, 0.25);
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.14);
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(29, 78, 216, 0.10);
  border: 1px solid rgba(29, 78, 216, 0.18);
  color: var(--primary);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}

.price-card h3 {
  margin: 0 0 6px;
}

.price-note {
  margin: 0 0 14px;
  color: var(--muted);
}

.price {
  margin: 0 0 14px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

.price-sub {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  margin-left: 6px;
}

.bullets {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted);
}

.bullets li {
  margin: 8px 0;
}

/* ===========================
   FAQ
=========================== */
.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 6px 14px;
}

.faq-item summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 900;
  color: var(--text);
}

.faq-item p {
  margin: 0 0 12px;
  color: var(--muted);
}

/* ===========================
   Contact (RESTORED — this fixes your form)
=========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  align-items: start;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
}

.mini-cta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Form */
.form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
}

.form label {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 900;
  font-size: 14px;
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(15, 23, 42, 0.45);
  font-weight: 600;
}

input:focus,
textarea:focus {
  box-shadow: var(--ring);
  border-color: rgba(29, 78, 216, 0.45);
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

/* ===========================
   Enhanced Form Inputs
=========================== */

.form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 15px;
  transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

/* Placeholder styling (form tips feel) */
input::placeholder,
textarea::placeholder {
  color: rgba(15, 23, 42, 0.45);
  font-weight: 600;
  transition: color 0.15s ease;
}

/* On focus */
input:focus,
textarea:focus {
  border-color: rgba(29, 78, 216, 0.5);
  box-shadow: var(--ring);
  background: #ffffff;
}

/* Make placeholder lighter on focus (clean SaaS feel) */
input:focus::placeholder,
textarea:focus::placeholder {
  color: rgba(15, 23, 42, 0.25);
}

/* Slight hover polish */
input:hover,
textarea:hover {
  border-color: rgba(29, 78, 216, 0.35);
}

/* ===========================
   Buttons
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  transition: transform 0.08s ease, background 0.12s ease, border 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--primaryText);
}

.btn-primary:hover {
  background: var(--primaryHover);
  text-decoration: none;
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--panel-2);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(29, 78, 216, 0.06);
  text-decoration: none;
}

/* ===========================
   Footer
=========================== */
.footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  background: var(--panel-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.footer-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links a {
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-meta {
  display: grid;
  gap: 8px;
  justify-items: start;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .nav {
    gap: 8px;
  }

  .nav a {
    padding: 8px 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .callout {
    flex-direction: column;
    align-items: flex-start;
  }
}
