/* Syncra Apps — company site. Light, minimal, self-hosted fonts, no trackers. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/archivo-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --ink: #0b1020;
  --ink-2: #2a3350;
  --muted: #5a6479;
  --line: #e4e8f1;
  --line-2: #d5dbe8;
  --brand: #2f5fe8;        /* text-safe blue on white */
  --brand-bright: #4f7cff; /* brand gradient start */
  --teal: #0f9f7c;         /* text-safe teal on white */
  --teal-bright: #22d3a6;  /* brand gradient end */
  --grad: linear-gradient(120deg, var(--brand-bright), var(--teal-bright));
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --shadow: 0 1px 2px rgba(11, 16, 32, 0.04), 0 8px 24px rgba(11, 16, 32, 0.06);
  --shadow-lg: 0 2px 4px rgba(11, 16, 32, 0.04), 0 24px 48px rgba(11, 16, 32, 0.08);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(47, 95, 232, 0.45); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.label {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal);
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 15.5px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--muted); border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 9px;
}
.lang:hover { color: var(--ink); border-color: var(--ink); text-decoration: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; color: var(--ink); }
.menu-btn svg { margin: auto; }

@media (max-width: 880px) {
  .menu-btn { display: grid; place-items: center; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links a.btn { margin-top: 14px; border-bottom: 0; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15.5px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid var(--ink);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11, 16, 32, 0.18); }
.nav-links a.btn { color: #fff; padding: 9px 16px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, rgba(11, 16, 32, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 16, 32, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -220px; top: -260px;
  background: radial-gradient(circle, rgba(79, 124, 255, 0.16), rgba(34, 211, 166, 0.10) 45%, transparent 70%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.04em; line-height: 1.02; margin: 18px 0 22px; max-width: 14ch; }
.hero .lead { font-size: clamp(18px, 2vw, 20.5px); color: var(--muted); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 22px; font-size: 14.5px; color: var(--muted); display: flex; align-items: flex-start; gap: 10px; }
.hero-note .dot { margin-top: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 4px rgba(34, 211, 166, 0.18); flex: none; }

.stack {
  background: rgba(255, 255, 255, 0.9); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 22px;
}
.stack-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); }
.stack-head span:last-child { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.stack ul { list-style: none; margin: 0; padding: 0; }
.stack li { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.stack li:last-child { border-bottom: 0; padding-bottom: 4px; }
.stack .p-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); flex: none; }
.stack strong { display: block; color: var(--ink); font-size: 15.5px; font-weight: 600; }
.stack small { color: var(--muted); font-size: 13.5px; }
.stack .tag { margin-left: auto; }

@media (max-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .stack { max-width: 520px; }
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 104px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 680px; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 12px 0 16px; }
.sec-head p { color: var(--muted); font-size: 18.5px; }
@media (max-width: 720px) { .section { padding: 72px 0; } .sec-head { margin-bottom: 36px; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.service:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px;
  color: #fff; background: var(--grad); box-shadow: 0 6px 16px rgba(79, 124, 255, 0.25);
}
.service h3 { font-size: 19px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 1040px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* Products */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.product {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 32px; overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.product:hover { box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.product::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); opacity: 0; transition: opacity .2s ease; }
.product:hover::before { opacity: 1; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.product .p-ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); }
.tag {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.tag.live { color: #0b6b54; background: rgba(34, 211, 166, 0.10); border-color: rgba(15, 159, 124, 0.25); }
.tag.pilot { color: #2a47b8; background: rgba(79, 124, 255, 0.08); border-color: rgba(47, 95, 232, 0.22); }
.product h3 { font-size: 24px; margin-bottom: 6px; }
.product .kicker { color: var(--ink-2); font-weight: 600; font-size: 15.5px; margin-bottom: 12px; }
.product p.desc { color: var(--muted); font-size: 16px; }
.product .more { margin-top: auto; padding-top: 24px; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.product .more.quiet { color: var(--muted); font-weight: 500; }
@media (max-width: 820px) { .products { grid-template-columns: 1fr; } .product { padding: 26px; } }

/* Approach */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; }
.step { padding: 34px 30px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .num { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 26px; display: flex; align-items: center; gap: 10px; }
.step .num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step { border-right: 0; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: 0; } }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.about .sec-head { margin-bottom: 0; }
.about-text p + p { margin-top: 16px; }
.about-text p { color: var(--muted); font-size: 17.5px; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.principles li { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.principles .check { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; background: rgba(34, 211, 166, 0.12); color: var(--teal); margin-top: 1px; }
.principles strong { display: block; color: var(--ink); font-weight: 600; }
.principles span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 36px; } }

/* Contact */
.contact-card {
  position: relative; border-radius: 24px; padding: 64px 56px; overflow: hidden; color: #dfe6fb;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(34, 211, 166, 0.22), transparent 60%),
    radial-gradient(700px 360px at 0% 100%, rgba(79, 124, 255, 0.28), transparent 60%),
    #0b1020;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
}
.contact-card h2 { color: #fff; font-size: clamp(30px, 4vw, 44px); margin: 12px 0 14px; }
.contact-card .label { color: var(--teal-bright); }
.contact-card p { color: #b7c1de; font-size: 18px; max-width: 48ch; }
.contact-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.contact-actions .btn { background: #fff; color: var(--ink); border-color: #fff; font-size: 16.5px; padding: 14px 22px; }
.contact-actions .email { font-family: var(--mono); font-size: 14.5px; color: #dfe6fb; }
.contact-actions .email:hover { color: #fff; }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; padding: 44px 28px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 104px; font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--ink); }
.footer-brand p { margin-top: 14px; max-width: 34ch; }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; }
.legal a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); text-decoration-color: currentColor; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Simple content pages (privacy, 404) ---------- */
.page { padding: 72px 0 0; }
.page .prose { max-width: 720px; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); margin: 12px 0 18px; }
.prose h2 { font-size: 22px; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 17px; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 10px 0 0; display: grid; gap: 6px; }
.prose .updated { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.notfound { min-height: 52vh; display: grid; align-content: center; }
.notfound .btn { margin-top: 28px; width: fit-content; }
