/* axg.so: the public page. Dark navy by default with a light/dark switch; AXG blue and the
   ERP's typeface; no build step. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root, [data-theme="dark"] {
  --bg: #0b1220;
  --surface: #131c2e;
  --text: #f1f4f8;
  --muted: #9aa6b8;
  --line: #1e293b;
  --accent: #4ba3f0;        /* AXG blue, lifted for dark backgrounds */
  --button: #0077d5;
  --button-hover: #1688e6;
  --icon-bg: #16213a;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --text: #0f1726;
  --muted: #5a6577;
  --line: #e2e7ee;
  --accent: #0077d5;
  --button: #0077d5;
  --button-hover: #0066b8;
  --icon-bg: #eaf3fc;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

.on-light { display: none; }
[data-theme="light"] .on-light { display: block; }
[data-theme="light"] .on-dark { display: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; }
.logo { height: 28px; width: auto; }
nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
nav a { position: relative; text-decoration: none; color: var(--muted); padding: 6px 0; }
nav a:hover, nav a.current { color: var(--text); }
nav a.current::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent); }
.theme {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--surface); color: var(--text); cursor: pointer;
}
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme .moon { display: none; }
[data-theme="light"] .theme .sun { display: none; }
[data-theme="light"] .theme .moon { display: block; }

/* Hero */
.hero { padding: 40px 0 0; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; } }
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-size: clamp(38px, 6.4vw, 66px); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
h1 span { color: var(--accent); }
.lead { margin: 24px 0 0; max-width: 34ch; font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); }
.rule { display: block; width: 56px; height: 2px; margin-top: 36px; background: var(--accent); opacity: 0.7; }
.hero-photo { margin: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 16 / 9; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* The four points under the hero */
.points {
  list-style: none; margin: 48px 0 0; padding: 32px 0; display: grid; gap: 28px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) { .points { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .points { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .points li { padding: 0 24px; border-left: 1px solid var(--line); }
  .points li:first-child { padding-left: 0; border-left: 0; }
}
.points li { display: flex; gap: 18px; align-items: flex-start; }
.icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--icon-bg); color: var(--accent); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.points h2 { margin: 4px 0 4px; font-size: 18px; font-weight: 600; }
.points p { margin: 0; font-size: 15px; color: var(--muted); }

/* About */
.about { padding: 80px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 76px; }
.about-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.title { margin: 0; max-width: 18ch; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.prose { max-width: 60ch; color: var(--muted); font-size: 17px; }
.prose p { margin: 0 0 16px; }
.prose h3 { margin: 28px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); }

/* Footer: company, links, staff login */
.foot { padding: 40px 0 48px; }
.foot-row { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .foot-row { grid-template-columns: 1fr auto 1fr; } }
.foot-id { display: flex; align-items: center; gap: 24px; }
.foot-id .logo { height: 26px; }
.foot-id address { display: grid; gap: 2px; padding-left: 24px; border-left: 1px solid var(--line); font-style: normal; font-size: 15px; color: var(--muted); }
.foot-id strong { font-weight: 500; color: var(--muted); }
.foot-id a { color: var(--accent); text-decoration: none; font-weight: 500; }
.foot-id a:hover { text-decoration: underline; }
.foot-links { gap: 32px; }
.foot-links a { color: var(--text); padding: 0; }
.login {
  display: inline-flex; align-items: center; justify-self: start; gap: 12px; height: 56px; padding: 0 28px; border-radius: 10px;
  background: var(--button); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none;
}
.login:hover { background: var(--button-hover); }
@media (min-width: 900px) { .login { justify-self: end; } }
.login svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
