/* ===========================================================
   KliqAnalytics — shared stylesheet
   Edit colors in :root to rebrand the whole site at once.
   =========================================================== */

:root {
  --navy:      #0A2540;   /* primary dark */
  --navy-700:  #0E2E50;
  --ink:       #16243A;   /* body text */
  --muted:     #51607A;   /* secondary text (AA on white) */
  --line:      #E2E8F2;   /* borders */
  --surface:   #F4F7FB;   /* light section bg */
  --surface-2: #ECF2F9;
  --accent:    #00B39A;   /* teal accent */
  --accent-2:  #3B6CF6;   /* blue accent */
  --accent-ink:#053b34;   /* dark text used on teal fills */
  --white:     #FFFFFF;
  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      1120px;
  --shadow:    0 10px 30px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, 0.14);
  --font:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display:   'Sora', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 600; }
p  { margin: 0 0 1rem; }
a  { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block; font-family: var(--display); font-weight: 600;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(0, 179, 154, .35); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { box-shadow: 0 12px 26px rgba(10, 37, 64, .3); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--navy); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1rem;
  font-family: var(--display);
}
.brand span b { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .96rem; }
.nav-links a:hover { color: var(--accent-2); text-decoration: none; }
.nav-links a.active { color: var(--accent-2); }
.nav-cta { margin-left: .4rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.bg-surface { background: var(--surface); }
.bg-navy { background: var(--navy); color: #D7E2F0; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #D7E2F0; padding: 104px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(0,179,154,.22), transparent 60%),
    radial-gradient(50% 60% at 10% 100%, rgba(59,108,246,.25), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { color: #B9C8DC; }
.hero-subline { font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: #8FE9DC; margin: -.2rem 0 1rem; max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: #93A6C0; }

/* hero visual card */
.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow-lg);
}
.hero-card h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; color: #8FE9DC; margin-bottom: 16px; }
.metric-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metric { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 16px; }
.metric .num { font-family: var(--display); font-size: 1.7rem; font-weight: 700; color: #fff; }
.metric .lbl { font-size: .82rem; color: #9FB2CC; }

/* hero capability list */
.hero-list { list-style: none; margin: 0; padding: 0; }
.hero-list li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 2px; }
.hero-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-list li:first-child { padding-top: 0; }
.hero-list .hl-title { font-family: var(--display); font-weight: 600; color: #fff; font-size: 1rem; }
.hero-list .hl-sub { font-size: .86rem; color: #9FB2CC; }

/* capability jump-nav (Capabilities hero, right side) */
.capnav { list-style: none; margin: 0; padding: 0; }
.capnav li { border-bottom: 1px solid rgba(255,255,255,.1); }
.capnav li:last-child { border-bottom: 0; }
.capnav a { display: flex; align-items: center; gap: 12px; padding: 13px 0; color: #E3ECF7; font-family: var(--display); font-weight: 600; font-size: 1rem; text-decoration: none; transition: color .15s ease, padding .15s ease; }
.capnav a:hover { color: #8FE9DC; padding-left: 6px; text-decoration: none; }
.capnav .capnav-n { font-size: .82rem; color: #6FE0D0; font-weight: 700; min-width: 22px; }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CFE0EE; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent-2); margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .97rem; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--accent-2); }

/* ---------- Trust bar ---------- */
.trust { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-label { text-align: center; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; }
.logo-chip {
  border: 1px dashed #C6D4E4; border-radius: 10px; padding: 14px 22px; min-width: 150px;
  text-align: center; color: var(--muted); font-size: .85rem; background: #fff;
}

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat .num { font-family: var(--display); font-size: clamp(2rem,3.4vw,2.8rem); font-weight: 700; color: var(--navy); }
.bg-navy .stat .num { color: #fff; }
.stat .lbl { color: var(--muted); font-size: .95rem; }
.bg-navy .stat .lbl { color: #9FB2CC; }

/* ---------- Service detail blocks ---------- */
.service-block { padding: 40px 0; border-top: 1px solid var(--line); }
.service-block:first-of-type { border-top: 0; }
.service-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.service-num { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 1rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill { font-size: .82rem; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--navy-700); border: 1px solid var(--line); }
.checklist { list-style: none; padding: 0; margin: 12px 0 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step .num { counter-increment: step; width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 700; display: grid; place-items: center; }
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy), #0c3a63); color: #fff; border-radius: 22px; padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(40% 80% at 90% 0%, rgba(0,179,154,.28), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C5D4E6; max-width: 56ch; margin: 0 auto 24px; }

/* ---------- Quote / testimonial ---------- */
.quote { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 28px; }
.quote p { font-size: 1.1rem; color: var(--ink); font-style: italic; }
.quote .who { font-size: .9rem; color: var(--muted); font-style: normal; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 6px; font-family: var(--display); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 1rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(59,108,246,.25); border-color: var(--accent-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- Contact info ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.info-list .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent-2); flex: none; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: var(--navy); color: #C9D8EA; padding: 72px 0; position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 100% at 90% 0%, rgba(0,179,154,.18), transparent 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #B9C8DC; }
.breadcrumb { font-size: .85rem; color: #8FA4C0; margin-bottom: 14px; }
.breadcrumb a { color: #8FE9DC; }

/* ---------- Founder / about ---------- */
.founder { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.avatar { width: 100%; aspect-ratio: 1; border-radius: 18px; background: linear-gradient(135deg, var(--surface-2), #DCE7F3); display: grid; place-items: center; color: var(--muted); text-align: center; border: 1px dashed #C6D4E4; font-size: .85rem; padding: 16px; }
.value-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: #07182B; color: #9FB2CC; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer a { color: #9FB2CC; font-size: .92rem; display: block; margin-bottom: 10px; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #8198B5; font-size: .92rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; font-size: .85rem; color: #6E84A3; flex-wrap: wrap; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .service-grid, .founder { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2,1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-row { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { padding-top: 14px; }
  .nav-links .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 36px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
}

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