/* Inqb8 website. Plain CSS, no build step; the only font is the self-hosted Inter. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2?v=3100e775e861") format("woff2");
}

:root {
  --ink: #0D0F14;
  --ink-2: #1E2128;
  --ink-3: #2C303A;
  --smoke: #9CA3AF;
  --paper: #F4F4F0;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  /* Accent for text and thin lines on the dark background (WCAG AA contrast);
     --accent stays the button background. */
  --accent-text: #60A5FA;
  /* Product colours, sampled from each product's own app icon. */
  --anserve: #5C54ED;
  --creditable: #FB6504;
  --radius-s: 8px;
  --radius-l: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  /* Full height, so the footer sits at the bottom of short pages. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
main { flex: 1; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(13, 15, 20, 0.92); border-bottom: 1px solid var(--ink-3); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.logo { color: var(--paper); }
.logo svg { display: block; height: 1.9rem; width: auto; }
.nav-links { display: flex; gap: 1.75rem; font-size: 0.9rem; }
.nav-links a { color: var(--smoke); text-decoration: none; }
.nav-links a:hover { color: var(--paper); }

/* Text */
.eyebrow {
  color: var(--accent-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.accent { color: var(--accent); }
.lead { color: var(--smoke); font-size: 1.15rem; max-width: 36rem; margin-top: 1.75rem; }
h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 2.5rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; }

/* Sections: separated by background only */
.hero { padding: 6rem 0 5rem; }
.section { padding: 6rem 0; }
.section.alt { background: rgba(30, 33, 40, 0.35); }

/* Hero: text plus a portfolio panel on wide screens */
.hero-panel { display: none; }
@media (min-width: 64rem) {
  .hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 4rem; }
  .hero-panel {
    display: grid;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--ink-2);
    border: 1px solid var(--ink-3);
    border-radius: var(--radius-l);
  }
}
.panel-label { color: var(--smoke); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--ink);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-s);
  text-decoration: none;
  transition: border-color 0.15s;
}
.tile:hover { border-color: var(--accent-text); }
.tile-text { flex: 1; min-width: 0; }
.tile-name { display: block; font-weight: 700; }
.tile-desc { display: block; color: var(--smoke); font-size: 0.85rem; }
.tile .badge { margin-bottom: 0; }

/* Product mark: a 40 px tile in the product's own colour */
.mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-s);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}
.mark.anserve { background: var(--anserve); }
.mark.creditable { background: var(--creditable); }

/* Buttons and links */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-s);
  text-decoration: none;
}
.button:hover { background: var(--accent-hover); }
.link { color: var(--smoke); text-decoration: none; }
.link:hover { color: var(--paper); }
/* Secondary action next to a button: the arrow link style of "anserve.ai →" */
.link-arrow { color: var(--accent-text); font-size: 0.95rem; font-weight: 600; text-decoration: none; text-underline-offset: 3px; }
.link-arrow:hover { text-decoration: underline; }

/* Cards */
.grid { display: grid; gap: 1.5rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.grid.three { grid-template-columns: 1fr; }
@media (min-width: 48rem) {
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}
.card { background: var(--ink); border: 1px solid var(--ink-3); border-radius: var(--radius-l); padding: 2rem; }
.card p { color: var(--smoke); font-size: 0.95rem; }

/* Information cards ("How Inqb8 works"): no border, numbered */
.card.info { background: none; border: 0; padding: 0; }
.step { display: block; color: var(--accent-text); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.75rem; }

/* Link cards (products) */
.card.product {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.card.product:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.card.product .more { margin-top: auto; padding-top: 1.25rem; }
.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--accent-text);
  border-radius: var(--radius-s);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.more { display: inline-block; color: var(--accent-text); font-size: 0.9rem; font-weight: 600; }

/* Trust line under the products */
.trust { display: flex; align-items: center; gap: 0.6rem; margin-top: 2rem; color: var(--smoke); font-size: 0.95rem; }
.trust svg { flex: none; width: 18px; height: 18px; }
.trust strong { color: var(--paper); font-weight: 600; }

/* Contact */
.section.contact { padding: 4rem 0; }
.contact-row h2 { margin-bottom: 0; }
@media (min-width: 48rem) {
  .contact-row { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
  .contact-row .actions { margin-top: 0; flex: none; }
}

/* Footer */
.footer { border-top: 1px solid var(--ink-3); padding: 2rem 0; color: var(--smoke); font-size: 0.85rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--paper); }
.footer a[aria-current="page"] { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.footer-links { display: flex; gap: 1.5rem; }

/* Legal pages (/privacy, /terms): short text that links to eValue8's documents */
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); }
.legal .lead strong { color: var(--paper); font-weight: 600; }
.note { margin-top: 2.5rem; color: var(--smoke); font-size: 0.95rem; }
.note a { color: var(--accent-text); }

@media (max-width: 40rem) {
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 4rem 0; }
  .nav-links { gap: 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
