/* NurtixTech — one stylesheet. Sections: fonts, tokens, base, layout,
   type, components (Task 4), responsive. */

@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --paper: #ffffff;
  --ink: #171717;
  --accent: #2b44ff;
  --accent-hover: #1f33d6;
  --rail: #e5e5e5;
  --stone: #737373;
  --graphite: #525252;
  --field: #d4d4d4;
  --ash: #a1a1a1;            /* decorative only — fails AA as text */
  --smoke: #f5f5f5;
  --panel: #eef0ff;
  --amber: #f5a000;          /* SVG diagrams only */
  --glow: radial-gradient(45% 100% at 65% 80%, rgba(43, 68, 255, 0.16), rgba(43, 68, 255, 0));
  --lift: 0 0 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.06);
  --card-lift: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --feature-lift: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --col: 1280px;
  --gutter: 32px;
  --section: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  font-feature-settings: "ss02", "ss09";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p, ul, ol { margin: 0; }

.skip-link { position: absolute; left: 8px; top: -48px; padding: 8px 12px; background: var(--ink); color: var(--paper); border-radius: 6px; z-index: 10; }
.skip-link:focus { top: 8px; }

/* Layout: the drafted sheet. Every block is a .rail — the 1280px column with
   dashed side rails. A .section adds the solid top rule and the two accent
   squares where that rule meets the rails. */
.rail {
  position: relative;
  max-width: min(var(--col), calc(100% - 16px)); /* keeps the rail squares inside the viewport */
  margin-inline: auto;
  padding-inline: var(--gutter);
  border-inline: 1px dashed var(--rail);
}
.section { padding-block: var(--section); border-top: 1px solid var(--rail); }
.section[id] { scroll-margin-top: 120px; }
.section::before, .section::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 7px;
  height: 7px;
  background: var(--accent);
}
.section::before { left: -4px; }
.section::after { right: -4px; }
.section--glow { background-image: var(--glow); }
.section--tight { padding-block: 40px; }

/* Type */
.display { font-size: 72px; line-height: 1; letter-spacing: -0.05em; }
h1 { font-size: 60px; line-height: 1; letter-spacing: -0.05em; }
h2 { font-size: 36px; line-height: 1.11; letter-spacing: -0.05em; }
h3 { font-size: 24px; line-height: 1.33; font-weight: 500; letter-spacing: -0.025em; }
.lead { font-size: 20px; line-height: 1.4; letter-spacing: -0.025em; color: var(--stone); max-width: 640px; }
.eyebrow { font: 400 14px/1.43 var(--mono); text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.caption { font-size: 12px; line-height: 1.33; color: var(--stone); }
.muted { color: var(--stone); }
h2 + .lead { margin-top: 16px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; letter-spacing: -0.025em; margin: 40px 0 12px; }
.prose > h2:first-child { margin-top: 0; }
.prose p, .prose ul { color: var(--graphite); margin-bottom: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* === components === */

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rail); }
.announce { height: 44px; display: flex; align-items: center; justify-content: center; background: linear-gradient(90deg, var(--panel), var(--paper)); }
.announce a { font-size: 14px; font-weight: 500; line-height: 20px; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.tag { background: var(--paper); border: 1px solid var(--rail); border-radius: 4px; padding: 4px 10px; font-size: 12px; font-weight: 400; color: var(--ink); letter-spacing: -0.025em; }
.header-inner { height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--accent); }
.brand-name { font-size: 20px; font-weight: 500; letter-spacing: -0.05em; }
.brand-tail { color: var(--ink); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 0 12px; line-height: 36px; border-radius: 8px; font-size: 15px; font-weight: 500; letter-spacing: -0.025em; color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover { background: var(--smoke); }
.nav a[aria-current="page"]:not(.btn) { color: var(--accent); }
.nav .btn { margin-left: 12px; }
.nav-toggle { display: none; margin-left: auto; height: 36px; padding: 0 14px; border: 1px solid var(--rail); border-radius: 8px; background: var(--paper); font: 500 14px var(--sans); color: var(--ink); box-shadow: var(--lift); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 8px; background: var(--accent); color: var(--paper); font-size: 18px; letter-spacing: -0.025em; text-decoration: none; border: 1px solid var(--accent); box-shadow: var(--lift); cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--paper); }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--rail); }
.btn--ghost:hover { background: var(--smoke); color: var(--ink); border-color: var(--rail); }
.btn--ghost .arrow { color: var(--accent); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; font-weight: 500; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-block: 96px 80px; }
.hero .lead { margin-top: 24px; }
.section h2 + .checks { margin-top: 24px; }
.hero--page { grid-template-columns: 1fr; padding-block: 80px 64px; }
.hero--page .hero-body { max-width: 800px; }
.hero-visual { padding: 24px; background-image: var(--glow); }

/* Industries strip */
.strip { display: grid; grid-template-columns: 200px repeat(4, 1fr); min-height: 128px; border-top: 1px solid var(--rail); }
.strip-caption { padding: 40px 24px 40px 0; font: 400 16px/1.5 var(--mono); text-transform: uppercase; }
.strip-cell { display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--rail); font-size: 18px; letter-spacing: -0.025em; color: var(--graphite); }

/* Feature splits */
.split { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
.split--2 { grid-template-columns: repeat(2, 1fr); }
.split-col { min-width: 0; padding: 0 32px; border-left: 1px solid var(--rail); display: flex; flex-direction: column; gap: 16px; }
.split-col:first-child { padding-left: 0; border-left: 0; }
.split-col p { color: var(--stone); }
.split-col .btn { align-self: flex-start; margin-top: auto; }
.checks { list-style: none; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; letter-spacing: -0.025em; }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.checks--no li::before { top: 12px; width: 12px; height: 0; border-left: 0; border-bottom: 2px solid var(--stone); transform: none; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 24px; border-left: 1px solid var(--rail); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-size: 36px; font-weight: 400; letter-spacing: -0.05em; }
.stat span { color: var(--stone); }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.with-aside .form { margin-top: 40px; }
.with-aside > aside h2 { font-size: 24px; letter-spacing: -0.025em; margin-bottom: 16px; }
.with-aside > aside ol { padding-left: 20px; color: var(--graphite); display: grid; gap: 8px; margin-bottom: 16px; }
.with-aside > aside p { color: var(--graphite); }
h2 + .lead + p { margin-top: 16px; color: var(--graphite); }

/* Case cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--rail); border-radius: 8px; background: var(--paper); box-shadow: var(--lift); }
.card p:not(.badge) { color: var(--stone); }
.card a { margin-top: auto; font-weight: 500; }
.badge { align-self: flex-start; padding: 4px 10px; border-radius: 4px; background: var(--panel); color: var(--accent); font: 400 14px/1.43 var(--mono); }

/* Code panel — the phase contract */
.code-panel { background: var(--panel); border-radius: 20px 0 0 0; border-top: 1px solid var(--paper); border-left: 1px solid var(--paper); padding: 8px; }
.code-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 8px; background: rgba(255, 255, 255, 0.6); border-radius: 9999px; width: max-content; }
.code-tab { padding: 4px 14px; border-radius: 9999px; font: 400 14px/1.43 var(--mono); color: var(--stone); }
.code-tab[aria-current="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--lift); }
.code-panel pre { margin: 0; padding: 16px 20px; overflow-x: auto; font: 400 14px/22.75px var(--mono); color: var(--ink); }
.code-panel .k { color: var(--accent); }
.code-panel .c { color: var(--stone); }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; padding: 24px; background-image: var(--glow); }
.quotes--single { grid-template-columns: 1fr; }
.quote { margin: 0; padding: 24px 20px 20px; border: 1px solid var(--paper); border-radius: 8px; background: rgba(255, 255, 255, 0.6); box-shadow: var(--card-lift); display: flex; flex-direction: column; gap: 16px; }
.quote-text { margin: 0; }
.quote-by { font-size: 14px; color: var(--stone); }
.quote--feature { grid-row: span 2; background: var(--ink); color: var(--paper); box-shadow: var(--feature-lift); border-color: var(--ink); justify-content: space-between; }
.quote--feature .quote-text { font-size: 24px; line-height: 1.35; }
.quote--feature .quote-by { color: var(--field); }
/* Featured card plus three quotes: span all three rows so no cell is left empty. */
/* Band: the principle card across the top, the client quotes in a row below. */
.quotes--band { grid-template-columns: repeat(3, 1fr); }
.quotes--band .quote--feature { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: center; gap: 48px; padding: 32px; }
.quotes--band .quote--feature .quote-text { flex: 1 1 auto; font-size: 36px; line-height: 1.11; letter-spacing: -0.05em; }
.quotes--band .quote--feature .quote-by { flex: 0 1 420px; font-size: 16px; line-height: 1.5; }

/* Spec rows (facts aside) */
.spec { border-top: 1px solid var(--rail); }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rail); }
.spec-row span:first-child { font: 400 14px/1.43 var(--mono); text-transform: uppercase; color: var(--stone); }
.spec-row span:last-child { text-align: right; }

/* Two-column page body with a sticky aside */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.with-aside > aside { position: sticky; top: 132px; }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; margin-top: 32px; }
.compare th, .compare td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rail); vertical-align: top; }
.compare th { font: 400 14px/1.43 var(--mono); text-transform: uppercase; color: var(--stone); }

/* FAQ */
.faq { border-top: 1px solid var(--rail); margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--rail); padding: 20px 0; }
.faq summary { cursor: pointer; font-size: 20px; letter-spacing: -0.025em; }
.faq details p { margin-top: 12px; color: var(--graphite); max-width: 720px; }

/* Form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { font: 400 14px/1.43 var(--sans); padding: 10px 12px; border: 1px solid var(--field); border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: var(--lift); }
.field textarea { min-height: 160px; resize: vertical; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--stone); }

/* Diagrams */
.diagram { margin: 32px 0 0; }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { margin-top: 8px; font: 400 14px/1.43 var(--mono); color: var(--stone); }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-size: 60px; line-height: 1; }
.cta p { margin-top: 16px; color: var(--stone); }
.cta .btn-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--rail); overflow: hidden; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-block: 64px 40px; }
.footer-statement { font-size: 20px; font-weight: 500; line-height: 28px; color: var(--accent); max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-cols h2 { font-size: 16px; font-weight: 500; letter-spacing: 0; margin-bottom: 12px; }
.footer-cols ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.footer-cols a { color: var(--stone); text-decoration: none; line-height: 24px; }
.footer-cols a:hover { color: var(--ink); }
.footer-meta { grid-column: 1 / -1; font-size: 14px; color: var(--stone); }

/* === responsive === */
@media (max-width: 767px) {
  :root { --gutter: 20px; --section: 56px; }
  .rail { max-width: none; border-inline: 0; }
  .section::before, .section::after { display: none; }
  .display { font-size: 44px; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .lead { font-size: 18px; }
  .announce a .tag { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--rail); }
  .nav.is-open { display: flex; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .hero, .with-aside, .footer-inner { grid-template-columns: 1fr; }
  .hero-visual { margin-inline: calc(-1 * var(--gutter)); padding: 0; }
  .with-aside > aside { position: static; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip-caption { grid-column: 1 / -1; padding: 24px 0; }
  .strip-cell { min-height: 64px; border-top: 1px solid var(--rail); }
  .strip-cell:nth-child(even) { border-left: 0; } /* left column: child 1 is the caption */
  .split, .split--2, .cards, .quotes, .stats { grid-template-columns: 1fr; }
  .split-col { padding: 24px 0; border-left: 0; border-top: 1px solid var(--rail); }
  .split-col:first-child { border-top: 0; }
  .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--rail); }
  .stat:first-child { border-top: 0; }
  .quote--feature { grid-row: auto; }
  .quotes { padding-inline: 0; }
  .quotes--band { grid-template-columns: 1fr; }
  .quotes--band .quote--feature { flex-direction: column; align-items: stretch; gap: 16px; padding: 24px; }
  .quotes--band .quote--feature .quote-text { font-size: 28px; }
  .quotes--band .quote--feature .quote-by { flex-basis: auto; }
  .form { grid-template-columns: 1fr; }
  .cta h2 { font-size: 36px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .split, .split--2 { grid-template-columns: 1fr; }
  .split-col { padding: 24px 0; border-left: 0; border-top: 1px solid var(--rail); }
  .split-col:first-child { border-top: 0; }
  .with-aside, .footer-inner { grid-template-columns: 1fr; }
  .quotes--band { grid-template-columns: 1fr; }
  .with-aside > aside { position: static; }
}

/* case study hero badge spacing */
.hero-body > .badge { margin-top: 24px; }

/* wide diagrams scroll sideways on narrow screens instead of shrinking the text */
.diagram--wide { overflow-x: auto; }
.diagram--wide svg { min-width: 560px; }
