/* console-marketing-web — Neuraphic Console marketing landing
 *
 * Brand spec from neuraphic.com/brand:
 *
 *   Pearl gray  #f0f1f3   primary background
 *   Rich black  #131314   text, UI, dark-mode backgrounds
 *   Muted gray  #6b7280   secondary tone, used sparingly
 *
 *   "There are no accent colors, no brand blue, no gradients,
 *    no 'hero color.' This restraint is the point."
 *
 *   Wordmark: Space Grotesk 700, UPPERCASE, -0.03em letter tracking.
 *   Display: Space Grotesk 700. Body: Inter 400–600. No third face.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-variable.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-variable.woff2') format('woff2-variations');
}

:root {
  /* Tell the browser this page is light-only so Chrome's
   * "Auto dark mode for web contents" does NOT invert our colors.
   * Without this, a Chrome user with dark-mode forcing enabled
   * would see pearl gray flipped to black and our entire palette
   * destroyed. neuraphic.com declares the same opt-out. */
  color-scheme: light only;

  /* The only three colors. */
  --pearl:                 #f0f1f3;
  --black:                 #131314;
  --muted:                 #6b7280;

  /* Functional aliases — same values, named by role. */
  --color-bg:              var(--pearl);
  --color-fg:              var(--black);
  --color-muted:           var(--muted);
  --color-border:          rgba(19, 19, 20, 0.10);
  --color-border-on-dark:  rgba(240, 241, 243, 0.14);

  /* Layout */
  --max:                    1240px;
  --gutter:                 clamp(20px, 5vw, 64px);
  --gutter-tight:           clamp(16px, 4vw, 40px);
  --radius:                 10px;

  /* Type */
  --font-display:           'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body:              'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:              ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--color-bg);
  color: var(--color-fg);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: inherit;
}
p, li {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.unbordered, .topnav a, .btn, .product-card, .news-card,
.footer-col a, .skip-link, .featured-text a, .resource-card,
.mission-links a {
  border-bottom: none;
}
a:hover { opacity: 0.65; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-fg); color: var(--color-bg);
  padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ─────────────────────────── Buttons (always neutral) ─────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  color: var(--color-fg);
  border: 1px solid var(--color-border);
  transition: background 120ms, color 120ms, border-color 120ms, opacity 120ms;
  white-space: nowrap;
  cursor: pointer;
}
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn:hover {
  background: var(--color-fg);
  color: var(--color-bg);
  border-color: var(--color-fg);
}
.btn-on-dark {
  color: var(--color-bg);
  border-color: var(--color-border-on-dark);
}
.btn-on-dark:hover {
  background: var(--color-bg);
  color: var(--color-fg);
  border-color: var(--color-bg);
}

/* ─────────────────────────── Top nav ─────────────────────────── */

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 241, 243, 0.88);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.topnav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--color-fg);
  text-decoration: none;
  border-bottom: none;
}
.topnav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
}
.topnav-links a {
  color: var(--color-fg);
  text-decoration: none;
  border-bottom: none;
  font-size: 14px;
  font-weight: 500;
}
.topnav-actions {
  display: flex; align-items: center; gap: 10px;
}

@media (max-width: 880px) {
  .topnav-inner { grid-template-columns: auto auto; }
  .topnav-links { display: none; }
  .topnav-actions { justify-self: end; gap: 8px; }
  .topnav-actions .btn { padding: 9px 16px; font-size: 13px; }
}
@media (max-width: 480px) {
  .topnav-inner { padding: 14px var(--gutter-tight); }
  .topnav-actions .btn:first-child { display: none; }
}

/* ─────────────────────────── Section scaffold ─────────────────────────── */

.section { padding: clamp(64px, 9vw, 130px) var(--gutter); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-dark {
  background: var(--color-fg);
  color: var(--color-bg);
}
.section-dark p, .section-dark li { color: rgba(240, 241, 243, 0.72); }
.section-dark .eyebrow { color: rgba(240, 241, 243, 0.72); }
.section-dark .news-card,
.section-dark .product-card,
.section-dark .resource-card {
  background: transparent;
  border-color: var(--color-border-on-dark);
}
.section-dark .news-card:hover,
.section-dark .product-card:hover,
.section-dark .resource-card:hover {
  border-color: var(--color-bg);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 14px;
}

/* ─────────────────────────── Hero ─────────────────────────── */

.hero { padding: clamp(72px, 13vw, 180px) var(--gutter) clamp(64px, 11vw, 140px); }
.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}
.hero-h1 {
  font-size: clamp(40px, 7.5vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero-text { max-width: 480px; }
.hero-text p { font-size: 16px; line-height: 1.7; color: var(--color-fg); }
.hero-text p + p { margin-top: 14px; }
.hero-ctas { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; gap: 28px; text-align: left; }
  .hero-h1 { font-size: clamp(40px, 11vw, 64px); }
  .hero-text { max-width: 100%; }
  .hero-ctas { justify-content: flex-start; }
}

/* ─────────────────────────── Featured (Console block, dark) ─────────────────────────── */

.featured {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(72px, 11vw, 140px) var(--gutter);
}
.featured-text h2 {
  font-size: clamp(56px, 12vw, 130px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 16px 0 24px;
}
.featured-text p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 16px;
}
.featured-text a.read-more {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-bg);
  display: inline-block;
  margin-top: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}
.featured-graphic {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.featured-graphic svg { width: 100%; height: auto; max-width: 480px; opacity: 0.85; }

@media (max-width: 980px) {
  .featured { grid-template-columns: 1fr; }
  .featured-text h2 { font-size: clamp(48px, 16vw, 96px); }
}
@media (max-width: 480px) {
  .featured-graphic { display: none; }
}

/* ─────────────────────────── News cards (3) ─────────────────────────── */

.news-h {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.025em;
  margin-bottom: 36px;
  font-weight: 700;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms;
}
.news-card:hover { border-color: var(--color-fg); opacity: 1; }
.news-card .meta {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 16px;
}
.news-card h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.news-card p { font-size: 14px; flex-grow: 1; }
.news-card .read-arrow {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-fg);
}

@media (max-width: 880px) { .news-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ─────────────────────────── Models grid (3 models) ─────────────────────────── */

.products-h {
  font-size: clamp(32px, 5vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 700;
  max-width: 800px;
  margin-bottom: 20px;
}
.products-sub {
  font-size: 16px;
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.65;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-fg);
  text-decoration: none;
  transition: border-color 160ms;
}
.product-card:hover { border-color: var(--color-fg); opacity: 1; }
.product-card .ptype {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 14px;
}
.product-card h3 {
  font-size: 32px;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.product-card .role {
  font-size: 15px;
  color: var(--color-fg);
  font-weight: 500;
  margin-bottom: 14px;
}
.product-card p { font-size: 14px; line-height: 1.65; flex-grow: 1; }
.product-card .price {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
}
.product-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.product-card .price-row > span:first-child {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.product-card .price strong { color: var(--color-fg); font-weight: 600; }
.pricing-table tfoot td {
  padding-top: 16px;
  border-bottom: 0;
  font-size: 12px;
  color: rgba(240, 241, 243, 0.6);
}
.pricing-table .table-foot { font-family: var(--font-body); }

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

/* ─────────────────────────── Pricing / free credits (dark) ─────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.pricing-grid h2 {
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  font-weight: 700;
}
.pricing-grid p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
  color: rgba(240, 241, 243, 0.85);
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.pricing-features li {
  padding: 12px 0;
  font-size: 14px;
  color: var(--color-bg);
  border-bottom: 1px solid var(--color-border-on-dark);
  padding-left: 16px;
  position: relative;
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 22px;
  width: 8px; height: 1px;
  background: var(--color-bg);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pricing-table th, .pricing-table td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-on-dark);
}
.pricing-table th {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 241, 243, 0.6);
}
.pricing-table td { color: var(--color-bg); }
.pricing-table td:last-child {
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
}

@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-table { font-size: 12px; }
}

/* ─────────────────────────── Mission section ─────────────────────────── */

.mission-h {
  font-size: clamp(34px, 5.5vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 1100px;
  margin-bottom: 48px;
}
.mission-body {
  font-size: 16px;
  line-height: 1.7;
  max-width: 760px;
  color: var(--color-fg);
  margin-bottom: 32px;
}
.mission-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border);
}
.mission-links a {
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  padding-right: 20px;
  padding-left: 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-fg);
  text-decoration: none;
}
.mission-links a:nth-child(3n) { border-right: none; }
.mission-links a:hover { opacity: 0.65; }

@media (max-width: 880px) {
  .mission-links { grid-template-columns: 1fr; }
  .mission-links a { border-right: none; padding-right: 0; }
}

/* ─────────────────────────── Trust grid ─────────────────────────── */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.trust-grid .item h4 {
  font-size: 17px;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.trust-grid .item p { font-size: 14px; line-height: 1.65; }

@media (max-width: 880px) { .trust-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ─────────────────────────── Resources tabs ─────────────────────────── */

.tab-strip {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-strip button {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  cursor: pointer;
  white-space: nowrap;
}
.tab-strip button.active {
  color: var(--color-fg);
  border-bottom-color: var(--color-fg);
}

.resources-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.resource-card {
  display: block;
  padding: 24px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms;
}
.resource-card:hover { border-color: var(--color-fg); opacity: 1; }
.resource-card .meta {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 12px;
}
.resource-card h4 {
  font-size: 17px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.resource-card p { font-size: 14px; line-height: 1.6; }
.resource-pane { display: none; }
.resource-pane.active { display: block; }

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

/* ─────────────────────────── Final CTA ─────────────────────────── */

.final-cta { padding: clamp(72px, 11vw, 140px) var(--gutter); }
.final-cta h2 {
  font-size: clamp(40px, 7vw, 100px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 32px;
  max-width: 1100px;
}
.final-cta-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}

/* ─────────────────────────── Footer ─────────────────────────── */

.site-footer {
  padding: 56px var(--gutter) 32px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  color: var(--color-fg);
}
.footer-top {
  max-width: var(--max);
  margin: 0 auto 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-top .wordmark { font-size: 16px; }
.footer-top p { max-width: 420px; font-size: 14px; }
.footer-cols {
  max-width: var(--max);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--color-fg);
  text-decoration: none;
  border-bottom: none;
  font-size: 13px;
  padding: 5px 0;
  font-weight: 500;
}
.footer-col a:hover { opacity: 0.65; }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--color-muted);
}

@media (max-width: 1080px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) { .footer-cols { grid-template-columns: 1fr; } }
