/* KSG Global — corporate site
   Restrained navy / gray for the company.
   CELODA color is limited to the CELODA section.
   Do not put overflow: hidden on the CELODA logo or its parents.
*/

:root {
  --ksg-navy: #0b1f3a;
  --ksg-blue: #2563eb;
  --ksg-text: #172033;
  --ksg-muted: #667085;
  --ksg-border: #e5e7eb;
  --ksg-background: #ffffff;
  --ksg-soft: #f7f9fc;

  --celoda-navy: #081c44;
  --celoda-blue: #2563ff;
  --celoda-aqua: #00dcca;
  --celoda-coral: #ff7a6b;
  --celoda-slate: #203454;
  --celoda-offwhite: #f8fafc;

  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 72px;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ksg-text);
  background: var(--ksg-background);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--ksg-blue);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ksg-blue);
  outline-offset: 3px;
}

::selection {
  background: #dbe7ff;
  color: var(--ksg-navy);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 50;
  padding: 0.5rem 0.75rem;
  background: var(--ksg-navy);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

.skip-link:focus {
  top: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.measure {
  max-width: 42rem;
}

#about .measure {
  max-width: 46rem;
}

h1,
h2 {
  color: var(--ksg-navy);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.75rem, 4.6vw, 3.25rem);
}

h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
}

h3 {
  color: var(--ksg-navy);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--ksg-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.wordmark {
  color: var(--ksg-navy);
  font-size: 1.5625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.wordmark:hover {
  color: var(--ksg-blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ksg-navy);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ksg-text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a:not(.btn):hover {
  color: var(--ksg-blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--ksg-navy);
  color: #fff;
}

.btn-primary:hover {
  background: #163056;
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--ksg-navy);
  border-color: var(--ksg-border);
}

.btn-secondary:hover {
  background: var(--ksg-soft);
  color: var(--ksg-navy);
}

.btn-celoda {
  background: var(--celoda-navy);
  color: #fff;
}

.btn-celoda:hover {
  background: #102a5c;
  color: #fff;
}

.nav-cta {
  min-height: 40px;
  padding: 0.45rem 0.9rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  width: 34rem;
  height: 34rem;
  right: -10rem;
  top: -16rem;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0) 68%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.lede {
  margin-top: 1.15rem;
  max-width: 38rem;
  color: var(--ksg-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--ksg-border);
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.band-soft {
  background: var(--ksg-soft);
}

.band-celoda {
  background: #f2f6fb;
}

.measure p + p,
#approach p + p,
#contact p + p {
  margin-top: 0.85rem;
}

#approach .container > *,
#contact .container > * {
  max-width: 46rem;
}

.measure .product-note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ksg-border);
  color: var(--ksg-navy);
  font-weight: 600;
}

.card-grid,
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.card {
  background: #fff;
  border: 1px solid var(--ksg-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
}

.card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  border-radius: 8px;
  background: var(--ksg-soft);
  color: var(--ksg-navy);
}

.icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p,
.features p {
  color: var(--ksg-muted);
  font-size: 0.975rem;
  line-height: 1.6;
}

/* CELODA panel. Overflow stays visible so the logo and icon are never cropped. */
.celoda-frame,
.celoda-panel,
.celoda-logo-wrap,
.band-celoda {
  overflow: visible;
}

.celoda-frame {
  background: #fff;
  border: 1px solid #e4e9f2;
  border-radius: 16px;
}

.celoda-accent {
  height: 4px;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(90deg, var(--celoda-blue), var(--celoda-aqua) 52%, var(--celoda-coral));
}

.celoda-panel {
  padding: clamp(1.35rem, 3vw, 2.6rem);
}

.celoda-kicker {
  margin-bottom: 0.85rem;
  color: var(--celoda-slate);
  font-size: 0.9375rem;
  font-weight: 600;
}

.celoda-logo-wrap {
  width: min(26rem, 100%);
  margin: 0 0 0.35rem;
  padding: 0.45rem 0.35rem 0.2rem 0.1rem;
  line-height: 0;
}

.celoda-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.celoda-tagline {
  margin-top: 0.85rem;
  color: var(--celoda-slate);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.celoda-copy {
  max-width: 42rem;
  margin-top: 1rem;
}

.celoda-copy p + p {
  margin-top: 0.85rem;
}

.features li {
  background: var(--celoda-offwhite);
  border-radius: 10px;
  padding: 1rem 1rem 1.05rem;
  border-top: 3px solid var(--feature-accent, var(--celoda-blue));
}

.features li:nth-child(1) {
  --feature-accent: var(--celoda-blue);
}

.features li:nth-child(2) {
  --feature-accent: var(--celoda-aqua);
}

.features li:nth-child(3) {
  --feature-accent: var(--celoda-coral);
}

.features h3 {
  margin-bottom: 0.35rem;
  color: var(--celoda-navy);
}

.celoda-action {
  margin-top: 1.5rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.35rem;
  color: var(--ksg-navy);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  overflow-wrap: anywhere;
  text-underline-offset: 0.18em;
}

.site-footer {
  background: var(--ksg-navy);
  color: #fff;
  padding: 2.5rem 0 1.5rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer a:focus-visible {
  outline-color: #fff;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
}

.footer-name {
  font-weight: 600;
}

.footer-tag {
  max-width: 28rem;
  margin-top: 0.35rem;
  color: #d5dbe3;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.copyright {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #c5ceda;
  font-size: 0.875rem;
}

.legal {
  padding: 3rem 0 4.5rem;
}

.legal h1 {
  margin-bottom: 0.75rem;
}

.legal h2 {
  margin-top: 2rem;
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
}

.legal p + p,
.legal ul {
  margin-top: 0.75rem;
}

.legal ul {
  padding-left: 1.15rem;
  list-style: disc;
}

.legal li + li {
  margin-top: 0.35rem;
}

.legal a {
  text-underline-offset: 0.15em;
}

.legal-meta {
  color: var(--ksg-muted);
  font-size: 0.95rem;
}

.not-found {
  padding: 4.5rem 0 5.5rem;
}

.not-found p {
  margin-top: 0.85rem;
  max-width: 28rem;
  color: var(--ksg-muted);
}

.not-found .btn {
  margin-top: 1.5rem;
}

@media (max-width: 960px) {
  :root {
    --header-h: 64px;
  }

  .wordmark {
    font-size: 1.3125rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    padding: 0.35rem 0 1rem;
    background: #fff;
    border-bottom: 1px solid var(--ksg-border);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a:not(.btn),
  .site-nav .nav-cta {
    width: min(var(--max), calc(100% - 2.5rem));
    margin-inline: auto;
    min-height: 44px;
  }

  .site-nav a:not(.btn) {
    display: flex;
    align-items: center;
  }

  .nav-cta {
    margin-top: 0.35rem;
  }
}

@media (max-width: 860px) {
  .card-grid,
  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3rem 0 2.75rem;
  }

  .hero::before {
    width: 18rem;
    height: 18rem;
    right: -6rem;
    top: -8rem;
  }

  .section {
    padding: 3.25rem 0;
  }
}

@media (min-width: 1100px) {
  .hero {
    padding: 5.5rem 0 5rem;
  }

  .section {
    padding: 5.25rem 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
