/* ==========================================================================
   TrackJi SEO — Final Production Stylesheet
   Theme: Industrial Neutral with Structural Blue
   Optimized for current TrackJi homepage markup (desktop + mobile)
   ========================================================================== */

/* -----------------------------
   1) Design Tokens
------------------------------ */
:root{
  --trackji-blue: #1F3A5F;
  --trackji-blue-deep: #162B47;
  --trackji-blue-soft: #2D4B76;

  --trackji-gray-light: #F2F4F7;
  --trackji-gray-mid: #E5E7EB;
  --trackji-gray-soft: #F8FAFC;

  --trackji-text-primary: #111827;
  --trackji-text-secondary: #4B5563;
  --trackji-text-muted: #6B7280;

  --trackji-accent-teal: #1F8A70;
  --trackji-accent-teal-dark: #166A58;

  --trackji-border: #D1D5DB;
  --trackji-border-soft: rgba(209,213,219,.72);

  --white: #FFFFFF;

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-xs: 0 1px 4px rgba(17,24,39,.05);
  --shadow-sm: 0 2px 10px rgba(17,24,39,.08);
  --shadow-md: 0 10px 30px rgba(17,24,39,.12);
  --shadow-lg: 0 20px 50px rgba(17,24,39,.14);

  --container: 1120px;
  --gutter: 20px;

  --nav-h: 72px;

  --focus: rgba(31,58,95,.35);
}

/* -----------------------------
   2) Base Reset / Defaults
------------------------------ */
*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--trackji-text-primary);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.95), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #F7F8FB 0%, #F2F4F7 42%, #EEF1F5 100%);
  line-height: 1.58;
  font-size: 16px;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

a{
  color: inherit;
  text-decoration: none;
}

a:hover{
  text-decoration: underline;
}

button,
input,
select,
textarea{
  font: inherit;
}

::selection{
  background: rgba(31,138,112,.20);
}

:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 10px;
}

/* -----------------------------
   3) Layout Helpers
------------------------------ */
.container{
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.section{
  padding: 68px 0;
}

.section--tight{
  padding: 40px 0;
}

.grid{
  display: grid;
  gap: 22px;
}

.grid-2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px){
  .section{
    padding: 46px 0;
  }

  .section--tight{
    padding: 28px 0;
  }

  .grid{
    gap: 16px;
  }

  .grid-2,
  .grid-3,
  .grid-4{
    grid-template-columns: 1fr;
  }
}

/* -----------------------------
   4) Typography
------------------------------ */
h1,h2,h3,h4{
  margin: 0 0 10px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--trackji-text-primary);
}

h1{
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 850;
}

h2{
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 820;
}

h3{
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 780;
}

h4{
  font-size: 18px;
  font-weight: 760;
}

p{
  margin: 0 0 14px;
  color: var(--trackji-text-secondary);
}

.kicker{
  color: var(--trackji-text-muted);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

.lead{
  font-size: 19px;
  line-height: 1.7;
  color: var(--trackji-text-secondary);
  max-width: 64ch;
}

.muted{
  color: var(--trackji-text-muted);
}

@media (max-width: 900px){
  .lead{
    font-size: 17px;
    line-height: 1.65;
  }
}

/* -----------------------------
   5) Buttons
------------------------------ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 760;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
  user-select: none;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn:active{
  transform: translateY(1px);
}

.btn-primary{
  background: linear-gradient(180deg, #238F74 0%, #1F8A70 100%);
  color: var(--white);
  border-color: rgba(31,138,112,.92);
  box-shadow: 0 8px 20px rgba(31,138,112,.18);
}

.btn-primary:hover{
  background: linear-gradient(180deg, #23987A 0%, #187460 100%);
  box-shadow: 0 12px 26px rgba(31,138,112,.26);
}

.btn-secondary{
  background: rgba(255,255,255,.96);
  border-color: var(--trackji-border);
  color: var(--trackji-blue);
}

.btn-secondary:hover{
  border-color: rgba(31,58,95,.35);
  box-shadow: var(--shadow-sm);
}

.btn-ghost{
  background: transparent;
  border-color: transparent;
  color: var(--trackji-blue);
}

.btn-ghost:hover{
  background: rgba(31,58,95,.06);
}

/* -----------------------------
   6) Cards
------------------------------ */
.card{
  background: rgba(255,255,255,.92);
  border: 1px solid var(--trackji-border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.card--soft{
  background: linear-gradient(180deg, rgba(236,239,244,.95) 0%, rgba(229,231,235,.92) 100%);
  border-color: rgba(209,213,219,.75);
  box-shadow: none;
}

.card-title{
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--trackji-text-primary);
}

.card-desc{
  color: var(--trackji-text-secondary);
  margin: 0;
  line-height: 1.65;
}

@media (max-width: 900px){
  .card{
    padding: 18px;
  }
}

/* -----------------------------
   7) Navbar
------------------------------ */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(247,248,251,.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(209,213,219,.60);
}

.nav .container{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: var(--trackji-blue);
}

.brand:hover{
  text-decoration: none;
}

.brand img{
  height: 38px;
  width: auto;
}

.brand-mark{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(31,58,95,.10);
  border: 1px solid rgba(31,58,95,.18);
  display: grid;
  place-items: center;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--trackji-text-secondary);
  font-weight: 650;
  font-size: 14px;
}

.nav-links a{
  position: relative;
}

.nav-links a:hover{
  text-decoration: none;
  color: var(--trackji-blue);
}

.nav-cta{
  display: flex;
  align-items: center;
  gap: 10px;
}

.burger{
  display: none;
  background: var(--white);
  border: 1px solid var(--trackji-border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--trackji-text-primary);
}

@media (max-width: 900px){
  .nav{
    height: 64px;
  }

  .brand{
    font-size: 26px;
  }

  .brand img{
    height: 34px;
  }

  .nav-links{
    display: none;
  }

  .burger{
    display: inline-flex;
  }

  .nav-cta .btn{
    display: none;
  }
}

.mobile-panel{
  display: none;
  border-top: 1px solid rgba(209,213,219,.7);
  background: rgba(242,244,247,.95);
}

.mobile-panel.is-open{
  display: block;
}

.mobile-panel .container{
  padding: 14px 0 18px;
  display: grid;
  gap: 10px;
}

.mobile-link{
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(209,213,219,.65);
  background: var(--white);
  color: var(--trackji-text-primary);
  font-weight: 700;
}

/* -----------------------------
   8) Hero
------------------------------ */
.hero{
  padding: 32px 0 20px;
}

.hero-wrap{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.hero-copy{
  max-width: 680px;
}

.hero h1{
  color: var(--trackji-blue);
  max-width: 24ch;
  margin-bottom: 16px;
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.16;
  text-wrap: balance;
}

.hero .lead{
  margin-top: 0;
  margin-bottom: 4px;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.55;
}

.hero-benefits{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--trackji-text-secondary);
}

.hero-benefits li{
  margin-bottom: 4px;
  line-height: 1.45;
}

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

.hero-panel{
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(249,250,252,.92) 100%);
  border: 1px solid rgba(209,213,219,.7);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
  overflow: hidden;
}

.hero-panel img{
  width: 100%;
  border-radius: 18px;
}

.hero-panel .stat{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(209,213,219,.6);
}

.hero-panel .stat:last-child{
  border-bottom: 0;
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(209,213,219,.7);
  background: rgba(31,58,95,.06);
  color: var(--trackji-blue);
  font-weight: 800;
  font-size: 12px;
}

/* Homepage hero feature strip */
.hero + .section.section--tight .grid.grid-3 .card.card--soft{
  min-height: 108px;
  display: flex;
  align-items: center;
  border-radius: 16px;
  padding: 18px 20px;
}

.hero + .section.section--tight .tile{
  align-items: center;
}

.hero + .section.section--tight .card-title{
  font-size: 16px;
  margin-bottom: 4px;
}

.hero + .section.section--tight .card-desc{
  font-size: 14px;
  line-height: 1.45;
}

/* Homepage intro quote card */
.section.section--tight .card.center h2{
  font-weight: 620;
  font-style: italic;
  color: #4C5564;
  margin: 0;
}

.section.section--tight .card.center{
  padding: 20px 28px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(17,24,39,.06);
}

/* Homepage use-case cards */
.grid.grid-3 .card > img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

.grid.grid-3 .card .card-title{
  font-size: 17px;
}

.grid.grid-3 .card p a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.grid.grid-3 .card p a::after{
  content: "›";
  font-size: 16px;
  line-height: 1;
}

/* Homepage proof grid */
.section .center.mb-24 h2{
  color: var(--trackji-blue);
}

.section .grid.grid-3 .card.center{
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 18px;
}

.section .grid.grid-3 .card.center .card-title{
  margin-bottom: 0;
  color: var(--trackji-blue);
  font-size: 16px;
}

/* FAQ preview card */
.section.section--tight .card[style*="max-width:820px"]{
  padding: 24px 26px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(17,24,39,.06);
}

/* CTA band */
.cta-band{
  background: var(--white);
  border: 1px solid var(--trackji-border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta-band h3{
  margin: 0;
}

.cta-band p{
  margin: 6px 0 0;
}

@media (max-width: 900px){
  .hero{
    padding: 28px 0 18px;
  }

  .hero-wrap{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-copy{
    max-width: none;
  }

  .hero h1{
    max-width: none;
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.12;
    text-wrap: normal;
  }

  .hero .lead{
    max-width: none;
    font-size: 17px;
    line-height: 1.6;
  }

  .hero-benefits{
    margin-top: 12px;
  }

  .hero-panel{
    padding: 12px;
    border-radius: 18px;
  }

  .hero + .section.section--tight .grid.grid-3 .card.card--soft{
    min-height: 0;
    padding: 16px 16px;
  }

  .section.section--tight .card.center{
    padding: 18px 18px;
  }

  .section.section--tight .card.center h2{
    font-size: 24px;
    line-height: 1.3;
  }

  .section .grid.grid-3 .card.center{
    min-height: 0;
    padding: 20px 16px;
  }

  .cta-band{
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 18px;
  }
}

/* -----------------------------
   Inner page hero image
------------------------------ */
/* Inner page hero image */
.page-hero-image{
  display: block;
  width: 60%;
  max-width: 640px;
  height: auto;
  border-radius: 18px;
  margin: 0 auto 20px;
}

@media (max-width: 900px){
  .page-hero-image{
    width: 100%;
    max-width: none;
    height: auto;
  }
}

/* -----------------------------
   9) Feature Tiles / Modules
------------------------------ */
.icon{
  width: 128px;
  height: 128px;
  border-radius: 20px;
  border: 1px solid rgba(31,58,95,.16);
  background: linear-gradient(
    180deg,
    rgba(31,58,95,.10) 0%,
    rgba(31,58,95,.07) 100%
  );
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

.icon img{
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.tile{
  display: flex;
  gap: 18px;
}

.tile .card-title{
  margin: 0 0 4px;
}

@media (max-width: 900px){
  .icon{
    width: 100px;
    height: 100px;
    border-radius: 18px;
  }

  .icon img{
    width: 74px;
    height: 74px;
  }
}

/* -----------------------------
   10) Forms
------------------------------ */
.form{
  display: grid;
  gap: 12px;
}

.field{
  display: grid;
  gap: 6px;
}

label{
  font-weight: 750;
  color: var(--trackji-text-primary);
  font-size: 13px;
}

input,
select,
textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--trackji-border);
  background: var(--white);
  color: var(--trackji-text-primary);
  font-size: 14px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

textarea{
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder{
  color: rgba(75,85,99,.7);
}

input:focus,
select:focus,
textarea:focus{
  outline: 3px solid var(--focus);
  border-color: rgba(31,58,95,.32);
}

input:hover,
select:hover,
textarea:hover{
  border-color: rgba(31,58,95,.24);
}

/* -----------------------------
   11) Footer
------------------------------ */
.footer{
  padding: 28px 0;
  border-top: 1px solid rgba(209,213,219,.75);
  color: var(--trackji-text-muted);
}

.footer .container{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.footer a{
  color: var(--trackji-blue);
  font-weight: 700;
}

.footer a:hover{
  text-decoration: underline;
}

@media (max-width: 900px){
  .footer .container{
    flex-direction: column;
  }
}

/* -----------------------------
   12) Utility Classes
------------------------------ */
.center{
  text-align: center;
}

.max-60{
  max-width: 60ch;
}

.mt-0{ margin-top: 0 !important; }
.mt-10{ margin-top: 10px !important; }
.mt-18{ margin-top: 18px !important; }
.mt-24{ margin-top: 24px !important; }

.mb-0{ margin-bottom: 0 !important; }
.mb-10{ margin-bottom: 10px !important; }
.mb-18{ margin-bottom: 18px !important; }
.mb-24{ margin-bottom: 24px !important; }

.hr{
  height: 1px;
  background: rgba(209,213,219,.75);
  border: 0;
  margin: 18px 0;
}

/* -----------------------------
   13) Reduced Motion Support
------------------------------ */
@media (prefers-reduced-motion: reduce){
  *{
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* ==============================
   Top Sticky Contact Bar
================================*/

.top-contact-bar{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #1F3A5F;
  color: #fff;
  font-size: 14px;
}

.top-contact-inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.top-contact-bar a{
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.top-contact-bar a:hover{
  text-decoration: underline;
}

/* Mobile */
@media (max-width:900px){

  .top-contact-inner{
    justify-content: center;
    font-size: 13px;
    gap: 14px;
  }

}

