/* ================================================
   digpatent.com — Homepage CSS
   Design: Editorial × Japanese Minimalism
   "The technology Japan built. The analysis you need."
   ================================================ */

/* ── Design Tokens ─────────────────────────────── */
:root {
  /* Brand */
  --blue:       #192f60;
  --blue-dark:  #0f1f3d;
  --blue-mid:   #243d7a;
  --gold:       #c8960c;
  --gold-soft:  rgba(200, 150, 12, 0.14);

  /* Text */
  --ink:     #1e293b;
  --muted:   #64748b;
  --subtle:  #94a3b8;

  /* Backgrounds */
  --paper:  #f8fafc;
  --white:  #ffffff;
  --border: #e2e8f0;

  /* Typography */
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing — 8 px base grid */
  --s1:  8px;  --s2: 16px;  --s3: 24px;   --s4: 32px;
  --s5: 40px;  --s6: 48px;  --s8: 64px;   --s10: 80px;
  --s12: 96px; --s16: 128px;

  /* Layout */
  --container: 1240px;
  --reading:    780px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset (scoped to this page) ────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 64px;
}
ul, ol { list-style: none; }
img    { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, button { appearance: none; -webkit-appearance: none; }

/* ── Utilities ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s3);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Section label — "FEATURED INTELLIGENCE ─────────────" */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s5);
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-label a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--subtle);
  text-transform: none;
  white-space: nowrap;
  transition: color 0.2s;
  flex-shrink: 0;
}
.section-label a:hover { color: var(--blue); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }


/* ══════════════════════════════════════════════════
   1. HEADER
══════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  height: 64px;
  background: rgb(15, 31, 61);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.header-inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s3);
  display: flex;
  align-items: center;
  gap: var(--s3);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  width: 120px;
  height: 30px;
  display: block;
}

/* Header search */
.header-search {
  flex: 1;
  max-width: 480px;
}
.header-search form {
  position: relative;
}
.header-search input {
  width: 100%;
  height: 38px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 0 40px 0 14px;
  color: #fff;
  font-family: var(--body);
  font-size: 14px;
  outline: none;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.header-search input::placeholder { color: rgba(255,255,255,0.38); }
.header-search input:focus {
  background: rgba(255,255,255,0.14);
  border-color: rgba(200,150,12,0.55);
  box-shadow: 0 0 0 3px rgba(200,150,12,0.10);
}
.header-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.35);
  pointer-events: none;
  line-height: 1;
}

/* Header nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-left: auto;
  flex-shrink: 0;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: #fff; }
.sister-link {
  font-size: 12px;
  font-weight: 500;
  color: rgba(200,150,12,0.8);
  border: 1px solid rgba(200,150,12,0.35);
  padding: 5px 12px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.sister-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(200,150,12,0.07);
}


/* ══════════════════════════════════════════════════
   2. HERO
══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  background: var(--blue);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Animated catch_copy background feed */
.hero-feed {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  /* Top/bottom fade: text emerges and disappears smoothly */
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%, rgba(0,0,0,1) 7%, rgba(0,0,0,1) 93%, transparent 100%);
  mask-image: linear-gradient(to bottom,
    transparent 0%, rgba(0,0,0,1) 7%, rgba(0,0,0,1) 93%, transparent 100%);
}
.hero-feed-col {
  /* align-self: start prevents grid from stretching this to hero height.
     Without it, translateY(-50%) = only -375px (hero/2), leaving bottom half empty on reverse columns. */
  align-self: start;
  color: rgba(255, 255, 255, 0.082);
  font-family: var(--body);
  font-size: 12px;
  line-height: 3.2;
  letter-spacing: 0.01em;
  padding: 0 var(--s3);
  white-space: nowrap;
  overflow: hidden;
}
.hero-feed-col:nth-child(1) { animation: feedUp 95s linear infinite; }
/* Right column — empty dark canvas, boost opacity for visible texture */
.hero-feed-col:nth-child(2) {
  animation: feedUp 72s linear infinite reverse;
  padding-top: 120px;
  color: rgba(255, 255, 255, 0.16);
}
@keyframes feedUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.feed-line {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero main content */
.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--s10) 0 var(--s12);
  max-width: 720px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s4);
}
.hero-eyebrow-bar {
  width: 36px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.hero-eyebrow-text {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-headline {
  font-family: var(--display);
  font-size: clamp(40px, 5.8vw, 84px);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: var(--s4);
}
.hero-headline-em {
  display: block;
  font-style: italic;
  color: rgba(255,255,255,0.75);
}

.hero-sub {
  font-family: var(--body);
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 400;
  color: rgba(255,255,255,0.60);
  line-height: 1.7;
  margin-bottom: var(--s6);
}
.hero-sub strong {
  color: rgba(255,255,255,0.88);
  font-weight: 500;
}

/* Hero search bar */
.hero-search-form {
  display: flex;
  max-width: 540px;
  margin-bottom: var(--s4);
  box-shadow: 0 6px 28px rgba(0,0,0,0.35);
  border-radius: 7px;
  overflow: hidden;
}
.hero-search-input {
  flex: 1;
  height: 56px;
  padding: 0 var(--s3);
  border: none;
  outline: none;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}
.hero-search-input::placeholder { color: var(--subtle); }
.hero-search-submit {
  height: 56px;
  padding: 0 var(--s4);
  background: var(--gold);
  color: #fff;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.hero-search-submit:hover { background: #a87b0a; }

/* Hero secondary links */
.hero-actions {
  display: flex;
  gap: var(--s5);
  flex-wrap: wrap;
}
.hero-action-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--display);
  font-size: 17px;
  font-style: italic;
  color: rgba(200,150,12,0.78);
  transition: color 0.2s;
}
.hero-action-link:hover { color: var(--gold); }
.hero-action-link .arrow {
  display: inline-block;
  font-style: normal;
  transition: transform 0.2s var(--ease);
}
.hero-action-link:hover .arrow { transform: translateX(5px); }


/* ══════════════════════════════════════════════════
   3. TRUST STRIP
══════════════════════════════════════════════════ */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-stat {
  padding: var(--s6) var(--s4);
  text-align: center;
  border-right: 1px solid var(--border);
}
.trust-stat:last-child { border-right: none; }
.trust-number {
  display: block;
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 6px;
}
.trust-label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.4;
}


/* ══════════════════════════════════════════════════
   4. FEATURED INTELLIGENCE
══════════════════════════════════════════════════ */
.featured {
  position: relative;
  overflow: hidden;
  padding: var(--s12) 0;
  background: #fff;
}
.featured-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--s3);
  align-items: stretch;
}

/* Shared card base */
.patent-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 2px;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-left-color 0.2s;
}
.patent-card:hover {
  border-left-color: var(--gold);
  box-shadow: 0 8px 32px rgba(25, 47, 96, 0.11);
  transform: translateY(-2px);
}

/* Large card */
.patent-card-lg {
  grid-row: 1 / 3;
  padding: var(--s6);
}

/* Small cards */
.patent-card-sm {
  padding: var(--s4);
}

/* Card internals */
.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--s3);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 3px;
  font-family: var(--body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
}
.badge-s       { background: var(--blue); color: #fff; }
.badge-avail   { background: #dcfce7; color: #15803d; }
.badge-granted { background: rgba(25,47,96,0.09); color: var(--blue); border: 1px solid rgba(25,47,96,0.26); }
.badge-ind     { background: var(--paper); color: var(--muted); border: 1px solid var(--border); text-transform: none; font-weight: 500; }

.card-quote {
  font-family: var(--display);
  font-weight: 700;
  color: var(--blue);
  line-height: 1.22;
  margin-bottom: var(--s3);
}
.patent-card-lg .card-quote { font-size: clamp(19px, 2.2vw, 26px); }
.patent-card-sm .card-quote { font-size: clamp(15px, 1.5vw, 18px); }

.card-excerpt {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.68;
  flex: 1;
  margin-bottom: var(--s3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.patent-card-lg .card-excerpt { -webkit-line-clamp: 9; }
.patent-card-sm .card-excerpt { font-size: 14px; -webkit-line-clamp: 3; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.card-meta-chip {
  font-family: var(--body);
  font-size: 12px;
  color: var(--ink);
  background: rgba(25, 47, 96, 0.04);
  border: 1px solid rgba(25, 47, 96, 0.18);
  padding: 5px 12px;
  border-radius: 20px;
  line-height: 1.4;
}
.card-meta-chip strong {
  color: var(--gold);
  font-weight: 600;
}

.card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  transition: gap 0.2s var(--ease), color 0.2s;
}
.patent-card:hover .card-cta {
  gap: 11px;
  color: var(--gold);
}

/* Speed to Market mini-panel (large card only) */
.card-ttm {
  margin: var(--s2) 0 var(--s3);
  padding: var(--s2) var(--s3);
  background: rgba(25, 47, 96, 0.03);
  border: 1px solid rgba(25, 47, 96, 0.1);
  border-radius: 4px;
}
.card-ttm-speedlabel {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(200, 150, 12, 0.45);
  border-radius: 3px;
  padding: 3px 9px;
  margin-bottom: var(--s2);
  letter-spacing: 0.01em;
}
.card-ttm-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--s2);
}
.card-ttm-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.card-ttm-meta {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-ttm-meta-fast { color: var(--gold); }
.card-ttm-meta em, .card-ttm-meta-fast em { font-style: normal; opacity: 0.75; }
.card-ttm-bar {
  height: 7px;
  border-radius: 2px;
}
.card-ttm-bar-std  { width: 100%; background: rgba(25, 47, 96, 0.15); }
.card-ttm-bar-fast { background: var(--gold); }
.card-ttm-comment {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.62;
  border-left: 2px solid var(--border);
  padding-left: 10px;
  margin-top: var(--s2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ══════════════════════════════════════════════════
   5. BROWSE BY TECHNOLOGY (Category Treemap)
══════════════════════════════════════════════════ */
.categories {
  padding: var(--s12) 0;
  background: var(--paper);
}
.categories-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: -6px;
  margin-bottom: var(--s6);
}

/* Top 3 featured category cards */
.cat-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin-bottom: var(--s3);
}
.cat-featured {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s4);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  min-height: 148px;
  transition: border-top-color 0.2s, box-shadow 0.22s var(--ease);
}
.cat-featured:hover {
  border-top-color: var(--gold);
  box-shadow: 0 6px 24px rgba(25, 47, 96, 0.1);
}
.cat-featured-inner { flex: 1; }
.cat-featured-name {
  display: block;
  font-family: var(--display);
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
  line-height: 1.2;
}
.cat-featured-count {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--s2);
}
.cat-featured-count em { font-style: normal; }

.cat-bar-wrap {
  height: 4px;
  background: rgba(25, 47, 96, 0.1);
  border-radius: 2px;
  margin-bottom: var(--s3);
  overflow: hidden;
}
.cat-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
}
.cat-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.02em;
  transition: color 0.2s, gap 0.2s;
}
.cat-featured:hover .cat-featured-cta { color: var(--gold); gap: 10px; }

/* Compact rows for remaining categories */
.cat-compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  background: var(--white);
}
.cat-compact-row {
  display: grid;
  grid-template-columns: 1fr 80px auto auto;
  align-items: center;
  gap: var(--s2);
  padding: 14px var(--s3);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.cat-compact-row:nth-child(odd)  { border-right: 1px solid var(--border); }
.cat-compact-row:last-child,
.cat-compact-row:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.cat-compact-row:hover { background: rgba(25, 47, 96, 0.03); }

.cat-compact-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}
.cat-compact-bar-wrap {
  height: 4px;
  background: rgba(25, 47, 96, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.cat-compact-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
}
.cat-compact-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  text-align: right;
  min-width: 22px;
}
.cat-compact-arrow {
  font-size: 13px;
  color: var(--subtle);
  transition: color 0.2s, transform 0.2s;
}
.cat-compact-row:hover .cat-compact-arrow { color: var(--gold); transform: translateX(3px); }


/* ══════════════════════════════════════════════════
   6. ABOUT THIS DATABASE
══════════════════════════════════════════════════ */
.about {
  padding: var(--s12) 0;
  background: #fff;
}
.about-inner {
  max-width: var(--reading);
  margin: 0 auto;
}
.about-pull {
  border-left: 3px solid var(--gold);
  padding: var(--s3) 0 var(--s3) var(--s4);
  margin-bottom: var(--s8);
}
.about-pull-text {
  font-family: var(--display);
  font-size: clamp(19px, 2.1vw, 27px);
  font-weight: 600;
  color: var(--blue);
  line-height: 1.42;
  margin-bottom: var(--s2);
}
.about-pull-source {
  font-family: var(--body);
  font-size: 11px;
  color: var(--subtle);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.about-body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
}
.about-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--s6) 0;
}


/* ══════════════════════════════════════════════════
   7. FOR YOUR LICENSING JOURNEY
══════════════════════════════════════════════════ */
.journey {
  padding: var(--s10) 0;
  background: var(--blue);
}
.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}
.journey-card {
  padding: var(--s6);
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 3px;
  transition: background 0.2s;
}
.journey-card:hover { background: rgba(255,255,255,0.095); }

.journey-card-title {
  font-family: var(--display);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--s2);
  line-height: 1.2;
}
.journey-card-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.58);
  line-height: 1.68;
  margin-bottom: var(--s4);
}
.journey-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid rgba(200,150,12,0.3);
  padding-bottom: 3px;
  text-decoration: none;
  transition: gap 0.2s var(--ease), border-color 0.2s;
}
.journey-card:hover .journey-link {
  gap: 12px;
  border-color: var(--gold);
}


/* ══════════════════════════════════════════════════
   8. FINAL CTA
══════════════════════════════════════════════════ */
.cta-section {
  padding: var(--s12) 0;
  text-align: center;
  background: var(--paper);
  border-top: 1px solid var(--border);
}
.cta-headline {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 50px);
  font-weight: 700;
  color: var(--blue);
  line-height: 1.18;
  margin-bottom: var(--s3);
}
.cta-sub {
  font-size: 17px;
  color: var(--muted);
  margin: 0 auto var(--s6);
  max-width: 480px;
  line-height: 1.65;
}
.cta-btns {
  display: flex;
  justify-content: center;
  gap: var(--s2);
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--blue);
  color: #fff;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--blue);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--blue); }


/* ══════════════════════════════════════════════════
   9. FOOTER
══════════════════════════════════════════════════ */
.site-footer {
  background: #0a1628;
  padding: var(--s10) 0 var(--s5);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s6);
  padding-bottom: var(--s6);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: var(--s6);
  flex-wrap: wrap;
}
.footer-brand .logo { display: flex; align-items: center; }
.footer-logo-img { width: 136px; height: 34px; display: block; margin-bottom: 12px; }
.footer-tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: rgba(255,255,255,0.52);
}
.footer-nav-group {
  display: flex;
  gap: var(--s5);
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}
.footer-nav-list a {
  font-size: 14px;
  color: rgba(255,255,255,0.68);
  transition: color 0.2s;
  line-height: 1.8;
}
.footer-nav-list a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2);
}
.footer-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}
.footer-sister {
  font-size: 13px;
  color: rgba(200,150,12,0.85);
}
.footer-sister a {
  color: rgba(200,150,12,0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-sister a:hover { color: var(--gold); }


/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cat-featured-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero-feed  { display: none; } /* Performance on mobile */
  .featured-grid { grid-template-columns: 1fr; }
  .patent-card-lg { grid-row: auto; }
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .trust-stat:nth-child(odd)  { border-right: 1px solid var(--border); }
  .trust-stat:last-child      { border-bottom: none; }
  .journey-grid  { grid-template-columns: 1fr; }
  .cat-featured-grid { grid-template-columns: 1fr 1fr; }
  .cat-compact-grid  { grid-template-columns: 1fr; }
  .cat-compact-row:nth-child(odd) { border-right: none; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .header-search { display: none; }
  .nav-link { display: none; }
}

@media (max-width: 480px) {
  .cta-btns { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { justify-content: center; }
  .cat-featured-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: clamp(34px, 10vw, 48px); }
}


/* ══════════════════════════════════════════════════
   WHY DIGPAT INTELLIGENCE (ADVANTAGE)
══════════════════════════════════════════════════ */
.advantage {
  padding: var(--s12) 0;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: var(--s6);
}
.adv-card {
  padding: var(--s2) var(--s8) var(--s2) 0;
}
.adv-card + .adv-card {
  padding-left: var(--s8);
  padding-right: 0;
  border-left: 1px solid var(--border);
}
.adv-icon {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s4);
  color: var(--ink);
  flex-shrink: 0;
}
.adv-title {
  font-family: var(--display);
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: var(--s2);
  line-height: 1.2;
}
.adv-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.72;
}

/* ══════════════════════════════════════════════════
   FEATURED — THEMATIC CURATION (BG + EDITORIAL HEADER)
══════════════════════════════════════════════════ */
/* Background image placeholder — left 40% gradient */
.featured-bg-wrap {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 70%;
  /* Gradient placeholder. Replace with real image when ready:
     background-image: url('../img/featured-industrial.jpg');
     background-size: cover;
     background-position: center right;
     filter: saturate(0.12) brightness(0.38);
  */
  background: linear-gradient(to right, #1e293b 0%, rgba(30,41,59,0.48) 60%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.featured-content {
  position: relative;
  z-index: 1;
}
.featured-cards-zone {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  margin-top: var(--s6);
  padding: var(--s3) 0;
}
.featured-cards-zone .featured-grid {
  position: relative;
  z-index: 1;
}

/* Editorial theme header */
.featured-editorial-header {
  margin-bottom: var(--s6);
  max-width: 680px;
}
.featured-theme-title {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: var(--s2);
}
.featured-theme-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
}
.featured-empty {
  font-style: italic;
  color: var(--muted);
  text-align: center;
  padding: var(--s8) 0;
}

/* ── Responsive additions ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .advantage-grid { gap: 0; }
  .adv-card { padding: var(--s2) var(--s5) var(--s2) 0; }
  .adv-card + .adv-card { padding-left: var(--s5); }
}

@media (max-width: 768px) {
  .advantage-grid { grid-template-columns: 1fr; gap: 0; }
  .adv-card { padding: var(--s5) 0; }
  .adv-card + .adv-card {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .featured-bg-wrap {
    width: 100%;
    height: 200px;
    bottom: auto;
    background: linear-gradient(to bottom, #1e293b 0%, rgba(30,41,59,0.3) 75%, transparent 100%);
  }
}
