/* ============================================================
   BRAND & THEME
   VyntonWorks slate #334155 · red #ED4444
   CrossCares blue #457AEF · TitleNook green #4D987D
   ============================================================ */
:root {
  color-scheme: light;
  --brand-navy: #334155; --brand-red: #ed4444;
  --bg: #ffffff; --bg-alt: #f6f7f9; --surface: #ffffff;
  --text: #1e293b; --muted: #5b6678; --border: #e4e8ee;
  --accent: #e03e3e; --accent-soft: rgba(237,68,68,.09);
  --btn-bg: #334155; --btn-ink: #fff;
  --font-head: 'Jost', system-ui, sans-serif; --font-body: 'Inter', system-ui, sans-serif;
  --head-weight: 500; --head-track: -0.02em;
  --radius: 12px; --radius-lg: 20px; --btn-radius: 999px;
  --shadow: 0 1px 2px rgba(30,41,59,.05), 0 16px 40px -14px rgba(30,41,59,.18);
  --code-bg: #1e293b;
  --cc-panel: linear-gradient(150deg, #f2f6fe, #e3ebfd); --cc-color: #3b6fe0;
  --tn-panel: linear-gradient(150deg, #f1f8f4, #ddeee5); --tn-color: #3a856a;
  --cta-bg: #1e293b; --cta-text: #fff; --cta-muted: #b4bfcf;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-track); line-height: 1.08; margin: 0; }
p { margin: 0; }
section { scroll-margin-top: 72px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.icon { width: 1em; height: 1em; flex: none; }
.dot { color: var(--brand-red); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 600; line-height: 1;
  letter-spacing: .01em; color: var(--text);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 13px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: var(--btn-radius);
  font: 600 .97rem/1 var(--font-body); white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 8px 20px -10px rgba(0,0,0,.45); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-sm { height: 40px; padding: 0 16px; font-size: .9rem; }
.btn .icon { width: 18px; height: 18px; }

/* ============================================================
   NAV
   ============================================================ */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 36px; height: 72px; }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: .95rem; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: var(--radius); border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: var(--bg); overflow: hidden; padding: 92px 0 108px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(51,65,85,.14) 1px, transparent 1.3px) 0 0 / 22px 22px; -webkit-mask-image: radial-gradient(ellipse 75% 65% at 55% 40%, #000 25%, transparent 100%); mask-image: radial-gradient(ellipse 75% 65% at 55% 40%, #000 25%, transparent 100%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.7rem); margin: 22px 0 24px; }
.hl { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 33em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 34px 0 0; color: var(--muted); font-size: .93rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--brand-red); }

.hero-visual { position: relative; padding: 50px 0 74px; }
.code-card { position: relative; margin-left: auto; width: min(100%, 500px); background: var(--code-bg); color: #d7dde8; border-radius: var(--radius-lg); box-shadow: 0 40px 80px -30px rgba(15,23,42,.5), 0 0 0 1px rgba(255,255,255,.06); overflow: hidden; }
.code-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: #475569; }
.code-bar i:first-child { background: #ed4444; }
.code-bar span { margin-left: 10px; font: 500 12px/1 ui-monospace, 'SF Mono', Menlo, monospace; color: #8f9bb0; }
.code-card pre { margin: 0; padding: 22px 24px 18px; font: 14px/1.8 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; overflow-x: auto; }
.code-card .k { color: #ff8f8f; } .code-card .s { color: #8fdcbf; } .code-card .f { color: #8fb3ff; } .code-card .c { color: #75839a; }
.code-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 24px 16px; font: 500 12.5px/1 ui-monospace, 'SF Mono', Menlo, monospace; color: #8fdcbf; border-top: 1px solid rgba(255,255,255,.08); }
.code-foot .pulse { width: 8px; height: 8px; border-radius: 50%; background: #4d987d; animation: pulse 2.2s infinite; }
.chip { position: absolute; display: grid; place-items: center; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.chip-cc { top: 0; right: -14px; animation: float 6s ease-in-out infinite; }
.chip-cc img { height: 26px; width: auto; }
.chip-tn { bottom: 0; left: -24px; padding: 12px 20px; animation: float 7s ease-in-out -2s infinite; }
.chip-tn img { height: 60px; width: auto; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(77,152,125,.6); } 70% { box-shadow: 0 0 0 8px rgba(77,152,125,0); } 100% { box-shadow: 0 0 0 0 rgba(77,152,125,0); } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); margin: 18px 0 16px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 56px; }
.section-head-row .section-head { margin-bottom: 0; }

/* Products */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-art { height: 250px; display: grid; place-items: center; padding: 32px; }
.product--cc { --p-color: var(--cc-color); }
.product--tn { --p-color: var(--tn-color); }
.product--cc .product-art { background: var(--cc-panel); }
.product--tn .product-art { background: var(--tn-panel); }
.product--cc .product-art img { width: min(78%, 360px); height: auto; }
.product--tn .product-art img { width: min(70%, 330px); height: auto; }
.product-body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 34px 34px 36px; }
.product-label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.product h3 { font-size: 2rem; }
.product .tagline { font-family: var(--font-head); font-size: 1.2rem; font-weight: 500; color: var(--p-color); margin-top: -6px; }
.product p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 10px; font-size: .97rem; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--p-color); }
.text-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--p-color, var(--accent)); }
.text-link .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.svc:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow); }
.svc-icon { width: 50px; height: 50px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 24px; }
.svc-icon svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.32rem; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: .98rem; }

/* Approach */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.step { position: relative; padding: 34px 32px 0 0; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--brand-red); }
.step-num { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--accent); letter-spacing: .04em; }
.step h3 { font-size: 1.45rem; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: .98rem; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.about .section-head { margin-bottom: 0; }
.about-points { display: grid; gap: 24px; margin-top: 36px; }
.about-point { display: flex; gap: 16px; }
.about-point .svc-icon { width: 44px; height: 44px; margin: 0; flex: none; }
.about-point .svc-icon svg { width: 22px; height: 22px; }
.about-point h3 { font-size: 1.15rem; margin-bottom: 4px; }
.about-point p { color: var(--muted); font-size: .97rem; }
.facts { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 8px 34px; box-shadow: var(--shadow); }
.fact { display: grid; grid-template-columns: 70px 1fr; gap: 18px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--border); }
.fact:last-child { border-bottom: 0; }
.fact-big { font-family: var(--font-head); font-weight: 500; font-size: 3.4rem; line-height: 1; color: var(--accent); }
.fact strong { display: block; font-size: 1.05rem; }
.fact div > span { color: var(--muted); font-size: .95rem; }

/* Contact */
.cta-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 64px; background: var(--cta-bg); color: var(--cta-text); border-radius: calc(var(--radius-lg) * 1.3); overflow: hidden; }
.cta-panel .eyebrow { color: var(--cta-text); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.cta-panel h2 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); margin: 18px 0 18px; }
.cta-panel > div > p { color: var(--cta-muted); font-size: 1.1rem; max-width: 28em; }
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .ci { width: 42px; height: 42px; border-radius: var(--radius); background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; }
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--cta-muted); font-size: .8rem; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-form { display: grid; gap: 16px; align-content: start; padding: 32px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: .97rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: calc(var(--radius) * .75); padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-form .btn { width: 100%; margin-top: 4px; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; }

/* Footer */
.footer { background: var(--bg-alt); color: var(--text); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand img { height: 66px; }
.footer p { color: var(--muted); margin-top: 18px; max-width: 22em; font-size: .97rem; }
.footer-address { font-style: normal; color: var(--muted); font-size: .9rem; line-height: 1.65; margin-top: 14px; max-width: 25em; }
.footer-address strong { color: var(--text); font-weight: 600; }
.footer-address a:hover, .footer-legal a:hover { color: var(--brand-red); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal a[aria-current="page"] { color: var(--text); font-weight: 500; }
.footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: .97rem; }
.footer-col a:hover { color: var(--brand-red); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--muted) 25%, transparent); font-size: .88rem; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-hero { padding: 80px 0 48px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.legal-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 18px 0 14px; }
.legal-meta { color: var(--muted); font-size: .95rem; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 72px; padding-top: 64px; padding-bottom: 112px; }
.legal-toc { position: sticky; top: 104px; align-self: start; font-size: .92rem; }
.legal-toc p { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.legal-toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.4; }
.legal-toc a:hover { color: var(--text); border-left-color: var(--brand-red); }
.legal { max-width: 72ch; }
.legal > p:first-child { font-size: 1.1rem; color: var(--text); }
.legal h2 { font-size: 1.55rem; margin: 52px 0 14px; scroll-margin-top: 96px; }
.legal h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.legal p, .legal li { color: #334155; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 1.2em; display: grid; gap: 8px; }
.legal li::marker { color: var(--brand-red); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-card { margin: 18px 0; padding: 22px 24px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); font-style: normal; }
.legal-other { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 10px 28px; }
.legal .legal-other a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.legal-other .icon { width: 18px; height: 18px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .code-card { margin: 0 auto; }
  .chip-cc { right: 0; } .chip-tn { left: 0; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; border-top: 0; }
  .step { border-top: 1px solid var(--border); }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .cta-panel { grid-template-columns: 1fr; gap: 40px; padding: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 1fr; gap: 0; }
  .legal-toc { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--border); color: var(--text); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav.open .nav-links { display: flex; }
  .menu-btn { display: grid; }
  .nav-cta { display: none; }
  .products { grid-template-columns: 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav-inner { height: 64px; }
  .nav-links { top: 64px; }
  .brand img { height: 36px; }
  .hero { padding: 56px 0 72px; }
  .section { padding: 80px 0; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-visual { padding: 42px 0 62px; }
  .code-card pre { font-size: 11px; padding: 16px 14px 12px; }
  .code-foot { padding: 10px 16px 14px; font-size: 11.5px; }
  .chip { padding: 11px 14px; }
  .chip-cc img { height: 20px; }
  .chip-tn { padding: 8px 14px; }
  .chip-tn img { height: 46px; }
  .services, .steps, .field-row { grid-template-columns: 1fr; }
  .product-body { padding: 26px 22px 28px; }
  .product-art { height: 200px; }
  .facts { padding: 4px 22px; }
  .fact { grid-template-columns: 52px 1fr; }
  .fact-big { font-size: 2.8rem; }
  .cta-panel { padding: 32px 20px; border-radius: var(--radius-lg); }
  .contact-form { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer .brand img { height: 56px; }
  .legal-hero { padding: 56px 0 36px; }
  .legal-layout { padding-top: 40px; padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

