/* Geist and Geist Mono are served from this site (/fonts/), not a font service. */
@font-face { font-family: 'Geist'; src: url('/fonts/geist-var-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono-var-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
/* CEEZ v2 — Production Stylesheet (Light Default + CEEZ Midnight Dark Mode) */

:root,
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f4ef;
  --bg2: #ebeae3;
  --card: #ffffff;
  --hover: #e4e2d8;
  --text: #111110;
  --white: #000000;
  --muted: #52514a;
  --soft: #5f5d55;
  --line: #d6d4cc;
  --line2: #c5c3ba;
  --accent: #6250d6;
  --accentText: #4c3bc0;
  --signal: #6250d6;
  --btn: #111110;
  --btnText: #f5f4ef;
  --dot: rgba(107, 105, 96, 0.22);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171b40;
  --bg2: #1b2048;
  --card: #202553;
  --hover: #272d61;
  --text: #eef0f7;
  --white: #ffffff;
  --muted: #b3b9cd;
  --soft: #a3a9c0;
  --line: #2e3466;
  --line2: #3a4180;
  --accent: #9578f2;
  --accentText: #b9a6fb;
  --signal: #7c56e8;
  --btn: #eef0f7;
  --btnText: #171b40;
  --dot: rgba(141, 148, 171, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accentText);
}

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

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin: auto;
}

.mono,
.eyebrow,
.meta,
.num,
.tag,
.footbottom {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accentText);
  font-weight: 600;
}

h1,
h2,
h3,
h4 {
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0;
  font-weight: 640;
}

h1 {
  font-size: clamp(36px, 4.6vw, 58px);
  max-width: 850px;
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  max-width: 780px;
}

h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 15px;
}

p {
  margin: 12px 0 0;
}

.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 760px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
  color: var(--soft);
}

.section {
  padding: 74px 0;
  border-bottom: 1px solid var(--line);
}

.alt {
  background: var(--bg2);
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 32px;
}

.head p {
  max-width: 520px;
  color: var(--muted);
}

/* Header & Hover Navigation */
.top {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 50;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.05em;
  text-decoration: none;
  color: var(--white);
}

.brand-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  flex-shrink: 0;
  filter: brightness(0.12);
}

html[data-theme="dark"] .brand-icon {
  filter: brightness(1.3);
}

.brand span {
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  border-radius: 2px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link,
.nav-link.active {
  color: var(--white);
  background: var(--bg2);
}

.nav-caret {
  font-size: 9px;
  opacity: 0.7;
}

/* Hover Submenu with Invisible Hover Bridge */
.submenu-wrap {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  z-index: 100;
  min-width: 280px;
}

.submenu-wrap.wide {
  min-width: 520px;
}

.nav-item:hover > .submenu-wrap,
.nav-item:focus-within > .submenu-wrap {
  display: block;
}

.submenu {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  padding: 10px;
  display: grid;
  gap: 4px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.submenu.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.submenu a {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
}

.submenu a:hover,
.submenu a:focus-visible {
  background: var(--bg2);
  border-color: var(--line);
}

.submenu a strong {
  display: block;
  font-size: 13px;
  color: var(--white);
  font-weight: 600;
}

.submenu a span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.hero .actions,
.pageHero .actions,
.section .actions {
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--text);
  border-radius: 2px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn.primary {
  background: var(--btn);
  color: var(--btnText);
  border-color: var(--btn);
}

.btn:hover {
  background: var(--hover);
  color: var(--white);
}

.btn.primary:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.theme,
.menu {
  height: 38px;
  padding: 0 10px;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 2px;
  cursor: pointer;
  font: 600 12px 'Geist Mono', monospace;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.theme:hover,
.menu:hover {
  border-color: var(--text);
}

.menu {
  display: none;
  width: 38px;
  justify-content: center;
  padding: 0;
}

/* Hero & Spec Schematics */
.hero,
.pageHero {
  padding: 80px 0 48px;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.6px);
  background-size: 24px 24px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero:has(.dots),
.pageHero:has(.dots) {
  background-image: none;
}

.hero > :not(.dots),
.pageHero > :not(.dots) {
  position: relative;
  z-index: 1;
}

.dots {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: max(160vmax, 1600px);
  height: max(160vmax, 1600px);
  margin: calc(max(160vmax, 1600px) / -2) 0 0 calc(max(160vmax, 1600px) / -2);
  fill: var(--dot);
  pointer-events: none;
  animation: turn 240s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

.heroGrid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 48px;
  align-items: center;
}

.hero h1,
.pageHero h1 {
  margin-top: 14px;
}

.hero .lead,
.pageHero .lead {
  margin-top: 18px;
}

.heroBottom {
  display: flex;
  justify-content: space-between;
  margin-top: 52px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font: 11px 'Geist Mono', monospace;
  color: var(--soft);
  letter-spacing: 0.07em;
  gap: 16px;
  flex-wrap: wrap;
}

.spec {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  padding: 22px;
}

.specTop {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  font: 10px 'Geist Mono', monospace;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spec h3 {
  margin: 18px 0 6px;
}

.spec p {
  font-size: 13px;
  color: var(--muted);
}

.pipes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.pipes.p2 {
  grid-template-columns: repeat(2, 1fr);
}

.pipe {
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 12px;
  min-height: 92px;
}

.pipe small {
  font: 10px 'Geist Mono', monospace;
  color: var(--accentText);
  display: block;
}

.pipe b {
  display: block;
  font: 600 12px 'Geist Mono', monospace;
  margin-top: 8px;
  color: var(--white);
}

.pipe span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}

/* Grids & Cards */
.grid {
  display: grid;
  border-top: 1px solid var(--white);
  border-left: 1px solid var(--line);
}

.c2 {
  grid-template-columns: repeat(2, 1fr);
}

.c3 {
  grid-template-columns: repeat(3, 1fr);
}

.c4 {
  grid-template-columns: repeat(4, 1fr);
}

.cell {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 170px;
  background: var(--card);
  display: flex;
  flex-direction: column;
}

.alt .cell {
  background: var(--bg);
}

.num {
  font-size: 11px;
  color: var(--accentText);
  font-weight: 600;
}

.cell h3 {
  margin: 12px 0 8px;
}

.cell p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.cell a {
  display: inline-block;
  margin-top: 14px;
  color: var(--accentText);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.cell a:hover {
  text-decoration: underline;
}

.stack {
  border-top: 1px solid var(--line);
}

.item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.item .num {
  padding-top: 3px;
}

.item p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 5px 0 0;
}

.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 18px 20px;
  margin-top: 22px;
  font-size: 13.5px;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.product .meta {
  font-size: 10px;
  color: var(--accentText);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
}

.product h3 {
  font-size: 24px;
  margin: 16px 0 6px;
}

.product h4 {
  font-size: 13.5px;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 4px;
}

.product p {
  font-size: 13.5px;
  color: var(--muted);
  flex: 1;
}

.product a {
  font-size: 12.5px;
  color: var(--accentText);
  font-weight: 600;
  text-decoration: none;
  margin-top: 18px;
  display: inline-block;
}

.product a:hover {
  text-decoration: underline;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tag {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line2);
  background: var(--bg2);
  padding: 4px 8px;
  text-transform: uppercase;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.workflow.w6 {
  grid-template-columns: repeat(6, 1fr);
}

.workflow div {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
}

.workflow b {
  font: 600 11px 'Geist Mono', monospace;
  color: var(--accentText);
}

.workflow strong {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--white);
}

.workflow span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 6px;
  line-height: 1.45;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: start;
}

/* Matrix Tables */
.table-wrap {
  overflow-x: auto;
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--card);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.matrix-table th,
.matrix-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
}

.matrix-table th {
  background: var(--bg2);
  font: 600 11px 'Geist Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
}

.matrix-table td strong {
  color: var(--white);
}

.matrix-table tr:last-child td {
  border-bottom: 0;
}

.matrix-table th:last-child,
.matrix-table td:last-child {
  border-right: 0;
}

/* Comparison & Forms */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.compare > div {
  padding: 24px;
  background: var(--bg2);
  border: 1px solid var(--line);
}

.compare > div + div {
  background: var(--card);
  border-top: 2px solid var(--accent);
}

.compare ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.compare li {
  font-size: 13.5px;
  color: var(--muted);
  margin: 10px 0;
}

.form {
  display: grid;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  padding: 26px;
}

.form label {
  font: 600 10px 'Geist Mono', monospace;
  color: var(--muted);
  display: grid;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form input,
.form select,
.form textarea {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--muted);
  padding: 11px 12px;
  color: var(--text);
  font: 14px 'Geist', sans-serif;
}

.form textarea {
  min-height: 110px;
  resize: vertical;
}

.form button {
  justify-self: start;
}

.note {
  font-size: 11.5px;
  color: var(--soft);
}

/* CTA & Footer */
.cta {
  padding: 46px 0;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.ctaIn {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.cta h2 {
  font-size: 29px;
}

.cta p {
  color: var(--muted);
  max-width: 690px;
}

footer {
  padding: 48px 0 24px;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
}

.foot {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 32px;
}

.foot h4 {
  font: 600 11px 'Geist Mono', monospace;
  color: var(--white);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.foot a {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  margin: 8px 0;
}

.foot a:hover {
  color: var(--accentText);
}

.foot p {
  font-size: 12.5px;
  color: var(--muted);
  max-width: 280px;
  margin-bottom: 16px;
}

.footbottom {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--soft);
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .heroGrid {
    grid-template-columns: 1fr;
  }
  .spec {
    max-width: 720px;
  }
  .c4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow,
  .workflow.w6 {
    grid-template-columns: repeat(3, 1fr);
  }
  .foot {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .top {
    padding: 0 14px;
  }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--card);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 2px solid var(--accent);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .nav.open {
    display: flex;
  }
  .nav-item {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-link {
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    justify-content: space-between;
  }
  .submenu-wrap,
  .submenu-wrap.wide {
    position: static;
    display: block;
    min-width: 0;
    padding-top: 0;
  }
  .submenu,
  .submenu.cols-2 {
    grid-template-columns: 1fr;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    margin: 4px 0 8px 10px;
    padding: 4px 0 4px 10px;
  }
  .menu {
    display: inline-flex;
  }
  .actions .desktop {
    display: none;
  }
  .section {
    padding: 54px 0;
  }
  .hero,
  .pageHero {
    padding: 54px 0 36px;
  }
  .head,
  .ctaIn {
    display: block;
  }
  .head p {
    margin-top: 14px;
  }
  .c2,
  .c3,
  .products,
  .two,
  .compare {
    grid-template-columns: 1fr;
  }
  .workflow,
  .workflow.w6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .foot {
    grid-template-columns: repeat(2, 1fr);
  }
  .foot > div:first-child {
    grid-column: 1 / -1;
  }
  .heroBottom {
    flex-direction: column;
    gap: 8px;
  }
  .cta .btn {
    margin-top: 18px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 34px;
  }
  .c4,
  .workflow,
  .workflow.w6 {
    grid-template-columns: 1fr;
  }
  .pipes {
    grid-template-columns: repeat(2, 1fr);
  }
  .footbottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* Sign in / Live demo / Sign up: the product's own entry points. */
.nav-signin {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 10px;
  color: var(--muted);
  font: 500 11px/1 'Geist Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 2px;
}
.nav-signin:hover { color: var(--text); }
.nav-signup { color: var(--text); border: 1px solid var(--line); }
.nav-signup:hover { border-color: var(--text); }
.mobile-signin { display: none; }
@media (max-width: 1280px) {
  .nav-signin[href="/demo"],
  .nav-signin[href="/signup"] { display: none; }
}
@media (max-width: 760px) {
  .nav-signin { display: none; }
  .mobile-signin {
    display: block;
    padding: 12px 8px;
    color: var(--text);
    font: 500 13px/1 'Geist Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
  }
}

/* Skip link and the working-session form's honeypot (off screen, never shown to a person). */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--text);
}
.skip:focus { left: 8px; }
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form .note.error { color: #b8261b; }
[data-theme="dark"] .form .note.error { color: #ff7a6e; }

/* Keep the header on one line between phone and desktop widths. */
.nav-link { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 761px) {
  .actions .desktop { display: none; }
  .nav-link { padding-left: 6px; padding-right: 6px; }
}

/* Theme toggle: a small square icon button. */
.theme {
  width: 38px;
  padding: 0;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

/* Product addresses written in text (ground.ceez.ai, ...) are links to those products. */
a.ext {
  color: var(--accentText);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a.ext:hover { color: var(--text); }
a.ext:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Icon-only launch link after a product name. */
a.ext.ext-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  margin-left: 4px;
  vertical-align: middle;
  border: 1px solid var(--line2);
  border-radius: 2px;
  font: 600 0.8em/1 'Geist Mono', monospace;
  text-decoration: none;
  color: var(--accentText);
}
a.ext.ext-icon:hover { border-color: var(--text); color: var(--text); }

/* Footer: product name links to its page, a small icon launches the product's own site. */
.foot .footrow { display: flex; align-items: center; gap: 4px; margin: 8px 0; }
.foot .footrow a { margin: 0; }
.foot a.ext.ext-icon { display: inline-flex; margin: 0 0 0 4px; font-size: 11px; }
.foot a.btn { display: inline-flex; margin: 14px 0 0; }
