/* =========================================================
   JAPI AI — Global Stylesheet
   Modern Minimalist B2B Skill Development Platform
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── Custom Properties ── */
:root {
  --blue:        #0066CC;
  --blue-light:  #E8F1FB;
  --blue-dark:   #004E9A;
  --green:       #00AA00;
  --green-light: #E6F7E6;
  --black:       #0A0A0A;
  --white:       #FAFAFA;
  --gray-50:     #F7F7F7;
  --gray-100:    #F0F0F0;
  --gray-200:    #E0E0E0;
  --gray-400:    #AAAAAA;
  --gray-600:    #666666;
  --border:      rgba(0,0,0,0.08);
  --border-dark: rgba(255,255,255,0.12);

  --font:        'Poppins', sans-serif;
  --radius:      14px;
  --radius-sm:   8px;
  --radius-xs:   6px;
  --shadow:      0 2px 16px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 40px rgba(0,0,0,0.10);
  --shadow-blue: 0 8px 40px rgba(0,102,204,0.18);

  --nav-h:       64px;
  --max-w:       1160px;
  --section-v:   7rem;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: var(--font); }
ul, ol { list-style: none; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
}
.section { padding: var(--section-v) 0; }
.section--dark {
  background: var(--black);
  color: var(--white);
}
.section--light { background: var(--gray-50); }
.section--blue {
  background: var(--blue);
  color: var(--white);
}

/* ── Typography ── */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 1rem;
}
.eyebrow--white { color: rgba(255,255,255,.6); }
.eyebrow--gray  { color: var(--gray-400); }

h1, .h1 {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.04em;
  color: var(--black);
}
h2, .h2 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--black);
}
h3, .h3 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--black);
}
h4, .h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.lead {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-600);
  max-width: 560px;
}
.lead--white { color: rgba(255,255,255,.72); }
p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray-600);
}
.text-white { color: var(--white) !important; }
.text-blue  { color: var(--blue)  !important; }
.text-green { color: var(--green) !important; }
.text-gray  { color: var(--gray-400) !important; }

/* ── Accent marks ── */
.accent-blue  { color: var(--blue); }
.accent-green { color: var(--green); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  letter-spacing: .01em;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}
.btn-dark {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}
.btn-dark:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-outline--white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.btn-outline--white:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.6);
}
.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { gap: 12px; }
.btn--sm { font-size: 13px; padding: 10px 20px; }
.btn--lg { font-size: 16px; padding: 16px 36px; }
.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 2.5rem;
}

/* ── Nav ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(250,250,250,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-logo .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  margin-left: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-600);
  transition: color .15s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--black); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all .2s;
}

/* Mobile nav drawer */
#mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 1.5rem 2.5rem;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}
#mobile-menu .btn { width: 100%; justify-content: center; margin-top: .5rem; }

/* ── Hero ── */
.hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 20%, rgba(0,102,204,.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0,170,0,.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero .eyebrow { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.75rem; }
.hero .lead { margin-bottom: 0; }

/* ── Section header ── */
.section-header {
  margin-bottom: 4rem;
}
.section-header--center { text-align: center; }
.section-header--center .lead { margin: 0 auto; }
.section-header h2 { margin-bottom: 1rem; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-200);
  transform: translateY(-2px);
}
.card--dark {
  background: #111;
  border-color: rgba(255,255,255,.08);
  color: var(--white);
}
.card--dark .h4,
.card--dark h4 { color: var(--white); }
.card--dark p  { color: rgba(255,255,255,.6); }
.card--blue {
  background: var(--blue);
  border-color: transparent;
  color: var(--white);
}

/* ── Grid systems ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Icon badges ── */
.icon-badge {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.icon-badge--blue  { background: var(--blue-light); }
.icon-badge--green { background: var(--green-light); }
.icon-badge--black { background: var(--gray-100); }

/* ── Custom SVG icon sizing ── */
.icon-badge img       { width: 26px; height: 26px; display: block; }
.segment-icon img     { width: 40px; height: 40px; display: block; }
.step-icon img        { width: 22px; height: 22px; display: block; }
.ai-module-icon img   { width: 28px; height: 28px; display: block; }
.person-avatar img    { width: 32px; height: 32px; display: block; }
.value-icon img       { width: 28px; height: 28px; display: block; }
.contact-icon img     { width: 28px; height: 28px; display: block; }
.sf-icon img          { width: 22px; height: 22px; display: block; }
.mc-icon img          { width: 24px; height: 24px; display: block; }
.ci-icon img          { width: 22px; height: 22px; display: block; }
.cert-icon img        { width: 28px; height: 28px; display: block; }

/* ── Tags / Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}
.badge--blue  { background: var(--blue-light);  color: var(--blue); }
.badge--green { background: var(--green-light); color: var(--green); }
.badge--gray  { background: var(--gray-100);    color: var(--gray-600); }
.badge--black { background: var(--black);        color: var(--white); }

/* ── Dividers ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Stats row ── */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.stat {
  flex: 1;
  min-width: 160px;
  padding: 2rem 2.5rem;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat__num {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--black);
  margin-bottom: .4rem;
}
.stat__num .accent-blue { color: var(--blue); }
.stat__label {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-600);
}

/* ── Partner logos ── */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
  margin-top: 3rem;
}
.partner-logo {
  height: 36px;
  object-fit: contain;
  filter: grayscale(1) opacity(.55);
  transition: filter .2s;
}
.partner-logo:hover { filter: grayscale(0) opacity(1); }

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.75rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step__content h4 { margin-bottom: .5rem; }

/* ── Two-column feature row ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: var(--section-v) 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row--reverse .feature-row__visual { order: -1; }

/* ── Quote / Testimonial ── */
.testimonial {
  border-left: 3px solid var(--blue);
  padding: 1.5rem 2rem;
  background: var(--gray-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.testimonial blockquote {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--black);
  font-style: italic;
  margin-bottom: 1rem;
}
.testimonial cite {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  font-style: normal;
}

/* ── CTA Band ── */
.cta-band {
  padding: 5rem 0;
  text-align: center;
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band .lead { margin: 0 auto 2.5rem; }
.cta-band .btn-group { justify-content: center; }

/* ── Footer ── */
footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 2rem;
}
.footer-brand .nav-logo {
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,.5);
  max-width: 260px;
  line-height: 1.7;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1.25rem;
}
.footer-col a {
  display: block;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,.65);
  margin-bottom: .7rem;
  transition: color .15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,.3);
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 5rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,204,.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: .5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,204,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { margin-top: 1.75rem; }

/* ── Check list ── */
.check-list { display: flex; flex-direction: column; gap: .75rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.5;
}
.check-list li::before {
  content: '';
  width: 20px; height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: var(--green-light);
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2300AA00'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}
.check-list--white li { color: rgba(255,255,255,.8); }
.check-list--white li::before {
  background-color: rgba(255,255,255,.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* ── Segment tabs ── */
.segment-tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: 100px;
  padding: 4px;
  width: fit-content;
  margin-bottom: 3rem;
}
.segment-tab {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--gray-600);
  cursor: pointer;
  transition: all .2s;
}
.segment-tab.active {
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow);
}

/* ── Process list (numbered) ── */
.process-list { counter-reset: step-counter; display: flex; flex-direction: column; gap: 2rem; }
.process-item { display: flex; gap: 1.5rem; align-items: flex-start; counter-increment: step-counter; }
.process-item::before {
  content: counter(step-counter, decimal-leading-zero);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  width: 40px; height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* ── Scroll Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Utilities ── */
.mt-1  { margin-top: .5rem;  }
.mt-2  { margin-top: 1rem;   }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem;   }
.mt-6  { margin-top: 3rem;   }
.mt-8  { margin-top: 4rem;   }
.mb-2  { margin-bottom: 1rem; }
.mb-4  { margin-bottom: 2rem; }
.gap-1 { gap: .5rem; }
.text-center { text-align: center; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-700 { font-weight: 700; }
.inline-flex { display: inline-flex; align-items: center; gap: 8px; }
.w-full { width: 100%; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root { --section-v: 5.5rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { gap: 3rem; }
}

@media (max-width: 768px) {
  :root { --section-v: 4rem; }
  .container { padding: 0 1.5rem; }
  .nav-links,
  .nav-cta .btn:not(.btn-primary) { display: none; }
  .nav-hamburger { display: flex; }

  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .stats-row { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
  .stat:last-child { border-bottom: none; }

  .feature-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-row--reverse .feature-row__visual { order: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .form-row { grid-template-columns: 1fr; }
  .partners-row { gap: 1.5rem 2rem; }
  .partner-logo { height: 28px; }

  h1, .h1 { font-size: clamp(36px, 9vw, 52px); }
  h2, .h2 { font-size: clamp(28px, 7vw, 42px); }

  .hero { padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 3.5rem; }
  .btn-group { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .segment-tabs { flex-wrap: wrap; border-radius: var(--radius-sm); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Language Toggle ── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
}
.lang-btn {
  background: none;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  color: var(--gray-400);
  padding: 3px 7px;
  border-radius: 5px;
  font-family: inherit;
  transition: color .15s, border-color .15s, background .15s;
  line-height: 1;
}
.lang-btn:hover { color: var(--black); border-color: var(--border); }
.lang-btn.active {
  color: var(--blue);
  background: var(--blue-light);
  border-color: transparent;
}
.lang-sep {
  font-size: 11px;
  color: var(--border);
  user-select: none;
}
@media (max-width: 768px) {
  .lang-switch { margin-left: 0; }
}
