/* ============================================================
   VAYS PRO (vays.app/pro). Its own visual language: neutral dark,
   one accent, monospace for data, hairlines instead of cards.
   Loaded instead of styles.css, so it carries its own header,
   footer, mobile menu and .reveal rules.
   ============================================================ */
:root {
  --bg: #07080b;
  --bg-2: #0b0d12;
  --panel: #0e1016;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #e9ebf0;
  --soft: #b8bdc8;
  --muted: #8a919e;
  --dim: #5b6170;
  --acc: #9a86ff;
  --amber: #f5a524;
  --green: #3ecf8e;
  --mag: #ef5da8;
  --maxw: 1240px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 60px; background: rgba(7, 8, 11, .78); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header .wrap { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: none; padding: 0 28px; }
.brand-link { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; }
.brand-link img { width: 28px; height: 28px; border-radius: 8px; }
.brand-link .tag { font: 600 11px/1 var(--mono); letter-spacing: .14em; color: var(--acc); border: 1px solid rgba(154, 134, 255, .4); padding: 4px 7px; border-radius: 5px; }
.nav { display: flex; gap: 26px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; font: 600 11px/1 var(--mono); }
.lang-toggle a { padding: 7px 10px; color: var(--muted); }
.lang-toggle a[aria-current="true"] { color: var(--text); background: rgba(255, 255, 255, .07); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: background .15s ease, border-color .15s ease; }
.btn-primary { background: var(--text); color: #0a0b0f; }
.btn-primary:hover { background: #fff; }
.btn-line { border: 1px solid var(--line-2); color: var(--text); }
.btn-line:hover { border-color: var(--muted); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); padding: 6px; cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- story ---------- */
.story { position: relative; }
.story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#proCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.story-bar { position: absolute; top: 60px; left: 0; right: 0; height: 2px; background: rgba(255, 255, 255, .04); z-index: 3; }
.story-bar i { display: block; height: 100%; background: var(--acc); transform-origin: left; transform: scaleX(0); }
.rail { position: absolute; right: max(28px, calc((100vw - 1320px) / 2)); top: 50%; transform: translateY(-50%); z-index: 3; display: grid; gap: 6px; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.rail.show { opacity: 1; pointer-events: auto; }
.rail a { display: flex; align-items: center; gap: 10px; font: 500 11px/1.2 var(--mono); color: var(--dim); padding: 4px 0; letter-spacing: .04em; }
.rail a::before { content: ""; width: 14px; height: 1px; background: currentColor; transition: width .2s ease; }
.rail a.on { color: var(--text); }
.rail a.on::before { width: 26px; background: var(--acc); }
.rail a:hover { color: var(--soft); }

.stages { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; pointer-events: none; }
.st { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 90px 0 60px; }
.st .copy { pointer-events: auto; width: min(460px, 36vw); margin-left: max(32px, calc((100vw - 1320px) / 2 + 8px)); opacity: .18; transform: translateY(16px); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
.st.active .copy, .st.hero .copy { opacity: 1; transform: none; }
.eyebrow { font: 600 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin-bottom: 18px; }
.eyebrow .n { color: var(--dim); margin-right: 10px; }
.st h1 { font-size: clamp(38px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 750; text-wrap: balance; }
.st h2 { font-size: clamp(28px, 2.9vw, 42px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.st p { margin-top: 18px; font-size: clamp(15.5px, 1.2vw, 18px); color: var(--soft); line-height: 1.6; text-wrap: pretty; }
.st .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.hint { margin-top: 34px; display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.hint i { width: 1px; height: 26px; background: linear-gradient(var(--acc), transparent); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 50% { transform: translateY(6px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .hint i { animation: none; } }
.strings { display: none; }

/* ---------- sections ---------- */
.sec { padding: 120px 0; border-top: 1px solid var(--line); background: var(--bg); position: relative; z-index: 4; }
.sec.alt { background: var(--bg-2); }
.sec-head { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.sec-head p { color: var(--soft); font-size: 17px; max-width: 560px; }

/* sectors: one row per business, in -> out */
.sector { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 48px; padding: 36px 0; border-top: 1px solid var(--line); }
.sector:last-child { border-bottom: 1px solid var(--line); }
.sector h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.sector h3 .n { font: 600 12px/1 var(--mono); color: var(--dim); margin-right: 12px; vertical-align: 4px; letter-spacing: .08em; }
.sector .story-p { margin-top: 12px; color: var(--soft); font-size: 16px; }
.sector .note { margin-top: 16px; font-size: 13.5px; color: var(--muted); padding-left: 12px; border-left: 2px solid var(--green); }
.io { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: stretch; }
.io h4 { font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.io ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.io li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--soft); line-height: 1.4; }
.io .out li { color: var(--text); }
.io .out li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 10px; vertical-align: 2px; }
.io .arrow { align-self: center; justify-self: center; width: 18px; height: 18px; color: var(--acc); }
.io .arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.sector.lead { padding-top: 0; border-top: 0; }
.sector.lead h3 { font-size: 28px; }

/* numbered points */
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.points > div { padding: 26px 26px 6px 0; }
.points > div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.points .n { font: 600 12px/1 var(--mono); color: var(--acc); letter-spacing: .1em; }
.points h3 { margin-top: 14px; font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; }
.points p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.points.three { grid-template-columns: repeat(3, 1fr); }

/* faq */
.faq { border-top: 1px solid var(--line); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1 var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 24px; color: var(--soft); font-size: 15.5px; max-width: 760px; }

/* end */
.end { text-align: left; }
.end h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 750; max-width: 820px; }
.end p { margin-top: 18px; color: var(--soft); font-size: 18px; max-width: 640px; }
.end .actions { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; background: #050608; position: relative; z-index: 4; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--muted); }
.site-footer .f-brand { display: flex; align-items: center; gap: 10px; }
.site-footer .f-brand img { width: 24px; height: 24px; border-radius: 7px; }
.site-footer .f-brand b { color: var(--text); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer nav a:hover { color: var(--text); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* family + callout */
.points .more { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--acc); }
.points .more:hover { color: var(--text); }
.points.three .n { letter-spacing: .06em; }
.callout { margin-top: 48px; padding: 28px 30px; border: 1px solid rgba(154, 134, 255, .35); border-left: 3px solid var(--acc); border-radius: 12px; background: rgba(154, 134, 255, .05); max-width: 920px; }
.callout h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.callout p { margin-top: 10px; color: var(--soft); font-size: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 60px; left: 0; right: 0; background: rgba(7, 8, 11, .97); border-bottom: 1px solid var(--line); padding: 6px 28px 14px; }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .points { grid-template-columns: repeat(2, 1fr); }
  .points > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .points > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .points.three { grid-template-columns: 1fr; }
  .points.three > div { padding-left: 0; border-left: 0; }
  .points.three > div + div { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .rail { display: none; }
  .st { align-items: flex-end; padding: 0 0 5vh; }
  .st .copy { width: auto; margin: 0 16px; padding: 18px 18px 20px; background: rgba(7, 8, 11, .9); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: .0; }
  .st.hero .copy { background: transparent; border: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .st.active .copy { opacity: 1; }
  .st h1 { font-size: 34px; }
  .st h2 { font-size: 24px; }
  .st p { font-size: 15px; margin-top: 10px; }
  .sec { padding: 80px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .sector { grid-template-columns: 1fr; gap: 22px; }
  .io { grid-template-columns: 1fr; }
  .io .arrow { transform: rotate(90deg); margin: 10px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .site-header .wrap { padding: 0 16px; }
  .header-actions .btn { display: none; }
  .points { grid-template-columns: 1fr; }
  .points > div, .points > div + div { padding-left: 0; border-left: 0; }
  .points > div + div { border-top: 1px solid var(--line); }
}
