/* ============================================================
   Nexolash — "Signal" design system
   Refined dark technical. Gradient is a hairline, never a wash.
   ============================================================ */

:root {
  --ink:        #0B0D10;
  --surface:    #0F1216;
  --surface-2:  #14171C;
  --line:       #1B1F26;
  --line-2:     #2A2F38;

  --text:       #E8EAED;
  --text-mid:   #9AA1AA;
  --text-dim:   #8A9199;
  --text-faint: #6B727C;
  --text-ghost: #3F4650;

  --blue:       #5B9CFF;
  --green:      #4ADE80;
  --grad:       linear-gradient(90deg, #3B82F6, #4ADE80);

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;

  --wrap: 1280px;
  --r:    3px;
}

/* division accent — one variable, set per page */
body            { --accent: var(--blue); }
body.d-software { --accent: var(--blue); }
body.d-interior { --accent: var(--green); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); letter-spacing: -0.028em; }
h3 { font-size: 1.68rem; letter-spacing: -0.02em; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }

/* ---------- primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
section { padding: 96px 0; }

.lbl {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.rule-grad { width: 84px; height: 2px; background: var(--grad); }

.lead { font-size: 1.06rem; line-height: 1.75; color: var(--text-mid); max-width: 60ch; }

.section-head { max-width: 780px; margin-bottom: 52px; }
.section-head .lbl { display: block; margin-bottom: 22px; }
.section-head h2 { margin-bottom: 20px; }
.section-head .rule-grad { margin-bottom: 26px; }

.idx {
  font-family: var(--body);
  color: var(--text-ghost);
  font-variant-numeric: tabular-nums;
  font-size: .9em;
  flex-shrink: 0;
}

/* ---------- 12-col grid ---------- */
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.c4 { grid-column: span 4; } .c5 { grid-column: span 5; }
.c6 { grid-column: span 6; } .c7 { grid-column: span 7; }
.c8 { grid-column: span 8; } .c12 { grid-column: span 12; }

/* ---------- hairline plate grid (the signature) ---------- */
.plates {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.plates-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plates-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plate { background: var(--surface); padding: 40px 36px; }
.plate.tight { padding: 24px; }
.plate h3 { margin-bottom: 14px; }
.plate h4 { margin-bottom: 8px; }
.plate p { color: var(--text-dim); font-size: .95rem; line-height: 1.75; margin: 0; }
.plate-hd {
  background: var(--surface);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 13, 16, .86);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 28px; width: auto; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .14em; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14px; color: var(--text-mid); transition: color .16s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line-2);
  border-radius: var(--r); background: none; color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 17px; height: 1.5px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 17px; height: 1.5px; background: currentColor;
}
.nav-toggle span::before { top: -5.5px; } .nav-toggle span::after { top: 5.5px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--r); font-family: var(--body);
  font-size: 14px; font-weight: 500; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: border-color .18s, background .18s, color .18s;
}
.btn-primary { background: var(--text); color: var(--ink); font-weight: 600; }
.btn-primary:hover { background: #FFFFFF; }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-faint); background: rgba(255,255,255,.03); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 0; }
.hero .lbl { display: block; margin-bottom: 26px; }
.hero h1 { margin-bottom: 0; }
.hero .rule-grad { margin: 34px 0 30px; }
.hero .lead { font-size: 1.12rem; }
.hero-side { margin-top: 8px; }

/* spec table in hero */
.spec { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.spec > div { background: var(--surface); padding: 22px 24px; }
.spec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.spec-k { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .06em; margin-bottom: 6px; }
.spec-v { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }
.spec-stats { display: flex; gap: 32px; }
.spec-stats .n { font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--accent); line-height: 1.2; }

/* ---------- icon frame ---------- */
.ico {
  width: 40px; height: 40px; border: 1px solid var(--line-2);
  border-radius: var(--r); display: grid; place-items: center; color: var(--accent);
}
.ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- numbered lists ---------- */
.nlist { display: flex; flex-direction: column; gap: 11px; }
.nlist li { display: flex; gap: 14px; font-size: 14.5px; color: var(--text-mid); line-height: 1.6; }

/* ---------- process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { border-top: 1px solid var(--line-2); padding-top: 22px; }
.step .lbl { color: var(--accent); display: block; margin-bottom: 10px; }
.step h4 { margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-dim); line-height: 1.65; margin: 0; }

/* ---------- tech chips ---------- */
.tech-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tech {
  border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 7px 14px; font-size: 13px; color: var(--text-mid);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
details.qa { border-bottom: 1px solid var(--line); }
details.qa summary {
  cursor: pointer; list-style: none; padding: 22px 0;
  font-family: var(--display); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.01em;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: '+'; color: var(--text-faint); font-size: 1.3rem; font-weight: 400; line-height: 1; }
details.qa[open] summary::after { content: '–'; }
details.qa p { color: var(--text-dim); font-size: .95rem; line-height: 1.8; padding-bottom: 24px; margin: 0; max-width: 72ch; }

/* ---------- CTA ---------- */
.cta { border-top: 1px solid var(--line-2); padding-top: 52px; }
.cta h2 { margin-bottom: 18px; max-width: 16ch; }
.cta p { color: var(--text-mid); max-width: 52ch; margin: 0; }

/* ---------- contact ---------- */
.contact-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-item { background: var(--surface); padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; }
.contact-item .lbl { display: block; margin-bottom: 5px; }
.contact-item .v { font-size: 15px; font-weight: 500; line-height: 1.55; }
.contact-item .v a { border-bottom: 1px solid var(--line-2); }
.contact-item .v a:hover { color: var(--accent); border-color: var(--accent); }

form .field { margin-bottom: 18px; }
form label { display: block; margin-bottom: 8px; }
form input, form select, form textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--r);
  background: var(--ink); border: 1px solid var(--line-2); color: var(--text);
  font-family: var(--body); font-size: 14.5px; transition: border-color .18s;
}
form input::placeholder, form textarea::placeholder { color: var(--text-ghost); }
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--accent); }
form select option { background: var(--surface); color: var(--text); }
form textarea { resize: vertical; min-height: 130px; line-height: 1.65; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 12.5px; color: var(--text-faint); margin: 14px 0 0; line-height: 1.6; }
.form-note a { color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 32px; margin-bottom: 18px; }
.foot-brand p { color: var(--text-faint); font-size: 14px; max-width: 32ch; margin: 0; line-height: 1.7; }
.foot-grid h4 { font-family: var(--body); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.foot-grid ul { display: flex; flex-direction: column; gap: 11px; }
.foot-grid ul a { font-size: 14px; color: var(--text-mid); transition: color .16s; }
.foot-grid ul a:hover { color: var(--text); }
.foot-bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-faint);
}
.foot-bottom .divisions { display: flex; gap: 24px; }
.foot-bottom .divisions a:hover { color: var(--text); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .c4, .c5, .c6, .c7, .c8 { grid-column: span 12; }
  .hero-side { margin-top: 44px; }
  .plates-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 24px; }
  section { padding: 72px 0; }
  .hero { padding-top: 64px; }
  h1 { font-size: clamp(2.3rem, 9vw, 3.2rem); }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn { display: none; }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 24px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .plates-2, .plates-3 { grid-template-columns: 1fr; }
  .plate { padding: 32px 24px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .field-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .spec-stats { gap: 24px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .foot-bottom .divisions { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
