/* Brand colours sampled from the Gan Solutions logo */
:root {
  --navy: #001f4e;
  --navy-2: #0a2c63;
  --blue: #017fdd;
  --blue-soft: #e6f2fc;
  --slate: #565b5f;
  --bg: #f6f8fb;
  --card: #ffffff;
  --line: #dfe5ee;
  --radius: 14px;
  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.site-header, main > section, .site-footer {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand img { height: 47px; width: auto; }
.site-header nav { display: flex; gap: 32px; }
.site-header nav a {
  text-decoration: none; color: var(--slate); font: 600 15px var(--display);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-header nav a:hover { color: var(--navy); border-bottom-color: var(--blue); }

/* Shared */
.eyebrow {
  font: 700 12px/1 var(--display); text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--blue); margin: 0 0 16px;
  display: flex; align-items: center; gap: 10px;
}
/* The logo's blue diagonal, reused as a small marker */
.eyebrow::before {
  content: ""; width: 18px; height: 12px; background: var(--blue);
  clip-path: polygon(45% 0, 100% 0, 55% 100%, 0 100%);
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--navy); }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; }
.button {
  display: inline-block; padding: 14px 24px; border-radius: 8px;
  background: var(--navy); color: #fff; text-decoration: none; font: 700 15px var(--display);
  transition: transform .15s ease, background .15s ease;
}
.button:hover { background: var(--blue); transform: translateY(-1px); }
.button-light { background: #fff; color: var(--navy); }
.button-light:hover { background: var(--blue); color: #fff; }
.section-head { margin-bottom: 40px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 112px; border-bottom: 1px solid var(--line);
}
.hero > *:not(.hero-mark) { position: relative; z-index: 1; }
.hero-mark {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 420px; height: 420px; opacity: .08; z-index: 0; pointer-events: none;
}
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--blue); }
.lede { max-width: 560px; font-size: 20px; color: var(--slate); margin: 28px 0 36px; }

/* Products */
.products { padding: 96px 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.product {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 31, 78, .04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--brand);
}
.product:hover { transform: translateY(-4px); border-color: #c9d6e8; box-shadow: 0 20px 40px -24px rgba(0, 31, 78, .4); }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.logo-tile {
  width: 72px; height: 72px; border-radius: 14px; background: var(--tile);
  display: grid; place-items: center; overflow: hidden;
}
.logo-tile img { width: 60px; height: 60px; object-fit: contain; }
.status {
  font: 700 11px/1 var(--display); text-transform: uppercase; letter-spacing: .1em;
  padding: 7px 10px; border-radius: 6px;
}
.status-live { color: #0b6b3a; background: #e3f5ea; }
.status-dev { color: #8a5a00; background: #fdf1d8; }
.product h3 { font-size: 26px; }
.tagline { font-weight: 600; color: var(--blue); margin: 6px 0 14px; font-size: 16px; }
.product > p:not(.tagline) { margin: 0 0 18px; font-size: 16px; color: var(--slate); }
.facts { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font-size: 13px; font-weight: 500; padding: 5px 10px; border-radius: 6px; background: var(--blue-soft); color: var(--navy-2); }
.product-link {
  margin-top: auto; align-self: flex-start;
  font: 700 14px var(--display); text-decoration: none; padding: 11px 16px; border-radius: 8px;
  background: var(--brand); color: var(--brand-ink);
}
.product-link span { display: inline-block; transition: transform .15s ease; }
.product-link:hover span { transform: translateX(3px); }

/* About */
.about {
  padding: 96px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px;
}
.about .section-head { margin: 0; }
.about-body p { margin: 0 0 18px; font-size: 18px; color: var(--slate); }

/* Contact */
.contact {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff; border-radius: 20px;
  padding: 72px 48px; text-align: center; margin-bottom: 48px;
}
/* Blue diagonal band echoing the logo */
.contact::after {
  content: ""; position: absolute; right: -60px; top: 0; bottom: 0; width: 260px;
  background: var(--blue); opacity: .9;
  clip-path: polygon(70% 0, 100% 0, 30% 100%, 0 100%);
}
.contact > * { position: relative; z-index: 1; }
.contact-mark { margin: 0 auto 20px; width: 56px; height: 56px; }
.contact h2 { color: #fff; }
.contact p { color: #c4d0e3; margin: 14px 0 28px; }

/* Footer */
.site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px 0 48px; color: var(--slate); font-size: 14px;
}
.site-footer img { height: 35px; width: auto; }
.site-footer p { margin: 0; }

@media (max-width: 760px) {
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: 14px; }
  .brand img { height: 38px; }
  .hero { padding: 56px 0 72px; }
  .hero-mark { width: 260px; height: 260px; right: -70px; top: 30%; }
  .products, .about { padding: 64px 0; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .contact { padding: 56px 24px; }
  .contact::after { width: 140px; opacity: .5; }
}
@media (max-width: 420px) {
  .site-header nav a[href="#about"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Consulting */
.consulting { padding: 96px 0; border-top: 1px solid var(--line); }
.section-lede { max-width: 680px; font-size: 18px; color: var(--slate); margin: 18px 0 0; }
.services {
  list-style: none; padding: 0; margin: 0 0 36px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
}
.services li {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: 10px; padding: 22px 22px 18px;
}
.services h3 { font-size: 18px; margin-bottom: 8px; }
.services p { margin: 0; font-size: 15px; color: var(--slate); }
.consulting-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.text-link { font: 700 15px var(--display); color: var(--blue); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
@media (max-width: 760px) { .consulting { padding: 64px 0; } }
.industries { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: -12px 0 32px; }
.industries-label { margin: 0; font: 700 12px/1 var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--slate); }
.industries ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.industries li {
  font: 700 14px var(--display); color: var(--navy);
  padding: 8px 14px; border-radius: 8px; background: var(--blue-soft);
}
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0;
  margin: 0 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats > div { padding: 22px 24px 22px 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dt { font: 800 28px/1.1 var(--display); color: var(--navy); letter-spacing: -0.02em; }
.stats dd { margin: 6px 0 0; font-size: 15px; color: var(--slate); }
.industries { margin-top: 0; }
@media (max-width: 760px) {
  .stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
