/* =====================================================================
   TRIVEN EMPIRE — Core Stylesheet
   Modern, clean enterprise software-company design system
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette */
  --navy-900: #0a1530;
  --navy-800: #0f1f44;
  --navy-700: #16294f;
  --navy-600: #1d3461;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --accent: #2563eb;
  --accent-soft: #e8f0ff;

  /* Neutrals */
  --ink: #0b1220;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(15, 31, 68, .08);
  --shadow-md: 0 8px 24px rgba(15, 31, 68, .10);
  --shadow-lg: 0 24px 60px rgba(15, 31, 68, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --maxw: 1180px;
  --gradient: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  --gradient-navy: linear-gradient(160deg, var(--navy-900), var(--navy-700));

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { color: var(--slate-700); }
.lead { font-size: 1.2rem; color: var(--slate-500); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--teal-400); }
.section-head { max-width: 680px; margin: 0 auto 56px; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { font-size: 1.1rem; color: var(--slate-500); margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.28); }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,99,235,.36); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--slate-200); }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--gradient); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(37,99,235,.35);
}
.brand-text { color: var(--ink); }
.brand-text span { color: var(--blue-600); }
.site-header:not(.scrolled).on-dark .brand-text { color: #fff; }
.site-header:not(.scrolled).on-dark .nav-links a { color: rgba(255,255,255,.86); }
.site-header:not(.scrolled).on-dark .nav-links a:hover { color: #fff; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-weight: 500; font-size: .98rem; color: var(--slate-700); position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--blue-600); transition: width .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue-600); }
.nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }
.site-header.on-dark:not(.scrolled) .menu-toggle span { background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 170px 0 110px;
  background: var(--gradient-navy); color: #fff; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(640px circle at 78% 18%, rgba(20,184,166,.22), transparent 60%),
    radial-gradient(720px circle at 12% 88%, rgba(37,99,235,.30), transparent 55%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--teal-400), var(--blue-400)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: rgba(255,255,255,.82); font-size: 1.2rem; max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 8px 16px; border-radius: 999px; font-size: .86rem; font-weight: 500;
  color: rgba(255,255,255,.9); margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px rgba(45,212,191,.25); }

/* Hero visual — floating product cards */
.hero-visual { position: relative; height: 440px; }
.float-card {
  position: absolute; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14); border-radius: 18px;
  backdrop-filter: blur(8px); padding: 20px 22px; width: 250px;
  box-shadow: 0 20px 50px rgba(0,0,0,.30);
  animation: floaty 6s ease-in-out infinite;
}
.float-card .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; font-size: 1.2rem; }
.float-card h4 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.float-card p { color: rgba(255,255,255,.7); font-size: .85rem; margin: 0; }
.fc-1 { top: 10px; left: 0; animation-delay: 0s; }
.fc-2 { top: 150px; right: 0; animation-delay: 1.2s; }
.fc-3 { bottom: 8px; left: 40px; animation-delay: 2.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--slate-50); border-bottom: 1px solid var(--slate-200); padding: 30px 0; }
.trustbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.trustbar p { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-400); }
.trustbar .sectors { display: flex; gap: 38px; flex-wrap: wrap; }
.trustbar .sectors span { font-weight: 700; color: var(--slate-500); font-size: 1.02rem; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 32px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 20px; font-size: 1.5rem; background: var(--accent-soft); color: var(--blue-600);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; color: var(--slate-500); }
.card .num { font-size: .85rem; font-weight: 800; color: var(--slate-200); }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; color: var(--blue-600); font-size: .95rem; }
.card-link .arrow { transition: transform .2s ease; }
.card:hover .card-link .arrow { transform: translateX(4px); }

/* Icon color variants */
.ic-blue { background: var(--accent-soft); color: var(--blue-600); }
.ic-teal { background: #d9f7f1; color: #0d9488; }
.ic-violet { background: #ede9fe; color: #7c3aed; }
.ic-amber { background: #fef3c7; color: #d97706; }
.ic-rose { background: #ffe4e6; color: #e11d48; }
.ic-green { background: #dcfce7; color: #16a34a; }

/* ---------- Product showcase ---------- */
.product-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 0; }
.product-row.reverse .product-media { order: 2; }
.product-media {
  border-radius: var(--radius-lg); padding: 40px; min-height: 320px;
  display: flex; flex-direction: column; justify-content: center; color: #fff;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.product-media::after { content:''; position:absolute; inset:0; background: radial-gradient(400px circle at 80% 20%, rgba(255,255,255,.18), transparent 60%); }
.pm-educims { background: linear-gradient(150deg, #1d4ed8, #2563eb 60%, #14b8a6); }
.pm-legal { background: linear-gradient(150deg, #0f766e, #0d9488 60%, #2563eb); }
.pm-locmas { background: linear-gradient(150deg, #6d28d9, #7c3aed 60%, #2563eb); }
.product-media .pm-tag { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; position: relative; z-index: 2; }
.product-media .pm-name { font-size: 2.2rem; font-weight: 800; margin: 8px 0 6px; position: relative; z-index: 2; }
.product-media .pm-desc { opacity: .9; position: relative; z-index: 2; font-size: 1.05rem; }
.product-media .pm-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; position: relative; z-index: 2; }
.product-media .pm-chips span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.2); padding: 6px 13px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.product-info .eyebrow { margin-bottom: 8px; }
.product-info h3 { font-size: 1.9rem; margin-bottom: 14px; }
.feature-list { margin-top: 20px; display: grid; gap: 13px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--slate-700); font-size: .98rem; }
.feature-list .tick { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--blue-600); display: grid; place-items: center; font-size: .7rem; font-weight: 800; margin-top: 2px; }

/* ---------- Stats ---------- */
.stats { background: var(--gradient-navy); color: #fff; }
.stats .stat { text-align: center; }
.stats .stat .num { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; background: linear-gradient(90deg, var(--teal-400), var(--blue-400)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stats .stat .label { color: rgba(255,255,255,.72); font-size: .98rem; margin-top: 4px; }

/* ---------- Steps / process ---------- */
.step { position: relative; padding-left: 0; }
.step .step-num { width: 48px; height: 48px; border-radius: 14px; background: var(--gradient); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; margin-bottom: 18px; box-shadow: 0 8px 20px rgba(37,99,235,.3); }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { font-size: .96rem; color: var(--slate-500); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gradient); color: #fff; border-radius: var(--radius-lg); padding: 60px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content:''; position:absolute; inset:0; background: radial-gradient(500px circle at 20% 10%, rgba(255,255,255,.2), transparent 60%); }
.cta-band h2 { color: #fff; position: relative; z-index: 2; }
.cta-band p { color: rgba(255,255,255,.9); position: relative; z-index: 2; max-width: 560px; margin: 14px auto 28px; font-size: 1.12rem; }
.cta-band .hero-actions { justify-content: center; position: relative; z-index: 2; }

/* ---------- Values / about ---------- */
.value-card { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 30px; }
.value-card .icon { margin-bottom: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.media-block { border-radius: var(--radius-lg); min-height: 380px; background: var(--gradient-navy); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); display:grid; place-items:center; }
.media-block::after { content:''; position:absolute; inset:0; background: radial-gradient(420px circle at 70% 25%, rgba(20,184,166,.28), transparent 60%), radial-gradient(380px circle at 25% 80%, rgba(37,99,235,.4), transparent 55%); }
.media-block .mb-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 30px; }
.media-block .mb-content .big { font-size: 3rem; font-weight: 800; background: linear-gradient(90deg,var(--teal-400),var(--blue-400)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--gradient-navy); color: #fff; padding: 150px 0 80px; position: relative; overflow: hidden; }
.page-hero::before { content:''; position:absolute; inset:0; background: radial-gradient(600px circle at 85% 20%, rgba(20,184,166,.18), transparent 60%), radial-gradient(500px circle at 10% 90%, rgba(37,99,235,.28), transparent 55%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 1.2rem; max-width: 620px; margin-top: 16px; }
.breadcrumb { font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--slate-700); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--slate-200); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; background:#fff;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-field input, .form-field select { height: 52px; line-height: 1.4; }
.form-field select { -webkit-appearance: none; appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.form-field textarea { resize: vertical; min-height: 130px; height: auto; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.contact-info-item .icon { flex: 0 0 50px; width: 50px; height: 50px; border-radius: 13px; background: var(--accent-soft); color: var(--blue-600); display: grid; place-items: center; font-size: 1.25rem; }
.contact-info-item h4 { font-size: 1.05rem; margin-bottom: 3px; }
.contact-info-item p, .contact-info-item a { color: var(--slate-500); font-size: .98rem; }
.contact-info-item a:hover { color: var(--blue-600); }
.form-note { font-size:.85rem; color: var(--slate-400); margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 72px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 50px; }
.site-footer .brand-text { color: #fff; }
.site-footer .f-about { margin: 18px 0; font-size: .96rem; max-width: 320px; }
.site-footer h5 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul li { margin-bottom: 11px; }
.site-footer ul li a { font-size: .96rem; color: rgba(255,255,255,.66); }
.site-footer ul li a:hover { color: var(--teal-400); }
.f-contact p { color: rgba(255,255,255,.66); font-size: .96rem; margin-bottom: 10px; }
.f-contact a:hover { color: var(--teal-400); }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .2s ease, transform .2s ease; }
.socials a:hover { background: var(--blue-600); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: .88rem; color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--teal-400); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .split, .product-row, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .product-row.reverse .product-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px;
    background: #fff; flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 90px 30px 30px; box-shadow: -10px 0 40px rgba(0,0,0,.15); transition: right .3s ease; z-index: 1001;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; padding: 10px 0; width: 100%; color: var(--ink) !important; }
  .menu-toggle { display: block; z-index: 1002; }
  .nav-cta .btn:not(.menu-toggle) { display: none; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-band { padding: 40px 26px; }
  .trustbar-inner { justify-content: center; text-align: center; }
  body.menu-open { overflow: hidden; }
  .menu-backdrop { position: fixed; inset: 0; background: rgba(11,18,32,.4); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  .menu-backdrop.show { opacity: 1; pointer-events: auto; }
}
