/* Northstar Industrial Components — fictional concept by Crestmora Studio */
:root {
  --graphite: #15191e;
  --graphite-2: #1d232a;
  --steel: #2b323b;
  --steel-2: #3a434e;
  --amber: #f2a007;
  --amber-2: #ffb52e;
  --plate: #eef1f4;
  --white: #ffffff;
  --text: #15191e;
  --text-soft: #4a5562;
  --text-dim: #a7b1bd;
  --blue-line: #dce6f2;
  --rule: rgba(21, 25, 30, 0.12);
  --rule-dark: rgba(220, 230, 242, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--plate); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); line-height: 1.08; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* Concept bar */
.concept-bar { background: var(--amber); color: var(--graphite); font-size: 0.88rem; }
.concept-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 9px 0; flex-wrap: wrap; }
.concept-inner a { font-weight: 700; color: var(--graphite); text-underline-offset: 3px; white-space: nowrap; }

/* Buttons */
.ns-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border: 2px solid transparent; border-radius: 4px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.ns-btn:hover { transform: translateY(-2px); }
.ns-btn-sm { min-height: 42px; padding: 0 16px; font-size: 0.9rem; }
.ns-btn-block { width: 100%; }
.ns-btn-amber { background: var(--amber); color: var(--graphite); }
.ns-btn-amber:hover { background: var(--amber-2); }
.ns-btn-line { border-color: rgba(220, 230, 242, 0.4); color: var(--white); background: transparent; }
.ns-btn-line:hover { border-color: var(--amber); color: var(--amber); }
.ns-btn-dark { background: var(--graphite); color: var(--white); }
.ns-btn-dark:hover { background: var(--amber); color: var(--graphite); }

/* Header */
.ns-header { position: sticky; top: 0; z-index: 30; background: rgba(21, 25, 30, 0.96); color: var(--white); border-bottom: 1px solid var(--rule-dark); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ns-header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.ns-brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.ns-brand strong { display: block; font-family: var(--font-head); font-size: 1.25rem; letter-spacing: 0.18em; line-height: 1; }
.ns-brand small { display: block; margin-top: 4px; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.ns-nav { display: flex; align-items: center; gap: 26px; }
.ns-nav ul { display: flex; gap: 4px; }
.ns-nav a:not(.ns-btn) { display: block; padding: 8px 12px; color: rgba(255, 255, 255, 0.8); text-decoration: none; font-family: var(--font-head); font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.ns-nav a:not(.ns-btn):hover { color: var(--white); border-bottom-color: var(--amber); }
.ns-toggle { display: none; position: relative; width: 46px; height: 46px; border: 1px solid var(--rule-dark); border-radius: 4px; background: transparent; cursor: pointer; }
.ns-toggle > span:not(.sr-only) { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); transition: transform 0.3s var(--ease), opacity 0.2s; }
.ns-toggle > span:nth-of-type(2) { top: 15px; }
.ns-toggle > span:nth-of-type(3) { top: 22px; }
.ns-toggle > span:nth-of-type(4) { top: 29px; }
.ns-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
.ns-toggle[aria-expanded="true"] > span:nth-of-type(3) { opacity: 0; }
.ns-toggle[aria-expanded="true"] > span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.ns-hero {
  position: relative; overflow: hidden; color: var(--white); padding: 88px 0 96px;
  background:
    linear-gradient(rgba(220, 230, 242, 0.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(220, 230, 242, 0.045) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(70% 80% at 85% 40%, #26303b, var(--graphite) 70%);
}
.ns-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.ns-kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.ns-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.ns-kicker-dark { color: #9a6400; }
.ns-hero h1 { margin-top: 22px; font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.005em; }
.ns-lead { margin-top: 22px; max-width: 32em; font-size: 1.14rem; color: var(--text-dim); }
.ns-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.ns-facts { margin-top: 44px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; border-top: 1px solid var(--rule-dark); }
.ns-facts div { padding: 20px 34px 0 0; margin-right: 34px; border-right: 1px solid var(--rule-dark); }
.ns-facts div:last-child { border-right: 0; margin-right: 0; }
.ns-facts dt { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--white); }
.ns-facts dd { font-size: 0.84rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.ns-illus { margin-top: 14px; font-size: 0.78rem; color: #7d8895; }
.ns-drawing { position: relative; border: 1px solid rgba(220, 230, 242, 0.25); background: rgba(13, 17, 21, 0.6); padding: 14px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.ns-drawing::before, .ns-drawing::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--amber); }
.ns-drawing::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.ns-drawing::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.ns-drawing img { width: 100%; height: auto; padding: 16px 6px; }
.ns-drawing-head, .ns-drawing-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--font-head); font-size: 0.74rem; letter-spacing: 0.14em; color: var(--text-dim); }
.ns-drawing-head { padding-bottom: 10px; border-bottom: 1px dashed rgba(220, 230, 242, 0.2); }
.ns-drawing-foot { padding-top: 10px; border-top: 1px dashed rgba(220, 230, 242, 0.2); }

/* Industries */
.ns-industries { background: var(--steel); color: var(--white); }
.ns-ind-inner { display: flex; align-items: center; gap: 14px 36px; padding: 20px 0; flex-wrap: wrap; }
.ns-ind-inner p { font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.ns-ind-inner ul { display: flex; flex-wrap: wrap; gap: 8px 30px; font-family: var(--font-head); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.95rem; }

/* Sections */
.ns-section { padding: clamp(72px, 9vw, 112px) 0; }
.ns-dark { background: var(--graphite); color: var(--white); }
.ns-steel { background: #e3e8ed; }
.ns-head { max-width: 700px; margin-bottom: 48px; }
.ns-head h2, .ns-about h2, .ns-quote h2 { margin-top: 14px; font-size: clamp(1.9rem, 4vw, 2.9rem); text-transform: uppercase; }
.ns-head p:not(.ns-kicker) { margin-top: 14px; color: var(--text-soft); font-size: 1.06rem; }
.ns-dark .ns-head p:not(.ns-kicker) { color: var(--text-dim); }

/* Products */
.ns-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ns-product { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--graphite); transition: border-color 0.3s, box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.ns-product:hover { border-top-color: var(--amber); box-shadow: 0 30px 60px -36px rgba(21, 25, 30, 0.55); transform: translateY(-4px); }
.ns-product-media { background: linear-gradient(rgba(220, 230, 242, 0.06) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, rgba(220, 230, 242, 0.06) 1px, transparent 1px) 0 0 / 20px 20px, var(--steel); padding: 18px 28px; }
.ns-product-media img { width: 100%; max-width: 380px; margin-inline: auto; height: auto; aspect-ratio: 4 / 3; }
.ns-product-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.ns-code { font-family: var(--font-head); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.18em; color: #9a6400; }
.ns-product h3 { margin-top: 6px; font-size: 1.55rem; text-transform: uppercase; }
.ns-product-body > p:not(.ns-code) { margin-top: 10px; color: var(--text-soft); }
.ns-specs { width: 100%; margin: 20px 0 24px; border-collapse: collapse; font-size: 0.93rem; }
.ns-specs th, .ns-specs td { padding: 9px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.ns-specs th { width: 40%; padding-right: 14px; font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }
.ns-product .ns-btn { margin-top: auto; align-self: flex-start; }

/* Capabilities */
.ns-cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-dark); border-left: 1px solid var(--rule-dark); }
.ns-cap { padding: 32px 30px 34px; border-right: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); transition: background-color 0.3s; }
.ns-cap:hover { background: var(--graphite-2); }
.ns-cap span { font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; color: var(--amber); letter-spacing: 0.1em; }
.ns-cap h3 { margin-top: 16px; font-size: 1.3rem; text-transform: uppercase; }
.ns-cap p { margin-top: 10px; color: var(--text-dim); }

/* About */
.ns-about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.ns-about > div p:not(.ns-kicker) { margin-top: 18px; color: var(--text-soft); font-size: 1.06rem; }
.ns-values { display: grid; gap: 14px; }
.ns-values li { padding: 20px 22px; background: var(--white); border-left: 4px solid var(--amber); }
.ns-values strong { display: block; font-family: var(--font-head); font-size: 1.08rem; letter-spacing: 0.04em; text-transform: uppercase; }
.ns-values span { display: block; margin-top: 4px; color: var(--text-soft); }

/* Quality steps */
.ns-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: q; }
.ns-steps li { counter-increment: q; position: relative; padding: 26px 22px; background: var(--white); border: 1px solid var(--rule); }
.ns-steps li::before { content: "0" counter(q); display: block; font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--amber); line-height: 1; margin-bottom: 14px; }
.ns-steps strong { display: block; font-family: var(--font-head); font-size: 1.08rem; text-transform: uppercase; letter-spacing: 0.03em; }
.ns-steps span { display: block; margin-top: 6px; color: var(--text-soft); font-size: 0.95rem; }

/* Quote */
.ns-quote { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.ns-quote > div p:not(.ns-kicker) { margin-top: 16px; color: var(--text-dim); font-size: 1.06rem; }
.ns-quote .ns-demo-note { padding: 14px 16px; border: 1px dashed rgba(242, 160, 7, 0.55); color: var(--blue-line); font-size: 0.94rem; }
.ns-form { padding: clamp(22px, 4vw, 36px); background: var(--white); color: var(--text); border-top: 4px solid var(--amber); }
.ns-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ns-field { display: grid; gap: 6px; margin-bottom: 16px; }
.ns-field label { font-family: var(--font-head); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.ns-field label span { color: #9a6400; }
.ns-field input, .ns-field select, .ns-field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid #c9d0d8; border-radius: 3px; background: #fbfcfd; }
.ns-field textarea { resize: vertical; min-height: 96px; }
.ns-field input:focus, .ns-field select:focus, .ns-field textarea:focus { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 3px rgba(242, 160, 7, 0.4); }
.ns-field [aria-invalid="true"] { border-color: #c2412d; }
.ns-error { margin-bottom: 14px; padding: 10px 14px; background: #fbe9e5; color: #8f2a1a; font-weight: 600; font-size: 0.94rem; }

/* Footer */
.ns-footer { background: #0e1114; color: var(--text-dim); padding: 48px 0; font-size: 0.92rem; }
.ns-footer-inner { display: grid; gap: 16px; }
.ns-brand-foot { color: var(--white); }
.ns-footer p { max-width: 60em; }
.ns-credit a { color: var(--amber); font-weight: 600; }

/* Floating quote */
.ns-wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 25; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--amber); color: var(--graphite); text-decoration: none; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.6); transition: transform 0.2s var(--ease), opacity 0.3s; }
.ns-wa-float svg { width: 26px; height: 26px; }
.ns-wa-float:hover { transform: translateY(-3px); }
.ns-wa-float.is-hidden { opacity: 0; pointer-events: none; }

/* Responsive */
@media (max-width: 1020px) {
  .ns-cap-grid { grid-template-columns: repeat(2, 1fr); }
  .ns-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ns-toggle { display: block; }
  .ns-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 20px 24px; background: var(--graphite); border-bottom: 1px solid var(--rule-dark); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.3s; }
  .ns-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .ns-nav ul { flex-direction: column; }
  .ns-nav a:not(.ns-btn) { padding: 13px 4px; border-bottom: 1px solid var(--rule-dark); }
  .ns-hero { padding: 60px 0 72px; }
  .ns-hero-grid, .ns-about, .ns-quote { grid-template-columns: 1fr; gap: 44px; }
  .ns-products { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .concept-inner { font-size: 0.8rem; }
  .ns-actions .ns-btn { width: 100%; }
  .ns-facts { grid-template-columns: repeat(3, 1fr); }
  .ns-facts div { padding-right: 12px; margin-right: 12px; }
  .ns-facts dt { font-size: 1.4rem; }
  .ns-facts dd { font-size: 0.72rem; }
  .ns-cap-grid, .ns-steps, .ns-row { grid-template-columns: 1fr; }
  .ns-row { gap: 0; }
  .ns-product-body { padding: 22px 20px 24px; }
  .ns-product .ns-btn { align-self: stretch; }
  .ns-specs th { width: 44%; }
  .ns-brand strong { font-size: 1.08rem; }
  .ns-wa-float { height: 50px; padding: 0 16px 0 13px; right: 14px; bottom: 14px; }
  .ns-btn { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
