/*
Theme Name: i247 Labs
Theme URI: https://i247.site/
Author: i247 Labs
Author URI: https://i247.site/
Description: Open-source Analytics & Tracking Engineering portfolio theme for i247 Labs.
Version: 1.4.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: i247-labs
*/

:root{
  --bg:#06111b; --surface:#0b1a27; --surface2:#102334;
  --text:#f4f8fb; --muted:#9db0bf; --blue:#1f9cff; --green:#48e27a;
  --line:#20384b; --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.6}
a{color:inherit;text-decoration:none}
.container{width:min(var(--max),calc(100% - 40px));margin:auto}
.nav-links{display:flex;gap:27px;color:#c5d3dc;font-size:14px}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:9px;border:1px solid var(--line);font-weight:700;font-size:14px}
.btn-primary{background:var(--blue);border-color:var(--blue);color:#fff}
.btn-green{background:var(--green);border-color:var(--green);color:#06111b}
.hero{padding:100px 0 78px;position:relative;overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:60px;align-items:center}
.eyebrow{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#63b9ff;font-weight:800}
h1{font-size:clamp(44px,5.5vw,72px);line-height:1.03;letter-spacing:-.045em;margin:18px 0}
h1 span{color:var(--blue)}
.lead{font-size:19px;color:var(--muted);max-width:680px}
.actions{display:flex;gap:12px;margin-top:30px;flex-wrap:wrap}
section{padding:80px 0}
.section-head{max-width:720px;margin-bottom:35px}
h2{font-size:40px;line-height:1.1;letter-spacing:-.03em;margin:10px 0 14px}
.muted{color:var(--muted)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:26px}
.card h3{margin:12px 0 8px;font-size:21px}.icon{color:var(--green);font-size:22px}
.badge{display:inline-block;border:1px solid #48e27a66;color:var(--green);padding:5px 9px;border-radius:99px;font-size:11px;font-weight:800}
.case-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.case-body{padding:22px}
footer{border-top:1px solid var(--line);padding:45px 0;color:var(--muted)}
@media(max-width:850px){.nav-links{display:none}.case-grid{grid-template-columns:1fr}.hero{padding-top:65px}}

/* WordPress content defaults */
.entry-content, .lead {overflow-wrap:anywhere}
.wp-block-image img, .entry-content img {max-width:100%;height:auto}
.wp-block-button__link {border-radius:9px}
.screen-reader-text {position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:focus-visible {outline:2px solid var(--blue);outline-offset:3px}

/* Phase 8 — production navigation and component polish */
.menu-toggle{display:none;background:transparent;color:var(--text);border:1px solid var(--line);border-radius:9px;padding:8px 11px;font-size:18px;cursor:pointer}
.header-cta{white-space:nowrap}
.nav-links a{transition:color .15s ease}
.nav-links a:hover{color:#fff}
.btn{transition:transform .15s ease, border-color .15s ease, background .15s ease}
.btn:hover{transform:translateY(-1px)}
.card{transition:border-color .15s ease, transform .15s ease}
.card:hover{border-color:#31536a;transform:translateY(-2px)}
@media(max-width:1050px){
  .nav-links{gap:16px;font-size:13px}
}
@media(max-width:850px){
  .nav{height:70px}
  .menu-toggle{display:block;margin-left:auto;margin-right:10px}
  .header-cta{display:none}
  .nav-links{display:none;position:absolute;left:20px;right:20px;top:68px;background:#0b1a27;border:1px solid var(--line);border-radius:12px;padding:10px;z-index:20;box-shadow:0 18px 45px rgba(0,0,0,.35)}
  .nav-links.is-open{display:grid;gap:0}
  .nav-links a{padding:12px 10px;border-bottom:1px solid var(--line)}
  .nav-links a:last-child{border-bottom:0}
  .hero-grid{gap:38px}
  .container{width:min(var(--max),calc(100% - 28px))}
  section{padding:62px 0}
}

.brand-icon{width:34px;height:34px;display:block;flex:none}
.logo{white-space:nowrap}


/* Phase 11 — content architecture */
.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}
.card{padding:1.5rem;border:1px solid rgba(255,255,255,.09);border-radius:18px;background:rgba(255,255,255,.025)}
.card h2{margin:.35rem 0 .75rem}
.card h2 a{color:inherit;text-decoration:none}
.text-link{font-weight:600;text-decoration:none}
.prose{max-width:760px}
.prose img{max-width:100%;height:auto}
.doc-topics{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:2rem}
.tag{padding:.35rem .65rem;border:1px solid rgba(255,255,255,.12);border-radius:999px;text-decoration:none;font-size:.9rem}
@media (max-width:900px){.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.card-grid{grid-template-columns:1fr}}


/* Phase 12 — TrackForge product presentation */
.architecture-panel{padding:2rem;border:1px solid rgba(255,255,255,.09);border-radius:22px;background:rgba(255,255,255,.025)}
.architecture-flow{display:flex;align-items:stretch;gap:.75rem;overflow-x:auto;padding:.5rem 0}
.architecture-node{min-width:150px;padding:1rem;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.03)}
.architecture-node strong,.architecture-node span{display:block}
.architecture-node span{margin-top:.3rem;font-size:.85rem;opacity:.7}
.architecture-arrow{display:grid;place-items:center;opacity:.5;font-size:1.4rem}
.two-column{display:grid;grid-template-columns:1fr 1fr;gap:3rem}
.product-proof-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}
.proof-placeholder{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem;border:1px dashed rgba(255,255,255,.18);border-radius:18px;background:rgba(255,255,255,.018)}
.proof-placeholder span{font-weight:700}
.proof-placeholder small{max-width:320px;margin-top:.5rem;opacity:.65}
@media (max-width:760px){.two-column,.product-proof-grid{grid-template-columns:1fr}.architecture-panel{padding:1.25rem}}


/* Phase 13 — Solutions architecture */
.solution-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}
.solution-card{padding:1.75rem;border:1px solid rgba(255,255,255,.09);border-radius:20px;background:rgba(255,255,255,.025)}
.solution-number{font:700 .8rem/1 monospace;letter-spacing:.12em;opacity:.55}
.solution-card h3{margin:1.25rem 0 .7rem}
.solution-card ul{margin:1.25rem 0 0;padding-left:1.1rem;opacity:.78}
.solution-card li{margin:.45rem 0}
.service-list{border-top:1px solid rgba(255,255,255,.1)}
.service-row{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding:1.25rem 0;border-bottom:1px solid rgba(255,255,255,.1)}
.service-row strong,.service-row span{display:block}
.service-row span{margin-top:.3rem;font-size:.9rem;opacity:.65}
.service-row a{white-space:nowrap;text-decoration:none;font-weight:600}
@media (max-width:800px){.solution-grid{grid-template-columns:1fr 1fr}}
@media (max-width:620px){.solution-grid{grid-template-columns:1fr}.service-row{align-items:flex-start;flex-direction:column;gap:.8rem}}


/* Phase 14 — case-study proof system */
.case-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.case-card{overflow:hidden;border:1px solid rgba(255,255,255,.09);border-radius:20px;background:rgba(255,255,255,.025)}
.case-image{display:block;aspect-ratio:16/9;overflow:hidden}
.case-image img{width:100%;height:100%;object-fit:cover;display:block}
.case-body{padding:1.5rem}
.case-body h2{margin:.35rem 0 .7rem}
.case-body h2 a{color:inherit;text-decoration:none}
.case-featured-image{margin:2rem 0;overflow:hidden;border:1px solid rgba(255,255,255,.09);border-radius:20px}
.case-featured-image img{display:block;width:100%;height:auto}
@media (max-width:700px){.case-grid{grid-template-columns:1fr}}


/* Phase 15 — contact and lead flow */
.contact-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:2rem;align-items:start}
.contact-copy{display:grid;gap:1.25rem}
.contact-form-wrap{padding:1.75rem;border:1px solid rgba(255,255,255,.09);border-radius:20px;background:rgba(255,255,255,.025)}
.contact-form{display:grid;gap:1.15rem}
.form-field{display:grid;gap:.45rem}
.form-field label{font-weight:600}
.form-field label span{opacity:.55}
.form-field input,.form-field select,.form-field textarea{width:100%;box-sizing:border-box;padding:.85rem 1rem;border:1px solid rgba(255,255,255,.14);border-radius:10px;background:rgba(0,0,0,.18);color:inherit;font:inherit}
.form-field textarea{resize:vertical;min-height:180px}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus{outline:2px solid currentColor;outline-offset:2px}
.form-note{margin:0;font-size:.82rem;opacity:.6}
.field-hidden{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden}
.contact-notice{margin-bottom:1.25rem;padding:1rem;border-radius:12px;border:1px solid rgba(255,255,255,.12)}
.contact-notice-success{font-weight:600}
.contact-notice-error{font-weight:600}
@media (max-width:760px){.contact-layout{grid-template-columns:1fr}}


/* Phase 16 — founder credibility */
.founder-panel{display:grid;grid-template-columns:1.2fr .8fr;gap:2rem;padding:2rem;border:1px solid rgba(255,255,255,.09);border-radius:22px;background:rgba(255,255,255,.025)}
.credibility-list{display:grid;gap:.75rem}
.credibility-item{padding:1rem 0;border-bottom:1px solid rgba(255,255,255,.1)}
.credibility-item strong,.credibility-item span,.credibility-item a{display:block}
.credibility-item span{margin:.3rem 0 .55rem;font-size:.9rem;opacity:.65}
.credibility-item a{text-decoration:none;font-weight:600}
.principles-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.principle{padding:1.25rem;border:1px solid rgba(255,255,255,.09);border-radius:16px;background:rgba(255,255,255,.025)}
.principle strong,.principle span{display:block}
.principle span{margin-top:.45rem;font-size:.9rem;opacity:.65}
@media (max-width:850px){.founder-panel{grid-template-columns:1fr}.principles-grid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.principles-grid{grid-template-columns:1fr}}


/* Phase 17 — Engineering Notes */
.post-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.post-card{overflow:hidden;border:1px solid rgba(255,255,255,.09);border-radius:20px;background:rgba(255,255,255,.025)}
.post-card-image{display:block;aspect-ratio:16/9;overflow:hidden}
.post-card-image img{display:block;width:100%;height:100%;object-fit:cover}
.post-card-body{padding:1.5rem}
.post-card h2{margin:.35rem 0 .7rem}
.post-card h2 a{color:inherit;text-decoration:none}
.post-header{margin-bottom:2rem}
.post-meta{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1rem;font-size:.85rem;opacity:.6}
.post-featured-image{margin:2rem 0;overflow:hidden;border-radius:20px;border:1px solid rgba(255,255,255,.09)}
.post-featured-image img{display:block;width:100%;height:auto}
.post-footer{margin-top:2.5rem;padding-top:1.25rem;border-top:1px solid rgba(255,255,255,.1);font-size:.9rem}
@media (max-width:700px){.post-grid{grid-template-columns:1fr}}


/* Phase 18 — navigation and internal linking */
.footer-ia{display:flex;flex-wrap:wrap;gap:.8rem 1.2rem;margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid rgba(255,255,255,.08)}
.footer-ia a{font-size:.86rem;text-decoration:none;opacity:.72}
.footer-ia a:hover{opacity:1}
.related-links{padding-top:1rem}
.related-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.related-link-grid a{display:block;padding:1.25rem;border:1px solid rgba(255,255,255,.09);border-radius:16px;background:rgba(255,255,255,.025);text-decoration:none;color:inherit}
.related-link-grid strong,.related-link-grid span{display:block}
.related-link-grid span{margin-top:.4rem;font-size:.9rem;opacity:.65}
@media (max-width:600px){.related-link-grid{grid-template-columns:1fr}}


/* Phase 19 — performance/layout stability */
img{max-width:100%;height:auto}
.case-image img,.post-card-image img{aspect-ratio:auto}


/* Phase 20 — Accessibility */
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 99999;
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: #fff;
  color: #111;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.25);
}
.skip-link:focus {
  top: 1rem;
}
:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Phase 24 runtime polish — Contact form controls */
.contact-form .custom-select {
  position: relative;
}

.contact-form .custom-select > select,
.contact-form .custom-select > select[hidden] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  display: none !important;
}

.contact-form .custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: #0b1824;
  color: #f4f7fb;
  font: inherit;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.contact-form .custom-select-trigger:hover {
  border-color: rgba(255,255,255,.28);
}

.contact-form .custom-select-trigger:focus-visible,
.contact-form .custom-select-trigger[aria-invalid="true"] {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.contact-form .custom-select.is-open .custom-select-trigger {
  border-color: #2a9cff;
}

.custom-select-chevron {
  margin-left: 1rem;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform .2s ease;
}

.custom-select.is-open .custom-select-chevron {
  transform: rotate(180deg);
}

.contact-form .custom-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + .4rem);
  left: 0;
  right: 0;
  max-height: 280px;
  margin: 0;
  padding: .35rem;
  overflow-y: auto;
  list-style: none;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}

.contact-form .custom-select-menu[hidden] {
  display: none;
}

.contact-form .custom-select-menu [role="option"] {
  padding: .75rem .85rem;
  border-radius: 8px;
  color: #111827;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.contact-form .custom-select-menu [role="option"]:hover,
.contact-form .custom-select-menu [role="option"]:focus,
.contact-form .custom-select-menu [role="option"][aria-selected="true"] {
  background: #e5e7eb;
  color: #111827;
}

.contact-form input[type="submit"],
.contact-form button[type="submit"],
.contact-form button.button.button-primary[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.25rem;
  border: 1px solid #2a9cff !important;
  border-radius: 10px !important;
  background: #2196f3 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.contact-form input[type="submit"]:hover,
.contact-form button[type="submit"]:hover,
.contact-form button.button.button-primary[type="submit"]:hover {
  background: #1687df !important;
  border-color: #1687df !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(33, 150, 243, .18);
}

.contact-form input[type="submit"]:focus-visible,
.contact-form button[type="submit"]:focus-visible,
.contact-form button.button.button-primary[type="submit"]:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .custom-select-chevron,
  .contact-form input[type="submit"],
  .contact-form button[type="submit"] {
    transition: none;
  }
}

/* Final Contact UI correction — isolated submit control */
.contact-form .contact-submit {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 52px !important;
  padding: .85rem 1.25rem !important;
  box-sizing: border-box !important;
  border: 1px solid #2a9cff !important;
  border-radius: 10px !important;
  background: #2196f3 !important;
  color: #ffffff !important;
  font: inherit !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.contact-form .contact-submit:hover {
  background: #1687df !important;
  border-color: #1687df !important;
}

.contact-form .contact-submit:focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 3px !important;
}

/* =========================================================
   i247 Labs Reference Design Reconstruction
   Based on the supplied visual reference.
   ========================================================= */
:root{
  --bg:#04111b;
  --bg2:#061724;
  --panel:#081a27;
  --panel2:#0b2131;
  --line:#1d3a4d;
  --text:#f5f8fb;
  --muted:#91a8b9;
  --blue:#1499f5;
  --green:#37e36f;
  --max:1320px;
}
body{background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.container{width:min(var(--max),calc(100% - 70px))}
.site-header{height:74px;border-bottom:1px solid rgba(255,255,255,.10);background:rgba(4,17,27,.94);position:relative;z-index:50}
.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:22px;flex-wrap:nowrap}
.brand{display:flex;align-items:center;gap:10px;flex:none}
.brand-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;line-height:1;min-width:0}
.brand-copy strong{display:block;font-size:20px;font-weight:800;letter-spacing:-.03em;white-space:nowrap}
.brand-copy small{display:block;margin-top:5px;color:#7f96a7;font-size:8px;line-height:1;letter-spacing:.02em;white-space:nowrap}
.brand-icon{width:38px;height:38px}
.nav-links{display:flex;align-items:center;gap:24px;margin-left:auto;flex-wrap:nowrap;white-space:nowrap}
.nav-links a{font-size:13px;color:#d0dbe2}
.nav-links a:hover{color:#fff}
.header-cta{margin-left:10px;flex:none}
.hero-reference{padding:72px 0 78px;min-height:690px;display:flex;align-items:center;position:relative;overflow:hidden}
.hero-reference:before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(36,158,244,.16) 1px,transparent 1px);background-size:18px 18px;mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.55) 55%,transparent 100%);opacity:.32;pointer-events:none}
.hero-reference-grid{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:52px;align-items:center;position:relative}
.hero-copy{padding-left:5px}
.hero-copy h1{font-size:clamp(48px,5.2vw,76px);line-height:1.03;letter-spacing:-.055em;margin:18px 0 22px;max-width:720px}
.hero-copy h1 span{color:var(--blue)}
.hero-copy .lead{font-size:17px;line-height:1.65;max-width:650px}
.actions{gap:12px;margin-top:28px}
.btn{min-height:44px;padding:11px 18px;border-radius:8px;font-size:13px;font-weight:800;border:1px solid var(--line)}
.btn-primary{background:var(--blue);border-color:var(--blue);color:#fff}
.btn-green{background:var(--green);border-color:var(--green);color:#04111b}
.btn-outline{background:rgba(4,17,27,.2);border-color:#6c8393;color:#f5f8fb}
.github-dot{font-size:10px;margin-right:7px}
.hero-stats{display:flex;gap:28px;margin-top:38px;padding-top:22px;border-top:1px solid rgba(255,255,255,.10);max-width:680px}
.hero-stats div{display:flex;flex-direction:column}
.hero-stats strong{font-size:12px;color:var(--green);font-weight:800}
.hero-stats small{margin-top:4px;color:#8da4b4;font-size:11px}
.hero-visual{position:relative;display:flex;justify-content:center}
.hero-visual img{width:min(100%,600px);height:auto;filter:drop-shadow(0 30px 60px rgba(0,0,0,.35))}
.scribble{position:absolute;font-family:"Segoe Print","Comic Sans MS",cursive;color:#63ef92;font-size:14px;line-height:1.25;transform:rotate(-7deg);pointer-events:none}
.scribble-one{right:4%;top:2%}
.scribble-two{right:-1%;bottom:7%;transform:rotate(-4deg)}
.reference-section{padding:82px 0}
.reference-heading{margin-bottom:28px}
.reference-heading h2{font-size:31px}
.reference-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.reference-card{padding:25px 25px 28px;border:1px solid rgba(255,255,255,.11);border-radius:15px;background:rgba(9,26,39,.82);min-height:175px}
.ref-icon{color:var(--green);font-size:20px}
.reference-card h3{font-size:16px;margin:14px 0 7px}
.reference-card p{color:#91a8b9;font-size:12px;line-height:1.6;margin:0}
.reference-product{padding:90px 0;background:linear-gradient(180deg,transparent,rgba(6,23,36,.55),transparent)}
.product-reference-grid{display:grid;grid-template-columns:.88fr 1.12fr;gap:45px;align-items:center}
.reference-badge{display:inline-flex;padding:5px 9px;border:1px solid rgba(55,227,111,.55);border-radius:99px;color:var(--green);font-size:9px;font-weight:900;letter-spacing:.08em}
.product-reference-grid h2,.product-hero h1{font-size:43px;letter-spacing:-.04em;margin:15px 0}
.product-reference-grid h2 span,.product-hero h1 span{color:var(--green)}
.product-reference-grid .lead{font-size:17px}
.product-preview,.product-page-preview{border:1px solid rgba(255,255,255,.13);border-radius:18px;padding:8px;background:#071520;box-shadow:0 30px 80px rgba(0,0,0,.32)}
.product-preview img,.product-page-preview img{display:block;width:100%;height:auto;border-radius:12px}
.product-trust{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:22px;color:#8299aa;font-size:10px}
.product-trust i{font-style:normal;opacity:.35}
.reference-server{padding:92px 0}
.server-intro{display:grid;grid-template-columns:.72fr 1.28fr;gap:48px;align-items:center}
.server-intro h2{font-size:42px;letter-spacing:-.04em}
.server-intro h2 span{color:var(--green)}
.server-visual{padding:18px;border:1px solid rgba(255,255,255,.11);border-radius:18px;background:rgba(9,26,39,.82)}
.server-visual img{display:block;width:100%;height:auto}
.reference-cta{padding:45px 0 85px}
.reference-cta-inner{border:1px solid rgba(255,255,255,.11);border-radius:18px;background:linear-gradient(135deg,#0b2232,#06141f);padding:35px 42px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.reference-cta-inner h2{font-size:32px;margin:8px 0}
.reference-cta-inner p{margin:0;color:#91a8b9}
.site-footer{border-top:1px solid rgba(255,255,255,.10);padding:42px 0 25px}
.footer-main{display:grid;grid-template-columns:1.5fr .7fr .7fr;gap:50px}
.footer-brand p{color:#91a8b9;font-size:13px;max-width:520px}
.footer-column{display:grid;gap:10px;align-content:start;font-size:12px}
.footer-column strong{font-size:13px;color:#eaf1f5;margin-bottom:4px}
.footer-column a{color:#91a8b9}
.footer-column a:hover{color:#fff}
.footer-bottom{margin-top:35px;padding-top:18px;border-top:1px solid rgba(255,255,255,.07);display:flex;justify-content:space-between;gap:20px;color:#6f8798;font-size:10px}
.product-hero{padding:75px 0 65px}
.product-hero-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:50px;align-items:center}
.product-hero h1{font-size:52px}
.product-hero .lead{font-size:19px}
.feature-reference-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
.feature-reference-grid article{padding:23px;border:1px solid rgba(255,255,255,.11);border-radius:14px;background:rgba(9,26,39,.82)}
.feature-reference-grid article>span{font-size:22px;color:var(--green)}
.feature-reference-grid h3{font-size:15px;margin:13px 0 6px}
.feature-reference-grid p{font-size:12px;color:#91a8b9;margin:0}
.product-architecture{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.architecture-mini{display:grid;gap:9px;padding:24px;border:1px solid rgba(255,255,255,.11);border-radius:16px;background:#081b29;text-align:center}
.architecture-mini span{padding:15px;border:1px solid #24506b;border-radius:9px;background:#0b2232;font-weight:800}
.architecture-mini span:nth-of-type(2){border-color:#237746}
.architecture-mini b{color:#7691a3}
@media(max-width:760px){
 .container{width:min(var(--max),calc(100% - 32px))}
 .nav-links{display:none;position:absolute;left:16px;right:16px;top:68px;padding:10px;background:#081a27;border:1px solid var(--line);border-radius:12px;flex-direction:column;align-items:stretch;gap:0}
 .nav-links.is-open{display:flex}.nav-links a{padding:12px;border-bottom:1px solid rgba(255,255,255,.07)}
 .menu-toggle{display:block}.header-cta{display:none}
 .hero-reference-grid,.product-reference-grid,.product-hero-grid,.server-intro,.product-architecture{grid-template-columns:1fr}
 .hero-reference{padding-top:55px}.hero-visual{order:-1}.hero-copy h1{font-size:clamp(44px,10vw,64px)}
 .reference-cards{grid-template-columns:1fr}.feature-reference-grid{grid-template-columns:1fr 1fr}
 .reference-cta-inner{display:block}.reference-cta-inner .actions{margin-top:22px}
 .footer-main{grid-template-columns:1fr 1fr}.footer-brand{grid-column:1/-1}
}

/* Phase 25 — Reference fidelity correction */
@media (min-width:761px) and (max-width:1050px){
  .container{width:min(var(--max),calc(100% - 40px))}
  .nav-links{gap:15px;font-size:12px}
  .header-inner{gap:12px}
  .header-cta{padding-left:14px;padding-right:14px}
  .hero-reference-grid{gap:28px}
  .hero-copy h1{font-size:clamp(44px,5.4vw,62px)}
  .hero-copy .lead{font-size:15px}
  .hero-stats{gap:18px}
  .scribble{font-size:11px}
}

@media(max-width:560px){
 .container{width:calc(100% - 26px)}
 .hero-stats{gap:15px}.hero-stats div{min-width:90px}
 .feature-reference-grid{grid-template-columns:1fr}
 .footer-main{grid-template-columns:1fr}.footer-brand{grid-column:auto}
 .footer-bottom{display:block}.footer-bottom span{display:block;margin-top:7px}
 .scribble{display:none}
}

/* Phase 26 — Reference visual fidelity */
.hero-stats{grid-template-columns:repeat(4,minmax(0,1fr));}
.hero-stats strong{font-size:12px;line-height:1.25}
.hero-stats small{line-height:1.35}
.server-architecture-object{display:block;width:100%;height:auto;min-height:430px}
.server-fallback{min-height:390px;display:grid;grid-template-columns:1fr 42px 1fr 28px 1fr;align-items:center;gap:10px;padding:22px;background:#071520;border-radius:14px;color:#f5f8fb}
.server-fallback-node,.server-fallback-destinations>div{border:1px solid #168ff0;border-radius:14px;background:#0b2031;padding:22px 14px;text-align:center;font-weight:800}
.server-fallback-node span,.server-fallback-destinations span{display:block;margin-top:7px;color:#8ea8ba;font-size:11px;font-weight:500}
.server-fallback-green{border-color:#2fe16d}
.server-fallback-arrow{color:#8ea8ba;text-align:center;font-weight:800}
.server-fallback-destinations{display:grid;gap:12px}
.server-fallback-destinations>div{padding:17px 10px}
@media(max-width:900px){.hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.server-fallback{grid-template-columns:1fr;min-height:0}.server-fallback-arrow{transform:none}.server-architecture-object{min-height:0}}
@media(max-width:560px){.hero-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
/* Phase 28: use a rasterized architecture asset for reliable production rendering. */
.server-architecture-image{display:block;width:100%;height:auto;min-height:430px;object-fit:contain;border-radius:14px}
@media(max-width:900px){.server-architecture-image{min-height:0}}

/* =========================================================
   Phase 30 — Design system consolidation (inner-page layout)
   Brings About / Solutions / Case Studies / Contact / Docs /
   Blog / single templates up to the same spacing, typography
   and component language as Home and TrackForge.
   ========================================================= */
.site-main{display:block}

.container.narrow{width:min(800px,calc(100% - 40px))}

.section-heading{max-width:720px;margin-bottom:32px}
.section-heading h2{font-size:32px;margin-top:8px}
.section-heading .eyebrow{display:block}

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

.cta-panel{border:1px solid rgba(255,255,255,.11);border-radius:18px;background:linear-gradient(135deg,#0d2232,#08131d);padding:48px;text-align:center}
.cta-panel .eyebrow{display:block}
.cta-panel h2{margin:10px auto 14px;max-width:640px;font-size:32px}
.cta-panel p{color:var(--muted);max-width:600px;margin:0 auto 26px}
.cta-panel .btn{margin-top:0}
.cta-panel .btn:only-of-type{margin-top:6px}

.founder-copy p{margin:0 0 14px;color:var(--muted);line-height:1.7}
.founder-copy p:last-child{margin-bottom:0}
.founder-copy strong{color:var(--text)}

.post-content,.case-prose{color:var(--muted);font-size:15.5px;line-height:1.8}
.post-content p,.case-prose p{margin:0 0 20px}
.post-content h2,.post-content h3,.case-prose h2,.case-prose h3{color:var(--text);margin:36px 0 14px;font-size:26px}
.post-content ul,.post-content ol,.case-prose ul,.case-prose ol{padding-left:22px;margin:0 0 20px}
.post-content li,.case-prose li{margin:6px 0}
.post-content a,.case-prose a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}
.post-content img,.case-prose img{border-radius:14px}

.contact-direct{border-top:2px solid var(--green)}

@media(max-width:760px){
  .cta-panel{padding:34px 24px}
  .cta-panel h2{font-size:26px}
  .section-heading h2{font-size:27px}
}

/* =========================================================
   Phase 31 — Server-Side Tracking (Solutions page) hero +
   architecture diagram, matched to the supplied reference.
   ========================================================= */
.tracking-hero{padding-top:64px}
.tracking-hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center}
.tracking-hero-copy h1{font-size:clamp(34px,4vw,46px)}
.tracking-hero-copy h1 span{color:var(--green)}

.tech-checklist{list-style:none;margin:26px 0 0;padding:0;display:grid;gap:11px}
.tech-checklist li{display:flex;align-items:center;gap:10px;font-size:14px;color:#dce6ec;font-weight:600}
.tech-checklist li:before{content:"✓";display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:rgba(55,227,111,.16);color:var(--green);font-size:11px;font-weight:900;flex:none}

.arch-diagram{padding:26px;border:1px solid rgba(255,255,255,.11);border-radius:18px;background:rgba(9,26,39,.82);box-shadow:0 25px 80px rgba(0,0,0,.28)}
.arch-diagram-title{margin:0 0 20px;font-size:13px;font-weight:800;color:#cbd9e2;letter-spacing:.02em}
.arch-diagram-grid{display:grid;grid-template-columns:1fr 28px 1.15fr 28px .9fr;gap:8px;align-items:stretch}
.arch-node{border:1px solid var(--line);border-radius:12px;background:#0b2031;padding:15px}
.arch-node strong{display:block;font-size:13px}
.arch-node span{display:block;margin-top:3px;font-size:10.5px;color:var(--muted)}
.arch-node ul{list-style:none;margin:12px 0 0;padding:0;font-size:11px;color:var(--muted);display:grid;gap:5px}
.arch-node ul li:before{content:"›";margin-right:5px;color:#3f6178}
.arch-node-primary{border-color:#168ff0}
.arch-node-green{border-color:#2fe16d}
.arch-diagram-arrow{display:grid;place-items:center;color:#8ea8ba;font-weight:800;font-size:15px}
.arch-diagram-destinations{display:grid;gap:10px}

.tracking-features .feature-reference-grid{margin-top:0}

@media(max-width:900px){
  .tracking-hero-grid{grid-template-columns:1fr}
  .arch-diagram-grid{grid-template-columns:1fr}
  .arch-diagram-arrow{transform:rotate(90deg);padding:2px 0}
  .arch-diagram-destinations{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .arch-diagram-destinations{grid-template-columns:1fr}
}

/* =========================================================
   Phase 32 — Case Studies v2: three-column badge/tag cards,
   "Also featured on" strip and CTA bar, matched to reference.
   ========================================================= */
.case-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.case-badge{margin-bottom:14px}
.case-body-footer{padding-top:0}
.case-tags{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 14px}
.case-tags .tag{padding:.25rem .6rem;font-size:.72rem}
.case-tags-single{margin:18px 0 0}

.featured-on{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:0 0 22px;color:var(--muted);font-size:13px}
.featured-on span{font-weight:700;color:var(--text)}
.featured-on a{text-decoration:underline;text-underline-offset:2px}
.featured-on a:hover{color:#fff}

.cta-bar{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;padding:24px 30px;border:1px solid rgba(255,255,255,.11);border-radius:16px;background:rgba(9,26,39,.82)}
.cta-bar p{margin:0;font-size:16px;font-weight:700}

.case-single-cta{margin-top:48px}

@media(max-width:900px){
  .case-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .case-grid-3{grid-template-columns:1fr}
  .cta-bar{flex-direction:column;align-items:flex-start}
}

/* =========================================================
   Phase 33 — Documentation index
   ========================================================= */
.docs-topics-section{padding-bottom:0}
.doc-card{display:block;text-decoration:none;color:inherit}
.doc-card .badge{margin-bottom:12px}
.docs-grid{margin-top:0}

/* =========================================================
   i247 Labs — Reference Fidelity Visual Layer
   Handwritten accents, glass surfaces, technical logos,
   dashboard/case visuals and restrained interaction polish.
   ========================================================= */

:root{
  --glass:rgba(8,24,36,.72);
  --glass-strong:rgba(8,27,41,.88);
  --hairline:rgba(255,255,255,.10);
  --blue-soft:rgba(20,153,245,.16);
  --green-soft:rgba(55,227,111,.13);
}

body{background:radial-gradient(circle at 75% 18%,rgba(20,153,245,.045),transparent 28%),var(--bg)}

/* Handwritten annotations from the reference artwork. */
.scribble,
.case-annotation,
.server-scribble{
  font-family:'Caveat','Segoe Print','Comic Sans MS',cursive;
  font-weight:600;
  letter-spacing:.01em;
  color:#69ee98;
}
.scribble{font-size:17px;text-shadow:0 0 18px rgba(55,227,111,.08)}
.scribble-one{right:5%;top:0;transform:rotate(-6deg)}
.scribble-two{right:-2%;bottom:5%;transform:rotate(-5deg)}

/* Premium panel treatment: transparent dark surface + hairline border. */
.reference-card,
.feature-reference-grid article,
.card,
.case-card,
.solution-card,
.contact-form-wrap,
.related-link-grid a,
.architecture-panel,
.arch-diagram,
.cta-bar{
  background:linear-gradient(145deg,rgba(12,34,49,.82),rgba(6,20,31,.72));
  border-color:var(--hairline);
  box-shadow:0 18px 55px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.reference-card:hover,
.feature-reference-grid article:hover,
.card:hover,
.case-card:hover,
.solution-card:hover{
  border-color:rgba(50,164,235,.32);
}

/* Buttons: reference-like emphasis without excessive animation. */
.btn-primary{
  background:linear-gradient(135deg,#1499f5,#087fe0);
  border-color:#1499f5;
  box-shadow:0 8px 26px rgba(20,153,245,.24);
}
.btn-primary:hover{
  box-shadow:0 12px 34px rgba(20,153,245,.36);
  transform:translateY(-2px);
}
.btn-green{
  background:linear-gradient(135deg,#49eb7b,#2fd965);
  border-color:#49eb7b;
  box-shadow:0 8px 26px rgba(55,227,111,.18);
}
.btn-green:hover{box-shadow:0 12px 32px rgba(55,227,111,.27);transform:translateY(-2px)}
.btn-outline:hover{border-color:#7b9aad;background:rgba(255,255,255,.035);transform:translateY(-2px)}

/* Technology badge/pill language. */
.case-badge,
.reference-badge{
  background:rgba(20,153,245,.09);
  border-color:rgba(20,153,245,.38);
  color:#63c0ff;
  font-size:9px;
  letter-spacing:.10em;
  text-transform:uppercase;
  padding:5px 10px;
}
.case-tags .tag,
.tag{
  background:rgba(255,255,255,.035);
  border-color:rgba(255,255,255,.11);
  color:#a9bac5;
  font-size:.72rem;
  transition:border-color .15s ease,background .15s ease,color .15s ease;
}
.case-tags .tag:hover,.tag:hover{background:rgba(20,153,245,.08);border-color:rgba(20,153,245,.28);color:#dceaf2}

/* Server-side reference annotation. */
.tracking-hero-visual{position:relative}
.server-scribble{position:absolute;right:8px;top:-38px;z-index:2;font-size:17px;line-height:1.05;transform:rotate(-5deg);text-align:left}
.arch-diagram{position:relative}
.arch-diagram:after{content:"";position:absolute;inset:0;border-radius:18px;pointer-events:none;background:radial-gradient(circle at 70% 30%,rgba(55,227,111,.06),transparent 34%)}

/* Case Studies reference composition. */
.case-studies-hero .container{position:relative}
.case-annotation{position:absolute;right:5px;top:6px;font-size:25px;line-height:.95;transform:rotate(-5deg);text-align:left}
.case-annotation:after{content:"";display:block;width:82px;height:2px;margin:9px 0 0 10px;background:var(--green);transform:rotate(-6deg);border-radius:50%}
.case-card{display:flex;flex-direction:column;min-height:100%;overflow:hidden}
.case-card .case-body:first-child{padding-bottom:14px}
.case-card .case-body:first-child h2{font-size:22px;line-height:1.08}
.case-card .case-body:first-child p{color:#9eb2bf;font-size:13px;line-height:1.55}
.case-image{border-top:1px solid rgba(255,255,255,.07);border-bottom:1px solid rgba(255,255,255,.07);background:#06131e}
.case-image img{width:100%;height:100%;object-fit:cover;display:block}
.case-image-fallback{aspect-ratio:16/8.2;display:block;padding:0}
.case-body-footer{margin-top:auto;padding-top:15px}
.case-body-footer .text-link{color:#5dbbff;font-size:12px}
.featured-on{gap:16px}
.featured-on a{color:#a9bac5}

/* TrackForge dashboard frame. */
.product-preview,.product-page-preview{
  background:linear-gradient(145deg,#081a28,#06131e);
  border-color:rgba(255,255,255,.16);
  box-shadow:0 28px 75px rgba(0,0,0,.36),0 0 0 1px rgba(20,153,245,.04);
}
.product-preview img,.product-page-preview img{filter:drop-shadow(0 10px 18px rgba(0,0,0,.22))}

/* Header polish. */
.site-header{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.header-cta{box-shadow:0 7px 24px rgba(20,153,245,.18)}
.nav-links a{position:relative}
.nav-links a:after{content:"";position:absolute;left:0;right:100%;bottom:-8px;height:1px;background:var(--blue);transition:right .18s ease}
.nav-links a:hover:after{right:0}

/* Feature icons should read as technical glyphs rather than emoji blobs. */
.feature-reference-grid article>span{font-family:Inter,system-ui,sans-serif;font-weight:800}

/* Inner-page hero rhythm. */
.hero.section{padding-top:84px;padding-bottom:62px}
.hero.section .narrow h1{max-width:900px}
.hero.section .narrow .lead{max-width:760px}

/* Docs / blog surfaces. */
.docs-grid .doc-card,.post-card{background:linear-gradient(145deg,rgba(12,34,49,.82),rgba(6,20,31,.72));border-color:var(--hairline)}
.post-card:hover{border-color:rgba(20,153,245,.32);transform:translateY(-2px)}

/* Mobile: keep annotations and diagrams useful rather than cramped. */
@media(max-width:900px){
  .case-annotation{right:0;top:-2px;font-size:22px}
  .server-scribble{right:0;top:-28px;font-size:15px}
  .tracking-hero{padding-top:54px}
}
@media(max-width:760px){
  .hero.section{padding-top:62px;padding-bottom:42px}
  .case-annotation{position:relative;display:block;right:auto;top:auto;margin:14px 0 0 4px;font-size:21px}
  .case-annotation:after{margin-left:2px;width:70px}
  .server-scribble{position:relative;right:auto;top:auto;display:block;margin:0 0 10px 8px;font-size:17px;transform:rotate(-3deg)}
  .scribble-one,.scribble-two{display:none}
  .product-reference-grid h2,.product-hero h1{font-size:clamp(36px,10vw,48px)}
  .reference-section,.reference-server{padding:64px 0}
}
@media(max-width:560px){
  .container{width:calc(100% - 26px)}
  .btn{min-height:46px}
  .reference-card,.feature-reference-grid article,.card{padding:21px}
  .case-card .case-body:first-child h2{font-size:20px}
}

/* =========================================================
   v1.2 — Reference fidelity polish
   ========================================================= */
:root{
  --glass-ref:rgba(8,24,36,.68);
  --glass-ref-strong:rgba(8,27,41,.82);
  --hairline-ref:rgba(150,190,215,.16);
}

/* Handwritten accents: the supplied reference uses a true script accent. */
.scribble,.case-annotation,.server-scribble{
  font-family:'Caveat',cursive;
  font-weight:600;
  letter-spacing:.015em;
}
.scribble-one{font-size:19px;right:6%;top:-1%}
.scribble-two{font-size:18px;right:-1%;bottom:6%}

/* Reference-style glass surfaces: dark translucent panels with a quiet hairline. */
.reference-card,
.feature-reference-grid article,
.case-card,
.solution-card,
.contact-form-wrap,
.architecture-panel,
.arch-diagram,
.cta-bar,
.related-link-grid a,
.card{
  background:rgba(8,24,36,.68);
  border:1px solid var(--hairline-ref);
  box-shadow:0 18px 50px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.reference-card:hover,
.feature-reference-grid article:hover,
.case-card:hover,
.solution-card:hover{
  border-color:rgba(31,156,255,.34);
  transform:translateY(-2px);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}

/* Stronger but restrained reference-like CTA glow. */
.btn-primary{
  box-shadow:0 0 0 1px rgba(31,156,255,.10),0 8px 25px rgba(31,156,255,.27),0 0 22px rgba(31,156,255,.12);
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}
.btn-primary:hover{
  box-shadow:0 0 0 1px rgba(31,156,255,.18),0 12px 32px rgba(31,156,255,.38),0 0 30px rgba(31,156,255,.18);
}
.btn-green{
  box-shadow:0 0 0 1px rgba(72,226,122,.10),0 8px 25px rgba(72,226,122,.18);
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}
.btn-green:hover{box-shadow:0 12px 32px rgba(72,226,122,.28),0 0 24px rgba(72,226,122,.12)}

/* Technical icon treatment instead of emoji-heavy feature cards. */
.feature-reference-grid article>span.feature-icon{
  display:inline-grid;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid rgba(72,226,122,.32);
  border-radius:9px;
  background:rgba(72,226,122,.07);
  color:var(--green);
  font-size:19px;
  line-height:1;
  font-family:Inter,system-ui,sans-serif;
}

/* Architecture node icon markers. */
.arch-icon{
  display:inline-grid;
  place-items:center;
  width:32px;
  height:32px;
  margin-bottom:10px;
  border:1px solid rgba(31,156,255,.34);
  border-radius:8px;
  background:rgba(31,156,255,.09);
  color:#49aefe;
  font-size:17px;
  font-weight:800;
}
.arch-node-primary .arch-icon{border-color:rgba(72,226,122,.38);background:rgba(72,226,122,.08);color:var(--green)}
.arch-node-green .arch-icon{border-color:rgba(31,156,255,.28);background:rgba(31,156,255,.08);color:#49aefe}
.arch-node strong{line-height:1.25}

/* Case-study badge/tag language. */
.case-badge,.reference-badge{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  background:rgba(31,156,255,.08);
  border:1px solid rgba(31,156,255,.34);
  color:#63c0ff;
  border-radius:5px;
  padding:4px 9px;
  font-size:9px;
  font-weight:800;
  letter-spacing:.10em;
}
.case-tags .tag{
  border-radius:999px;
  background:rgba(255,255,255,.035);
  border-color:rgba(150,190,215,.15);
  padding:4px 9px;
  font-size:10px;
  color:#a9bac5;
}

/* Featured-on logo strip. */
.featured-on{margin:0 0 22px;gap:18px}
.featured-label{font-weight:700;color:var(--text)}
.featured-brand{display:inline-flex;align-items:center;gap:7px;text-decoration:none!important;color:#a9bac5!important}
.featured-brand:hover{color:#fff!important}
.featured-brand-icon{
  display:inline-grid;
  place-items:center;
  width:22px;height:22px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:6px;
  background:rgba(255,255,255,.045);
  color:#fff;
  font-size:11px;
  font-weight:900;
  line-height:1;
}
.featured-wp{border-radius:50%;background:#263d4b}
.featured-gh{border-radius:50%;font-size:7px}
.featured-fi{background:#222;color:#fff}
.featured-li{font-size:9px;background:#1d5f91}

/* TrackForge preview now reads as a laptop rather than a flat browser card. */
.product-preview,.product-page-preview{
  padding:0;
  overflow:hidden;
  background:transparent;
  border-color:rgba(150,190,215,.18);
  box-shadow:0 28px 75px rgba(0,0,0,.38),0 0 0 1px rgba(31,156,255,.04);
}
.product-preview img,.product-page-preview img{border-radius:0;filter:drop-shadow(0 14px 24px rgba(0,0,0,.26))}

/* Server-side architecture panel: tighter composition like the reference. */
.tracking-hero-visual .arch-diagram{padding:20px}
.arch-diagram-title{font-size:12px;margin-bottom:16px}
.arch-node{background:rgba(9,30,45,.78);border-color:rgba(150,190,215,.18)}
.arch-node-primary{background:rgba(10,45,34,.48)}
.arch-node-green{background:rgba(9,30,45,.78)}

/* Desktop reference proportions. */
@media(min-width:1101px){
  .hero-reference-grid{grid-template-columns:minmax(0,.98fr) minmax(0,1.02fr);gap:42px}
  .hero-visual img{width:min(100%,620px)}
  .tracking-hero-grid{grid-template-columns:.95fr 1.05fr;gap:38px}
  .case-studies-hero .container{max-width:1180px}
}

@media(max-width:760px){
  .scribble-one,.scribble-two{display:none}
  .product-preview,.product-page-preview{margin-top:4px}
  .featured-on{align-items:flex-start;gap:10px 14px}
  .featured-label{width:100%}
  .featured-brand{font-size:12px}
}

/* =========================================================
   Reference Fidelity v1.2.2 — visual precision pass
   ========================================================= */

/* Handwritten annotations: match the reference's casual technical markup. */
.hero-script-accent,
.case-annotation,
.server-scribble{
  font-family:'Caveat','Segoe Print','Comic Sans MS',cursive;
  font-weight:600;
  color:#63ef92;
  letter-spacing:.01em;
}
.hero-script-accent{
  font-size:18px;
  line-height:1;
  transform:rotate(-4deg);
  margin-bottom:-10px;
}
.hero-visual .scribble-one{
  right:4%;
  top:-2px;
}
.case-studies-hero .case-annotation{
  position:absolute;
  right:7%;
  top:76px;
  font-size:21px;
  line-height:1.02;
  transform:rotate(-5deg);
  text-align:left;
  text-shadow:0 0 18px rgba(55,227,111,.08);
}

/* Stronger premium glass surfaces: visible against the deep navy background. */
.reference-card,
.feature-reference-grid article,
.card,
.case-card,
.solution-card,
.contact-form-wrap,
.related-link-grid a,
.architecture-panel,
.arch-diagram,
.cta-bar,
.founder-panel,
.principle,
.post-card,
.product-preview,
.product-page-preview{
  background:rgba(13,23,32,.72);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 18px 55px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.reference-card:hover,
.feature-reference-grid article:hover,
.card:hover,
.case-card:hover,
.solution-card:hover{
  border-color:rgba(31,156,255,.34);
}

/* Reference-style tech pills. */
.case-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.case-tags .tag,
.tech-pill{
  background:rgba(56,189,248,.08);
  border:1px solid rgba(56,189,248,.28);
  color:#55c8ff;
  padding:3px 9px;
  border-radius:999px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.035em;
  text-transform:none;
}
.case-tags .tag:hover{background:rgba(56,189,248,.13);border-color:rgba(56,189,248,.42);color:#e5f7ff}

/* More visible blue primary glow, still restrained enough for production. */
.btn-primary{
  background:linear-gradient(135deg,#0284c7 0%,#2563eb 100%);
  border-color:#1599f5;
  box-shadow:0 0 0 1px rgba(37,99,235,.12),0 8px 24px rgba(37,99,235,.28),0 0 20px rgba(37,99,235,.18);
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}
.btn-primary:hover{
  box-shadow:0 0 0 1px rgba(56,189,248,.20),0 12px 32px rgba(37,99,235,.42),0 0 30px rgba(56,189,248,.24);
  transform:translateY(-2px);
}

/* Dashboard mockup: keep the supplied product UI crisp and laptop-sized. */
.product-preview,
.product-page-preview{
  border:0;
  box-shadow:none;
  overflow:visible;
}
.product-preview img,
.product-page-preview img{
  display:block;
  width:100%;
  height:auto;
  border-radius:0;
  filter:drop-shadow(0 22px 28px rgba(0,0,0,.34));
}

/* Homepage architecture visual should occupy the same visual weight as the reference. */
.hero-visual{position:relative;min-height:560px;display:flex;align-items:center;justify-content:center}
.hero-visual img{display:block;max-width:100%;height:auto}

/* Case-study cards: image-first technical proof, then metadata. */
.case-grid-3 .case-card{display:flex;flex-direction:column;min-height:100%}
.case-grid-3 .case-body{padding:18px 18px 14px}
.case-grid-3 .case-body h2{font-size:21px;line-height:1.12;margin:10px 0 8px}
.case-grid-3 .case-body p{font-size:12px;line-height:1.55;color:#a6b7c2;margin:0}
.case-grid-3 .case-image{order:2;margin:0 12px;border:1px solid rgba(255,255,255,.08);border-radius:10px;overflow:hidden;background:#071521}
.case-grid-3 .case-body-footer{order:3;margin-top:auto;padding-top:12px;display:flex;flex-direction:column;gap:12px}
.case-grid-3 .text-link{font-size:12px;color:#55c8ff}

/* Featured-on strip closer to the reference's compact proof row. */
.featured-on-section{padding-top:18px}
.featured-on{border-top:1px solid rgba(255,255,255,.09);padding-top:18px;margin-bottom:14px}
.featured-brand-icon{border-color:rgba(255,255,255,.18);box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)}

/* Mobile: annotations remain useful without colliding with content. */
@media(max-width:760px){
  .hero-visual{min-height:0;margin-top:8px}
  .hero-script-accent{font-size:16px}
  .hero-visual .scribble-one{right:1%;top:-4px}
  .case-studies-hero .case-annotation{position:relative;display:block;right:auto;top:auto;margin:12px 0 0 54%;font-size:18px}
  .case-grid-3 .case-body h2{font-size:20px}
  .case-grid-3 .case-image{margin:0 12px}
}

/* =========================================================
   Reference Fidelity v1.2.3 — final visual precision pass
   ========================================================= */

/* Handwritten reference annotations: stronger script identity and precise placement. */
.hero-script-accent,
.font-handwriting,
.accent-script,
.case-annotation,
.server-scribble{
  font-family:'Caveat','Segoe Print','Comic Sans MS',cursive;
  font-weight:600;
  letter-spacing:.02em;
  color:#60a5fa;
}
.hero-script-accent{
  font-size:20px;
  line-height:1;
  transform:rotate(-5deg);
  margin-bottom:-.5rem;
  text-shadow:0 0 18px rgba(96,165,250,.10);
}
.hero-visual .scribble-one{right:5%;top:-2px}
.case-studies-hero .case-annotation{
  right:6.5%;
  top:74px;
  font-size:23px;
  line-height:.98;
  transform:rotate(-5deg);
  text-shadow:0 0 18px rgba(96,165,250,.10);
}

/* Reference cards: clearly separated from the background without heavy glass effects. */
.reference-card,
.feature-reference-grid article,
.card,
.case-card,
.solution-card,
.contact-form-wrap,
.related-link-grid a,
.architecture-panel,
.arch-diagram,
.cta-bar,
.founder-panel,
.principle,
.post-card{
  background:rgba(13,17,23,.75);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 20px 40px -15px rgba(0,0,0,.60),inset 0 1px 0 rgba(255,255,255,.10);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

/* Reference-style technical pills. */
.case-tags .tag,
.tech-pill,
.case-tag{
  background:rgba(56,189,248,.08) !important;
  border:1px solid rgba(56,189,248,.30) !important;
  color:#38bdf8 !important;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-shadow:0 0 12px rgba(56,189,248,.15);
  padding:3px 10px;
  border-radius:9999px;
  font-size:.70rem;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.case-tags .tag:hover,
.tech-pill:hover,
.case-tag:hover{
  background:rgba(56,189,248,.13) !important;
  border-color:rgba(56,189,248,.42) !important;
  color:#e5f7ff !important;
}

/* More visible primary CTA glow, matching the reference without excessive motion. */
.btn-primary{
  background:linear-gradient(135deg,#0284c7 0%,#2563eb 100%);
  border-color:#1599f5;
  box-shadow:0 0 0 1px rgba(37,99,235,.12),0 8px 24px rgba(37,99,235,.30),0 0 20px rgba(37,99,235,.24);
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}
.btn-primary:hover{
  box-shadow:0 0 0 1px rgba(56,189,248,.20),0 12px 32px rgba(37,99,235,.44),0 0 30px rgba(56,189,248,.32);
  transform:translateY(-2px);
}

/* Keep architecture visuals crisp and slightly tighter on desktop. */
@media(min-width:1101px){
  .hero-visual img{width:min(100%,590px)}
}

@media(max-width:760px){
  .hero-script-accent{font-size:17px;transform:rotate(-4deg);}
  .hero-visual .scribble-one{right:1%;top:-4px}
  .case-studies-hero .case-annotation{right:auto;top:auto;margin:12px 0 0 50%;font-size:19px;transform:rotate(-4deg)}
}

@media(prefers-reduced-motion:reduce){
  .btn,.btn-primary,.btn-green,.card,.case-card,.solution-card{transition:none !important}
}

/* =========================================================
   Reference Fidelity v1.2.6 — final micro-polish
   ========================================================= */

/* The reference uses visible but restrained cyan glass edges. */
.feature-card,
.reference-card,
.feature-reference-grid article,
.case-card,
.solution-card,
.glass-card,
.contact-form-wrap,
.founder-panel,
.post-card,
.architecture-panel,
.arch-diagram,
.cta-bar,
.related-link-grid a,
.card{
  background:rgba(13,17,23,.75) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  box-shadow:0 20px 40px -15px rgba(0,0,0,.60),inset 0 1px 0 rgba(255,255,255,.10) !important;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.case-tags .tag,
.tech-pill,
.case-tag{
  background:rgba(56,189,248,.08) !important;
  border:1px solid rgba(56,189,248,.30) !important;
  color:#38bdf8 !important;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-shadow:0 0 12px rgba(56,189,248,.18) !important;
}

.hero-script-accent,
.font-handwriting,
.accent-script{
  font-family:'Caveat','Segoe Print','Comic Sans MS',cursive;
  font-weight:600;
  font-size:20px;
  line-height:1;
  color:#60a5fa;
  letter-spacing:.02em;
  transform:rotate(-5deg);
}
.hero-visual .scribble-one{
  right:5%;
  top:-4px;
  margin-bottom:-.5rem;
}

.btn-primary{
  background:linear-gradient(135deg,#0284c7 0%,#2563eb 100%);
  border-color:#1599f5;
  box-shadow:0 0 0 1px rgba(37,99,235,.12),0 8px 24px rgba(37,99,235,.30),0 0 20px rgba(37,99,235,.28) !important;
}
.btn-primary:hover{
  box-shadow:0 0 0 1px rgba(56,189,248,.20),0 12px 32px rgba(37,99,235,.44),0 0 30px rgba(56,189,248,.34) !important;
}

@media (min-width:1101px){
  .hero-script-accent{font-size:21px}
  .hero-visual .scribble-one{right:6%;top:-6px}
}
@media (max-width:760px){
  .hero-script-accent{font-size:17px;transform:rotate(-5deg)}
  .hero-visual .scribble-one{right:1%;top:-4px}
  .case-studies-hero .case-annotation{transform:rotate(-5deg)}
}


/* =========================================================
   Reference Fidelity v1.2.6 — live screenshot composition pass
   ========================================================= */

/* Match the supplied live/reference composition: tighter hero, larger architecture,
   and less unused vertical space between major sections. */
@media (min-width:1101px){
  .hero-reference{padding:54px 0 48px;min-height:0}
  .hero-reference-grid{grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);gap:34px}
  .hero-copy h1{font-size:clamp(48px,4.7vw,64px);line-height:1.01;margin:14px 0 14px}
  .hero-copy .lead{font-size:15px;line-height:1.55;max-width:620px}
  .hero-copy .actions{margin-top:22px}
  .hero-stats{margin-top:24px}
  .hero-visual{min-height:0}
  .hero-visual img{width:min(100%,650px);transform:translateY(-2px)}

  .reference-section{padding:58px 0}
  .reference-heading{margin-bottom:24px}
  .reference-cards{gap:14px}
  .reference-card{padding:20px}

  .reference-product{padding:68px 0}
  .product-reference-grid{grid-template-columns:.88fr 1.12fr;gap:34px}
  .product-preview img{transform:scale(1.04);transform-origin:center}

  .reference-server{padding:68px 0}
  .server-intro{grid-template-columns:.68fr 1.32fr;gap:34px}
  .server-intro h2{font-size:39px}
  .server-visual{transform:scale(1.04);transform-origin:center}

  .reference-cta{padding:30px 0 62px}
}

/* TrackForge: tighten the live page while keeping its product visual dominant. */
@media (min-width:1101px){
  .product-hero{padding:58px 0 44px}
  .product-hero-grid{gap:36px}
  .product-hero h1{font-size:50px}
  .product-hero .lead{font-size:18px}
  .product-page-preview img{transform:scale(1.035);transform-origin:center}
  .product-hero + .reference-section{padding-top:54px}
  .product-architecture{gap:32px}
}

/* Slightly denser mobile rhythm; preserve intentional stacking. */
@media (max-width:760px){
  .hero-reference{padding:48px 0 42px}
  .reference-section{padding:52px 0}
  .reference-product{padding:58px 0}
  .reference-server{padding:58px 0}
  .reference-cta{padding:28px 0 48px}
  .product-hero{padding:52px 0 42px}
}

/* Official-brand image references inside the architecture SVG remain decorative. */
.hero-visual img[alt*="tracking architecture"]{isolation:isolate}


/* =========================================================
   Reference Fidelity v1.3.0 — image-based architecture visuals
   ========================================================= */
.image-architecture-visual{position:relative;display:flex;align-items:center;justify-content:center}
.solutions-architecture-image{display:block;width:100%;max-width:620px;height:auto;border:1px solid rgba(255,255,255,.12);border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.32),0 0 35px rgba(31,156,255,.06)}
.architecture-image-strip{display:flex;justify-content:center;overflow:hidden;border-radius:18px}
.architecture-image-strip img{display:block;width:min(100%,900px);height:auto;border:1px solid rgba(255,255,255,.12);border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.30)}
.hero-visual img[src$="architecture-home.png"]{display:block;width:100%;max-width:650px;height:auto;border-radius:18px;filter:drop-shadow(0 22px 50px rgba(0,0,0,.28))}
.reference-server .server-architecture-image{border:1px solid rgba(255,255,255,.12);border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.30)}
.case-grid-3 .case-image img{background:#071521}
@media(max-width:760px){
  .solutions-architecture-image{max-width:100%}
  .architecture-image-strip img{width:100%}
}


/* =========================================================
   Reference Fidelity v1.3.2 — HD architecture artwork
   ========================================================= */
.hero-visual img[src$="architecture-home.png"]{
  width:100%;
  max-width:720px;
  height:auto;
  object-fit:contain;
  border-radius:18px;
  filter:drop-shadow(0 22px 50px rgba(0,0,0,.30));
}
.solutions-architecture-image{
  width:100%;
  max-width:720px;
  height:auto;
  object-fit:contain;
}
.reference-server .server-architecture-image{
  width:100%;
  height:auto;
  object-fit:contain;
}
@media(max-width:760px){
  .hero-visual img[src$="architecture-home.png"]{max-width:100%;}
  .solutions-architecture-image{max-width:100%;}
}

/* =========================================================
   Reference Fidelity v1.3.4 — hero spacing + responsive architecture
   ========================================================= */
/* Reduce the excessive empty space above the homepage hero on desktop. */
@media (min-width:1101px){
  .hero-reference{
    padding-top:24px;
    padding-bottom:42px;
  }
  .hero-reference-grid{
    align-items:center;
  }
  .hero-visual img[src$="architecture-home.png"]{
    width:100%;
    max-width:720px;
  }
}

/* Mobile/tablet: remove the large top gap and give the architecture enough width to read. */
@media (max-width:1100px){
  .hero-reference{
    padding-top:22px;
    padding-bottom:34px;
    min-height:0;
  }
  .hero-reference-grid{
    gap:24px;
  }
  .hero-visual{
    min-height:0;
    width:100%;
  }
  .hero-visual img[src$="architecture-home.png"]{
    width:100%;
    max-width:100%;
    height:auto;
  }
}

@media (max-width:760px){
  .hero-reference{
    padding-top:18px;
    padding-bottom:30px;
  }
  .hero-reference-grid{
    grid-template-columns:1fr;
    gap:24px;
  }
  .hero-copy{
    padding-left:0;
  }
  .hero-visual{
    order:0;
    margin-top:0;
    justify-content:center;
  }
  .hero-visual img[src$="architecture-home.png"]{
    width:100%;
    max-width:100%;
    border-radius:14px;
  }
}

/* =========================================================
   Reference Fidelity v1.3.5 — tighter inner-page hero top rhythm
   Keep all inner-page heroes visually close to the homepage header.
   ========================================================= */
@media (min-width:761px){
  .hero.section{padding-top:52px}
  .tracking-hero{padding-top:48px}
  .product-hero{padding-top:48px}
}
@media (max-width:760px){
  .hero.section{padding-top:38px}
  .tracking-hero{padding-top:40px}
  .product-hero{padding-top:40px}
}


/* =========================================================
   Reference Fidelity v1.3.7 — inner-page hero spacing pass
   Tighten ALL page heroes consistently on desktop/mobile.
   Homepage hero keeps its existing dedicated composition.
   ========================================================= */
@media (min-width:761px){
  /* About / Case Studies / Contact / Docs / Solutions */
  .hero.section{
    padding-top:52px;
    padding-bottom:36px;
  }

  /* Solutions has its own hero class; keep the same top rhythm. */
  .hero.section.tracking-hero{
    padding-top:52px;
    padding-bottom:36px;
  }

  /* Reduce the second section's top dead-space after a compact hero. */
  .hero.section + .section{
    padding-top:48px;
  }

  /* TrackForge product hero */
  .product-hero{
    padding-top:44px;
    padding-bottom:34px;
  }
  .product-hero + .reference-section{
    padding-top:44px;
  }
}

@media (max-width:760px){
  /* About / Case Studies / Contact / Docs / Solutions */
  .hero.section{
    padding-top:40px;
    padding-bottom:28px;
  }
  .hero.section.tracking-hero{
    padding-top:40px;
    padding-bottom:28px;
  }

  /* Keep the content below the hero from starting too far down. */
  .hero.section + .section{
    padding-top:38px;
  }

  /* TrackForge product hero */
  .product-hero{
    padding-top:40px;
    padding-bottom:30px;
  }
  .product-hero + .reference-section{
    padding-top:38px;
  }
}




/* WordPress Primary Menu */
.nav-links > .primary-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links > .primary-menu > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links > .primary-menu a {
    display: block;
    text-decoration: none;
}

/* Mobile navigation */
@media (max-width: 850px) {
    .nav-links > .primary-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .nav-links > .primary-menu > li {
        width: 100%;
    }

    .nav-links > .primary-menu a {
        padding: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .nav-links > .primary-menu > li:last-child > a {
        border-bottom: 0;
    }
}
