/* ============================================================
   KOVA LAB — styles
   Dark violet, glass panels, 3D device stage. Only two loud moments: the hero device and the demo showcase;
   everything below them is static and plain so it reads fast (Jack Roberts' review, 2026-09-29). Fonts: Montserrat (display) + Manrope (body) — both carry Mongolian Ө ө Ү ү
   (Unbounded did not, so those letters fell back to another font).
   ============================================================ */
:root {
  --bg: #07060d;
  --bg-2: #0e0b1c;
  --ink: #f4f1ff;
  --muted: #a99fc6;
  --dim: #6f6790;
  --violet: #6b3df5;
  --violet-2: #9b6bff;
  --lilac: #cdbcff;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.07);
  --radius: 22px;
  --display: "Montserrat", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.no-webgl { background: radial-gradient(120% 80% at 70% 0%, #2b1670 0%, #120c2c 45%, var(--bg) 100%) fixed; }
main { overflow-x: clip; position: relative; z-index: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(28px, 4.2vw, 52px); }
h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grad {
  background: linear-gradient(92deg, #ffffff 0%, var(--lilac) 40%, var(--violet-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--violet-2) 0%, var(--violet) 60%, #4a25c8 100%);
  box-shadow: 0 10px 30px -10px rgba(123, 79, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(123, 79, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); background: var(--glass-2); transform: translateY(-2px); }
.btn-small { padding: 11px 18px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(7, 6, 13, 0.62); backdrop-filter: blur(16px); border-color: var(--line); }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 17px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet-2), var(--violet)); color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 18px -6px rgba(123, 79, 255, 0.8);
}
.logo-word em { font-style: normal; color: var(--lilac); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--ink); background: var(--glass-2); }
.nav-links .nav-cta { color: #fff; background: linear-gradient(135deg, var(--violet-2), var(--violet)); margin-left: 8px; }
.nav-links .nav-cta:hover { background: linear-gradient(135deg, #ab83ff, #7a4dff); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s, top 0.3s; }
.nav-toggle span:first-child { top: 15px; } .nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
/* Language switch: plain links to / (Mongolian) and /en/ (English); stays in the bar on phones */
.nav > .nav-logo { margin-right: auto; }
.lang { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); flex: none; }
.lang a { padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.4; color: var(--dim); transition: color 0.2s, background 0.2s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { color: #fff; background: var(--glass-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }

/* ---------- Section frame ---------- */
section { position: relative; padding: clamp(80px, 10vw, 140px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lilac);
  margin-bottom: 18px;
}
.eyebrow .num { font-family: var(--display); color: var(--violet-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #7cffb2; box-shadow: 0 0 0 4px rgba(124, 255, 178, 0.18); }
.lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); margin-top: 18px; max-width: 640px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(24px, 4vw, 56px);
  padding-top: clamp(110px, 14vw, 150px); padding-bottom: 60px;
}
.hero-title { font-size: clamp(34px, 4vw, 58px); font-weight: 800; line-height: 1.04; margin: 0 0 24px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero-title .line > span { display: inline-block; }
.hero-sub { color: var(--muted); font-size: clamp(16px, 1.35vw, 19px); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-2); }

.hero-stage { position: relative; height: clamp(360px, 44vw, 600px); perspective: 1600px; perspective-origin: 50% 40%; }
.device {
  position: absolute; left: 4%; right: -6%; top: 8%; aspect-ratio: 16 / 10;
  transform-style: preserve-3d;
  transform: rotateX(22deg) rotateY(-16deg) rotateZ(3deg);
  will-change: transform;
}
.device-screen {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden;
  background: #0b0916; border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 80px -20px rgba(123, 79, 255, 0.45);
  display: flex; flex-direction: column;
}
.device-bar { height: 34px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #100d1f; border-bottom: 1px solid var(--line); }
.device-bar span { width: 9px; height: 9px; border-radius: 50%; background: #2c2744; }
.device-bar span:nth-child(1) { background: #ff6059; } .device-bar span:nth-child(2) { background: #ffbe2f; } .device-bar span:nth-child(3) { background: #2ac840; }
.device-url { margin-left: 12px; font-style: normal; font-size: 11px; color: var(--dim); font-family: var(--body); letter-spacing: 0.02em; }
.device-slides { position: relative; flex: 1; overflow: hidden; }
.device-slides img, .phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.9s ease; }
.device-slides img.is-on, .phone img.is-on { opacity: 1; }
.device-label {
  position: absolute; left: 14px; bottom: 12px; padding: 7px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: #fff;
  background: rgba(7, 6, 13, 0.7); border: 1px solid rgba(255, 255, 255, 0.15); backdrop-filter: blur(8px);
}
.device-glow { position: absolute; inset: 10% -5% -18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(123, 79, 255, 0.45), transparent 70%); filter: blur(24px); transform: translateZ(-80px); }
.phone {
  position: absolute; left: -2%; bottom: 0; width: 24%; aspect-ratio: 9 / 19.5;
  border-radius: 26px; overflow: hidden; background: #0b0916; border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 50px -15px rgba(123, 79, 255, 0.5);
  transform: translateZ(90px) rotateY(10deg); will-change: transform;
}
.phone::after { content: ""; position: absolute; top: 8px; left: 50%; width: 36%; height: 14px; border-radius: 999px; background: #000; transform: translateX(-50%); }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.28); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--lilac); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Works (showcase: the second loud moment) ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.work {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass);
  overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.work:hover { border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 30px 70px -30px rgba(123, 79, 255, 0.55); transform: translateY(-3px); }
.work-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b0916; border-bottom: 1px solid var(--line); }
.work-desktop { width: 86%; height: 92%; object-fit: cover; object-position: top; margin: 5% 0 0 4%; border-radius: 12px 12px 0 0; border: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 0; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.work-mobile { position: absolute; right: 5%; bottom: -6%; width: 20%; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 25px 50px -20px rgba(0, 0, 0, 0.9); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.work:hover .work-desktop { transform: translateY(-8px); }
.work:hover .work-mobile { transform: translateY(-12px); }
.work-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.work-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet-2); margin-bottom: 8px; }
.work-body h3 { font-size: 22px; margin-bottom: 8px; }
.work-body > p { color: var(--muted); font-size: 15px; }
.work-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 18px; }
.work-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); border-color: rgba(155, 107, 255, 0.35); }
.work-feature .work-media { border-bottom: 0; border-right: 1px solid var(--line); aspect-ratio: auto; min-height: clamp(300px, 34vw, 460px); }
.work-feature .work-desktop { position: absolute; left: 0; top: 0; }
.work-feature .work-body { justify-content: center; padding: clamp(26px, 3.4vw, 48px); }
.work-feature .work-body h3 { font-size: clamp(26px, 2.8vw, 36px); }
.work-feature .work-body > p { font-size: 16.5px; }
.work-feature .work-actions { margin-top: 0; padding-top: 26px; }
.works-note { margin-top: 28px; color: var(--dim); font-size: 15px; }

/* ---------- Pricing ---------- */
.price-group + .price-group { margin-top: clamp(34px, 4vw, 52px); }
.price-label { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-2); margin-bottom: 16px; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.price-card { display: flex; flex-direction: column; padding: 30px 28px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); transition: border-color 0.3s; }
.price-card:hover { border-color: rgba(205, 188, 255, 0.35); }
.price-card.is-featured { border-color: rgba(155, 107, 255, 0.5); background: linear-gradient(180deg, rgba(107, 61, 245, 0.16), rgba(255, 255, 255, 0.03)); }
.price-name { font-size: clamp(20px, 2vw, 24px); }
.price-for { margin-top: 6px; font-size: 15px; color: var(--muted); }
.price-amount { margin-top: 20px; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-amount small { margin-left: 6px; font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.price-time { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--lilac); }
.price-card .incl { margin: 22px 0 26px; }
.price-card .btn { margin-top: auto; }
.price-notes { margin-top: 26px; display: grid; gap: 6px; color: var(--dim); font-size: 14.5px; }
.price-notes li::before { content: "· "; color: var(--violet-2); }
.incl li { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--line); font-size: 15.5px; }
.incl li:first-child { border-top: 0; }
.incl li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 14px; height: 8px; border-left: 2px solid var(--violet-2); border-bottom: 2px solid var(--violet-2); transform: rotate(-45deg); }

/* ---------- Process (quiet) ---------- */
.process-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.steps { display: grid; }
.step { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step-n { grid-row: span 2; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(155, 107, 255, 0.5); font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--lilac); }
.step h3 { font-size: 18px; margin: 5px 0 6px; }
.step p { font-size: 15px; color: var(--muted); }
.prep { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); }
.prep h3 { font-size: 18px; margin-bottom: 14px; }
.prep li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.prep li:first-child { border-top: 0; }
.prep li b { display: block; font-weight: 700; }
.prep li span { color: var(--muted); }
.prep-note { margin-top: 14px; font-size: 14px; color: var(--lilac); }

/* ---------- Trust (quiet) ---------- */
.trust-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px clamp(24px, 3vw, 44px); }
.trust-item { display: grid; grid-template-columns: 26px 1fr; column-gap: 14px; }
.trust-item svg { grid-row: span 2; width: 22px; height: 22px; margin-top: 2px; color: var(--violet-2); }
.trust-item h3 { font-size: 17px; margin-bottom: 4px; }
.trust-item p { font-size: 15px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact-list { display: grid; gap: 8px; margin-top: 30px; }
.contact-list a { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); font-weight: 600; transition: border-color 0.25s, transform 0.25s; }
.contact-list a:hover { border-color: rgba(205, 188, 255, 0.4); transform: translateX(4px); }
.contact-list svg { width: 20px; height: 20px; color: var(--violet-2); }
.brief { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); border: 1px solid var(--line); background: rgba(14, 11, 28, 0.75); backdrop-filter: blur(14px); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lilac); }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--ink); font: inherit; font-size: 15.5px; transition: border-color 0.25s, box-shadow 0.25s; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(155, 107, 255, 0.18); }
.field textarea { resize: vertical; min-height: 84px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { position: relative; cursor: pointer; }
.checks input { position: absolute; opacity: 0; inset: 0; }
.checks span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-size: 14px; font-weight: 600; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.checks input:checked + span { background: var(--violet); border-color: transparent; color: #fff; }
.checks input:focus-visible + span { box-shadow: 0 0 0 3px rgba(155, 107, 255, 0.4); }
.brief-note { font-size: 13px; color: var(--dim); line-height: 1.5; }
.brief-note b { color: var(--muted); }
.brief-copied { font-size: 13.5px; color: #7cffb2; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; padding: 70px var(--gutter) 30px; max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.footer-tag { margin-top: 16px; color: var(--muted); max-width: 320px; font-size: 15px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols b { display: block; font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lilac); margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--muted); font-size: 15px; padding: 5px 0; transition: color 0.2s; }
.footer-cols a:hover { color: var(--ink); }
.footer-word { margin-top: 60px; line-height: 0.9; text-align: center; white-space: nowrap; }
.footer-word span {
  display: inline-block; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 12.6vw, 190px); letter-spacing: -0.02em;
  color: rgba(205, 188, 255, 0.07);
}
.footer-legal { margin-top: 26px; text-align: center; font-size: 13px; color: var(--dim); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(4, 3, 9, 0.8); backdrop-filter: blur(10px); }
.modal-box { position: relative; width: min(1200px, 96vw); height: min(860px, 90vh); border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); background: #0b0916; box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 1), 0 0 100px -30px rgba(123, 79, 255, 0.6); display: flex; flex-direction: column; }
.modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #100d1f; font-weight: 700; font-size: 14px; }
.modal-actions { display: flex; align-items: center; gap: 6px; }
.modal-actions button, .modal-actions a { padding: 7px 11px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid transparent; }
.modal-actions button:hover, .modal-actions a:hover { color: var(--ink); background: var(--glass-2); }
.modal-vp.is-on { color: var(--ink); border-color: var(--line); background: var(--glass-2); }
.modal-frame { flex: 1; display: flex; justify-content: center; background: #05040a; }
.modal-frame iframe { width: 100%; height: 100%; border: 0; background: #fff; transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.modal-frame.is-mobile iframe { width: 390px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
body.is-locked { overflow: hidden; }

/* ---------- Reveal defaults (JS animates .reveal; without JS everything is visible) ---------- */
html.has-motion .reveal { opacity: 0; }

/* ---------- Responsive ---------- */
/* Three links + CTA + MN/EN switch fit in one row down to ~900px (Mongolian); below that they fold into the menu button */
@media (max-width: 900px) {
  .nav { gap: 10px; }
  .nav-links { position: fixed; top: 68px; right: var(--gutter); width: min(340px, calc(100vw - 24px)); flex-direction: column; align-items: stretch; gap: 4px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(10, 8, 20, 0.92); backdrop-filter: blur(16px); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-links .nav-cta { margin: 6px 0 0; text-align: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 1024px) {
  .works-grid { grid-template-columns: 1fr 1fr; }
  .work-feature { grid-template-columns: 1fr; }
  .work-feature .work-media { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; aspect-ratio: 16 / 10; }
  .process-grid { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { left: 12px; right: 12px; width: auto; }
  .lang a { padding: 8px 12px; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; min-height: 0; }
  .hero-stage { height: 84vw; margin-top: 10px; }
  .device { left: 10%; right: -2%; top: 2%; }
  .scroll-hint { display: none; }
  .works-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card { padding: 26px 22px 24px; }
  .trust-list { grid-template-columns: 1fr; gap: 22px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .modal-box { height: 88vh; }
  .modal-vp { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.has-motion .reveal { opacity: 1; }
  .scroll-hint span { animation: none; }
}
