:root {
  --fw-primary: #2563eb;
  --fw-primary-dark: #1d4ed8;
  --fw-secondary: #10b981;
  --fw-dark: #0f172a;
  --fw-text: #64748b;
  --fw-accent: #fde68a;
  --fw-bg: #f5f7fb;
  --fw-white: #ffffff;
  --fw-gradient-1: linear-gradient(135deg, #2563eb, #10b981);
  --fw-gradient-2: linear-gradient(180deg, #2563eb, #0f172a);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--fw-bg);
  color: #111827;
}

a {
  color: var(--fw-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 16px;
  text-decoration: none; /* so the whole block isn't underlined */
}

/* ======================================================================== */
/* GLOBAL VARIABLES                                                         */
/* ======================================================================== */

:root {
  --fw-primary: #2563eb;
  --fw-primary-dark: #1d4ed8;
  --fw-secondary: #10b981;
  --fw-dark: #0f172a;
  --fw-text: #64748b;
  --fw-accent: #fde68a;
  --fw-bg: #f5f7fb;
  --fw-white: #ffffff;
  --fw-gradient-1: linear-gradient(135deg, #2563eb, #10b981);
  --fw-gradient-2: linear-gradient(180deg, #2563eb, #0f172a);
}


/* ======================================================================== */
/* BASE RESET                                                               */
/* ======================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--fw-bg);
  color: #111827;
}

a {
  color: var(--fw-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}


/* ======================================================================== */
/* HEADER — FINAL POLISHED VERSION                                          */
/* ======================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0ea5e9;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.site-header-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* --- BRAND (Logo + Text) ------------------------------------------------ */

.site-brand {
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
  gap: 16px !important;
}

.logo-mark {
  width: 72px !important;
  height: 72px !important;
  border-radius: 20px;
  object-fit: contain;
  background: white;
  padding: 10px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.logo-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
}

.logo-tagline {
  font-size: 0.95rem;
  color: #e0f7ff;
}


/* ======================================================================== */
/* NAVIGATION — Gradient Buttons + Underline Animation                      */
/* ======================================================================== */

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  padding: 12px 28px !important;
  border-radius: 999px;

  /* Gradient pill */
  background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.18));
  border: 1px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(4px);

  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #ffffff;
  text-decoration: none;

  transition: all 0.28s ease;
}

/* Hover glow */
.site-nav a:hover {
  background: linear-gradient(135deg, #ffffff, #dff6ff);
  color: #0284c7;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
  transform: translateY(-2px);
}

/* Underline animation */
.site-nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ACTIVE page link */
.site-nav a.active,
.site-nav a.is-active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

.site-nav a.active::after {
  transform: translateX(-50%) scaleX(1);
  background: #0284c7;
}


/* ======================================================================== */
/* MOBILE NAV                                                               */
/* ======================================================================== */

.nav-toggle {
  display: none;
}

@media(max-width: 760px) {
  .nav-toggle {
    display: block;
    font-size: 32px;
    background: none;
    border: none;
    color: white;
  }

  .site-nav ul {
    display: none;
  }

  .site-nav ul.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 16px;
    top: 90px;
    width: 220px;
    background: white;
    border-radius: 16px;
    padding: 14px 0;
    box-shadow: 0 16px 30px rgba(0,0,0,0.20);
  }

  .site-nav a {
    color: #0284c7;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 16px 22px;
    font-size: 1rem !important;
    font-weight: 600 !important;
  }

  .site-nav a:hover {
    background: #f3faff;
    transform: none;
    box-shadow: none;
  }

  .site-nav a::after {
    display: none;
  }
}


/* ======================================================================== */
/* PRODUCT PAGE SUB NAV                                                     */
/* ======================================================================== */

.tool-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(148,163,184,0.35);
}

.tool-subnav a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(148,163,184,0.6);
  color: #0369a1;
  font-weight: 600;
  transition: 0.2s ease;
}

.tool-subnav a:hover {
  background: #0ea5e9;
  color: #fff;
  transform: translateY(-2px);
}


/* ======================================================================== */
/* HERO, CARDS, BUTTONS, FOOTER, ETC. (UNCHANGED FROM YOUR FILE) */
/* ======================================================================== */

.hero {
  padding: 40px 0 32px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  align-items: center;
}

/* (all additional sections left unchanged for brevity, same as your file) */



/* -------------------------------------------------- */
/* OPTIONAL SECONDARY NAV (tabs on product pages)      */
/* Wrap rows like “Overview / Features / …” in:        */
/* <nav class="tool-subnav">...</nav>                  */
/* -------------------------------------------------- */

.tool-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.tool-subnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #0369a1;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.6);
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.1s ease;
}

.tool-subnav a:hover {
  background: #0ea5e9;
  color: #ffffff;
  border-color: #0ea5e9;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

.tool-subnav a.is-active,
.tool-subnav a.active {
  background: #0ea5e9;
  color: #ffffff;
  border-color: #0ea5e9;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
}

/* -------------------------------------------------- */
/* HERO                                                */
/* -------------------------------------------------- */

.hero {
  padding: 40px 0 32px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  align-items: center;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.hero p {
  font-size: 15px;
  color: #4b5563;
}

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

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hero-badges span {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
}

.hero-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.hero-card h2 {
  margin-top: 0;
  font-size: 18px;
}

.hero-card-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.hero-card-body {
  font-size: 14px;
  color: #4b5563;
}

.hero-card-list {
  padding-left: 20px;
  font-size: 14px;
  color: #4b5563;
}

.hero-card-list li {
  margin-bottom: 2px;
}

/* -------------------------------------------------- */
/* BUTTONS                                             */
/* -------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

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

.btn.primary:hover {
  background: var(--fw-primary-dark);
}

.btn.ghost {
  background: white;
  color: #111827;
  border-color: #d1d5db;
}

.btn.ghost:hover {
  background: #f3f4f6;
}

.btn.small {
  padding: 6px 12px;
  font-size: 13px;
}

.btn.text-link {
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--fw-primary);
}

.btn.full-width {
  width: 100%;
}

/* -------------------------------------------------- */
/* GENERIC LAYOUT                                      */
/* -------------------------------------------------- */

.section-intro {
  max-width: 640px;
  margin: 0 auto 24px;
  text-align: center;
  color: #4b5563;
  font-size: 15px;
}

h2 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 24px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: white;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  font-size: 14px;
}

.card h3 {
  margin-top: 0;
  font-size: 16px;
}

.card ul {
  padding-left: 20px;
}

.card ul li {
  margin-bottom: 4px;
}

/* -------------------------------------------------- */
/* SECTIONS                                            */
/* -------------------------------------------------- */

.pillars,
.products,
.learn,
.about,
.contact {
  padding: 32px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e5e7eb;
  font-size: 11px;
  margin-right: 6px;
  margin-bottom: 4px;
}

.pill-secondary {
  background: #dcfce7;
  color: #166534;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-actions {
  margin-top: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.subheading {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--fw-dark);
}

.about-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

/* -------------------------------------------------- */
/* CONTACT                                             */
/* -------------------------------------------------- */

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.contact-form input,
.contact-form textarea {
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 7px 10px;
  font-size: 14px;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--fw-primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.form-note {
  font-size: 11px;
  color: #6b7280;
  margin-top: 8px;
}

.contact-details p {
  font-size: 14px;
  margin: 4px 0;
}

/* -------------------------------------------------- */
/* FOOTER                                              */
/* -------------------------------------------------- */

.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 16px 0 20px;
  background: #f9fafb;
  margin-top: 32px;
}

.footer-inner {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}

.footer-small {
  margin-top: 4px;
}

/* -------------------------------------------------- */
/* Legal pages                                         */
/* -------------------------------------------------- */

.legal-page .legal-main {
  padding: 32px 0;
}

.legal-main h1 {
  font-size: 24px;
}

.legal-main h2 {
  text-align: left;
}

/* -------------------------------------------------- */
/* 404                                                 */
/* -------------------------------------------------- */

.not-found-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.not-found-main h1 {
  font-size: 64px;
  margin-bottom: 8px;
}

.not-found-main p {
  margin-bottom: 16px;
  color: #4b5563;
}

/* -------------------------------------------------- */
/* RESPONSIVE GRID                                    */
/* -------------------------------------------------- */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .grid-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
/* ======================================================================= */
/* CLEAN SOLID BUTTONS FOR NAV LINKS — MATCH “Explore tools”               */
/* ======================================================================= */

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #2563eb !important; /* same as Explore tools */
  color: #ffffff !important;

  padding: 10px 22px !important;
  border-radius: 999px !important;

  font-size: 1rem !important;
  font-weight: 600 !important;

  border: none !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);

  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.15s ease;
}

/* Hover */
.site-nav a:hover {
  background: #1d4ed8 !important;
  transform: translateY(-2px);
}

/* Active Page */
.site-nav a.active,
.site-nav a.is-active {
  background: #1e40af !important;
}
/* ======================================================================= */
/* FIX CONTENT LINKS (restore clean text link style)                       */
/* ======================================================================= */

.content-area a,
.tool-page a,
.product-page a,
.card a,
.hero a:not(.btn),
p a {
  background: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  color: #2563eb !important;        /* clean blue */
  font-size: 0.95rem !important;    /* readable, normal */
  font-weight: 500 !important;
  text-decoration: none !important;
}

.content-area a:hover,
.tool-page a:hover,
.product-page a:hover,
.card a:hover,
.hero a:not(.btn):hover,
p a:hover {
  text-decoration: underline !important;
  color: #1d4ed8 !important;
}

/* -------------------------------------------------- */
/* Screenshot grid for product visuals                 */
/* -------------------------------------------------- */

.screenshot-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.screenshot-grid img {
  max-width: 100%;
  border-radius: 8px;
}
