/* Polygsoft – site styles */
:root {
  --bg: #080920;
  --bg-2: #0d1130;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text: #eef0ff;
  --muted: #a3a8cc;
  --accent: #7c6cff;
  --accent-2: #22d3ee;
  --accent-3: #c084fc;
  --grad: linear-gradient(100deg, #6d7bff 0%, #22d3ee 45%, #c084fc 90%);
  --radius: 18px;
  --wrap: 1160px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(109, 123, 255, .18), transparent 60%),
                    radial-gradient(900px 500px at -10% 30%, rgba(34, 211, 238, .08), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: #9fb0ff; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; margin-top: 1.4em; color: #dfe3ff; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.section { padding: clamp(56px, 9vw, 110px) 20px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.grad {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(34, 211, 238, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
.section-title { margin-bottom: 40px; max-width: 22ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7, 9, 26, .55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(7, 9, 26, .82); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.logo img { transition: transform .6s var(--ease); }
.logo:hover img { transform: rotate(120deg); }
.main-nav { display: flex; gap: 6px; }
.main-nav a { position: relative; color: var(--muted); text-decoration: none; font-weight: 550; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--text); background: var(--surface-2); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 650; text-decoration: none;
  color: #fff; background: var(--grad); background-size: 200% auto;
  box-shadow: 0 10px 30px -10px rgba(109, 123, 255, .8);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-position .6s;
}
.btn:hover { color: #fff; transform: translateY(-2px); background-position: right center; box-shadow: 0 16px 40px -12px rgba(34, 211, 238, .7); }
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn-light { background: #fff; color: #10153a; box-shadow: none; }
.btn-light:hover { color: #10153a; }
.link-arrow { font-weight: 650; text-decoration: none; }
.link-arrow span { display: inline-block; transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(50px, 8vw, 100px) 0 40px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 16s ease-in-out infinite; }
.b1 { width: 460px; height: 460px; background: #4f46e5; top: -120px; right: -80px; }
.b2 { width: 360px; height: 360px; background: #0891b2; bottom: -80px; left: -120px; animation-delay: -5s; }
.b3 { width: 300px; height: 300px; background: #9333ea; top: 35%; left: 45%; opacity: .35; animation-delay: -10s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 25px) scale(.95); }
}
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .35em; }

.hero-visual { position: relative; display: flex; justify-content: center; perspective: 1200px; min-height: 460px; }
.phone {
  width: 250px; height: 500px; border-radius: 42px; padding: 12px;
  background: linear-gradient(145deg, #2a2f5c, #111430);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04) inset, 0 0 80px -10px rgba(109,123,255,.5);
  transform: rotateY(-14deg) rotateX(6deg);
  transition: transform .2s ease-out;
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { translate: 0 -14px; } }
.phone-screen { height: 100%; border-radius: 32px; background: linear-gradient(180deg, #151a44, #0b0e26); padding: 22px 16px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.ui-bar { height: 10px; width: 45%; border-radius: 6px; background: rgba(255,255,255,.25); }
.ui-card { border-radius: 16px; background: var(--grad); background-size: 200% auto; animation: shine 5s linear infinite; }
.ui-card.c1 { height: 120px; }
.ui-card.c2 { height: 70px; opacity: .55; }
.ui-row { display: flex; gap: 10px; }
.ui-row span { flex: 1; height: 54px; border-radius: 12px; background: rgba(255,255,255,.08); }
.ui-chart { flex: 1; display: flex; align-items: flex-end; gap: 10px; padding: 10px 6px 0; }
.ui-chart i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); transform-origin: bottom; animation: grow 2.4s var(--ease) infinite alternate; }
.ui-chart i:nth-child(2) { animation-delay: .3s; } .ui-chart i:nth-child(3) { animation-delay: .6s; }
.ui-chart i:nth-child(4) { animation-delay: .9s; } .ui-chart i:nth-child(5) { animation-delay: 1.2s; }
@keyframes grow { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
.float-chip {
  position: absolute; padding: 10px 16px; border-radius: 14px; font-size: .88rem; font-weight: 650; white-space: nowrap;
  background: rgba(20, 24, 60, .75); border: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.6);
  animation: bob 5s ease-in-out infinite;
}
.chip1 { top: 12%; left: 0; animation-delay: -1s; }
.chip2 { top: 48%; right: -4%; animation-delay: -2.5s; }
.chip3 { bottom: 8%; left: 6%; animation-delay: -4s; }

.stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 60px; }
.stat { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center; }
.stat-v { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-l { color: var(--muted); font-size: .95rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .35s var(--ease), border-color .35s, background .35s, box-shadow .35s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(109, 123, 255, .18), transparent 45%);
}
.card:hover { transform: translateY(-6px); border-color: rgba(109, 123, 255, .45); box-shadow: 0 24px 50px -24px rgba(109, 123, 255, .55); }
.card:hover::before { opacity: 1; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(109,123,255,.25), rgba(34,211,238,.18)); border: 1px solid var(--border);
  transition: transform .4s var(--ease);
}
.card:hover .svc-icon { transform: rotate(-8deg) scale(1.08); }
.svc-icon svg { width: 26px; height: 26px; fill: none; stroke: #c7d0ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.app-card { display: flex; gap: 18px; align-items: flex-start; }
.app-card h3 a { color: var(--text); text-decoration: none; }
.app-card h3 a::after { content: ""; position: absolute; inset: 0; }
.app-icon { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; color: #fff; background: var(--grad); background-size: 200% auto; box-shadow: 0 10px 24px -10px rgba(109,123,255,.8); }
.app-icon.big { width: 84px; height: 84px; font-size: 2.2rem; border-radius: 22px; }
.app-head { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.app-head h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); }
.tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(34, 211, 238, .12); color: var(--accent-2); border: 1px solid rgba(34, 211, 238, .25); }
.crumb { color: var(--muted); font-size: .92rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), transparent); }
.steps li span { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1; margin-bottom: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps p { color: var(--muted); margin: 0; }

.cta {
  position: relative; text-align: center; padding: clamp(40px, 7vw, 80px) 24px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(120deg, #4f46e5, #0891b2 55%, #9333ea); background-size: 200% 200%; animation: pan 12s ease infinite;
}
@keyframes pan { 50% { background-position: 100% 50%; } }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); }

/* ---------- Legal / content pages ---------- */
.legal h2 { margin-top: 2em; font-size: 1.5rem; }
.legal h3 { margin-top: 1.6em; font-size: 1.3rem; color: var(--accent-2); }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.links { list-style: none; padding: 0; display: grid; gap: 10px; }
.links a { display: block; padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: background .2s, transform .2s var(--ease); }
.links a:hover { background: var(--surface-2); transform: translateX(4px); }
.contact-card p { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 56px 0 28px; background: rgba(0,0,0,.2); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid p { color: var(--muted); }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid nav a { color: var(--muted); text-decoration: none; }
.footer-grid nav a:hover { color: var(--text); }
.footer-brand { font-weight: 800; font-size: 1.2rem; color: var(--text) !important; }
.footer-title { font-weight: 700; color: var(--text) !important; margin-bottom: 4px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); z-index: 60; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 12px 16px 20px;
    background: rgba(7, 9, 26, .96); border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .nav-open .main-nav { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav a { padding: 12px 14px; }
  .grid.three, .grid.four, .steps, .stats { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .section { padding-left: 16px; padding-right: 16px; }
  .phone { width: 210px; height: 420px; }
  .hero-visual { min-height: 440px; }
  .chip2 { right: 0; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td:first-child { font-weight: 650; border-bottom: 0; padding-bottom: 0; }
}

/* ---------- Logo-driven additions ---------- */
.logo img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(34, 211, 238, .35)); }
.hero-visual { align-items: center; }
.emblem {
  position: relative; z-index: 2; width: min(100%, 520px); height: auto;
  filter: drop-shadow(0 0 40px rgba(124, 92, 255, .45)) drop-shadow(0 0 18px rgba(34, 211, 238, .25));
  animation: bob 7s ease-in-out infinite; transition: transform .2s ease-out;
}
.orbit {
  position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(124, 140, 255, .28);
  transform: translate(-50%, -50%); animation: spin 40s linear infinite;
}
.orbit::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 16px var(--accent-2); }
.o1 { width: 420px; height: 420px; }
.o2 { width: 300px; height: 300px; animation-duration: 26s; animation-direction: reverse; border-color: rgba(192, 132, 252, .3); }
.o2::after { background: var(--accent-3); box-shadow: 0 0 16px var(--accent-3); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.float-chip { z-index: 3; }

.app-icon.img { object-fit: cover; padding: 0; background: none; }
.app-cat { font-size: .78rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 4px; }
.app-card h3 { margin-bottom: .35em; }
.app-head .app-cat { margin-bottom: 6px; }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 28px;
  background: linear-gradient(135deg, rgba(124, 92, 255, .14), rgba(34, 211, 238, .06)); border: 1px solid var(--border); overflow: hidden; }
.showcase-phones { position: relative; height: 480px; }
.showcase-phones .phone { position: absolute; width: 210px; height: auto; aspect-ratio: 9 / 20; padding: 8px; border-radius: 34px; animation: bob 6s ease-in-out infinite; }
.showcase-phones .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }
.showcase-phones .p0 { left: 8%; top: 0; transform: rotate(-7deg); }
.showcase-phones .p1 { right: 8%; top: 40px; transform: rotate(6deg); animation-delay: -3s; }

.features { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.features li { position: relative; padding: 12px 14px 12px 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.features li::before { content: "✓"; position: absolute; left: 14px; top: 11px; font-weight: 800; color: var(--accent-2); }
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 2px 18px; margin-bottom: 20px; scroll-snap-type: x mandatory; }
.shot { margin: 0; flex: none; width: 220px; scroll-snap-align: start; }
.shot img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--border); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .7); }
.notice, .summary { padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(34, 211, 238, .3); background: rgba(34, 211, 238, .07); color: var(--text); }
.summary ul { margin: 0; }
.summary p { margin-bottom: .4em; }
.about-head { display: flex; align-items: center; gap: 28px; margin-bottom: 28px; }
.about-logo { width: 180px; height: 180px; border-radius: 28px; background: #fff; box-shadow: 0 24px 60px -24px rgba(124, 92, 255, .8); flex: none; }
.about-head h1 { margin-bottom: .2em; }

@media (max-width: 980px) {
  .showcase { grid-template-columns: 1fr; }
  .o1 { width: 340px; height: 340px; } .o2 { width: 240px; height: 240px; }
}
@media (max-width: 760px) {
  .hero-visual { min-height: 320px; }
  .emblem { width: 92%; }
  .o1 { width: 300px; height: 300px; } .o2 { width: 210px; height: 210px; }
  .showcase-phones { height: 400px; }
  .showcase-phones .phone { width: 165px; }
  .showcase-phones .p0 { left: 0; } .showcase-phones .p1 { right: 0; }
  .about-head { flex-direction: column; align-items: flex-start; }
  .about-logo { width: 140px; height: 140px; }
}

/* ---------- Language switch ---------- */
.header-right { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-grid; place-items: center; min-width: 44px; height: 36px; padding: 0 12px; border-radius: 999px;
  font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-decoration: none; color: var(--text);
  border: 1px solid rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .08);
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.lang-switch:hover { color: #fff; background: rgba(34, 211, 238, .2); transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(34, 211, 238, .8); }

/* =====================================================================
   LIGHT THEME  (site.json: "theme": "light").  Set "theme": "dark" to go back.
   ===================================================================== */
html[data-theme="light"] {
  --bg: #f6f7fc;
  --surface: #ffffff;
  --surface-2: #eef0fa;
  --border: rgba(20, 24, 70, .09);
  --text: #141838;
  --muted: #5b6185;
  --accent: #5b4cf0;
  --accent-2: #0891b2;
  --accent-3: #9333ea;
  --grad: linear-gradient(100deg, #5b4cf0 0%, #06b6d4 50%, #a855f7 95%);
  color-scheme: light;
}
html[data-theme="light"] body {
  background-color: var(--bg);
  background-image: radial-gradient(1100px 600px at 85% -10%, rgba(91, 76, 240, .10), transparent 60%),
                    radial-gradient(900px 500px at -10% 25%, rgba(6, 182, 212, .08), transparent 60%);
}
html[data-theme="light"] a { color: #4338ca; }
html[data-theme="light"] a:hover { color: #1e1b4b; }
html[data-theme="light"] h4 { color: #262b5a; }
html[data-theme="light"] .site-header { background: rgba(255, 255, 255, .7); }
html[data-theme="light"] .site-header.scrolled { background: rgba(255, 255, 255, .9); box-shadow: 0 6px 24px -16px rgba(20, 24, 70, .35); }
html[data-theme="light"] .main-nav a:hover, html[data-theme="light"] .main-nav a[aria-current] { background: #eceefd; color: var(--text); }
html[data-theme="light"] .btn, html[data-theme="light"] .btn:hover { color: #fff; }
html[data-theme="light"] .btn-ghost { color: var(--text); background: #fff; border-color: var(--border); box-shadow: 0 6px 18px -12px rgba(20, 24, 70, .4); }
html[data-theme="light"] .btn-ghost:hover { color: var(--text); background: #fff; }
html[data-theme="light"] .btn-light, html[data-theme="light"] .btn-light:hover { color: #1e1b4b; }
html[data-theme="light"] .blob { opacity: .22; filter: blur(80px); }
html[data-theme="light"] .b3 { opacity: .14; }
html[data-theme="light"] .grid-lines { background-image: linear-gradient(rgba(20,24,70,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(20,24,70,.05) 1px, transparent 1px); }
html[data-theme="light"] .emblem { filter: drop-shadow(0 18px 40px rgba(91, 76, 240, .25)); }
html[data-theme="light"] .orbit { border-color: rgba(91, 76, 240, .22); }
html[data-theme="light"] .o2 { border-color: rgba(147, 51, 234, .2); }
html[data-theme="light"] .float-chip { background: rgba(255, 255, 255, .9); color: var(--text); box-shadow: 0 14px 30px -14px rgba(20, 24, 70, .35); }
html[data-theme="light"] .card, html[data-theme="light"] .stat, html[data-theme="light"] .steps li,
html[data-theme="light"] .facts, html[data-theme="light"] .links a, html[data-theme="light"] .features li {
  background: #fff; box-shadow: 0 10px 30px -22px rgba(20, 24, 70, .35);
}
html[data-theme="light"] .card::before { background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(91, 76, 240, .08), transparent 45%); }
html[data-theme="light"] .card:hover { border-color: rgba(91, 76, 240, .35); box-shadow: 0 26px 50px -26px rgba(91, 76, 240, .45); }
html[data-theme="light"] .svc-icon { background: linear-gradient(135deg, rgba(91,76,240,.12), rgba(6,182,212,.10)); }
html[data-theme="light"] .svc-icon svg { stroke: #4338ca; }
html[data-theme="light"] .tag { background: rgba(8, 145, 178, .08); color: #0e7490; border-color: rgba(8, 145, 178, .25); }
html[data-theme="light"] .showcase { background: linear-gradient(135deg, #ecebff, #e6f8fc); }
html[data-theme="light"] .showcase-phones .phone { background: linear-gradient(145deg, #2a2f5c, #111430); }
html[data-theme="light"] .notice, html[data-theme="light"] .summary { background: #e9f8fb; border-color: rgba(8, 145, 178, .3); }
html[data-theme="light"] code { background: #eceefd; }
html[data-theme="light"] .site-footer { background: #fff; }
html[data-theme="light"] .footer-brand, html[data-theme="light"] .footer-title { color: var(--text) !important; }
html[data-theme="light"] .about-logo { box-shadow: 0 24px 60px -28px rgba(91, 76, 240, .6); }
html[data-theme="light"] .logo img { filter: none; }
html[data-theme="light"] .lang-switch { color: #0e7490; border-color: rgba(8, 145, 178, .4); background: rgba(8, 145, 178, .06); }
html[data-theme="light"] .lang-switch:hover { color: #fff; background: #0891b2; }
html[data-theme="light"] .nav-toggle span { background: var(--text); }
html[data-theme="light"] .skip { background: var(--text); color: #fff; }
@media (max-width: 760px) {
  html[data-theme="light"] .main-nav { background: rgba(255, 255, 255, .98); box-shadow: 0 16px 30px -20px rgba(20, 24, 70, .4); }
}
html[data-theme="light"] .app-card h3 a { color: var(--text); }
html[data-theme="light"] .main-nav a { color: var(--muted); }
html[data-theme="light"] .main-nav a:hover, html[data-theme="light"] .main-nav a[aria-current] { color: var(--text); }
html[data-theme="light"] .footer-grid nav a { color: var(--muted); }
html[data-theme="light"] .footer-grid nav a:hover { color: var(--text); }
.grid.apps { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .grid.apps { grid-template-columns: 1fr; } }
html[data-theme="light"] .logo { color: var(--text); }
.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.feature-graphic { width: 100%; height: auto; border-radius: 22px; margin: 6px 0 28px; box-shadow: 0 30px 60px -30px rgba(20, 24, 70, .55); }
.shot figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); text-align: center; }
.shot a { display: block; cursor: zoom-in; }
.shot img { transition: transform .35s var(--ease); }
.shot a:hover img { transform: translateY(-6px) scale(1.02); }
.small { font-size: .85rem; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(8, 9, 32, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.lightbox.open { opacity: 1; }
.lightbox img { max-width: min(92vw, 460px); max-height: 88vh; width: auto; height: auto; border-radius: 26px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.8); }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; font-size: 1.4rem; background: #fff; color: #141838; cursor: pointer; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; right: auto; transform: translateY(-50%); }
.lightbox .lb-prev { left: 16px; } .lightbox .lb-next { left: auto; right: 16px; }
.sol-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-size: 1.6rem; margin-bottom: 16px; background: linear-gradient(135deg, rgba(91,76,240,.12), rgba(6,182,212,.10)); border: 1px solid var(--border); transition: transform .4s var(--ease); }
.card:hover .sol-ic { transform: rotate(-8deg) scale(1.08); }
#solutions .lead { margin-bottom: 32px; }
.excel-box { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; margin-top: 28px; padding: clamp(24px, 4vw, 44px); border-radius: 26px;
  background: linear-gradient(135deg, rgba(16, 124, 65, .10), rgba(6, 182, 212, .08)); border: 1px solid rgba(16, 124, 65, .25); }
.excel-box .svc-icon { background: rgba(16, 124, 65, .14); }
.excel-box .svc-icon svg { stroke: #107c41 !important; }
.excel-box h3 { font-size: 1.45rem; }
.excel-box .features { margin: 0; grid-template-columns: 1fr 1fr; }
.excel-box .features li::before { color: #107c41; }
@media (max-width: 860px) { .excel-box, .excel-box .features { grid-template-columns: 1fr; } }

/* Project screenshot gallery (landscape web screenshots) */
.card.project.has-shots { grid-column: 1 / -1; }
.project-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.shot.wide { margin: 0; width: auto; flex: initial; }
.shot.wide img { width: 100%; height: auto; aspect-ratio: 960 / 604; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .25); display: block; transition: transform .3s ease; }
.shot.wide a:hover img { transform: translateY(-3px); }
.project-shots + .small { margin-top: 10px; }
@media (max-width: 760px) { .project-shots { grid-template-columns: 1fr; } }

/* Support box on the contact page */
.support-box { margin: 36px 0; padding: 28px; border-left: 4px solid var(--accent, #6d7bff); }
.support-box h2 { margin-top: 0; }
.support-steps { list-style: none; counter-reset: s; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.support-steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 52px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.support-steps li::before { content: counter(s); position: absolute; left: 14px; top: 11px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: #fff; background: var(--grad); }
.support-steps strong { display: block; }
.support-steps span { color: var(--muted); font-size: .93rem; }
.support-pick { font-weight: 700; margin-top: 22px; }
.support-apps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.support-apps .btn { width: 100%; justify-content: flex-start; gap: 10px; text-align: left; }
.app-icon.sm { width: 32px; height: 32px; border-radius: 9px; font-size: 1rem; box-shadow: none; }

/* Price badge */
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag.price { background: linear-gradient(135deg, rgba(109,123,255,.14), rgba(236,72,153,.14)); color: #6d28d9; border-color: rgba(109,123,255,.35); font-weight: 800; }
.tag.price.free { background: rgba(16,185,129,.12); color: #047857; border-color: rgba(16,185,129,.35); }
html[data-theme="dark"] .tag.price { color: #c4b5fd; }
html[data-theme="dark"] .tag.price.free { color: #6ee7b7; }
html[data-theme="light"] .tag.price { background: linear-gradient(135deg, rgba(109,123,255,.12), rgba(236,72,153,.12)); color: #6d28d9; border-color: rgba(109,123,255,.35); }
html[data-theme="light"] .tag.price.free { background: rgba(16,185,129,.1); color: #047857; border-color: rgba(16,185,129,.35); }
