/* jeket.com shared design system.
 *
 * Used by the static marketing pages under public/ (/platform, /solutions).
 * The root index.html keeps its styles inline on purpose: it is the Vite entry
 * and the one page where a render-blocking stylesheet request is worth avoiding.
 * Everything here is a copy of that same system. Keep the two in step.
 */

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

:root {
  --gold: #C9A227;
  --gold-light: #E8D48B;
  --gold-dark: #8B6914;
  --surface-deep: #0A0A0A;
  --surface-default: #141414;
  --surface-elevated: #1E1E1E;
  --surface-overlay: #282828;
  --silver-bright: #E8E8E8;
  --silver-default: #A0A0A0;
  --silver-muted: #6B6B6B;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--surface-deep);
  color: var(--silver-bright);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Header ───────────────────────────────────────────────────────────────
 * The fixed wrapper around the nav. Keeping the nav in normal flow inside a
 * fixed parent means anything added above it pushes it down on its own,
 * rather than needing a hand-computed top offset that breaks when the thing
 * above wraps to a second line on mobile.
 */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
}

/* ── Ambient background canvas ───────────────────────────────────────────── */
#bgfx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ── Navigation ───────────────────────────────────────────────────────────── */
nav {
  position: relative;
  padding: 0.9rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
nav.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.08);
}
.nav-logo img { height: 48px; filter: brightness(1.1); }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-link {
  color: var(--silver-default);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.nav-link:hover { color: var(--gold); }
.nav-link[aria-current="page"] { color: var(--gold); }
.nav-cta-link {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-cta-link:hover { background: var(--gold); color: var(--surface-deep); }

/* ── Page head ────────────────────────────────────────────────────────────── */
.pagehead {
  position: relative;
  padding: 9rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}
.pagehead::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 120vw; height: 140%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 700px 420px at 50% 20%, rgba(201, 162, 39, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.pagehead-inner { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.pagehead h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.35rem;
}
.pagehead h1 .accent { color: var(--gold); font-weight: 400; }
.pagehead p {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  color: var(--silver-default);
  font-weight: 300;
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
section { padding: 5rem 1.5rem; position: relative; }
.section-inner { max-width: 1000px; margin: 0 auto; }
.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.section-lede {
  font-size: 1rem;
  color: var(--silver-default);
  font-weight: 300;
  line-height: 1.8;
  max-width: 660px;
}
.center { text-align: center; }
.center .section-lede { margin-left: auto; margin-right: auto; }

.divider {
  height: 1px;
  max-width: 1000px;
  margin: 0 auto;
  background: linear-gradient(to right, transparent, rgba(201, 162, 39, 0.15), transparent);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--gold);
  color: var(--surface-deep);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--gold);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}
.btn-primary:hover { background: var(--gold-light); box-shadow: 0 0 30px rgba(201, 162, 39, 0.3); }
.btn-primary:disabled { opacity: 0.5; cursor: default; box-shadow: none; }

.link-quiet {
  color: var(--silver-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  border-bottom: 1px solid rgba(107, 107, 107, 0.3);
  padding-bottom: 1px;
}
.link-quiet:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.card-grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface-default);
  border: 1px solid rgba(201, 162, 39, 0.06);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card:hover {
  border-color: rgba(201, 162, 39, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.card:hover::before { opacity: 0.4; }

.card-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--surface-elevated);
  border: 1px solid rgba(201, 162, 39, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.5; }

.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--silver-bright); }
.card p { font-size: 0.88rem; color: var(--silver-default); line-height: 1.7; font-weight: 300; }
.card p + p { margin-top: 0.75rem; }

/* ── Flush grid (bordered cells, no gaps) ─────────────────────────────────── */
.flush-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.1);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 2.5rem;
}
.flush-grid > * { background: var(--surface-default); padding: 1.6rem 1.5rem; }
.flush-grid h3 { font-size: 0.92rem; font-weight: 600; color: var(--silver-bright); margin-bottom: 0.45rem; }
.flush-grid p { font-size: 0.85rem; color: var(--silver-default); font-weight: 300; line-height: 1.65; }
.flush-grid .role {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--silver-muted);
  margin-bottom: 0.35rem;
}

/* ── Callout panel ────────────────────────────────────────────────────────── */
.callout {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--surface-default);
  border: 1px solid rgba(201, 162, 39, 0.1);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.callout p { font-size: 1rem; color: var(--silver-default); font-weight: 300; line-height: 1.8; }
.callout p + p { margin-top: 1rem; }
.callout .highlight { color: var(--gold); font-weight: 500; }

/* ── CTA ──────────────────────────────────────────────────────────────────── */
.cta-section { text-align: center; padding: 7rem 1.5rem; position: relative; }
.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60vw; height: 60%;
  background: radial-gradient(ellipse at center bottom, rgba(201, 162, 39, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section .section-inner { position: relative; z-index: 1; }
.cta-section .section-title { margin-bottom: 2.5rem; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid rgba(201, 162, 39, 0.06); padding: 2.5rem 1.5rem; }
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-left { display: flex; align-items: center; gap: 1.5rem; }
.footer-left img { height: 18px; opacity: 0.5; }
.footer-tagline { font-size: 0.75rem; color: var(--silver-muted); font-weight: 300; }
.footer-right { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-right a {
  color: var(--silver-muted);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}
.footer-right a:hover { color: var(--gold); }
.footer-copy {
  font-size: 0.7rem;
  color: var(--surface-overlay);
  text-align: center;
  margin-top: 1.5rem;
}

/* ── Scroll reveal ────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0.75rem 1.25rem; }
  .nav-logo img { height: 38px; }
  section { padding: 4rem 1.25rem; }
  .pagehead { padding: 9rem 1.25rem 3.5rem; }
  .card-grid, .card-grid.two { grid-template-columns: 1fr; }
  .callout { padding: 1.75rem 1.35rem; }
  .nav-link { display: none; }                            /* logo + CTA only; links live in the footer */
  .nav-cta-link { padding: 0.5rem 1rem; font-size: 0.72rem; }
  .pagehead { padding: 7rem 1.25rem 3.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-left { flex-direction: column; gap: 0.5rem; }
}

@media (min-width: 769px) and (max-width: 1060px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
