/* ============================================================
   FView Power — Official Site
   Minimal · black & white · red accent
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f7f7f7;
  --fg:        #0a0a0a;
  --fg-soft:   #555;
  --fg-mute:   #999;
  --line:      #e5e5e5;
  --line-soft: #f0f0f0;
  --accent:    #e53935;       /* red accent */
  --accent-ink:#ffffff;
  --code-bg:   #0a0a0a;
  --code-fg:   #f5f5f5;
  --shadow:    0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06);
  --radius:    6px;
  --radius-lg: 14px;
  --max:       1180px;
  --narrow:    720px;
  --t:         .25s cubic-bezier(.4,0,.2,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0a0a0a;
    --bg-alt:    #111;
    --fg:        #f5f5f5;
    --fg-soft:   #b5b5b5;
    --fg-mute:   #6a6a6a;
    --line:      #222;
    --line-soft: #181818;
    --code-bg:   #f5f5f5;
    --code-fg:   #0a0a0a;
    --shadow:    0 1px 2px rgba(0,0,0,.5), 0 16px 40px rgba(0,0,0,.4);
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  margin: 0 2px;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: var(--narrow); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.nav__logo  { width: 24px; height: 24px; }
.nav__menu  { display: flex; gap: 28px; font-size: 14px; color: var(--fg-soft); }
.nav__menu a { transition: color var(--t); }
.nav__menu a:hover { color: var(--fg); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__github { color: var(--fg-soft); display: inline-flex; }
.nav__github:hover { color: var(--fg); }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px;
  font-size: 12px; font-weight: 500;
  color: var(--fg-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all var(--t);
}
.lang-toggle:hover { color: var(--fg); border-color: var(--fg); }
.lang-toggle__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 720px) {
  .nav__menu { display: none; }
}

/* ---------- macOS warning banner ---------- */
.macos-banner {
  position: sticky;
  top: 60px;
  z-index: 49;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 32px;
  font-size: 13px;
  color: var(--fg-soft);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.macos-banner__cmd {
  display: inline-block;
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  white-space: nowrap;
}
.macos-banner__close {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--fg-mute);
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--t);
  line-height: 1;
}
.macos-banner__close:hover {
  color: var(--fg);
  border-color: var(--line);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  opacity: .04; pointer-events: none;
}
.hero__badge {
  display: inline-block;
  margin-bottom: 28px;
  padding: 5px 12px;
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  color: var(--fg-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.hero__title {
  margin: 0 0 24px;
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.hero__title-accent {
  background: linear-gradient(180deg, var(--fg) 0%, var(--fg) 60%, var(--accent) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__subtitle {
  max-width: 580px; margin: 0 auto 40px;
  font-size: 17px; line-height: 1.7;
  color: var(--fg-soft);
}
.hero__cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--fg-mute);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .04em;
}
.hero__meta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 10%, transparent); } }

/* hero window mock */
.hero__window {
  max-width: 880px; margin: 80px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg);
  animation: rise 1s .2s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.hero__window-bar {
  display: flex; gap: 6px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.hero__window-bar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--line);
}
.hero__window-bar span:first-child { background: var(--accent); }
.hero__window-body {
  display: grid; grid-template-columns: 200px 1fr; min-height: 320px;
}
.hero__window-sidebar {
  padding: 24px 16px;
  background: var(--bg-alt);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.hero__window-content {
  padding: 32px 40px;
  display: flex; flex-direction: column; gap: 14px;
}
.bar {
  height: 8px; border-radius: 3px;
  background: var(--line);
}
.bar--sm   { width: 50%; }
.bar--md   { width: 75%; }
.bar--lg   { width: 90%; }
.bar--title{ height: 18px; width: 60%; background: var(--fg); margin-bottom: 8px; }
.bar--text { width: 100%; }
.bar--short{ width: 65%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px;
  font-size: 14px; font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all var(--t);
}
.btn--primary {
  background: var(--fg); color: var(--bg);
}
.btn--primary:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.btn--ghost {
  color: var(--fg);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--fg); }

/* ---------- sections ---------- */
.section { padding: 120px 0; }
.section--alt { background: var(--bg-alt); }
.section--cta { background: var(--code-bg); color: var(--code-fg); }
.section--cta .section__title { color: var(--code-fg); }
.section--cta .section__lead  { color: color-mix(in srgb, var(--code-fg) 65%, transparent); }

.section__head {
  text-align: center;
  margin-bottom: 72px;
}
.section__eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: 16px;
}
.section__title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.section__lead {
  max-width: 560px; margin: 0 auto;
  font-size: 17px;
  color: var(--fg-soft);
}

/* ---------- feature grid ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid--3 { grid-template-columns: 1fr; } }

.card {
  padding: 36px 32px;
  background: var(--bg);
  transition: background var(--t);
}
.card:hover { background: var(--bg-alt); }
.card__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
}
.card__title { margin: 0 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.card__body  { margin: 0; font-size: 15px; line-height: 1.65; color: var(--fg-soft); }

/* ---------- screenshots ---------- */
.shots {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.shot { margin: 0; }
.shot img,
.shot video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: transform var(--t), box-shadow var(--t);
}
.shot:hover img,
.shot:hover video { transform: translateY(-4px); box-shadow: var(--shadow); }
.shot figcaption {
  margin-top: 14px;
  font-size: 13px; color: var(--fg-mute);
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- shortcuts table ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.table th { background: var(--bg-alt); font-weight: 600; font-size: 12px; letter-spacing: .04em; color: var(--fg-soft); text-transform: uppercase; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--bg-alt); }

/* ---------- download ---------- */
.download { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
@media (max-width: 720px) { .download { grid-template-columns: 1fr; } }
.dl {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  background: color-mix(in srgb, var(--code-fg) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--code-fg) 12%, transparent);
  border-radius: var(--radius);
  color: var(--code-fg);
  transition: all var(--t);
}
.dl:hover {
  background: var(--code-fg);
  color: var(--code-bg);
  transform: translateY(-2px);
  border-color: var(--code-fg);
}
.dl__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  border-radius: 10px;
  color: var(--accent-ink);
  flex-shrink: 0;
}
.dl__name { font-weight: 600; font-size: 15px; }
.dl__meta { font-size: 12px; opacity: .65; font-family: 'JetBrains Mono', monospace; margin-top: 2px; }

/* ---------- FAQ ---------- */
.qa {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.qa summary {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  font-size: 17px; font-weight: 500;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  font-size: 24px; font-weight: 300; line-height: 1;
  color: var(--fg-mute);
  transition: transform var(--t);
}
.qa[open] summary::after { content: "−"; color: var(--accent); }
.qa p { margin: 16px 0 0; color: var(--fg-soft); line-height: 1.75; }

/* ---------- footer ---------- */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--line); }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--fg-soft); }
.footer__mark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .05em;
  padding: 4px 8px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 4px;
}
.footer__links { display: flex; gap: 24px; font-size: 13px; color: var(--fg-soft); }
.footer__copy { font-size: 12px; color: var(--fg-mute); font-family: 'JetBrains Mono', monospace; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .section   { padding: 80px 0; }
  .hero      { padding: 80px 0 60px; }
  .hero__window-body { grid-template-columns: 1fr; }
  .hero__window-sidebar { display: none; }
}

/* ---------- reveal animation ---------- */
[data-i18n], .section__head, .card, .shot, .qa, .dl {
  animation: fadeUp .8s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.section__head { animation-delay: .05s; }
.card:nth-child(1) { animation-delay: .10s; }
.card:nth-child(2) { animation-delay: .18s; }
.card:nth-child(3) { animation-delay: .26s; }
.card:nth-child(4) { animation-delay: .34s; }
.card:nth-child(5) { animation-delay: .42s; }
.card:nth-child(6) { animation-delay: .50s; }
.shot:nth-child(1) { animation-delay: .10s; }
.shot:nth-child(2) { animation-delay: .20s; }
.shot:nth-child(3) { animation-delay: .30s; }
.shot:nth-child(4) { animation-delay: .40s; }
