/* =========================================================
   Focalors landing page
   Palette pulled from the app screenshots: deep navy
   background, cream/brown board, blue accent.
   No external fonts or requests — system stack only.
   ========================================================= */

:root {
  --bg:        #0a0e17;
  --bg-2:      #0e1424;
  --panel:     #141c2e;
  --panel-2:   #1a2336;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);
  --text:      #e8ebf3;
  --muted:     #97a1b8;
  --accent:    #4a82c4;
  --accent-2:  #5d97d6;
  --cream:     #ece5d3;
  --brown:     #9c7e5d;
  --radius:    14px;
  --maxw:      1120px;
  --shadow:    0 24px 60px -20px rgba(0, 0, 0, 0.65);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
               Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1200px 700px at 75% -10%, #16213c 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 38%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

.accent { color: var(--accent-2); }

section { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}

/* ===================== NAV ===================== */
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-gh {
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 7px 14px;
}
.nav-gh:hover { background: var(--panel); }

/* ===================== HERO ===================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.lede { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }

.cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px -10px var(--accent);
}
.btn-primary:hover { background: linear-gradient(180deg, #6ba4e2, var(--accent-2)); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--panel); }
.cta-sub { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }

/* Window-framed screenshots */
.window {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.window-bar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}
.window-bar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #3a445c;
}
.window-bar span:nth-child(1) { background: #e06c63; }
.window-bar span:nth-child(2) { background: #e0b03d; }
.window-bar span:nth-child(3) { background: #4fb160; }
.window img { display: block; width: 100%; height: auto; }

/* ===================== TRUST STRIP ===================== */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  padding: 22px 24px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: none;
  background: rgba(255, 255, 255, 0.015);
}
.trust span { white-space: nowrap; }

/* ===================== FEATURES ===================== */
.features { text-align: center; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  text-align: left;
}
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.card-icon {
  font-size: 1.7rem;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(74, 130, 196, 0.12);
  border: 1px solid rgba(74, 130, 196, 0.25);
  border-radius: 12px;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ===================== SHOWCASE ===================== */
.showcase {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: center;
}
.showcase-text p { color: var(--muted); font-size: 1.05rem; max-width: 42ch; }

/* ===================== DOWNLOAD ===================== */
.download { text-align: center; }
.download-lede { color: var(--muted); max-width: 52ch; margin: 0 auto; }
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 38px 0 24px;
}
.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 22px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.dl-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: var(--border-2);
}
.dl-os { font-size: 1.25rem; font-weight: 700; }
.dl-meta { color: var(--muted); font-size: 0.88rem; }
.dl-go {
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent-2);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 8px 20px;
}
.dl-card:hover .dl-go { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Highlight the visitor's detected OS */
.dl-card.is-detected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 18px 40px -22px var(--accent);
}
.dl-card.is-detected::before {
  content: "Your system";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.dl-card.is-detected .dl-go { background: var(--accent); color: #fff; border-color: var(--accent); }

.download-foot { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }

/* ===================== FAQ ===================== */
.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq details[open] { border-color: var(--border-2); }
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p, .faq details pre { padding: 0 22px 20px; color: var(--muted); }
.faq details p { font-size: 0.98rem; }
.faq pre {
  margin: 4px 22px 20px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
}
.faq code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86rem;
  color: var(--cream);
}
.faq p code { background: var(--bg); padding: 2px 6px; border-radius: 5px; }

/* ===================== FOOTER ===================== */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.footer-links a { color: var(--muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-fine { color: var(--muted); font-size: 0.82rem; max-width: 60ch; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { text-align: center; }
  .lede { margin: 0 auto; }
  .cta { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; gap: 28px; }
  .showcase-text { text-align: center; }
  .showcase-text p { margin: 0 auto; }
}

@media (max-width: 560px) {
  section { padding: 52px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-gh) { display: none; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
