/* NeoCloudWorks Exchange — site styles
   Plain CSS, no build step. Colors and type live in the tokens below. */

/* Self-hosted typefaces (SIL Open Font License; licenses in assets/fonts) */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --midnight: #070f1f;
  --navy: #0c1a33;
  --navy-2: #12254a;
  --line: rgba(150, 182, 232, 0.18);
  --line-strong: rgba(150, 182, 232, 0.34);
  --text: #f2f6fc;
  --muted: #a7b6d1;
  --blue: #3b82ff;
  --blue-deep: #1f5fe0;
  --cyan: #63d2e6;
  --warn: #f2c46b;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.5rem, 5.6vw, 4.4rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--midnight);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #9ae5f2; }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-family: var(--sans); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--midnight); padding: 8px 14px; z-index: 50; }
.skip-link:focus { left: 8px; }

/* Status strip: the early-stage disclosure on every page */
.status-strip { background: var(--navy); border-bottom: 1px solid var(--line); font-size: var(--step--1); color: var(--muted); }
.status-strip .wrap { padding-top: 9px; padding-bottom: 9px; display: flex; gap: 10px; align-items: baseline; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex: none; transform: translateY(-1px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(7, 15, 31, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand-name { font-family: var(--serif); font-size: 1.28rem; line-height: 1; }
.brand-name span { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); display: block; margin-top: 4px; letter-spacing: 0.02em; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); padding: 8px 12px; font: inherit; font-size: var(--step--1); cursor: pointer; border-radius: 4px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--cyan); padding-bottom: 3px; }
.site-nav .nav-cta { color: var(--text); border: 1px solid var(--line-strong); padding: 8px 14px; border-radius: 4px; }
.site-nav .nav-cta:hover { border-color: var(--cyan); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--midnight); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 18px; }
  .site-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 12px; text-align: center; }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--cyan); }
}

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 0.98rem; text-decoration: none; padding: 14px 22px; border-radius: 4px; border: 1px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-secondary { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-secondary:hover { border-color: var(--cyan); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(12, 26, 51, 0) 0%, rgba(12, 26, 51, 0.9) 100%),
    repeating-linear-gradient(90deg, rgba(150,182,232,0.045) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(150,182,232,0.045) 0 1px, transparent 1px 64px),
    var(--midnight);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { max-width: 11ch; }
.hero .lede { font-size: var(--step-1); color: #d6e0f1; max-width: 46ch; }
.hero-drawing { width: 100%; height: auto; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } .hero-drawing { max-width: 520px; } }

/* Page intro (inner pages) */
.page-intro { border-bottom: 1px solid var(--line); background:
  repeating-linear-gradient(90deg, rgba(150,182,232,0.04) 0 1px, transparent 1px 64px), var(--navy); }
.page-intro .wrap { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-intro h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 18ch; }
.page-intro p { font-size: var(--step-1); color: #d6e0f1; max-width: 56ch; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--navy); }
.section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; margin-bottom: 48px; align-items: end; }
.section-head p { color: var(--muted); margin: 0; }
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; gap: 12px; } }

/* Participant columns: hairline-topped columns rather than boxed cards */
.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.columns.two { grid-template-columns: repeat(2, 1fr); }
.column { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.column h3 { margin-bottom: 10px; }
.column p { color: var(--muted); }
.column ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.column li { margin-bottom: 6px; }
.column .text-link { font-weight: 600; text-decoration: none; }
.column .text-link:hover { text-decoration: underline; }
@media (max-width: 880px) { .columns, .columns.two { grid-template-columns: 1fr; gap: 28px; } }

/* Process steps (a real sequence, so numbered) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; position: relative; }
.steps li { counter-increment: step; padding: 0 22px 0 0; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--cyan); color: var(--cyan); border-radius: 50%; font-weight: 600; margin-bottom: 18px; background: var(--midnight); position: relative; z-index: 1; }
.section.alt .steps li::before { background: var(--navy); }
.steps::before { content: ""; position: absolute; top: 19px; left: 19px; right: 12%; border-top: 1px dashed var(--line-strong); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 19px; bottom: 40px; left: 19px; right: auto; border-top: 0; border-left: 1px dashed var(--line-strong); }
  .steps li { padding: 0 0 0 58px; }
  .steps li::before { position: absolute; left: 0; top: 0; }
}

/* Evidence notes: sourced market context */
.evidence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.evidence > div { padding: 26px 26px 6px 0; border-right: 1px solid var(--line); }
.evidence > div + div { padding-left: 26px; }
.evidence > div:last-child { border-right: 0; }
.evidence .figure { font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; color: var(--text); margin-bottom: 10px; }
.evidence p { color: var(--muted); font-size: 0.97rem; }
.evidence .src { font-size: 0.82rem; }
@media (max-width: 880px) { .evidence { grid-template-columns: 1fr; } .evidence > div, .evidence > div + div { padding: 22px 0 6px; border-right: 0; border-bottom: 1px solid var(--line); } }

/* Is / isn't comparison */
.is-isnt { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.is-isnt > div { padding: 30px; }
.is-isnt > div + div { border-left: 1px solid var(--line-strong); background: rgba(7, 15, 31, 0.5); }
.is-isnt h3 { margin-bottom: 14px; }
.is-isnt ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.is-isnt li { margin-bottom: 8px; }
@media (max-width: 720px) { .is-isnt { grid-template-columns: 1fr; } .is-isnt > div + div { border-left: 0; border-top: 1px solid var(--line-strong); } }

/* CTA band */
.cta-band { padding: clamp(56px, 8vw, 96px) 0; background: linear-gradient(120deg, var(--navy-2) 0%, var(--navy) 55%, var(--midnight) 100%); border-bottom: 1px solid var(--line); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; max-width: 20ch; }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; color: #d6e0f1; }
.prose li { margin-bottom: 6px; }
.prose p { color: #d6e0f1; }
.review-note { border-left: 3px solid var(--warn); background: rgba(242, 196, 107, 0.08); padding: 14px 18px; margin: 0 0 1.4em; color: #f3e2bd; font-size: 0.95rem; }
.placeholder { background: rgba(242, 196, 107, 0.16); color: #f8e3b3; padding: 0 4px; border-radius: 3px; }

/* Form */
.form-layout { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .form-layout { grid-template-columns: 1fr; } }
.inquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
@media (max-width: 640px) { .inquiry-form { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 0.95rem; }
.req { color: var(--cyan); }
.hint { color: var(--muted); font-size: 0.85rem; font-weight: 400; }
input[type="text"], input[type="email"], select, textarea {
  font: inherit; color: var(--text); background: var(--midnight); border: 1px solid var(--line-strong);
  border-radius: 4px; padding: 12px 14px; width: 100%;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(99, 210, 230, 0.2); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-weight: 400; font-size: 0.93rem; color: #d6e0f1; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.hidden-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-aside { border-top: 1px solid var(--line-strong); padding-top: 22px; color: var(--muted); font-size: 0.95rem; }
.form-aside h3 { color: var(--text); }
.form-aside ul { padding-left: 1.1em; }

/* Footer */
.site-footer { background: var(--midnight); padding: 56px 0 40px; font-size: 0.92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-heading { color: var(--text); font-weight: 600; margin-bottom: 12px; }
.disclaimer { border-top: 1px solid var(--line); padding-top: 24px; font-size: 0.84rem; line-height: 1.6; }
.disclaimer p { max-width: none; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Confirmation page */
.confirm { text-align: left; }
.confirm .check { width: 52px; height: 52px; border: 1px solid var(--cyan); border-radius: 50%; display: grid; place-items: center; margin-bottom: 24px; }

/* Discreet for-sale note in the footer */
.acquisition-note { color: var(--text); }

/* Message shown if a submission cannot be sent */
.form-status { margin: 14px 0 0; color: #f8e3b3; border-left: 3px solid var(--warn); padding: 8px 12px; background: rgba(242, 196, 107, 0.08); }
.form-status[hidden] { display: none; }
