/* PowerFind landing — dark theme, brand seed #6C5CE7 */
:root {
  --bg: #0e0e14;
  --bg-soft: #16161f;
  --card: #1c1c28;
  --border: #2a2a3a;
  --text: #ececf4;
  --muted: #a2a2b8;
  --accent: #6c5ce7;
  --accent-soft: #8d7ff0;
  --ok: #7bd88f;
  --err: #ff7a90;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Microsoft JhengHei", -apple-system, sans-serif;
  line-height: 1.65;
  touch-action: manipulation;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1 { font-size: 2.9rem; line-height: 1.25; letter-spacing: -0.5px; }
h2 { font-size: 2rem; text-align: center; margin-bottom: 12px; }
h3 { font-size: 1.15rem; }

a { color: var(--accent-soft); text-decoration: none; }

/* Keyboard focus — visible ring on every interactive element */
:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Screen-reader-only text */
.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;
}

/* Skip link — appears on keyboard focus */
.skip-link {
  position: absolute; top: -48px; left: 16px; z-index: 100;
  background: var(--accent); color: #fff;
  padding: 10px 18px; border-radius: 0 0 10px 10px;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* Icons (SVG sprite, stroke = currentColor) */
.icon {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.22em;
  flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 30px; height: 30px; }
.icon-logo { width: 21px; height: 21px; color: var(--accent-soft); }
.icon-check { width: 17px; height: 17px; color: var(--ok); }
.folder { color: #ffc107; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo {
  font-weight: 700; font-size: 1.2rem; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; padding: 10px 4px; }
.nav-links a:hover { color: var(--text); }
.lang-btn {
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--muted);
  border-radius: 8px; min-height: 44px; min-width: 44px; padding: 0 12px;
  cursor: pointer; font-size: 0.9rem;
}
.lang-btn:hover { color: var(--text); border-color: var(--accent); }
select.lang-btn option { background: var(--card); color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--accent);
  color: #fff !important;
  border: none; border-radius: 10px;
  min-height: 44px; padding: 10px 26px;
  font-size: 1rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--accent-soft); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { background: #3a3a4d; color: var(--muted) !important; cursor: default; transform: none; }
.btn-lg { padding: 14px 38px; font-size: 1.15rem; border-radius: 12px; }
.btn-sm { padding: 6px 18px; font-size: 0.9rem; }
.btn-outline {
  background: transparent; border: 1.5px solid var(--accent);
  color: var(--accent-soft) !important;
}
.btn-outline:hover { background: rgba(108, 92, 231, 0.12); }
.btn-outline:disabled { border-color: var(--border); background: transparent; }

/* Hero */
.hero { padding: 90px 0 70px; text-align: center; }
.hero-sub { color: var(--muted); font-size: 1.15rem; margin: 22px auto 36px; max-width: 640px; }
.hero-note { color: var(--muted); font-size: 0.88rem; margin-top: 14px; }

.hero-shot { margin-top: 56px; display: flex; justify-content: center; }
.mock-window {
  width: 100%; max-width: 640px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(108, 92, 231, 0.18);
  overflow: hidden; text-align: left;
}
.mock-bar { display: flex; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3a4d; }
.mock-search {
  font-size: 1.25rem; padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  display: flex; align-items: center; gap: 12px;
}
.mock-search .icon { color: var(--muted); }
.mock-row {
  padding: 13px 22px; font-size: 0.97rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(42, 42, 58, 0.5);
}
.mock-name { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.mock-row.sel { background: rgba(108, 92, 231, 0.16); }
.mock-path { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.mock-hint { padding: 10px 22px; color: var(--muted); font-size: 0.8rem; }

/* Features */
.features { padding: 80px 0; background: var(--bg-soft); }
.feat-grid {
  margin-top: 44px;
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s, transform 0.15s;
}
.feat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.feat-icon { color: var(--accent-soft); margin-bottom: 14px; }
.feat-card p { color: var(--muted); font-size: 0.94rem; margin-top: 8px; }

/* Comparison */
.compare { padding: 80px 0; }
.cmp-sub { text-align: center; color: var(--muted); margin-bottom: 40px; }
.table-wrap { overflow-x: auto; }
table {
  width: 100%; border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
th { background: var(--bg-soft); font-weight: 600; }
td:nth-child(2), td:nth-child(3), th:nth-child(2), th:nth-child(3) { text-align: center; }
.pro-col { background: rgba(108, 92, 231, 0.08); }
tbody tr:last-child td { border-bottom: none; }
td span { color: var(--muted); }
.pro-col span { color: var(--text); }

/* Pricing */
.price-grid {
  margin-top: 56px;
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  display: flex; flex-direction: column; gap: 14px;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 12px 48px rgba(108, 92, 231, 0.22); }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 0.78rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px;
}
.price { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.price s { color: var(--muted); font-size: 1.2rem; font-weight: 400; margin-right: 8px; }
.price-note { color: var(--muted); font-size: 0.88rem; flex-grow: 1; }

/* Waitlist */
.waitlist {
  padding: 80px 0; text-align: center;
  background: linear-gradient(180deg, var(--bg-soft) 0%, rgba(108, 92, 231, 0.10) 100%);
}
.waitlist p { color: var(--muted); max-width: 560px; margin: 0 auto 30px; }
.wl-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.wl-form input {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; min-height: 44px; padding: 10px 18px;
  color: var(--text); font-size: 1rem; width: min(340px, 80vw);
}
.wl-form input:focus { outline: none; border-color: var(--accent); }
.wl-form input:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 1px; }
.wl-msg { margin-top: 16px; font-size: 0.95rem; min-height: 1.4em; }
.wl-msg.ok { color: var(--ok); }
.wl-msg.err { color: var(--err); }

/* FAQ */
.faq { padding: 80px 0; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 14px; padding: 18px 22px;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.faq summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.faq details p { color: var(--muted); margin-top: 12px; font-size: 0.95rem; }
.faq h2 { margin-bottom: 24px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  color: var(--muted); font-size: 0.88rem;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); padding: 8px 0; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  h1 { font-size: 2.1rem; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 60px 0 50px; }
}
