/* Sconix landing page */
:root {
  --ink: #111214;
  --ink-soft: #3d4046;
  --muted: #5f636b;
  --paper: #f7f5f0;
  --paper-alt: #efece4;
  --line: #dedad0;
  --accent: #2346e8;
  --accent-ink: #1a36bd;
  --error: #b42318;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1120px;
  --radius: 10px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
}
.wordmark-ix {
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-left: 0.01em;
}
.wordmark-sm { font-size: 1.375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav-list a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.nav-list a:hover { color: var(--ink); }
.nav-list .nav-cta {
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 7px 16px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.nav-list .nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: clamp(80px, 13vw, 168px) 0 clamp(80px, 11vw, 140px); }

.eyebrow, .section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  max-width: 14ch;
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 40em;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--paper-alt); }

.section-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2, .contact-intro h2 {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.pillar {
  padding: 28px 28px 8px 0;
}
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 40px;
}
.pillar h3 { font-size: 1.375rem; margin-bottom: 12px; }
.pillar p { color: var(--ink-soft); font-size: 1rem; }

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 24px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 1rem; }

/* Approach */
.approach { background: var(--ink); color: var(--paper); border-top: 0; }
.approach .accent { color: #8fa3ff; }
.approach-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.contact-intro h2 { margin-bottom: 20px; }
.contact-intro p { color: var(--ink-soft); max-width: 30em; }
.contact-intro .contact-email { margin-top: 28px; color: var(--ink); }
.contact-email a {
  color: var(--accent);
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 40px);
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field textarea:hover { border-color: #c4bfb2; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(35, 70, 232, 0.18);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 6px;
  min-height: 0;
}
.field-error:empty { display: none; }

.form-success { text-align: left; padding: 12px 0; }
.form-success:focus { outline: none; }
.form-success h3 { font-size: 1.75rem; margin-bottom: 12px; }
.form-success p { color: var(--ink-soft); margin-bottom: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pillars { grid-template-columns: repeat(2, 1fr); border-top: 0; gap: 0 32px; }
  .pillar, .pillar + .pillar { padding: 24px 0 32px; border-left: 0; border-top: 1px solid var(--ink); }
  .pillar-num { margin-bottom: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .container { padding: 0 20px; }
  .wordmark { font-size: 1.5rem; }
  .nav-list { gap: 18px; font-size: 0.875rem; }
  .nav-list li:not(:last-child) { display: none; }
  .pillars, .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
