:root {
  /* Blueprint palette, keyed to the Agentic Labs icon */
  --blueprint: #0e336f;        /* deeper royal blueprint blue for contrast */
  --blueprint-dark: #0a264f;   /* darker edge for depth */
  --ink: #ffffff;              /* white "chalk" ink */
  --ink-dim: #d6e3ff;          /* brighter dimmed ink for readable body text */
  --grid-minor: rgba(255, 255, 255, 0.06);
  --grid-major: rgba(255, 255, 255, 0.12);
  --accent: #ffffff;
  --paper: #f7f4ea;            /* draft paper for product icons */
  --border: rgba(255, 255, 255, 0.22);
  --radius: 14px;
  --maxw: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  background-color: var(--blueprint);
}

/* ---- Blueprint grid background ---- */
/* A rotated drafting sheet: fine minor grid + bolder major grid, tilted so it
   isn't perpendicular to the viewport, like paper laid at an angle on a desk. */
body::before {
  content: "";
  position: fixed;
  /* oversize + offset so the rotation never exposes bare corners */
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  z-index: -2;
  transform: rotate(-8deg);
  transform-origin: center;
  background-color: var(--blueprint);
  background-image:
    /* major grid (every 120px) */
    linear-gradient(var(--grid-major) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--grid-major) 1.5px, transparent 1.5px),
    /* minor grid (every 24px) */
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size:
    120px 120px,
    120px 120px,
    24px 24px,
    24px 24px;
  background-position: center center;
}

/* Vignette + radial lift so the center reads brighter, edges fall into depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      1100px 620px at 50% 12%,
      rgba(255, 255, 255, 0.10),
      transparent 60%
    ),
    radial-gradient(
      1200px 900px at 50% 120%,
      var(--blueprint-dark),
      transparent 55%
    );
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 720px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 50, 112, 0.72);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
}

.nav a {
  color: var(--ink-dim);
  margin-left: 24px;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 110px 0 84px;
  overflow: hidden;
}

/* faint technical line-art drawn behind the hero, echoing the icon */
.hero .blueprint-art {
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%) rotate(-8deg);
  width: 440px;
  max-width: 46vw;
  opacity: 0.16;
  pointer-events: none;
  color: #fff;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
  max-width: 16ch;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

.lede {
  font-size: 1.18rem;
  color: #eef4ff;
  max-width: 620px;
  margin: 0 0 30px;
}

.btn {
  display: inline-block;
  background: #fff;
  color: var(--blueprint);
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  transition: transform 0.15s ease;
}

/* ---- Sections ---- */
.section {
  padding: 76px 0;
  position: relative;
}

.section-muted {
  background: rgba(8, 28, 62, 0.82);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(3px);
}

.section h2 {
  font-size: 1.65rem;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}

/* small drafting-style label under section titles */
.section h2 + .eyebrow,
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9fc0ff;
  font-weight: 600;
  margin: 0 0 26px;
}

.section p {
  color: var(--ink-dim);
}

/* ---- Product grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

/* cards look like drafting cards clipped to the sheet */
.card {
  background: rgba(9, 30, 66, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(4px);
  transition: transform 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--ink-dim);
}

.card-link {
  margin-top: 16px !important;
}

.card-link a {
  color: #9fc0ff;
  font-weight: 600;
  font-size: 0.95rem;
}

.card-link a:hover {
  color: #fff;
  text-decoration: none;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  background: rgba(10, 32, 72, 0.5);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.footer-nav a {
  color: var(--ink-dim);
  margin-left: 20px;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 84px 0 60px;
  }

  .hero .blueprint-art {
    display: none;
  }

  .nav a:first-child {
    display: none;
  }
}
