/* ============================================================
   shared.css — iQuadra design system
   Used by every page
============================================================ */

/* ── Tokens ── */
:root {
  --navy: #0A1628;
  --navy-mid: #1E2A3A;
  --navy-dk: #111827;
  --teal: #00C4B4;
  --teal-dim: rgba(0,196,180,0.12);
  --teal-glow: rgba(0,196,180,0.28);
  --white: #FFFFFF;
  --off: #F4F6F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --text: #334155;
  --text-dk: #0F172A;
  --fd: 'Syne', sans-serif;
  --fb: 'DM Sans', sans-serif;
  --r4: 4px;
  --r8: 8px;
  --tr: 220ms ease;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.16);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); color: var(--text-dk); background: var(--white); overflow-x: hidden; line-height: 1.65; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--fb); }

/* ── Layout ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 80px; }
.section { padding: 88px 0; }
.section-dark { background: var(--navy); }
.section-mid  { background: var(--navy-mid); }
.section-off  { background: var(--off); }

/* ── Section headers ── */
.section-hdr { text-align: center; margin-bottom: 56px; }
.lbl { font-family: var(--fd); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; display: block; }
.h2 { font-family: var(--fd); font-size: clamp(26px,3.5vw,40px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: var(--text-dk); margin-bottom: 14px; }
.h2.wht { color: var(--white); }
.sub { font-size: 16px; color: var(--text); max-width: 560px; margin: 0 auto; line-height: 1.7; }
.sub.wht { color: var(--gray-400); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 12px 26px; border-radius: var(--r4); font-weight: 700; font-size: 14px; font-family: var(--fd); border: none; transition: transform var(--tr), box-shadow var(--tr), background var(--tr); }
.btn-teal { background: var(--teal); color: var(--navy); }
.btn-teal:hover { transform: translateY(-2px); box-shadow: 0 8px 22px var(--teal-glow); }
.btn-outline { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-outline:hover { background: var(--teal-dim); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-emp { background: transparent; color: rgba(255,255,255,.88); border: 1.5px solid rgba(255,255,255,.35); padding: 9px 18px; font-size: 13px; font-weight: 600; font-family: var(--fd); display: inline-flex; align-items: center; gap: 7px; border-radius: var(--r4); transition: background var(--tr), border-color var(--tr); }
.btn-emp:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }

/* ── Badge ── */
.badge { display: inline-block; background: var(--teal-dim); color: var(--teal); border: 1px solid rgba(0,196,180,.3); padding: 3px 13px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; font-family: var(--fd); }

/* ── Reveal animation ── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .5s ease-out, transform .5s ease-out; }
.rv.in { opacity: 1; transform: translateY(0); }
.d1{transition-delay:.08s} .d2{transition-delay:.16s} .d3{transition-delay:.24s} .d4{transition-delay:.32s}
@media(prefers-reduced-motion:reduce){.rv{opacity:1;transform:none;transition:none;}}

/* ── Navigation ── */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 500; background: transparent; transition: background .25s, box-shadow .25s; }
#nav.scrolled { background: rgba(10,22,40,.97); box-shadow: 0 1px 0 rgba(255,255,255,.07); backdrop-filter: blur(12px); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; padding: 0 80px; max-width: 1400px; margin: 0 auto; }
.nav-logo { font-family: var(--fd); font-size: 22px; font-weight: 800; color: var(--white); letter-spacing: -.03em; }
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: rgba(255,255,255,.7); font-size: 13px; font-weight: 500; transition: color var(--tr); }
.nav-links a:hover, .nav-links a.act { color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.hbg { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.hbg span { display: block; width: 24px; height: 2px; background: var(--white); transition: all .3s; }
.mob-menu { display: none; position: fixed; top: 70px; left: 0; right: 0; background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); padding: 20px 28px; z-index: 499; }
.mob-menu.open { display: block; }
.mob-menu ul { list-style: none; }
.mob-menu ul li { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.mob-menu ul li a { color: rgba(255,255,255,.85); font-size: 15px; }
.mob-menu .btn { width: 100%; justify-content: center; margin-top: 14px; }

/* ── Marquee ── */
.marquee-bar { background: var(--off); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); padding: 15px 0; overflow: hidden; }
.mq-track { display: flex; animation: mq 36s linear infinite; white-space: nowrap; }
@keyframes mq { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.mq-item { display: inline-flex; align-items: center; gap: 14px; padding: 0 34px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-600); font-family: var(--fd); white-space: nowrap; }
.mq-dot { color: var(--teal); font-size: 13px; }

/* ── Grids ── */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }

/* ── Cards ── */
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r8); padding: 30px; transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0,196,180,.3); }
.card-icon { width: 46px; height: 46px; background: var(--teal-dim); border-radius: var(--r4); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 18px; }
.card-title { font-family: var(--fd); font-size: 16px; font-weight: 700; margin-bottom: 9px; color: var(--text-dk); }
.card-body { font-size: 13px; color: var(--text); line-height: 1.7; }

/* Dark product cards */
.prod-card { background: var(--navy-dk); border: 1px solid rgba(255,255,255,.07); border-radius: var(--r8); padding: 38px; transition: border-color var(--tr), transform var(--tr); }
.prod-card:hover { border-color: rgba(0,196,180,.35); transform: translateY(-3px); }
.prod-name { font-family: var(--fd); font-size: 26px; font-weight: 800; color: var(--white); margin: 11px 0 10px; letter-spacing: -.02em; }
.prod-desc { font-size: 14px; color: var(--gray-400); margin-bottom: 20px; line-height: 1.65; }
.prod-list { list-style: none; margin-bottom: 20px; }
.prod-list li { font-size: 13px; color: rgba(255,255,255,.7); padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: 9px; }
.prod-list li::before { content: '→'; color: var(--teal); font-size: 12px; }
.proof { background: var(--teal-dim); border-left: 3px solid var(--teal); border-radius: 0 var(--r4) var(--r4) 0; padding: 12px 15px; margin-bottom: 24px; font-size: 13px; color: var(--teal); }

/* Service cards */
.svc-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r8); padding: 28px; transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr); }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(0,196,180,.3); }
.svc-icon { font-size: 28px; margin-bottom: 14px; }
.svc-title { font-family: var(--fd); font-size: 15px; font-weight: 700; margin-bottom: 9px; color: var(--text-dk); }
.svc-body { font-size: 13px; color: var(--text); line-height: 1.65; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--off); border: 1px solid var(--gray-200); color: var(--gray-600); padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; font-family: var(--fd); }

/* Stats */
.stats-bar { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-cell { padding: 46px 28px; text-align: center; border-right: 1px solid rgba(255,255,255,.07); }
.stat-cell:last-child { border-right: none; }
.stat-num { font-family: var(--fd); font-size: 46px; font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: 7px; }
.stat-lbl { font-size: 13px; color: var(--gray-400); line-height: 1.5; }

/* Outcomes */
.outcomes { display: grid; grid-template-columns: repeat(3,1fr); background: var(--off); border: 1px solid var(--gray-200); border-radius: var(--r8); overflow: hidden; margin: 36px 0; }
.outcome { padding: 36px 28px; text-align: center; border-right: 1px solid var(--gray-200); }
.outcome:last-child { border-right: none; }
.outcome-n { font-family: var(--fd); font-size: 42px; font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: 5px; }
.outcome-l { font-size: 13px; color: var(--text); line-height: 1.5; }

/* Tech chips */
.tech-chip { background: var(--navy-dk); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r4); padding: 13px; text-align: center; font-family: var(--fd); font-size: 12px; font-weight: 700; color: rgba(255,255,255,.8); transition: border-color var(--tr); }
.tech-chip:hover { border-color: rgba(0,196,180,.35); }

/* Footer */
footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,.07); padding: 60px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 4fr 2fr 2fr 2fr; gap: 44px; margin-bottom: 44px; }
.foot-logo { font-family: var(--fd); font-size: 21px; font-weight: 800; color: var(--white); margin-bottom: 14px; letter-spacing: -.03em; }
.foot-logo span { color: var(--teal); }
.foot-tag { font-size: 13px; color: var(--gray-400); line-height: 1.7; margin-bottom: 20px; }
.foot-col h5 { font-family: var(--fd); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.foot-col ul { list-style: none; }
.foot-col ul li { margin-bottom: 9px; }
.foot-col ul li a { font-size: 13px; color: var(--gray-400); transition: color var(--tr); }
.foot-col ul li a:hover { color: var(--teal); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.foot-copy { font-size: 12px; color: var(--gray-400); }

/* Form elements */
.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 5px; font-family: var(--fd); }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 11px 15px; border: 1.5px solid var(--gray-200);
  border-radius: var(--r4); font-family: var(--fb); font-size: 14px;
  color: var(--text-dk); outline: none; background: var(--white);
  transition: border-color var(--tr), box-shadow var(--tr);
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-dim); }
.fg textarea { resize: vertical; min-height: 110px; }
.fr2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Diff list */
.diff-list { list-style: none; }
.diff-list li { display: flex; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--gray-200); font-size: 14px; color: var(--text); line-height: 1.6; }
.diff-list li:last-child { border-bottom: none; }
.diff-list li::before { content: '✦'; color: var(--teal); font-size: 11px; flex-shrink: 0; margin-top: 3px; }

/* Flash messages */
.flash { padding: 12px 16px; border-radius: var(--r4); font-size: 13px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.flash-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.flash-err { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }

/* ── Responsive ── */
@media(max-width:1100px){
  .container, .nav-wrap { padding-left: 48px; padding-right: 48px; }
  .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:768px){
  .container, .nav-wrap { padding-left: 22px; padding-right: 22px; }
  .nav-links, .nav-right .btn-teal { display: none; }
  .hbg { display: flex; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .fr2 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); }
  .outcomes { grid-template-columns: 1fr; }
  .outcome { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .foot-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .foot-bottom { flex-direction: column; text-align: center; }
}
@media(max-width:480px){
  .stats-bar { grid-template-columns: 1fr; }
}
