/* Vistalyo website styles. Mobile first; light theme with automatic dark mode. */

:root {
  --accent: #2f6fed;
  --accent-2: #4f8cff;
  --accent-ink: #1f56c8;
  --accent-soft: #e8f0fe;
  --hero-bg: #0f1115;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --surface: #ffffff;
  --text: #0f1115;
  --text-2: #4a5263;
  --border: #e2e6ee;
  --success-bg: #e8f6ee;
  --success-ink: #13693c;
  --error-bg: #fdecec;
  --error-ink: #b42318;
  --warn-bg: #fff6e0;
  --warn-ink: #7a4b00;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(15 17 21 / 0.04), 0 8px 24px rgb(15 17 21 / 0.06);
  --gutter: 16px;
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Georgian", "Noto Sans", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #4f8cff;
    --accent-2: #7aa8ff;
    --accent-ink: #8db4ff;
    --accent-soft: #17233d;
    --bg: #0f1115;
    --bg-alt: #151922;
    --surface: #1a1f2a;
    --text: #eef1f6;
    --text-2: #a9b1c1;
    --border: #2a3140;
    --success-bg: #11301f;
    --success-ink: #7ddca4;
    --error-bg: #3a1714;
    --error-ink: #ffaaa1;
    --warn-bg: #33270d;
    --warn-ink: #ffd27a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-wrap: break-word;
}

img, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-underline-offset: 0.15em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.muted { color: var(--text-2); }

.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; color: #fff; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { background: #2f6fed; } .btn-primary:hover { background: #4f8cff; } }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.nav-toggle { display: none; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: 0.95rem; cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-links, .lang-switch { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.nav-links a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 500; }
.nav-links a:hover { background: var(--bg-alt); }
.nav-links a[aria-current="page"] { color: var(--accent-ink); }
.lang-switch { margin-left: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px; }
.lang-switch a { display: block; min-width: 40px; padding: 6px 10px; border-radius: 999px; text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--text-2); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .lang-switch a[aria-current="true"] { background: #2f6fed; } }

@media (max-width: 760px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; padding: 4px 0 14px; flex-direction: column; align-items: stretch; }
  .js .site-nav.is-open { display: flex; }
  .js .nav-links { flex-direction: column; align-items: stretch; }
  .js .nav-links a { padding: 12px; }
  .js .lang-switch { margin: 8px 0 0; align-self: flex-start; }
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: #f3f5f9; padding: 56px 0 64px; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 720px; height: 720px; max-width: 140vw; background: radial-gradient(closest-side, rgb(79 140 255 / 0.35), transparent); pointer-events: none; }
.hero-inner { position: relative; display: grid; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 16px; padding: 6px 12px; border: 1px solid rgb(255 255 255 / 0.16); border-radius: 999px; color: #c8d6f5; font-size: 0.85rem; font-weight: 600; }
.hero h1 { color: #fff; font-size: clamp(2rem, 7vw, 3.4rem); }
.hero-lead { max-width: 38em; color: #c2c9d6; font-size: 1.08rem; }
.hero-note { margin: 18px 0 0; color: #9aa4b5; font-size: 0.95rem; }
.hero-note a { color: #9cc0ff; }
.hero-note a:hover { color: #fff; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; min-width: 176px; min-height: 56px; padding: 8px 18px; border: 1px solid rgb(255 255 255 / 0.22); border-radius: 12px; background: #000; color: #fff; text-decoration: none; }
.store-btn[href]:hover { border-color: #fff; color: #fff; }
.store-btn[aria-disabled="true"] { background: rgb(255 255 255 / 0.06); color: #c9d0dc; cursor: default; }
.store-btn .icon { width: 26px; height: 26px; }
.store-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-sub { font-size: 0.75rem; opacity: 0.85; }
.store-name { font-size: 1.1rem; font-weight: 600; }

.hero-visual { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.orbit { position: absolute; border-radius: 50%; border: 1.5px solid rgb(122 168 255 / 0.45); }
.orbit-1 { width: 100%; height: 38%; transform: rotate(-12deg); animation: spin-a 14s linear infinite; }
.orbit-2 { width: 82%; height: 30%; border-color: rgb(122 168 255 / 0.25); transform: rotate(14deg); animation: spin-b 18s linear infinite; }
@keyframes spin-a { to { transform: rotate(348deg); } }
@keyframes spin-b { to { transform: rotate(374deg); } }
.hero-phone { position: relative; width: 46%; aspect-ratio: 9 / 18; padding: 8px; border-radius: 28px; background: linear-gradient(160deg, #2a3140, #151922); box-shadow: 0 24px 60px rgb(0 0 0 / 0.5), inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.hero-screen { height: 100%; border-radius: 21px; background: linear-gradient(180deg, #2f6fed, #1b3f8f 70%, #0f1f45); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; }
.hero-car { width: 56%; height: auto; aspect-ratio: 1; stroke-width: 1.3; }
.hero-360 { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.02em; }
.hero-rotate { width: 40%; height: auto; aspect-ratio: 1; opacity: 0.85; stroke-width: 1.4; }

/* ---- Sections ---- */
.section { padding: 64px 0; }
.section-tight { padding-top: 32px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { color: var(--text-2); font-size: 1.05rem; margin: 0; }

.page-hero { padding: 48px 0 8px; }
.page-hero .lead { color: var(--text-2); font-size: 1.15rem; max-width: 40em; }

/* Demo cards */
.demo-grid { display: grid; gap: 20px; }
.demo-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.demo-frame { position: relative; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; color: var(--text-2); background: radial-gradient(circle at 50% 40%, var(--accent-soft), transparent 70%); }
.demo-placeholder .icon { width: 56px; height: 56px; color: var(--accent); stroke-width: 1.4; }
.demo-placeholder p { margin: 0; font-weight: 600; }
.demo-body { padding: 18px 20px 20px; }
.demo-body p { margin: 0; color: var(--text-2); }

/* Steps */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 22px 20px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); counter-increment: step; }
.step::before { content: counter(step); position: absolute; top: 18px; right: 20px; font-size: 2rem; font-weight: 800; line-height: 1; color: var(--accent); opacity: 0.18; }
.step-icon, .card-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.step p, .card p { margin: 0; color: var(--text-2); }

/* Card grid */
.card-grid { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.section-alt .card { box-shadow: none; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.faq summary { position: relative; padding: 16px 48px 16px 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--text-2); }

/* CTA */
.cta { padding: 40px 24px; border-radius: 20px; background: linear-gradient(135deg, #1f56c8, #2f6fed 55%, #4f8cff); color: #fff; text-align: center; }
.cta h2 { max-width: 22em; margin-left: auto; margin-right: auto; color: #fff; }
.cta p { color: #e3ecff; }
.cta .btn-primary { background: #fff; color: #1f56c8; }
.cta .btn-primary:hover { background: #eef3ff; color: #1f56c8; }

/* Prose & legal */
.prose h2 { margin-top: 1.6em; font-size: 1.45rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.callout { padding: 18px 20px; border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--accent-soft); font-size: 1.1rem; }
.legal h2 { scroll-margin-top: 80px; }
.toc { margin-bottom: 32px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt); }
.toc h2 { margin: 0 0 8px; font-size: 1rem; }
.toc ol { margin: 0; columns: 2 260px; column-gap: 32px; }
.toc li { break-inside: avoid; }
.draft-notice { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 24px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--warn-ink) 30%, transparent); border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn-ink); }

/* Contact */
.contact-grid { display: grid; gap: 20px; align-items: start; }
.panel { padding: 24px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.panel h2 { font-size: 1.25rem; }
.panel p:last-child { margin-bottom: 0; }
.contact-side { display: grid; gap: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; }
.optional { color: var(--text-2); font-weight: 400; }
.field input, .field textarea { display: block; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: inherit; }
.field input { border-color: color-mix(in srgb, var(--text-2) 45%, var(--border)); }
.field textarea { resize: vertical; min-height: 140px; border-color: color-mix(in srgb, var(--text-2) 45%, var(--border)); }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error-ink); }
.field-error { margin: 6px 0 0; color: var(--error-ink); font-size: 0.92rem; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-bottom: 18px; padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 500; }
.form-status:focus { outline: none; }
.form-status.is-success { background: var(--success-bg); color: var(--success-ink); }
.form-status.is-error { background: var(--error-bg); color: var(--error-ink); }
.form-note { margin: 14px 0 0; color: var(--text-2); font-size: 0.9rem; }
.contact-list { display: grid; gap: 14px; margin: 0 0 16px; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: var(--accent); margin-top: 2px; }
.contact-label { display: block; color: var(--text-2); font-size: 0.85rem; }
.legal-info { white-space: pre-line; }

/* Social links */
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.social-links a { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.9rem; text-decoration: none; }

/* ---- Footer ---- */
.site-footer { padding: 48px 0 24px; border-top: 1px solid var(--border); background: var(--bg-alt); color: var(--text-2); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand p { max-width: 26em; margin: 12px 0 0; }
.footer-title { margin: 0 0 10px; font-size: 0.95rem; color: var(--text); }
.footer-col ul { margin: 0 0 12px; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: var(--text-2); }
.footer-col a:hover { color: var(--accent-ink); }
.site-footer .social-links a { color: var(--text-2); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.footer-bottom p { margin: 0; font-size: 0.875rem; }

/* ---- Larger screens ---- */
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .panel { padding: 28px; }
}

@media (min-width: 900px) {
  :root { --gutter: 24px; }
  .hero { padding: 88px 0 96px; }
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; }
  .hero-visual { width: min(100%, 400px); }
  .section { padding: 88px 0; }
  .section-tight { padding-top: 40px; }
  .demo-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 28px; }
  .cta { padding: 56px 32px; }
  .page-hero { padding: 72px 0 8px; }
}
