/* ============================================================
   Landing page styles (index.html) — depends on theme.css
   ============================================================ */

.landing { background: var(--paper); }

h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.06;
  margin: 0 0 18px;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }

/* accent word: solid brand colour with a hand-drawn underline stroke —
   deliberately not a gradient */
.grad {
  color: var(--blue-600);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 9' preserveAspectRatio='none'%3E%3Cpath d='M2 7 C 30 2, 60 6.5, 118 3' fill='none' stroke='%2300a499' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% .14em;
  padding-bottom: .1em;
}

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-sub {
  font-size: 1.08rem;
  color: var(--ink-600);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 0 44px;
}

/* ---------------------------------------------------- hero */
.hero {
  position: relative;
  background:
    radial-gradient(80% 90% at 85% 0%, rgba(0, 94, 184, .07) 0%, transparent 55%),
    var(--paper-warm);
  color: var(--ink-900);
  overflow: hidden;
  border-bottom: 1px solid #e8e2d5;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.mesh {
  /* faint architectural grid on warm paper — quiet, not a gradient mesh */
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(16, 34, 77, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 34, 77, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(90% 80% at 50% 20%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(90% 80% at 50% 20%, black 40%, transparent 100%);
}

.uk-dots {
  position: absolute;
  right: clamp(-140px, -4vw, 0px);
  top: 50%;
  transform: translateY(-50%);
  height: 130%;
  opacity: .55;
}
.uk-dots circle { fill: #d3ddea; }
.uk-dots circle.lit { fill: var(--blue-600); animation: twinkle 3.4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(64px, 8vw, 110px);
  padding-bottom: clamp(72px, 9vw, 130px);
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .uk-dots { display: none; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid #ded7c6;
  background: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-600);
  margin-bottom: 26px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ee6a8;
  box-shadow: 0 0 0 0 rgba(46, 230, 168, .6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 230, 168, .55); }
  70% { box-shadow: 0 0 0 9px rgba(46, 230, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 168, 0); }
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.7;
  color: var(--ink-600);
  max-width: 560px;
  margin: 0 0 28px;
}

/* Home Search Box Styling */
.home-search-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  margin-bottom: 18px;
}
.home-search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #ded7c6;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 4px 14px -2px rgba(16, 24, 40, 0.05);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.home-search-form:focus-within {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(0, 94, 184, 0.12);
}
.search-icon {
  position: absolute;
  left: 16px;
  color: var(--ink-400);
  pointer-events: none;
}
.home-search-input {
  width: 100%;
  padding: 12px 12px 12px 48px;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  background: transparent;
  color: var(--ink-900);
}
.home-search-input:focus {
  outline: none;
}
.home-search-submit {
  padding: 10px 22px;
  background: var(--blue-600);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease-in-out;
}
.home-search-submit:hover {
  background: var(--blue-700);
}

/* Geolocation button */
.geo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1.5px solid #ded7c6;
  border-radius: 10px;
  color: var(--ink-700);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  background-color: #fff;
}
.geo-btn:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
  background-color: var(--blue-50);
}

/* Home Search Tags */
.home-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.8rem;
  color: var(--ink-500);
  margin-top: 10px;
}
.home-search-tags span {
  font-weight: 600;
}
.home-search-tags a {
  color: var(--blue-700);
  text-decoration: none;
  font-weight: 500;
}
.home-search-tags a:hover {
  text-decoration: underline;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--navy-900); border-color: #fff; }

.hero-sources { margin-top: 44px; }
.hero-sources > span {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 12px;
}
.source-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hero .chip { background: #fff; border-color: #ded7c6; color: var(--ink-600); border-radius: 8px; }
.hero .chip .dot { background: var(--teal-500); }

/* hero demo card */
.hero-card {
  background: #fff;
  border: 1px solid #e3ddcf;
  border-radius: var(--radius-m);
  box-shadow: 6px 6px 0 rgba(16, 34, 77, .08);
  padding: 24px;
  color: var(--ink-900);
}
.hc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.hc-title { font-weight: 700; font-size: 1rem; }
.hc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.hc-label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-400); margin-right: 2px; }
.hc-pill {
  padding: 5px 12px;
  border-radius: 7px;
  background: var(--paper-warm);
  border: 1px solid #e3ddcf;
  font-size: .8rem;
  font-weight: 600;
}
.hc-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-s);
  background: var(--blue-100);
  border: 1px solid #c3ddf6;
  margin-bottom: 18px;
}
.hc-count b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: var(--blue-700); }
.hc-count span { font-size: .78rem; color: var(--ink-600); }
.hc-cov { font-size: .8rem; color: var(--ink-600); line-height: 1.55; text-align: right; }
.hc-cov b { color: var(--ink-900); }
.hc-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hc-file {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--ink-600);
  background: var(--mist);
  border: 1px dashed var(--ink-400);
  padding: 8px 12px;
  border-radius: var(--radius-s);
}

/* ---------------------------------------------------- stats band */
.stats-band {
  background: var(--navy-950);
  color: #fff;
  padding: 54px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: #9ec8f5;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: .88rem; color: rgba(255, 255, 255, .6); }
.stats-note { margin: 30px auto 0; font-size: .82rem; color: rgba(255, 255, 255, .45); }

/* ---------------------------------------------------- audiences */
.aud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.aud-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px 26px;
  background: #fff;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.aud-card:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); border-color: rgba(0, 94, 184, .3); }
.aud-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  font-size: 1.3rem;
  background: color-mix(in srgb, var(--ic) 12%, white);
  margin-bottom: 16px;
}
.aud-card h3 { margin: 0 0 10px; font-size: 1.08rem; letter-spacing: -.015em; }
.aud-card p { margin: 0 0 14px; font-size: .92rem; line-height: 1.6; color: var(--ink-600); }
.aud-eg {
  display: block;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 8px 12px;
  border-radius: var(--radius-s);
}

/* ---------------------------------------------------- how */
.how { background: var(--mist); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.how-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 30px 26px;
  position: relative;
}
.how-n {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--blue-600);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  margin-bottom: 16px;
}
.how-step h3 { margin: 0 0 10px; font-size: 1.05rem; }
.how-step p { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--ink-600); }

/* ---------------------------------------------------- features */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px 36px;
  margin-top: 34px;
}
.feat { padding: 20px 0; border-bottom: 1px solid var(--line); }
.feat h3 { margin: 0 0 8px; font-size: 1.02rem; }
.feat p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--ink-600); }

/* ---------------------------------------------------- api */
.api-section { background: var(--navy-950); color: #fff; }
.api-section .section-sub { color: rgba(255, 255, 255, .68); }
.api-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
@media (max-width: 900px) { .api-grid { grid-template-columns: 1fr; } }
.api-points { display: flex; gap: 8px; flex-wrap: wrap; }
.api-section .chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); font-family: var(--mono); font-size: .76rem; }

.code-card {
  background: #0c1226;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.code-head span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.code-head span:nth-child(1) { background: #ff5f57; }
.code-head span:nth-child(2) { background: #febc2e; }
.code-head span:nth-child(3) { background: #28c840; }
.code-head em { margin-left: auto; font-style: normal; font-size: .74rem; color: rgba(255, 255, 255, .4); }
.code-card pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .8rem;
  line-height: 1.65;
  color: #cdd7ee;
}
.c-cmt { color: #5b6a92; }
.c-kw { color: #7db8ff; font-weight: 600; }
.c-str { color: #6fe0c8; }
.c-key { color: #a8c3f5; }
.c-num { color: #ffc46b; }

/* ---------------------------------------------------- cta band */
.cta-band {
  background:
    radial-gradient(90% 140% at 50% -30%, rgba(29, 127, 240, .25) 0%, transparent 60%),
    var(--navy-900);
  color: #fff;
  padding: clamp(70px, 9vw, 110px) 0;
  text-align: center;
}
.cta-inner h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.cta-inner p { max-width: 560px; margin: 0 auto 34px; color: rgba(255, 255, 255, .72); line-height: 1.7; }
.cta-inner .hero-actions { justify-content: center; }
