/* ==========================================================================
   SyncBoard Solutions — marketing landing page
   "Lab instrumentation" system: cool graphite + electric indigo, geometric
   grotesk + monospace type, sharp-cornered technical grid. Deliberately NOT
   warm/paper/serif — kept distinct from soft editorial SaaS aesthetics.
   ========================================================================== */

:root {
    --bg: #0A0C10;
    --bg-raised: #12151B;
    --surface: #EEF1F4;
    --surface-dim: #E2E6EB;
    --ink: #EDEFF3;
    --ink-dim: #9BA1AC;
    --graphite: #0F1216;
    --signal: #4F5EFF;
    --signal-bright: #7C87FF;
    --live: #35E28A;
    --line-on-dark: rgba(237, 239, 243, 0.10);
    --line-on-light: rgba(15, 18, 22, 0.12);
    --text-on-light: #0F1216;
    --text-on-light-dim: rgba(15, 18, 22, 0.62);

    --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;

    --container: 1140px;
    --r: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

.on-light { background: var(--surface); color: var(--text-on-light); }

/* Faint dot-grid, technical instrument-panel texture instead of paper grain */
.grid-tex {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
    background-image: radial-gradient(rgba(237,239,243,0.05) 1px, transparent 1px);
    background-size: 26px 26px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--signal-bright);
}
.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--live);
    box-shadow: 0 0 0 3px rgba(53, 226, 138, 0.18);
}
.on-light .eyebrow { color: var(--signal); }

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(10, 12, 16, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-on-dark);
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: var(--r);
    background: var(--signal);
    color: #06070A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
}
.nav-cta {
    font-family: var(--font-mono);
    font-size: 12.5px;
    padding: 9px 16px;
    border: 1px solid var(--line-on-dark);
    border-radius: var(--r);
    transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { border-color: var(--signal-bright); color: var(--signal-bright); }

/* ---------- Hero ---------- */
.hero { padding: 100px 0 64px; position: relative; }
.hero-inner { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.hero h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.5rem, 5.4vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 20px 0 24px;
    max-width: 16ch;
    color: var(--ink);
}
.hero h1 span { color: var(--signal-bright); }
.hero-lead { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--ink-dim); max-width: 48ch; margin: 0 0 36px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--signal);
    color: #06070A;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    padding: 13px 22px;
    border-radius: var(--r);
    transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { background: var(--signal-bright); transform: translateY(-1px); }

.btn-ghost {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ink-dim);
    border-bottom: 1px solid var(--line-on-dark);
    padding-bottom: 2px;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-ghost:hover { border-color: var(--signal-bright); color: var(--signal-bright); }
.on-light .btn-ghost { color: var(--text-on-light-dim); border-color: var(--line-on-light); }

/* Signal path — the hero's centerpiece visual */
.flow-strip { margin-top: 76px; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.flow-strip::before {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    top: 15px;
    height: 1px;
    background-image: linear-gradient(to right, var(--line-on-dark) 60%, transparent 0%);
    background-size: 8px 1px;
}
.flow-strip::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--live);
    box-shadow: 0 0 8px 1px rgba(53, 226, 138, 0.6);
    animation: travel 6s linear infinite;
}
@keyframes travel {
    0%   { left: 15px; opacity: 1; }
    48%  { left: calc(100% - 21px); opacity: 1; }
    52%  { opacity: 0; }
    53%  { left: 15px; opacity: 0; }
    58%  { opacity: 1; }
    100% { left: 15px; opacity: 1; }
}
.flow-node { position: relative; padding-top: 40px; text-align: center; }
.flow-node::before {
    content: attr(data-index);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: var(--r);
    background: var(--graphite);
    border: 1px solid var(--line-on-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-dim);
    z-index: 1;
}
.flow-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--ink-dim); }

/* ---------- Section shell ---------- */
section { padding: 100px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    margin: 16px 0 0;
    line-height: 1.14;
    letter-spacing: -0.01em;
}

/* ---------- Workflow (light section, numbered list) ---------- */
.workflow { border-top: 1px solid var(--line-on-light); border-bottom: 1px solid var(--line-on-light); }
.workflow-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-on-light); }
.workflow-list li {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 28px;
    padding: 32px 0;
    border-bottom: 1px solid var(--line-on-light);
    align-items: baseline;
}
.workflow-index { font-family: var(--font-mono); font-size: 12.5px; color: var(--signal); }
.workflow-list h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; margin: 0 0 8px; letter-spacing: -0.005em; }
.workflow-list p { margin: 0; color: var(--text-on-light-dim); max-width: 62ch; }

/* ---------- Capability grid — instrument panels, sharp corners, corner marks ---------- */
.panels { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(184px, auto); gap: 1px; background: var(--line-on-dark); border: 1px solid var(--line-on-dark); }
.panel {
    position: relative;
    background: var(--graphite);
    padding: 28px;
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background 0.2s ease;
}
.panel:hover { background: var(--bg-raised); }
.panel:hover::before, .panel:hover::after { border-color: var(--signal-bright); }
.panel::before, .panel::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--line-on-dark);
    transition: border-color 0.2s ease;
}
.panel::before { top: 8px; left: 8px; border-top: 1px solid; border-left: 1px solid; }
.panel::after { bottom: 8px; right: 8px; border-bottom: 1px solid; border-right: 1px solid; }
.panel--tall { grid-row: span 2; }
.panel--wide { grid-column: span 4; flex-direction: row; align-items: center; gap: 32px; }
.panel--wide > div:first-child { flex: 1; }
.panel-tag { font-family: var(--font-mono); font-size: 11px; color: var(--signal-bright); letter-spacing: 0.04em; margin-bottom: 18px; display: block; }
.panel h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 0 0 10px; letter-spacing: -0.005em; }
.panel p { margin: 0; color: var(--ink-dim); font-size: 0.94rem; }

/* ---------- Principles strip ---------- */
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-on-dark); border-top: 1px solid var(--line-on-dark); }
.principles-grid > div { background: var(--bg); padding: 36px 32px 0; }
.principle-num { font-family: var(--font-mono); font-size: 12.5px; color: var(--signal-bright); display: block; margin-bottom: 14px; }
.principles-grid h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: 0 0 10px; letter-spacing: -0.005em; }
.principles-grid p { margin: 0; color: var(--ink-dim); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.9rem, 3.8vw, 2.6rem);
    max-width: 19ch;
    margin: 0 auto 18px;
    letter-spacing: -0.01em;
}
.cta p { color: var(--ink-dim); max-width: 46ch; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-on-dark); padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-dim); }

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

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .flow-label { display: none; }
    .panels { grid-template-columns: repeat(2, 1fr); }
    .panel { grid-column: span 2 !important; grid-row: auto !important; }
    .panel--wide { flex-direction: column; align-items: flex-start; }
    .principles-grid { grid-template-columns: 1fr; }
    .principles-grid > div { padding-bottom: 32px; }
    .workflow-list li { grid-template-columns: 54px 1fr; }
}
@media (max-width: 560px) {
    .hero { padding: 68px 0 44px; }
    section { padding: 68px 0; }
    .nav-cta { display: none; }
}
