/* =====================================================
   Ascend AI Solutions — UI styled after kore.ai
   Charcoal #181818 · gray #65717c · sky #f0f6f9
   borders #d9e0e3 · accent #f3350c · pastel cards
   Inter (body) · Space Grotesk (headings) · Source Code Pro (labels)
   ===================================================== */
:root {
  --charcoal: #181818;
  --charcoal-2: #65717c;
  --sky: #f0f6f9;
  --border: #d9e0e3;
  --accent: #f3350c;
  --orange: #f56612;
  --blue: #1077d7;
  --pastel-blue: #c2dcf4;
  --pastel-cream: #fff6e8;
  --pastel-mint: #e4f5eb;
  --pastel-sand: #f9f1de;
  --pastel-pink: #f9e7ec;
  --footer-bg: #0d0d10;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 20px;
  --font-body: 'Inter', Arial, sans-serif;
  --font-head: 'Space Grotesk', sans-serif;
  --font-mono: 'Source Code Pro', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--charcoal-2);
  font-size: 16px;
  line-height: 1.7;
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--charcoal); line-height: 1.18; font-weight: 600; letter-spacing: -.01em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

img { max-width: 100%; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--charcoal); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-s);
  transition: all .25s ease;
  border: 1.5px solid transparent;
  line-height: 1.3;
}
.btn-primary { background: var(--charcoal); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-ghost:hover { background: var(--charcoal); color: #fff; }
.btn-light { background: #fff; color: var(--charcoal); }
.btn-light:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px;
  background: var(--charcoal);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 23px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-m);
}
.brand-text {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.15;
}
.brand-text strong { color: var(--accent); font-weight: 600; }
.brand-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--charcoal-2);
  font-weight: 500;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--charcoal);
  font-size: 14.5px;
  font-weight: 500;
}
.main-nav a:hover { color: var(--accent); }
.main-nav .nav-cta {
  background: var(--charcoal);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-s);
  font-weight: 600;
}
.main-nav .nav-cta:hover { background: var(--accent); color: #fff; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 6px 0; border-radius: 2px; transition: transform .2s; }

/* ===== Hero slider ===== */
.hero { position: relative; min-height: 640px; overflow: hidden; background: var(--sky); }
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity .9s ease;
  padding: 100px 24px;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-1 {
  background:
    radial-gradient(640px 420px at 12% 18%, var(--pastel-blue) 0%, transparent 70%),
    radial-gradient(560px 400px at 88% 82%, var(--pastel-cream) 0%, transparent 70%),
    var(--sky);
}
.slide-2 {
  background:
    radial-gradient(640px 420px at 85% 15%, var(--pastel-mint) 0%, transparent 70%),
    radial-gradient(560px 400px at 12% 85%, var(--pastel-blue) 0%, transparent 70%),
    var(--sky);
}
.slide-3 {
  background:
    radial-gradient(640px 420px at 18% 80%, var(--pastel-pink) 0%, transparent 70%),
    radial-gradient(560px 400px at 82% 18%, var(--pastel-sand) 0%, transparent 70%),
    var(--sky);
}
.slide-content { max-width: 900px; }

.kicker {
  font-family: var(--font-mono);
  color: var(--charcoal-2);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 22px;
}
.kicker::before { content: "{ "; color: var(--accent); }
.kicker::after { content: " }"; color: var(--accent); }

.slide h1 {
  color: var(--charcoal);
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.slide h1 em { color: var(--accent); font-style: normal; }
.slide .lede {
  color: var(--charcoal-2);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 720px;
  margin: 0 auto 36px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.slider-dots {
  position: absolute;
  bottom: 30px; left: 0; right: 0;
  display: flex; gap: 8px; justify-content: center;
  z-index: 2;
}
.slider-dots button {
  width: 26px; height: 6px;
  border-radius: 99px;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all .3s;
  padding: 0;
}
.slider-dots button.active { background: var(--charcoal); width: 40px; }

/* ===== Stats bar ===== */
.stats-bar { background: #fff; border-bottom: 1px solid var(--border); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  padding: 44px 24px;
  gap: 24px;
}
.stat { border-left: 1px solid var(--border); }
.stat:first-child { border-left: none; }
.stat-num { font-family: var(--font-head); font-size: clamp(34px, 4vw, 46px); font-weight: 700; color: var(--charcoal); }
.stat-plus { font-family: var(--font-head); font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: var(--accent); }
.stat-sub { font-size: 20px; color: var(--charcoal-2); }
.stat p {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 11px;
  color: var(--charcoal-2);
  margin-top: 2px;
}

/* ===== Sections ===== */
.section { padding: 104px 0; }
.section-gray { background: var(--sky); }
.section-dark { background: var(--charcoal); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #aab4bd; }

.section-head { text-align: center; max-width: 780px; margin: 0 auto 60px; }
.eyebrow {
  font-family: var(--font-mono);
  color: var(--charcoal-2);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before { content: "{ "; color: var(--accent); }
.eyebrow::after { content: " }"; color: var(--accent); }
.eyebrow-light { color: #aab4bd; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 16px; letter-spacing: -.02em; }
.section-sub { font-size: 17.5px; }

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

/* ===== Cards (solutions / advantages) ===== */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 32px 26px;
  text-align: left;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(24,24,24,.08);
  border-color: var(--pastel-blue);
}
/* pastel tints cycling, kore.ai-style */
.card:nth-child(4n+1) { background: var(--pastel-cream); border-color: transparent; }
.card:nth-child(4n+2) { background: var(--sky); border-color: transparent; }
.card:nth-child(4n+3) { background: var(--pastel-mint); border-color: transparent; }
.card:nth-child(4n+4) { background: var(--pastel-pink); border-color: transparent; }
/* on sky-tinted sections, keep cards white so they stand out */
.section-gray .card { background: #fff; border-color: var(--border); }

.card-icon {
  width: 52px; height: 52px;
  margin-bottom: 20px;
  background: var(--charcoal);
  color: #fff;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-m);
}
.card h3 { font-size: 18.5px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: #4e5a64; }

/* ===== Heritage / About ===== */
.heritage-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: center;
}
.heritage-copy .eyebrow { text-align: left; }
.heritage-copy h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.heritage-copy p { margin-bottom: 18px; font-size: 16.5px; }
.heritage-copy p:last-child { margin-bottom: 0; }
.heritage-stats { display: grid; gap: 18px; }
.heritage-stat {
  background: var(--sky);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 26px 28px;
}
.heritage-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.1;
}
.heritage-stat span {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 11px;
  color: var(--charcoal-2);
}

/* ===== Use-case cards ===== */
.usecase-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 26px 24px;
  transition: transform .25s, box-shadow .25s;
}
.usecase-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(24,24,24,.07); }
.usecase-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--accent);
  background: var(--pastel-cream);
  border-radius: 99px;
  padding: 5px 12px;
  margin-bottom: 14px;
}
.usecase-card h3 { font-size: 17px; margin-bottom: 8px; }
.usecase-card p { font-size: 14px; }

/* ===== Problem ===== */
.problem-stats { max-width: 880px; margin: 0 auto; }
.problem-stat {
  text-align: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-l);
  padding: 40px 20px;
  background: rgba(255,255,255,.04);
}
.problem-stat strong { display: block; font-family: var(--font-head); font-size: clamp(36px, 4vw, 48px); font-weight: 700; color: var(--orange); }
.problem-stat span {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11.5px;
  color: #aab4bd;
}

/* ===== Approach ===== */
.approach-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.approach-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 28px 22px;
  text-align: center;
  width: 210px;
  transition: transform .25s, box-shadow .25s;
}
.approach-step:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(24,24,24,.07); }
.approach-step .step-num {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: var(--sky);
  color: var(--charcoal);
  font-family: var(--font-mono);
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 50%;
  margin-bottom: 14px;
}
.approach-step p { font-weight: 600; color: var(--charcoal); font-size: 15px; line-height: 1.45; }
.approach-arrow { align-self: center; color: var(--accent); font-size: 24px; font-weight: 700; }

.badge-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge {
  font-family: var(--font-mono);
  background: var(--sky);
  border: 1px solid var(--border);
  color: var(--charcoal);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 10px 20px;
  border-radius: 99px;
}
.badge::before { content: "\2713  "; color: var(--accent); }

/* ===== Capabilities ===== */
.cap-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.cap-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(24,24,24,.08); }
.cap-card h3 { font-size: 20px; margin-bottom: 18px; }
.chat-demo { background: var(--sky); border-radius: var(--radius-m); padding: 16px; margin-bottom: 20px; }
.chat-user, .chat-bot {
  font-size: 13.5px;
  line-height: 1.55;
  padding: 11px 15px;
  border-radius: var(--radius-m);
  margin-bottom: 10px;
}
.chat-user { background: #fff; color: var(--charcoal); border: 1px solid var(--border); border-bottom-right-radius: 4px; margin-left: 28px; }
.chat-bot { background: var(--charcoal); color: #fff; border-bottom-left-radius: 4px; margin-right: 18px; margin-bottom: 0; }
.check-list { list-style: none; }
.check-list li {
  font-size: 14px;
  padding: 7px 0 7px 26px;
  position: relative;
  border-bottom: 1px solid var(--sky);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: "\2713"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

/* ===== Process ===== */
.phase-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 36px 28px;
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.phase-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(24,24,24,.08); }
.phase-featured { border: 2px solid var(--charcoal); box-shadow: 0 24px 48px rgba(24,24,24,.12); }
.ribbon {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 99px;
  white-space: nowrap;
}
.phase-week {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}
.phase-card h3 { font-size: 23px; margin: 8px 0 2px; }
.phase-price { color: var(--charcoal-2); font-size: 14px; margin-bottom: 18px; }
.timeline-list { list-style: none; margin-bottom: 18px; }
.timeline-list li { font-size: 14.5px; padding: 8px 0; border-bottom: 1px solid var(--sky); }
.timeline-list strong { color: var(--charcoal); }
.deliverables {
  font-size: 13.5px;
  background: var(--sky);
  padding: 16px;
  border-radius: var(--radius-m);
}
.deliverables strong { color: var(--charcoal); }
.phase-note { margin-top: 16px; font-size: 13px; color: var(--accent); }

/* ===== Methodology ===== */
.principle {
  text-align: left;
  padding: 32px 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-l);
  background: rgba(255,255,255,.04);
}
.principle-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  display: block;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.principle-num::before { content: "{ "; }
.principle-num::after { content: " }"; }
.principle h3 { font-size: 20px; margin-bottom: 12px; }

/* ===== Industries ===== */
.industry-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 32px 24px;
  text-align: left;
  transition: transform .25s, box-shadow .25s;
}
.industry-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(24,24,24,.08); }
.industry-metric { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1; }
.industry-metric-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 10.5px;
  color: var(--charcoal-2);
  margin: 4px 0 16px;
}
.industry-card h3 { font-size: 18px; margin-bottom: 8px; }
.industry-card p { font-size: 14px; }

.trusted-by { margin-top: 72px; text-align: center; }
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.logo-row span {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal-2);
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px 20px;
  border-radius: 99px;
}

/* ===== Technology ===== */
.tech-col {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 28px 24px;
}
.tech-col h3 {
  font-size: 17px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.tech-col ul { list-style: none; }
.tech-col li { font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--sky); }
.tech-col li:last-child { border-bottom: none; }

/* ===== CTA band ===== */
.cta-band {
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(194,220,244,.14) 0%, transparent 70%),
    var(--charcoal);
  text-align: center;
  padding: 100px 24px;
  color: #fff;
}
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 16px; letter-spacing: -.02em; }
.cta-band p { font-size: 18px; margin-bottom: 32px; color: #aab4bd; }
.cta-fineprint {
  font-family: var(--font-mono);
  font-size: 12px;
  margin: 24px 0 0;
  color: #aab4bd !important;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

/* ===== Footer ===== */
.site-footer { background: var(--footer-bg); color: #8b949c; font-size: 14px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr;
  gap: 40px;
  padding: 72px 24px 52px;
}
.footer-brand { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.footer-brand strong { color: var(--accent); font-weight: 600; }
.site-footer h4 {
  font-family: var(--font-mono);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
}
.site-footer ul { list-style: none; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #8b949c; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: 13px; }
.footer-bottom a { color: #c8d0d6; }
.footer-bottom a:hover { color: #fff; }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .grid-3 { grid-template-columns: 1fr; max-width: 580px; margin: 0 auto; }
  .heritage-grid { grid-template-columns: 1fr; gap: 36px; }
  .heritage-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .approach-arrow { display: none; }
  .approach-step { width: calc(50% - 14px); }
  .section { padding: 80px 0; }

  /* hamburger nav from tablet down — 8 links don't fit */
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px rgba(24,24,24,.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--sky); }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav .nav-cta { text-align: center; margin-top: 12px; padding: 14px 20px; }
}

@media (max-width: 700px) {
  .grid-4 { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .stat:nth-child(3) { border-left: none; }
  .hero { min-height: 580px; }
  .slide { padding: 80px 20px 90px; }
  .hero-ctas .btn { width: 100%; max-width: 320px; }
  .approach-step { width: 100%; max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 44px; }
  .problem-stat { padding: 28px 16px; }
  .container { padding: 0 20px; }
  .heritage-stats { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand-text { font-size: 16px; }
  .stat-num { font-size: 30px; }
  .card, .cap-card, .phase-card, .industry-card { padding: 26px 20px; }
  .chat-user { margin-left: 12px; }
  .chat-bot { margin-right: 8px; }
}

/* respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .cap-card, .phase-card, .industry-card, .approach-step, .btn { transition: none; }
}
