:root {
  --ct-ink: #101b2d;
  --ct-surface: #f4f7fb;
  --ct-card: #ffffff;
  --ct-muted: #59677a;
  --ct-line: #dfe6ef;
  --ct-accent: #f05a2a;
  --ct-accent-deep: #cd4219;
  --ct-teal: #0aaea4;
  --ct-gold: #f9ad19;
}

#navbar-logo {
  background: url("/assets/img/charactech-logo.png") center / contain no-repeat;
  height: 30px;
  width: 30px;
}
#navbar-logo img { opacity: 0; }

@media (prefers-color-scheme: dark) {
  :root {
    --ct-ink: #e8eef7;
    --ct-surface: #101827;
    --ct-card: #172235;
    --ct-muted: #aebdce;
    --ct-line: #2b3a50;
    --ct-accent: #ff6b38;
    --ct-accent-deep: #e95120;
  }
}

.ct-home {
  background: var(--ct-surface);
  color: var(--ct-ink);
  margin: 0 !important;
  padding: 0 !important;
  min-height: calc(100dvh - 64px);
}

.ct-home * { box-sizing: border-box; }

.ct-hero,
.ct-intro,
.ct-bottom-cta {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.ct-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  align-items: center;
  gap: 64px;
  min-height: min(720px, calc(100dvh - 64px));
  padding: 72px 0;
}

.ct-kicker {
  color: var(--ct-teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  margin: 0 0 22px;
}

.ct-hero h1,
.ct-intro h2,
.ct-bottom-cta h2 {
  color: var(--ct-ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 750;
  letter-spacing: -.055em;
  margin: 0;
}

.ct-hero h1 {
  font-size: clamp(48px, 6.1vw, 82px);
  line-height: 1.01;
}

.ct-lede {
  color: var(--ct-muted);
  font-size: 18px;
  line-height: 1.75;
  margin: 28px 0 0;
  max-width: 35rem;
}

.ct-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.ct-button {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 9px;
  justify-content: center;
  line-height: 1;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none !important;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.ct-button:active { transform: translateY(1px); }
.ct-button-primary { background: var(--ct-accent); color: #fff !important; }
.ct-button-primary:hover { background: var(--ct-accent-deep); }
.ct-button-secondary { border: 1px solid var(--ct-line); color: var(--ct-ink) !important; }
.ct-button-secondary:hover { border-color: var(--ct-teal); }

.ct-hero-mark {
  align-items: center;
  background: var(--ct-card);
  border: 1px solid var(--ct-line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 440px;
  overflow: hidden;
  position: relative;
}

.ct-hero-mark::before,
.ct-hero-mark::after {
  border-radius: 999px;
  content: "";
  position: absolute;
}
.ct-hero-mark::before { background: color-mix(in srgb, var(--ct-gold) 16%, transparent); height: 330px; right: -120px; top: -170px; width: 330px; }
.ct-hero-mark::after { background: color-mix(in srgb, var(--ct-teal) 14%, transparent); bottom: -190px; height: 340px; left: -150px; width: 340px; }

.ct-logo-frame {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(22, 38, 61, .12);
  display: grid;
  place-items: center;
  padding: 30px;
  position: relative;
  transform: rotate(-7deg);
  z-index: 1;
}
.ct-logo-frame img { display: block; height: 185px; object-fit: contain; width: 185px; }
.ct-mark-label { color: var(--ct-muted); font-size: 11px; font-weight: 700; letter-spacing: .16em; line-height: 1.7; margin-top: 42px; position: relative; text-align: center; z-index: 1; }

.ct-intro { padding: 80px 0 96px; }
.ct-intro-heading { max-width: 680px; }
.ct-intro h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.08; }

.ct-capabilities { display: grid; gap: 16px; grid-template-columns: 1.15fr .85fr .85fr; margin-top: 42px; }
.ct-capability { background: var(--ct-card); border: 1px solid var(--ct-line); border-radius: 16px; min-height: 230px; padding: 30px; }
.ct-capability > div { color: var(--ct-teal); margin-bottom: 44px; }
.ct-capability h3 { color: var(--ct-ink); font-size: 20px; margin: 0 0 10px; }
.ct-capability p { color: var(--ct-muted); line-height: 1.7; margin: 0; }
.ct-capability-accent { background: var(--ct-ink); border-color: var(--ct-ink); }
.ct-capability-accent h3 { color: #fff; }
.ct-capability-accent p { color: #c5d0df; }
.ct-capability-accent > div { color: var(--ct-gold); }

.ct-bottom-cta { align-items: center; border-top: 1px solid var(--ct-line); display: flex; gap: 28px; justify-content: space-between; padding: 46px 0 64px; }
.ct-bottom-cta h2 { font-size: clamp(28px, 3vw, 40px); }
.ct-bottom-cta p { color: var(--ct-muted); margin: 10px 0 0; }

@media (prefers-reduced-motion: reduce) { .ct-button { transition: none; } }
@media (max-width: 767px) {
  .ct-hero, .ct-intro, .ct-bottom-cta { width: min(100% - 32px, 560px); }
  .ct-hero { display: flex; flex-direction: column; align-items: stretch; gap: 42px; min-height: 0; padding: 52px 0 64px; }
  .ct-hero h1 { font-size: clamp(44px, 13vw, 62px); }
  .ct-lede { font-size: 16px; }
  .ct-hero-mark { min-height: 310px; }
  .ct-logo-frame { padding: 20px; }
  .ct-logo-frame img { height: 130px; width: 130px; }
  .ct-mark-label { margin-top: 26px; }
  .ct-intro { padding: 56px 0 64px; }
  .ct-capabilities { grid-template-columns: 1fr; }
  .ct-capability { min-height: 0; }
  .ct-capability > div { margin-bottom: 30px; }
  .ct-bottom-cta { align-items: flex-start; flex-direction: column; padding: 32px 0 44px; }
}
