/*
Theme Name: QueryRank Landing
Theme URI: https://app.getqueryrank.com
Author: Ahmad Faraz
Author URI: https://github.com/AhmadFaraz-crypto
Description: Marketing site for QueryRank — self-hosted, privacy-first analytics dashboards for Google Search Console and GA4. Home page plus standalone About and Privacy pages.
Version: 1.1.0
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: queryrank-landing
*/

:root {
  --ink: #171a1f;
  --ink-2: #52565e;
  --muted: #8a8f98;
  --accent: #272c35;
  --bg: #ffffff;
  --surface: #f5f6f8;
  --line: #e4e7eb;
  --signal: #1f6d73;
  --radius: 14px;
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'tnum', 'zero', 'cv05';
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition:
    transform 0.1s ease,
    opacity 0.15s ease,
    background 0.15s ease;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--surface);
}
.btn-light {
  background: #fff;
  color: var(--accent);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- brand mark ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  display: grid;
  place-items: center;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: var(--ink-2);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a.active {
  color: var(--ink);
  font-weight: 600;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  background: var(--accent);
  color: #fff;
  padding: 92px 0 104px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    1100px 420px at 70% -10%,
    rgba(255, 255, 255, 0.07),
    transparent 60%
  );
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58d6a8;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 760;
  margin: 22px 0 18px;
  max-width: 16ch;
}
.hero p.lead {
  font-size: clamp(17px, 2.2vw, 21px);
  color: rgba(255, 255, 255, 0.78);
  max-width: 58ch;
  margin: 0 0 32px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-note {
  margin-top: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- inner page header (about / privacy) ---------- */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 44px;
}
.page-hero .kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal);
}
.page-hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 12px 0 0;
}
.page-hero .page-lead {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 58ch;
}
.page-hero .updated {
  margin-top: 12px;
}
.page-hero + .section {
  padding-top: 56px;
}

/* ---------- section scaffolding ---------- */
.section {
  padding: 84px 0;
}
.section.alt {
  background: var(--surface);
}
.section-head {
  max-width: 62ch;
  margin-bottom: 44px;
}
.section-head .kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal);
}
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 12px 0 14px;
}
.section-head p {
  color: var(--ink-2);
  margin: 0;
}

/* ---------- features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.feature .ficon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
}

/* ---------- prose (about / privacy) ---------- */
.prose {
  max-width: 68ch;
}
.prose p {
  color: var(--ink-2);
}
.prose h3 {
  font-size: 19px;
  margin: 30px 0 8px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.prose ul {
  color: var(--ink-2);
  padding-left: 20px;
}
.prose li {
  margin: 8px 0;
}
.prose a.inline {
  color: var(--signal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.updated {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent);
  color: #fff;
  border-radius: 18px;
  padding: 48px;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 26px;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--muted);
  font-size: 14.5px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 22px;
}
.footer-links a:hover {
  color: var(--ink);
}
