/* SBC Start landing page. Plain CSS, no build step: served as-is by GitHub Pages. */
:root {
  color-scheme: dark;
  --glass: rgba(255, 255, 255, .14);
  --glass-hover: rgba(255, 255, 255, .22);
  --glass-line: rgba(255, 255, 255, .45);
  --ink: #0f172a;
  --royal: #406ae4;
  --font: 'Vazirmatn', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html[lang='en'] { --font: 'Inter', 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  font-family: var(--font); color: #fff; background: #0c0619; -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #b9c6ff; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.bg {
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5, 3, 14, .1), rgba(5, 3, 14, 0) 45%, rgba(5, 3, 14, .55)), url('../src/assets/wallpapers/aurora.svg') center / cover no-repeat, #0c0619;
}

.lang-toggle {
  position: fixed; top: 20px; inset-inline-end: 24px; z-index: 5;
  height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background .2s;
}
.lang-toggle:hover { background: rgba(255, 255, 255, .18); }
.lang-toggle[lang='fa'] { font-family: 'Vazirmatn', system-ui, sans-serif; }

/* ---------- hero column */
.hero { flex: 1; width: min(1080px, 100%); margin: 0 auto; padding: 32px 16px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.brand { display: flex; flex-direction: column; align-items: center; }
.logo { width: 96px; height: 96px; filter: drop-shadow(0 10px 30px rgba(0, 152, 234, .45)); animation: float 6s ease-in-out infinite; }
h1 { margin: 14px 0 0; font-size: clamp(32px, 4vw, 46px); font-weight: 700; line-height: 1.5; letter-spacing: -.01em; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
html[lang='en'] h1 { letter-spacing: -.03em; }

.statement { margin: 14px 0 0; font-size: clamp(18px, 2vw, 25px); font-weight: 600; line-height: 1.5; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .35em; }
.words { display: inline-grid; height: 1.5em; overflow: hidden; vertical-align: bottom; }
.word { grid-area: 1 / 1; white-space: nowrap; transform: translateY(105%); opacity: 0; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .6s; background: linear-gradient(90deg, #f0d4ff, #b9c6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.word.on { transform: none; opacity: 1; }
.word.out { transform: translateY(-105%); opacity: 0; }

/* ---------- download buttons */
.downloads { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 120px); gap: 20px; }
.dl-box, .info, .feature, .dl-dropdown {
  background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.dl-box { width: 100%; height: 70px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--glass-line); transition: background .2s, transform .2s; }
.dl-box:hover { background: var(--glass-hover); transform: translateY(-2px); }
.dl-box .glyph svg { width: 42px; height: 42px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .3)); }
.dl-menu { position: relative; }
.dl-more { position: absolute; top: 50%; inset-inline-end: 8px; translate: 0 -50%; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: rgba(255, 255, 255, .9); transition: background .2s; }
.dl-more:hover, .dl-more[aria-expanded='true'] { background: rgba(255, 255, 255, .2); }
.dl-dropdown { position: absolute; z-index: 10; top: calc(100% + 8px); inset-inline-start: 0; min-width: 230px; padding: 6px; display: grid; gap: 2px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(24, 18, 44, .82); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); text-align: start; }
.dl-dropdown[hidden] { display: none; }
.dl-dropdown button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.dl-dropdown button:hover { background: rgba(255, 255, 255, .1); }
.dl-dropdown .glyph svg { width: 20px; height: 20px; }

/* ---------- info bar */
.info { margin-top: 42px; width: min(520px, 100%); height: 80px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; border-radius: 12px; border: 1px solid var(--glass-line); }
.info-box { display: grid; gap: 2px; padding: 0 12px; }
.info-box + .info-box { border-inline-start: 1px solid rgba(255, 255, 255, .3); }
.info-box b { font-size: 20px; font-weight: 700; line-height: 1.3; }
.info-box span { font-size: 15px; color: rgba(255, 255, 255, .88); }

/* ---------- feature tiles */
.features { margin-top: 46px; display: grid; grid-template-columns: repeat(8, 110px); gap: 20px; }
.feature { height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: 16px; font-size: 16px; font-weight: 600; transition: background .2s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.feature:hover { background: var(--glass-hover); transform: translateY(-6px); }
.feature svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature:hover svg { animation: nudge .7s ease; }

/* ---------- footer */
.foot { width: min(1080px, 100%); margin: 0 auto; padding: 18px 16px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.foot-brand { font-weight: 600; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a, .foot-links button { font-size: 14px; color: rgba(255, 255, 255, .9); transition: color .2s; }
.foot-links a:hover, .foot-links button:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- modals (light, like a sheet of paper over the scene) */
.modal { width: min(746px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 22px 36px 32px; border: 0; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 30px 90px rgba(0, 0, 0, .45); overflow: auto; font-family: var(--font); }
.modal::backdrop { background: rgba(14, 10, 26, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: rise .26s cubic-bezier(.2, .8, .2, 1); }
.modal-close { position: absolute; top: 18px; inset-inline-end: 18px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #ef4444; transition: background .2s; }
.modal-close:hover { background: #fef2f2; }
.modal-text { max-width: 470px; margin: 0 auto; text-align: center; }
.modal h2 { margin: 4px 0 6px; font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.5; }
.modal p { margin: 0; font-size: 16px; line-height: 1.75; color: #334155; }
.modal-preview { margin: 26px auto 0; width: min(595px, 100%); aspect-ratio: 595 / 320; border-radius: 16px; overflow: hidden; background: rgba(15, 23, 42, .05); border: 1px solid rgba(15, 23, 42, .08); }
.modal-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.install-glyph { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: #f1f5f9; margin-top: 6px; }
.install-glyph svg { width: 42px; height: 42px; }
.steps { list-style: none; counter-reset: step; max-width: 540px; margin: 22px auto 0; padding: 0; display: grid; gap: 12px; text-align: start; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.8; color: #1e293b; }
.steps li::before { content: counter(step); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #eef2ff; color: var(--royal); font-weight: 700; font-size: 14px; }
html[lang='fa'] .steps li::before { content: counter(step, persian); }
.steps code, .privacy-list code { direction: ltr; unicode-bidi: isolate; padding: 1px 7px; border-radius: 6px; background: #f1f5f9; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; color: #1e293b; white-space: nowrap; }
.steps .note { display: block; font-size: 13px; color: #64748b; }
.modal-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.btn-primary, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 15px; transition: background .2s, transform .2s; }
.btn-primary { background: var(--royal); color: #fff; box-shadow: 0 10px 24px rgba(64, 106, 228, .35); }
.btn-primary:hover { background: #3359cc; transform: translateY(-1px); }
.btn-ghost { border: 1px solid #e2e8f0; color: var(--ink); }
.btn-ghost:hover { background: #f8fafc; }
.privacy-list { max-width: 560px; margin: 18px auto 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.privacy-list li { position: relative; padding-inline-start: 26px; font-size: 15px; line-height: 1.85; color: #1e293b; text-align: start; }
.privacy-more { margin: 20px 0 0; text-align: center; font-size: 15px; }
.privacy-more a { color: var(--royal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.privacy-list li::before { content: ''; position: absolute; inset-inline-start: 4px; top: .75em; width: 8px; height: 8px; border-radius: 50%; background: var(--royal); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes nudge { 0% { transform: none; } 30% { transform: translateY(-4px) rotate(-8deg); } 60% { transform: translateY(0) rotate(6deg); } 100% { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- responsive */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(4, 110px); }
}
@media (max-width: 620px) {
  .hero { padding-top: 64px; }
  .logo { width: 76px; height: 76px; }
  .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 12px; margin-top: 28px; }
  .info { margin-top: 28px; }
  .info-box b { font-size: 17px; }
  .info-box span { font-size: 13px; }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 10px; margin-top: 28px; }
  .feature { height: auto; aspect-ratio: 1; font-size: 13px; gap: 6px; border-radius: 14px; }
  .feature svg { width: 32px; height: 32px; }
  .foot { justify-content: center; text-align: center; }
  .modal { padding: 56px 18px 22px; }
}
@media (max-width: 360px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
