/* ===========================================================
   KlarityIT 2.0 — kore.ai-inspired design language
   Light cool-gray ground, Inter (weight 500 headings, tight
   tracking), near-black ink + uppercase black buttons, green
   accent, uppercase spaced eyebrows, dark rounded showcase.
   =========================================================== */

:root{
  --ink:      #181818;   /* near-black — primary text + buttons */
  --ink-2:    #1F2328;
  --muted:    #65717C;   /* secondary text */
  --muted-2:  #8A94A0;   /* faint captions */
  --ground:   #F0F6F9;   /* page background (cool light) */
  --white:    #FFFFFF;
  --line:     #D9E0E3;   /* hairline */
  --line-2:   #E5E9F1;
  --accent:   #0AA6C7;   /* aqua accent */
  --accent-ink:#076C82;  /* deep aqua — text on light */
  --accent-soft:#E1F5F9; /* aqua tint fill */
  --blue:     #1077D7;   /* secondary accent */
  --dark:     #0E1116;   /* dark showcase panel */
  --dark-2:   #171B22;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 40px);
  --radius: 6px;
  --radius-lg: 20px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }

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

.wrap{ max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
img{ max-width: 100%; display: block; }

.skip-link{ position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus{ left: 12px; top: 12px; }

/* ---------- Type primitives ---------- */
.eyebrow{
  font-size: 12.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
}
.eyebrow-on-dark{ color: #9FE2EE; }

.section-title{
  font-weight: 500;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -.028em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.section-lead{
  font-size: 18px; color: var(--muted);
  max-width: 60ch; margin: 18px auto 0; line-height: 1.6;
}

/* Centered section intros (kore-style) */
.section-head{ text-align: center; max-width: 760px; margin-inline: auto; }
.section-head .section-title{ margin-inline: auto; max-width: 22ch; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-block; font-family: var(--sans);
  font-size: 13px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  line-height: 1; cursor: pointer; text-decoration: none;
  padding: 14px 22px; border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .12s ease, background-color .15s ease, opacity .15s ease;
}
.btn-primary{ background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover{ background: #000; }
.btn-primary:active{ transform: scale(.98); }
.btn-sm{ padding: 10px 16px; }

.btn-link{
  font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap .15s ease, color .15s ease;
}
.btn-link span{ color: var(--accent); transition: transform .15s ease; }
.btn-link:hover{ color: var(--accent-ink); }
.btn-link:hover span{ transform: translateX(4px); }

:where(a, button, input, textarea):focus-visible{
  outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(240,246,249,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled{ border-bottom-color: var(--line); }
.header-inner{ display: flex; align-items: center; gap: 24px; height: 72px; }
.brand{ display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-name{ font-family: var(--sans); font-weight: 400; font-size: 20px; letter-spacing: -.02em; }
.brand-mark{ display: inline-flex; align-items: center; color: inherit; }
.brand-mark svg{ display: block; }
.brand-lockup{ display: inline-flex; align-items: center; gap: 9px; }
.nav{ display: flex; gap: 28px; }
.nav a{ color: var(--muted); text-decoration: none; font-size: 15px; transition: color .15s ease; }
.nav a:hover{ color: var(--ink); }

.nav-toggle{ display: none; flex-direction: column; gap: 5px; justify-content: center; width: 42px; height: 42px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.nav-toggle span{ display: block; height: 2px; width: 20px; margin-inline: auto; background: var(--ink); transition: .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-nav{ display: none; flex-direction: column; padding: 8px var(--pad) 20px; border-bottom: 1px solid var(--line); background: var(--ground); }
.mobile-nav a{ padding: 12px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child{ border-bottom: none; }
.mobile-nav .mobile-cta{ margin-top: 12px; color: var(--accent-ink); font-weight: 500; }
.mobile-nav.open{ display: flex; }

/* ---------- Hero (centered) ---------- */
.hero{ padding-top: clamp(56px, 9vw, 108px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero-inner{ text-align: center; }
.hero .eyebrow{ margin-bottom: 22px; }
.hero-title{
  font-weight: 500;
  font-size: clamp(38px, 6.6vw, 66px);
  line-height: 1.04; letter-spacing: -.035em;
  margin: 0 auto 24px; max-width: 17ch; text-wrap: balance;
}
.hero-sub{ font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 62ch; margin: 0 auto 34px; line-height: 1.55; }
.hero-cta{ display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; }

/* ---------- Dark showcase panel ---------- */
.showcase{
  margin-top: clamp(48px, 7vw, 88px);
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 56px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px 48px;
  align-items: center;
  color: #E9EEF2;
  overflow: hidden;
  position: relative;
}
.showcase::before{
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 85% 15%, rgba(10,166,199,.24), transparent 55%);
  pointer-events: none;
}
.showcase-copy, .showcase-panel{ position: relative; }
.showcase-title{ font-weight: 500; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 14px; color: #fff; max-width: 16ch; }
.showcase-lead{ margin: 0; color: #A9B4BE; font-size: 17px; max-width: 42ch; }

.showcase-panel{ background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 20px; }
.agent-head{ display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.agent-avatar{ width: 38px; height: 38px; border-radius: 9px; background: #0B0D11; color: #45CFE8; display: flex; align-items: center; justify-content: center; }
.agent-name{ margin: 0; font-weight: 500; font-size: 15px; color: #fff; }
.agent-role{ margin: 0; font-size: 12.5px; color: #58D6EC; letter-spacing: .02em; }
.agent-live{ margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: #22C4E0; box-shadow: 0 0 0 4px rgba(34,196,224,.20); }
.agent-tasks{ list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.agent-tasks li{ display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: #C6D0D8; line-height: 1.4; }
.tick{ flex: 0 0 auto; width: 19px; height: 19px; border-radius: 50%; background: rgba(34,196,224,.16); color: #45CFE8; font-size: 11px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.agent-stat{ margin-top: 4px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.agent-stat strong{ color: #fff; font-weight: 500; }

/* ---------- Proof stats ---------- */
.stats{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(40px, 6vw, 72px);
  background: var(--line); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.stat{ background: var(--white); padding: 28px 26px; display: flex; flex-direction: column; gap: 8px; }
.stat-num{ font-size: 34px; font-weight: 500; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-label{ font-size: 14px; color: var(--muted); line-height: 1.4; }

/* ---------- Who we help ---------- */
.who{ padding-top: clamp(44px, 6vw, 72px); text-align: center; }
.who-label{ display: block; font-size: 13px; letter-spacing: .04em; color: var(--muted-2); margin-bottom: 16px; text-transform: uppercase; }
.who-list{ list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.who-list li{ font-size: 15px; color: var(--ink); padding: 9px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; }

/* ---------- Sections ---------- */
.section{ padding-block: clamp(60px, 8vw, 104px); }
.section-alt{ background: var(--white); padding-block: clamp(60px, 8vw, 104px); border-block: 1px solid var(--line); }

/* ---------- Problem ---------- */
.problem-grid{ display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px 56px; margin-top: 48px; align-items: start; }
.problem-list{ margin: 0; padding: 0; list-style: none; }
.problem-list li{ font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; letter-spacing: -.01em; line-height: 1.4; color: var(--ink); padding: 18px 0; border-top: 1px solid var(--line); }
.problem-list li:first-child{ border-top: none; padding-top: 0; }
.problem-kicker{ font-size: 18px; color: var(--muted); margin: 0; padding-left: 22px; border-left: 3px solid var(--accent); }

/* ---------- Cards (offers) ---------- */
.cards{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 52px; }
.card{ background: var(--ground); border: 1px solid var(--line); border-radius: 14px; padding: 30px 30px 32px; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.card:hover{ border-color: var(--line); transform: translateY(-3px); box-shadow: 0 14px 30px -22px rgba(24,24,24,.45); }
.card-title{ font-weight: 500; font-size: 21px; line-height: 1.22; margin: 0 0 12px; letter-spacing: -.015em; }
.card p{ margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Case studies ---------- */
.cases{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.case{ background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px 22px; display: flex; flex-direction: column; }
.case-title{ font-weight: 500; font-size: 18.5px; line-height: 1.25; margin: 0 0 10px; letter-spacing: -.01em; }
.case p{ margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.case-outcome{ margin-top: 16px !important; padding-top: 14px; border-top: 1px solid var(--line-2); color: var(--accent-ink) !important; font-size: 13.5px !important; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.case-outcome::before{ content: "→"; color: var(--accent); }

/* ---------- How it works ---------- */
.steps{ list-style: none; margin: 52px auto 0; padding: 0; max-width: 820px; }
.step{ display: grid; grid-template-columns: 84px 1fr; gap: 8px 28px; padding: 30px 0; border-top: 1px solid var(--line); align-items: baseline; }
.step:first-child{ border-top: none; }
.step-num{ font-size: 30px; color: var(--accent); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.step-title{ font-weight: 500; font-size: 22px; margin: 0 0 8px; letter-spacing: -.015em; }
.step p{ margin: 0; color: var(--muted); max-width: 56ch; }

/* ---------- About ---------- */
.about-body{ margin: 30px auto 0; max-width: 62ch; display: grid; gap: 18px; text-align: center; }
.about-body p{ margin: 0; font-size: 18px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-form-col{ max-width: 560px; margin: 48px auto 0; text-align: left; }

.contact-form{ display: grid; gap: 16px; }
.contact-form label{ display: grid; gap: 7px; font-size: 14px; font-weight: 500; color: var(--ink); }
.contact-form .optional{ color: var(--muted-2); font-weight: 400; }
.contact-form input, .contact-form textarea{
  font: inherit; font-size: 16px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); color: var(--ink); width: 100%; resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:hover, .contact-form textarea:hover{ border-color: var(--muted-2); }
.contact-form input:focus, .contact-form textarea:focus{ outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,166,199,.15); }
.contact-form ::placeholder{ color: var(--muted-2); opacity: 1; }
.contact-form button{ justify-self: start; margin-top: 4px; }
.form-result{ margin: 4px 0 0; font-size: 15px; min-height: 1.2em; }
.form-result.ok{ color: var(--accent-ink); }
.form-result.err{ color: #a3302a; }
.hidden{ display: none !important; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--dark); color: #C6D0D8; padding-top: 54px; padding-bottom: 34px; }
.footer-inner{ display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand{ display: grid; gap: 10px; }
.footer-brand .brand-lockup{ color: #fff; }
.footer-brand .brand-name{ color: #fff; }
.footer-tag{ margin: 4px 0 0; color: #8A94A0; font-size: 14px; }
.footer-links{ display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.footer-links a{ color: #C6D0D8; text-decoration: none; font-size: 15px; }
.footer-links a:hover{ color: #fff; }
.footer-copy{ margin: 22px auto 0; color: #6B7681; font-size: 13.5px; }

/* ---------- Reveal (progressive enhancement — only hides when JS is active) ---------- */
.js .reveal{ opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .js .reveal{ opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .nav, .header-inner > .btn-sm{ display: none; }
  .nav-toggle{ display: flex; }
  .showcase{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: repeat(2, 1fr); }
  .cases{ grid-template-columns: repeat(2, 1fr); }
  .problem-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 600px){
  body{ font-size: 16px; }
  .cards, .cases, .stats{ grid-template-columns: 1fr; }
  .who-list li{ font-size: 14px; }
  .step{ grid-template-columns: 52px 1fr; gap: 4px 16px; }
  .step-num{ font-size: 24px; }
  .hero-cta{ flex-direction: column; gap: 18px; }
  .hero-cta .btn{ width: 100%; text-align: center; }
}
