/* LMS Marketing Agency — Home */

:root {
  --blue: #1C5FA8;
  --blue-deep: #0F3A6B;
  --blue-ink: #0A2545;
  --yellow: #FFD100;
  --yellow-soft: #FFE66B;
  --cream: #E9E2C9;
  --cream-light: #F4EFDD;
  --paper: #FAF7ED;
  --ink: #0A2545;
  --line: #0A2545;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection { background: var(--yellow); color: var(--blue-ink); }

.display {
  font-family: 'Caprasimo', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.92;
}
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =================== NAV =================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  backdrop-filter: blur(10px);
  background: rgba(250, 247, 237, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-color: rgba(10, 37, 69, 0.08); background: rgba(250, 247, 237, 0.88); }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Caprasimo', serif;
  color: var(--blue);
  font-size: 22px;
}
.nav-logo-mark {
  width: 34px; height: 34px;
  background: var(--blue); border-radius: 8px;
  display: grid; place-items: center;
  color: var(--yellow);
  font-family: 'Caprasimo', serif;
  font-size: 16px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--ink); text-decoration: none;
  font-size: 14px; font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--yellow);
  transition: width 0.25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--yellow);
  color: var(--blue-ink);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--blue-ink);
  box-shadow: 0 2px 0 var(--blue-ink);
}
.nav-cta:hover {
  background: var(--yellow-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--blue-ink);
}
.nav-cta::after { display: none !important; }

/* =================== HERO =================== */
.hero {
  min-height: 100vh;
  background: var(--blue);
  color: var(--paper);
  padding: 140px 32px 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-bg-pattern {
  position: absolute; inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 30%, var(--yellow) 1px, transparent 1px),
    radial-gradient(circle at 70% 70%, var(--yellow) 1px, transparent 1px);
  background-size: 40px 40px, 55px 55px;
}
.hero-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 209, 0, 0.4);
  border-radius: 999px;
  color: var(--yellow);
  margin-bottom: 32px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero h1 {
  font-family: 'Caprasimo', serif;
  font-size: clamp(44px, 5.6vw, 88px);
  line-height: 0.95;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.hero h1 .accent { color: var(--yellow); }
.hero h1 .stroke {
  color: transparent;
  -webkit-text-stroke: 2px var(--yellow);
}
.hero-sub {
  max-width: 620px;
  font-size: 19px;
  line-height: 1.55;
  opacity: 0.9;
  margin-bottom: 44px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.2s, background 0.2s;
  border: none; cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--yellow); color: var(--blue-ink);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--yellow-soft); }
.btn-ghost {
  background: transparent; color: var(--paper);
  border: 1px solid rgba(250, 247, 237, 0.25);
}
.btn-ghost:hover { background: rgba(250, 247, 237, 0.08); }

.hero-meta {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(250, 247, 237, 0.15);
  padding-top: 28px;
}
.hero-meta-item .num {
  font-family: 'Caprasimo', serif;
  font-size: 38px;
  color: var(--yellow);
  line-height: 1;
}
.hero-meta-item .lbl {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.75;
  max-width: 200px;
}

/* hero illustration — now part of grid, not absolute */
.hero-illus {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  justify-self: end;
  pointer-events: none;
}

/* =================== MARQUEE =================== */
.marquee {
  background: var(--yellow);
  color: var(--blue-ink);
  padding: 18px 0;
  border-top: 2px solid var(--blue-ink);
  border-bottom: 2px solid var(--blue-ink);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex; gap: 48px; align-items: center;
  animation: scroll 40s linear infinite;
  padding-right: 48px;
}
.marquee-item {
  font-family: 'Caprasimo', serif;
  font-size: 28px;
  display: inline-flex; align-items: center; gap: 48px;
}
.marquee-item::after {
  content: '✦'; color: var(--blue); font-size: 20px;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =================== SECTION SCAFFOLD =================== */
section { position: relative; }
.section-pad { padding: 120px 32px; }
.container { max-width: 1400px; margin: 0 auto; }
.section-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  margin-bottom: 64px;
  align-items: start;
}
.section-head .label {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 14px;
}
.section-head .label .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--blue);
  opacity: 0.6;
}
.section-head .label .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.section-head h2 {
  font-family: 'Caprasimo', serif;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  margin: 0;
  color: var(--blue-ink);
  letter-spacing: -0.02em;
}
.section-head h2 .hl {
  color: var(--blue);
  position: relative;
}
.section-head h2 .underline {
  background: linear-gradient(transparent 65%, var(--yellow) 65%);
  padding: 0 4px;
}

/* =================== SERVICES =================== */
.services { background: var(--paper); }
.service-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
}
.service-list {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(10, 37, 69, 0.12);
}
.service {
  display: grid;
  grid-template-columns: 80px 1fr 240px 180px;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid rgba(10, 37, 69, 0.12);
  cursor: pointer;
  transition: background 0.25s, padding 0.25s;
  position: relative;
}
.service:hover { background: var(--cream-light); padding-left: 16px; padding-right: 16px; }
.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--blue);
  opacity: 0.6;
}
.service-title {
  font-family: 'Caprasimo', serif;
  font-size: clamp(28px, 3.5vw, 46px);
  color: var(--blue-ink);
  line-height: 1;
  letter-spacing: -0.01em;
}
.service-desc {
  font-size: 14px;
  color: rgba(10, 37, 69, 0.7);
  line-height: 1.5;
}
.service-illus {
  width: 160px; height: 110px;
  justify-self: end;
  border-radius: 12px;
  background: var(--cream);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s;
}
.service:hover .service-illus { transform: rotate(-3deg) scale(1.05); }

/* =================== ABOUT =================== */
.about {
  background: var(--cream);
  padding: 140px 32px;
  position: relative;
  overflow: hidden;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.about-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  min-height: 0;
}
.about-col > * { flex-shrink: 0; }
.about-col .about-card-body,
.about-col .about-stat-hero { flex: 1 1 auto; }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.about-value {
  background: var(--paper);
  border: 1px solid rgba(10, 37, 69, 0.08);
  border-radius: 16px;
  padding: 18px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.about-value .v-num { color: var(--blue); opacity: 0.55; font-size: 11px; }
.about-value .v-title {
  font-family: 'Caprasimo', serif;
  color: var(--blue-ink);
  font-size: 22px;
  line-height: 1;
}
.about h2 {
  font-family: 'Caprasimo', serif;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1;
  color: var(--blue-ink);
  margin: 24px 0 28px;
  letter-spacing: -0.02em;
}
.about-card {
  background: var(--paper);
  border-radius: 20px;
  border: 1px solid rgba(10, 37, 69, 0.08);
  padding: 32px 32px;
}
.about-card-kicker {
  color: var(--blue);
  opacity: 0.7;
  margin-bottom: 14px;
}
.about-card-body { flex: 1; display: flex; flex-direction: column; }
.about-card-body p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(10, 37, 69, 0.82);
  margin: 0 0 16px;
}
.about-card-body p:last-child { margin-bottom: 0; }
.about-card-body p strong { color: var(--blue); font-weight: 600; }

.about-vision {
  padding: 28px 32px;
  background: var(--blue);
  color: var(--paper);
  border-radius: 20px;
  display: flex; gap: 18px; align-items: flex-start;
}
.about-vision .q {
  font-family: 'Caprasimo', serif;
  font-size: 48px;
  color: var(--yellow);
  line-height: 0.7;
  flex-shrink: 0;
}
.about-vision p {
  margin: 0; font-size: 16px; line-height: 1.5;
}

.about-stat {
  background: var(--paper);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(10, 37, 69, 0.08);
  position: relative;
  overflow: hidden;
}
.about-stat-hero {
  background: var(--yellow);
  border-color: var(--blue-ink);
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 240px;
}
.about-stat-hero .big { color: var(--blue-ink); font-size: 128px; }
.about-stat-hero .big sup { color: var(--blue); }
.about-stat-hero .lbl { color: var(--blue-ink); opacity: 0.8; max-width: 280px; }
.about-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.about-stat .big {
  font-family: 'Caprasimo', serif;
  font-size: 64px;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -0.03em;
}
.about-stat .big sup { font-size: 24px; color: var(--yellow); vertical-align: top; }
.about-stat .lbl {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(10, 37, 69, 0.7);
  line-height: 1.4;
}
.about-stat .illus {
  position: absolute;
  right: -12px; bottom: -12px;
  width: 110px; height: 110px;
  opacity: 0.9;
  pointer-events: none;
}
.about-stat .illus.small { width: 80px; height: 80px; right: -6px; bottom: -6px; }

.about-stat-based {
  background: var(--blue-ink);
  color: var(--paper);
  border: none;
}
.about-stat-based .based-kicker { color: var(--yellow); margin-bottom: 12px; }
.about-stat-based .based-city {
  font-family: 'Caprasimo', serif;
  font-size: 36px;
  color: var(--paper);
  line-height: 1;
  margin-bottom: 12px;
}
.about-stat-based .based-sub {
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.5;
}

/* =================== FAQ =================== */
.faq { background: var(--paper); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(10, 37, 69, 0.14);
}
.faq-item {
  border-bottom: 1px solid rgba(10, 37, 69, 0.14);
  padding: 28px 0;
  cursor: pointer;
}
.faq-q {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: center;
}
.faq-q .n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--blue);
  opacity: 0.6;
  letter-spacing: 0.08em;
}
.faq-q .t {
  font-family: 'Caprasimo', serif;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--blue-ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.faq-q .plus {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream);
  display: grid; place-items: center;
  color: var(--blue-ink);
  font-size: 18px;
  transition: transform 0.3s, background 0.3s;
  flex-shrink: 0;
}
.faq-item.open .plus { background: var(--yellow); transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-a { max-height: 400px; padding-top: 20px; }
.faq-a > div:first-child { /* spacer */ }
.faq-a p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(10, 37, 69, 0.8);
  max-width: 680px;
  grid-column: 2;
}

/* =================== PROCESS =================== */
.process { background: var(--blue-deep); color: var(--paper); }
.process .section-head h2 { color: var(--paper); }
.process .section-head .label .num,
.process .section-head .label .tag { color: var(--yellow); opacity: 1; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(250, 247, 237, 0.12);
  border: 1px solid rgba(250, 247, 237, 0.12);
  border-radius: 18px;
  overflow: hidden;
}
.process-step {
  background: var(--blue-deep);
  padding: 40px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background 0.3s;
  min-height: 280px;
  position: relative;
  cursor: pointer;
}
.process-step:hover { background: var(--blue); }
.process-step .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--yellow);
}
.process-step h3 {
  font-family: 'Caprasimo', serif;
  font-size: 28px;
  margin: 0;
  line-height: 1;
  color: var(--paper);
}
.process-step p {
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.8;
  margin: 0;
}
.process-step .icon {
  margin-top: auto;
  width: 56px; height: 56px;
  color: var(--yellow);
}

/* =================== CLIENTS =================== */
.clients { background: var(--paper); padding: 100px 32px; }
.clients h2 {
  font-family: 'Caprasimo', serif;
  font-size: clamp(32px, 4vw, 48px);
  text-align: center;
  color: var(--blue-ink);
  margin: 0 0 12px;
}
.clients .sub {
  text-align: center;
  color: rgba(10, 37, 69, 0.7);
  max-width: 560px;
  margin: 0 auto 56px;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.client-card {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid rgba(10, 37, 69, 0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
  padding: 18px 14px 14px;
  text-align: center;
  line-height: 1;
}
.client-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.client-logo {
  max-width: 78%;
  max-height: 62%;
  object-fit: contain;
  display: block;
}
.client-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(10, 37, 69, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.client-card .note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  opacity: 0.5;
  position: absolute;
  top: 10px; left: 12px;
  color: var(--blue-ink);
}

/* =================== RESULTS / NUMBERS =================== */
.results {
  background: var(--yellow);
  padding: 100px 32px;
  color: var(--blue-ink);
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px; margin: 0 auto;
}
.result-card {
  padding: 32px 0;
  border-top: 2px solid var(--blue-ink);
}
.result-card .big {
  font-family: 'Caprasimo', serif;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.result-card .lbl {
  margin-top: 16px;
  font-size: 15px;
  max-width: 280px;
  line-height: 1.5;
}

/* =================== CTA =================== */
.cta {
  background: var(--blue);
  color: var(--paper);
  padding: 140px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta h2 {
  font-family: 'Caprasimo', serif;
  font-size: clamp(52px, 9vw, 140px);
  line-height: 0.9;
  margin: 0 0 32px;
  letter-spacing: -0.02em;
}
.cta h2 .accent { color: var(--yellow); }
.cta p {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 18px;
  opacity: 0.85;
}

/* =================== FOOTER =================== */
.footer {
  background: var(--blue-ink);
  color: var(--paper);
  padding: 80px 32px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1400px; margin: 0 auto 60px;
}
.footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 16px;
  letter-spacing: 0.08em;
}
.footer a { color: var(--paper); text-decoration: none; opacity: 0.75; display: block; padding: 4px 0; font-size: 14px; }
.footer a:hover { opacity: 1; color: var(--yellow); }
.footer-brand-name {
  font-family: 'Caprasimo', serif;
  font-size: 32px;
  color: var(--yellow);
  margin-bottom: 12px;
}
.footer-brand p {
  max-width: 360px;
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.55;
}
.footer-bottom {
  max-width: 1400px; margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 247, 237, 0.12);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; opacity: 0.6;
  font-family: 'JetBrains Mono', monospace;
}

/* =================== REVEAL ANIM =================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s, transform 0.8s; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =================== TWEAKS =================== */
.tweaks-panel {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--paper);
  border: 1px solid rgba(10, 37, 69, 0.15);
  border-radius: 14px;
  padding: 16px;
  width: 280px;
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(10, 37, 69, 0.2);
  font-size: 13px;
}
.tweaks-panel h4 {
  font-family: 'JetBrains Mono', monospace;
  margin: 0 0 12px; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue);
}
.tweaks-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; gap: 8px; }
.tweaks-row label { color: rgba(10, 37, 69, 0.8); }
.tweaks-swatches { display: flex; gap: 6px; }
.tweaks-swatches button {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
}
.tweaks-swatches button.active { border-color: var(--blue-ink); }

/* =================== RESPONSIVE =================== */
@media (max-width: 1000px) {
  .hero-layout { grid-template-columns: 1fr; gap: 32px; }
  .hero-illus { max-width: 320px; justify-self: center; }
  .hero h1 { max-width: 100%; font-size: clamp(40px, 9vw, 64px); }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .service { grid-template-columns: 50px 1fr; padding: 24px 0; }
  .service-desc, .service-illus { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .about-card { padding: 24px; }
  .about-stat-hero .big { font-size: 88px; }
  .faq-q { grid-template-columns: 1fr auto; gap: 16px; }
  .faq-q .n { display: none; }
  .faq-a { grid-template-columns: 1fr; }
  .faq-a p { grid-column: 1; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .results-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-pad { padding: 80px 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
}
