/* ============================================================
   TrirectorPro — Product Platform
   Clean SaaS Glass UI (Balanced Edition)
   ============================================================ */

/* -------------------- ROOT -------------------- */
:root{
  --bg:#f5f7fb;
  --surface:#ffffff;
  --text:#0a1226;
  --muted:#6b7280;

  --blue-700:#1e40af;
  --blue-600:#2563eb;
  --blue-500:#3b82f6;

  --radius-lg:18px;
  --radius-md:14px;
  --radius-sm:10px;

  --shadow-lg:0 24px 48px rgba(30,40,60,0.12);
  --shadow-md:0 14px 30px rgba(20,30,60,0.10);
  --shadow-sm:0 8px 18px rgba(20,30,60,0.06);

  --max-width:1180px;
  font-size:16px;
}

/* -------------------- RESET -------------------- */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html,body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
}

a{color:inherit;text-decoration:none;}
button{font-family:inherit;}
img{display:block;max-width:100%;}
.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:24px;
}

/* ============================================================
   HEADER (OPTICALLY BALANCED)
   ============================================================ */

.site-header{
  position:sticky;
  top:14px;
  z-index:3000;
  display:flex;
  justify-content:center;
}

.header-inner{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;

  /* Asymmetric padding fixes left heaviness */
  padding:14px 28px 14px 20px;

  background:rgba(255,255,255,0.82);
  backdrop-filter:blur(14px);
  border-radius:var(--radius-lg);
  border:1px solid rgba(0,0,0,0.05);
  box-shadow:var(--shadow-lg);
}

/* ---------- Brand ---------- */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo-badge{
  width:42px;
  height:42px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--blue-700),var(--blue-500));
  color:#fff;
  font-size:18px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;

  /* Reduced shadow = less visual weight */
  box-shadow:0 8px 18px rgba(37,99,235,0.26);
}

.brand-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  line-height:1.05;
}

.brand-text h1,
.brand-title{
  font-size:16.5px;
  font-weight:900;
  letter-spacing:-0.2px;
}

.brand-text .tagline,
.brand-sub{
  font-size:11.5px;
  font-weight:600;
  color:var(--muted);
  margin-top:2px;
}

/* ---------- Navigation ---------- */
.primary{
  display:flex;
  gap:22px;
  align-items:center;

  /* optical centering against logo */
  margin-left:8px;
}

.nav-link{
  background:transparent;
  border:0;
  font-size:14.5px;
  font-weight:700;
  color:var(--text);
  cursor:pointer;
  padding:8px 12px;
  border-radius:var(--radius-sm);
  transition:all .18s ease;
}

.nav-link:hover{
  background:rgba(37,99,235,0.10);
  transform:translateY(-2px);
}

.nav-link.active{
  background:rgba(37,99,235,0.18);
  color:var(--blue-700);
}

/* ---------- Header Actions ---------- */
.nav-actions{
  display:flex;
  align-items:center;
}

.btn{
  padding:11px 18px;
  border-radius:12px;
  font-weight:800;
  border:0;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:all .18s ease;
}

.btn-primary,
.btn.primary{
  background:linear-gradient(90deg,var(--blue-600),var(--blue-500));
  color:#fff;
  box-shadow:0 14px 32px rgba(37,99,235,0.26);
}

.btn-primary:hover,
.btn.primary:hover{
  transform:translateY(-3px);
  box-shadow:0 20px 40px rgba(37,99,235,0.32);
}

.btn-ghost,
.btn-outline{
  background:transparent;
  border:1px solid rgba(0,0,0,0.14);
  color:var(--blue-700);
}

/* ============================================================
   HERO
   ============================================================ */

.hero{
  margin-top:48px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1fr 460px;
  gap:36px;
  align-items:center;
}

.kicker{
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(37,99,235,0.14);
  color:var(--blue-700);
  font-size:13px;
  font-weight:800;
}

.hero-title{
  margin:18px 0 16px;
  font-size:clamp(30px,4.8vw,46px);
  font-weight:900;
}

.hero-sub{
  font-size:1.05rem;
  line-height:1.6;
  color:#1a2540;
}

.hero-ctas{
  display:flex;
  gap:12px;
  margin:24px 0;
}

.hero-meta{
  list-style:none;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.hero-meta li{
  background:linear-gradient(180deg,#eef4ff,#e8f0ff);
  color:var(--blue-700);
  padding:8px 12px;
  font-weight:700;
  font-size:13px;
  border-radius:12px;
}

.hero-panel{
  background:#fff;
  padding:16px;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
}

.panel-caption{
  margin-top:10px;
  text-align:center;
  font-size:13px;
  color:var(--muted);
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section{
  margin-top:72px;
}

.section-head{
  text-align:center;
  margin-bottom:38px;
}

.section-head h2{
  font-size:28px;
  font-weight:900;
}

.muted{
  color:var(--muted);
}

/* ============================================================
   PRODUCTS
   ============================================================ */

.grid{
  display:grid;
  gap:24px;
}

.product-grid{
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
}

.card{
  background:#fff;
  padding:22px;
  border-radius:var(--radius-md);
  border:1px solid rgba(0,0,0,0.05);
  box-shadow:var(--shadow-sm);
  transition:all .2s ease;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-md);
}

.card-head{
  display:flex;
  gap:14px;
  align-items:center;
}

.card-icon{width:40px;}

.card h3{
  font-size:17px;
  font-weight:800;
}

.tag{
  font-size:12px;
  font-weight:700;
  margin-top:4px;
  color:var(--blue-700);
}

.card-desc{
  margin:14px 0;
  color:#1a2540;
}

.card-tags span{
  display:inline-block;
  margin:4px 6px 0 0;
  padding:6px 10px;
  font-size:12px;
  font-weight:700;
  border-radius:999px;
  background:#eef4ff;
  color:var(--blue-700);
}

.card-foot{
  margin-top:16px;
  display:flex;
  justify-content:space-between;
  font-size:13px;
}

.link{
  color:var(--blue-600);
  font-weight:800;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.steps{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;
}

.step{
  background:#fff;
  padding:22px;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm);
}

.step .num{
  width:40px;
  height:40px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--blue-600),var(--blue-500));
  color:#fff;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:12px;
}

/* ============================================================
   CTA
   ============================================================ */

.cta-band{
  background:linear-gradient(135deg,#1e40af,#2563eb);
  color:#fff;
  padding:38px;
  border-radius:22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.cta-actions{
  display:flex;
  gap:12px;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid{
  display:grid;
  grid-template-columns:1fr 420px;
  gap:32px;
}

.contact-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.14);
  font-size:15px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer{
  margin:72px 0 24px;
}

.footer-grid{
  display:flex;
  justify-content:space-between;
  font-size:14px;
  color:var(--muted);
}

.footer-links{
  display:flex;
  gap:16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media(max-width:980px){
  .primary{display:none;}
  .hero-grid{grid-template-columns:1fr;}
  .contact-grid{grid-template-columns:1fr;}
  .cta-band{
    flex-direction:column;
    gap:24px;
    text-align:center;
  }
}

/* ================= CTA FIX ================= */

.section.cta {
  background: linear-gradient(135deg, #1e40af, #2563eb);
}

.cta-band {
  border-radius: 20px;
}

/* Text block */
.cta-text h3 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  margin: 0;
}

/* Buttons */
.cta-actions .btn-primary {
  background: #ffffff;
  color: #1e40af;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.cta-actions .btn-outline.light:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.cta-actions .btn-outline.light:hover {
  background: rgba(255,255,255,0.15);
}

/* === CTA secondary button FIX === */

.cta-actions .btn-outline.light {
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #ffffff;
  background: transparent;
  font-weight: 600;
  opacity: 1;
}


