/* =========================================================================
   landing.css — marketing page
   ========================================================================= */

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 500;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--brand-2), var(--brand-strong));
  box-shadow: 0 6px 18px -6px var(--brand-glow);
}

.nav-links { display: flex; gap: 6px; margin-inline-start: 18px; margin-inline-end: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px; color: var(--text-muted); font-weight: 600; font-size: 0.94rem;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--panel); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.icon-btn:hover { border-color: var(--brand-2); background: var(--panel-2); }
.ico-moon { display: none; }
:root[data-theme="light"] .ico-sun { display: none; }
:root[data-theme="light"] .ico-moon { display: block; }
.nav-burger { display: none; }

/* ---------- HERO ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(60px, 9vw, 120px); position: relative; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 70px); align-items: center;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title { font-size: clamp(2.4rem, 6vw, 4.1rem); margin: 22px 0 20px; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 560px; }
.hero-cta { display: flex; gap: 14px; margin: 32px 0 22px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--border); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.9rem; font-weight: 800; color: var(--text); line-height: 1; }
.hero-stats span { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }

/* Hero visual */
.hero-visual { position: relative; }
.window-frame {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong);
  background: var(--panel-solid); box-shadow: var(--shadow-lg);
}
.window-bar {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-bottom: 1px solid var(--border);
}
.window-bar.light { background: linear-gradient(180deg, rgba(120,120,160,0.1), rgba(120,120,160,0.04)); }
.wb-dots { display: inline-flex; gap: 6px; }
.wb-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.wb-dots i:nth-child(1) { background: #ff5f57; }
.wb-dots i:nth-child(2) { background: #febc2e; }
.wb-dots i:nth-child(3) { background: #28c840; }
.wb-title { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.hero-visual .window-frame img { width: 100%; height: auto; max-height: 560px; object-fit: cover; object-position: top center; }

.hero-float {
  position: absolute; display: flex; align-items: center; gap: 11px;
  padding: 12px 16px; border-radius: 15px; background: var(--panel-solid);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-md);
  animation: float 5s ease-in-out infinite;
}
.hero-float b { display: block; font-size: 0.92rem; }
.hero-float small { color: var(--text-muted); font-size: 0.76rem; }
.hf-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; }
.hero-float-1 { bottom: 26px; inset-inline-start: -26px; }
.hero-float-2 { top: 40px; inset-inline-end: -22px; animation-delay: -2.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- TRUST ---------- */
.trust { padding: 20px 0 8px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px;
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border);
}
.trust-item svg { width: 30px; height: 30px; color: var(--brand-2); flex-shrink: 0; }
.trust-item b { display: block; font-size: 0.98rem; }
.trust-item span { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- FEATURES ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { padding: 30px; transition: transform 0.3s var(--ease), border-color 0.3s; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.feature-ico {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.feature-ico svg { width: 27px; height: 27px; }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature-card > p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }
.feature-points { display: flex; flex-direction: column; gap: 9px; }
.feature-points li { position: relative; padding-inline-start: 26px; font-size: 0.9rem; color: var(--text); }
.feature-points li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--green-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 6L9 17l-5-5' stroke='%232ee6a0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
}

/* ---------- SPOTLIGHT ---------- */
.spotlight-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.spotlight-list { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.spotlight-list li { display: flex; gap: 16px; align-items: flex-start; }
.sl-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; background: var(--brand-glow); color: #fff; border: 1px solid var(--brand-2);
}
:root[data-theme="light"] .sl-num { background: rgba(109,94,246,0.14); color: var(--brand); }
.spotlight-list b { display: block; margin-bottom: 3px; }
.spotlight-list span { color: var(--text-muted); font-size: 0.92rem; }
.spotlight-visual .window-frame img { width: 100%; height: auto; }

/* ---------- DEMO ---------- */
.demo-section { position: relative; }
.demo-shell {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong);
  background: var(--panel-solid); box-shadow: var(--shadow-lg); max-width: 1100px; margin-inline: auto;
}
.demo-toolbar {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border-bottom: 1px solid var(--border);
}
.demo-dots { display: inline-flex; gap: 7px; }
.demo-dots i { width: 12px; height: 12px; border-radius: 50%; }
.demo-dots i:nth-child(1) { background: #ff5f57; }
.demo-dots i:nth-child(2) { background: #febc2e; }
.demo-dots i:nth-child(3) { background: #28c840; }
.demo-url {
  display: inline-flex; align-items: center; gap: 7px; margin-inline: auto;
  font-size: 0.82rem; color: var(--text-muted); background: var(--panel); padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--border);
}
.demo-expand { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--border); color: var(--text); transition: 0.2s; }
.demo-expand:hover { border-color: var(--brand-2); color: var(--brand-2); }
.demo-frame { width: 100%; height: 760px; border: 0; display: block; background: var(--bg-2); }
.demo-note { text-align: center; color: var(--text-faint); font-size: 0.86rem; margin-top: 18px; max-width: 640px; margin-inline: auto; }

/* ---------- GALLERY ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); background: var(--panel-solid); aspect-ratio: 16/10;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.gallery-item:hover { transform: translateY(-4px); border-color: var(--brand-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.gallery-cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 22px 16px 12px;
  font-size: 0.86rem; font-weight: 600; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
}
.gallery-item .zoom-hint {
  position: absolute; top: 12px; inset-inline-end: 12px; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; background: rgba(0,0,0,0.5); color: #fff; opacity: 0; transition: opacity 0.2s;
}
.gallery-item:hover .zoom-hint { opacity: 1; }

/* ---------- THEMES ---------- */
.themes-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.theme-swatch {
  aspect-ratio: 3/4; border-radius: var(--radius); position: relative; overflow: hidden;
  border: 1px solid var(--border-strong); display: flex; align-items: flex-end; padding: 14px;
  background: linear-gradient(150deg, var(--a), var(--b)); transition: transform 0.3s var(--ease);
}
.theme-swatch:hover { transform: translateY(-5px) scale(1.02); }
.theme-swatch::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 20% 10%, rgba(255,255,255,0.35), transparent 55%); }
.theme-swatch span { position: relative; font-weight: 700; color: #fff; font-size: 0.9rem; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }

/* ---------- SECURITY ---------- */
.security-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.sec-item { display: flex; gap: 14px; align-items: flex-start; }
.sec-item svg { width: 30px; height: 30px; color: var(--green); flex-shrink: 0; }
.sec-item b { display: block; margin-bottom: 3px; }
.sec-item span { font-size: 0.88rem; color: var(--text-muted); }
.security-visual .window-frame img { width: 100%; height: auto; }

/* ---------- DOWNLOAD ---------- */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 980px; margin-inline: auto; }
.download-card { padding: 32px 28px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.download-card.recommended { border-color: var(--brand-2); box-shadow: 0 0 0 1px var(--brand-2), 0 20px 50px -20px var(--brand-glow); }
.dl-tag { position: absolute; top: -12px; inset-inline-start: 28px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; font-size: 0.72rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }
.download-card h3 { font-size: 1.25rem; }
.download-card p { color: var(--text-muted); font-size: 0.9rem; flex-grow: 1; }
.download-card .btn { margin-top: 8px; }
.download-foot { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.chip-link { transition: border-color 0.2s, color 0.2s; }
.chip-link:hover { border-color: var(--brand-2); color: var(--text); }

/* ---------- FAQ ---------- */
.faq-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); overflow: hidden; transition: border-color 0.2s; }
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--brand-2); font-weight: 400; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--text-muted); font-size: 0.94rem; }

/* ---------- FINAL CTA ---------- */
.cta-card {
  text-align: center; padding: clamp(44px, 7vw, 80px) 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong); position: relative; overflow: hidden;
  background:
    radial-gradient(700px 300px at 50% -20%, var(--brand-glow), transparent 70%),
    var(--panel);
}
.cta-card h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta-card p { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; margin-top: 20px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 380px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.92rem; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--brand-2); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 26px; border-top: 1px solid var(--border); font-size: 0.84rem; color: var(--text-faint); flex-wrap: wrap; gap: 10px; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400; display: none; place-items: center;
  background: rgba(5, 5, 12, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 40px;
}
.lightbox.open { display: grid; }
.lb-figure { max-width: 92vw; max-height: 88vh; margin: 0; text-align: center; }
.lb-figure img { max-width: 100%; max-height: 82vh; border-radius: 14px; border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); }
.lb-figure figcaption { color: #fff; margin-top: 14px; font-weight: 600; }
.lb-close { position: absolute; top: 22px; inset-inline-end: 28px; font-size: 2.4rem; color: #fff; line-height: 1; opacity: 0.8; }
.lb-close:hover { opacity: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 3rem; color: #fff; width: 60px; height: 60px; opacity: 0.7; }
.lb-nav:hover { opacity: 1; }
.lb-prev { inset-inline-start: 14px; }
.lb-next { inset-inline-end: 14px; }
[dir="rtl"] .lb-prev { transform: translateY(-50%) scaleX(-1); }
[dir="rtl"] .lb-next { transform: translateY(-50%) scaleX(-1); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .themes-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav.menu-open .nav-links {
    display: flex; position: absolute; top: var(--nav-h); inset-inline: 0; flex-direction: column;
    background: var(--panel-solid); border-bottom: 1px solid var(--border); padding: 14px 24px; gap: 4px; margin: 0;
  }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; order: 2; }
  .hero-float-1 { inset-inline-start: 0; }
  .hero-float-2 { inset-inline-end: 0; }
  .spotlight-inner, .security-inner, .faq-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
}
@media (max-width: 560px) {
  .feature-grid, .download-grid, .security-grid, .footer-cols { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .demo-frame { height: 620px; }
  .hero-stats { gap: 22px; }
  .lang-en { display: none; }
}
