:root {
  --cream: #f3e2c4;
  --cream-soft: #fbf1df;
  --sky-band: #dcecf5;
  --blue: #23476b;
  --blue-deep: #1a3653;
  --gold: #e2a650;
  --gold-dark: #b07a2c;
  --ink: #3a2318;
  --ink-dim: rgba(58, 35, 24, 0.74);
  --red: #8e3329;
  --sky: #aadbf5;
  --line: rgba(58, 35, 24, 0.16);
  --cream-line: rgba(246, 228, 196, 0.2);
  --bar: 96px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "Barlow", sans-serif; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }

/* Top bar */
.top {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--bar); padding: 0 clamp(1rem, 4vw, 3.5rem);
  background: var(--blue);
}
.brand { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.brand-logo { width: 70px; height: 70px; object-fit: contain; }
.brand-word { width: clamp(170px, 15vw, 230px); height: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; font-family: "JetBrains Mono", monospace; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.nav a { color: var(--cream); }
.nav a:not(.nav-phone):hover { color: var(--gold); }
.nav-phone { padding: 0.6rem 1rem; border-radius: 999px; background: var(--gold); color: #2a160d !important; font-weight: 600; white-space: nowrap; }

/* Hero */
.hero {
  position: relative; min-height: calc(100svh - var(--bar)); display: flex; flex-direction: column; justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(14, 30, 48, 0.18) 0%, rgba(14, 30, 48, 0.04) 32%, rgba(14, 30, 48, 0.42) 68%, rgba(14, 30, 48, 0.78) 100%),
    url("./landing-assets/sgr-hero-wide.jpg") center 45% / cover no-repeat;
}
.hero-copy { width: min(calc(100% - 2rem), 980px); margin: 0 auto; padding: 3rem 0 2.6rem; text-align: center; }
.kicker { font-family: "JetBrains Mono", monospace; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); }
.hero .kicker { color: var(--cream-soft); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.hero h1 {
  margin: 0.6rem 0 1rem; font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.2rem, 8vw, 7.4rem); line-height: 0.92; letter-spacing: 0.01em; color: var(--cream-soft);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}
.lede { max-width: 640px; margin: 0 auto; font-size: 1.15rem; line-height: 1.6; color: var(--cream-soft); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
.actions { display: flex; justify-content: center; gap: 0.9rem; margin-top: 1.8rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 1.6rem; border-radius: 999px; font-family: "JetBrains Mono", monospace; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; text-align: center; }
.btn-gold { background: var(--gold); color: #2a160d; border: 1px solid var(--gold-dark); box-shadow: 0 14px 36px rgba(226, 166, 80, 0.28); }
.btn-ghost { border: 1px solid rgba(251, 241, 223, 0.7); color: var(--cream-soft); background: rgba(26, 54, 83, 0.35); }
.stat-band {
  display: grid; grid-template-columns: repeat(3, 1fr);
  width: min(calc(100% - 2rem), 1100px); margin: 0 auto 2.4rem;
  border: 1px solid var(--cream-line); border-radius: 22px; background: rgba(26, 54, 83, 0.74); backdrop-filter: blur(10px);
}
.stat { padding: 1.4rem 1.6rem; text-align: center; border-left: 1px solid var(--cream-line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 2.6rem; font-weight: 700; text-transform: uppercase; color: var(--cream-soft); }
.stat span { font-family: "JetBrains Mono", monospace; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); }

/* Middle */
.band { padding: clamp(2.2rem, 4vw, 3.4rem) 0; }
.band-cream { background: var(--cream); }
.band-sky { background: var(--sky-band); }
.wrap { width: min(calc(100% - 2rem), 1240px); margin: 0 auto; }

.boxes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.boxes li {
  padding: 1.6rem 1.5rem 1.7rem; border-radius: 20px;
  background: var(--cream-soft); border: 1px solid rgba(58, 35, 24, 0.08); box-shadow: 0 12px 30px rgba(58, 35, 24, 0.06);
}
.boxes h3 { font-family: "Barlow Condensed", sans-serif; font-size: 1.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05; }
.boxes h3::after { content: ""; display: block; width: 34px; height: 3px; margin-top: 0.7rem; border-radius: 2px; background: var(--gold); }
.boxes p { margin-top: 0.75rem; color: var(--ink-dim); line-height: 1.5; font-size: 1.04rem; }

.facts-band {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1rem;
  border-radius: 22px; background: var(--blue); box-shadow: 0 18px 40px rgba(35, 71, 107, 0.2);
}
.fact { padding: 1.4rem 1rem; text-align: center; border-left: 1px solid var(--cream-line); }
.fact:first-child { border-left: 0; }
.fact strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 2.5rem; font-weight: 700; text-transform: uppercase; color: var(--cream-soft); line-height: 1.1; }
.fact span { font-family: "JetBrains Mono", monospace; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); }

.band h2 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 3.4vw, 3rem); line-height: 0.98; color: var(--ink);
}
.lic-panel {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.4rem, 4vw, 3.5rem); align-items: center;
  margin-top: 1rem; padding: clamp(1.4rem, 2.6vw, 2rem) clamp(1.2rem, 3vw, 2.4rem); border-radius: 22px; background: var(--sky-band);
}
.lic-copy > p { margin-top: 0.8rem; max-width: 30rem; font-size: 1.15rem; line-height: 1.6; color: var(--ink-dim); }
.lic-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.badge { padding: 1.4rem 1.5rem; border-radius: 22px; background: var(--blue); color: var(--cream-soft); box-shadow: 0 18px 40px rgba(35, 71, 107, 0.22); }
.badge-tag { font-family: "JetBrains Mono", monospace; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.badge strong { display: block; margin-top: 0.5rem; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: clamp(1.6rem, 2.3vw, 2.3rem); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.badge p { margin-top: 0.7rem; line-height: 1.5; color: rgba(251, 241, 223, 0.86); }

/* Bottom */
.foot { padding: 2rem 1rem; text-align: center; background: var(--blue); font-family: "JetBrains Mono", monospace; font-size: 0.8rem; color: rgba(251, 241, 223, 0.82); }
.foot a { text-decoration: underline; color: var(--cream-soft); }

/* Laptop and tablet */
@media (max-width: 900px) {
  .boxes { grid-template-columns: repeat(2, 1fr); }
  .lic-panel { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 860px) {
  :root { --bar: 76px; }
  .nav a:not(.nav-phone) { display: none; }
  .brand-logo { width: 54px; height: 54px; }
  .brand-word { display: none; }
  .stat { padding: 1rem 0.4rem; }
  .stat strong { font-size: 1.7rem; }
  .stat span { font-size: 0.6rem; letter-spacing: 0.06em; }
}
@media (max-width: 700px) {
  .facts-band { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--cream-line); }
}
@media (max-width: 560px) {
  .boxes { gap: 0.75rem; }
  .boxes li { padding: 1.2rem 1.05rem 1.3rem; border-radius: 16px; }
  .boxes h3 { font-size: 1.32rem; }
  .boxes h3::after { margin-top: 0.55rem; }
  .boxes p { font-size: 0.95rem; margin-top: 0.6rem; }
  .fact { padding: 1.1rem 0.5rem; }
  .fact strong { font-size: 1.9rem; }
  .fact span { font-size: 0.62rem; letter-spacing: 0.08em; }
  .lic-badges { gap: 0.6rem; }
  .badge { padding: 1.05rem 0.95rem 1.15rem; border-radius: 16px; }
  .badge-tag { font-size: 0.62rem; letter-spacing: 0.12em; }
  .badge strong { font-size: 1.32rem; white-space: normal; margin-top: 0.35rem; }
  .badge p { font-size: 0.86rem; margin-top: 0.5rem; line-height: 1.4; }
  .lic-copy > p { font-size: 1rem; }
}
@media (max-width: 380px) {
  .boxes h3 { font-size: 1.18rem; letter-spacing: 0.01em; }
  .boxes li { padding: 1.1rem 0.9rem 1.2rem; }
}

/* ---------- Search pages: nav, box links, footer links ---------- */
.nav-cta { color: var(--gold) !important; }
.boxes li { position: relative; transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease; }
.boxes li > a { display: block; color: inherit; }
.boxes li > a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.boxes li > a::after { content: "\2192"; position: absolute; top: 1.35rem; right: 1.3rem; font-size: 1.15rem; color: var(--gold-dark); }
.boxes li:hover { transform: translateY(-2px); border-color: rgba(176, 122, 44, 0.55); box-shadow: 0 16px 34px rgba(58, 35, 24, 0.12); }
.lic-copy .text-link { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem 1.3rem; max-width: 1100px; margin: 0 auto 1.1rem; }
.foot .foot-links a { text-decoration: none; color: rgba(251, 241, 223, 0.92); }
.foot .foot-links a:hover, .foot .foot-links a:focus-visible { color: var(--gold); text-decoration: underline; }
.foot p { line-height: 1.7; }

@media (max-width: 1180px) {
  .nav { gap: 1.1rem; font-size: 0.76rem; }
}
@media (max-width: 1040px) {
  .nav a.nav-mid { display: none; }
}
@media (max-width: 560px) {
  .boxes li > a::after { display: none; }
  .foot-links { gap: 0.5rem 1rem; }
}
