/* ============================================================
   沒用按鈕 · The Useless Button  ·  SecTools.tw
   淺色主題 / Light theme
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --ink: #1b1e24;
  --ink-dim: #5b6470;
  --ink-faint: #98a1ad;
  --line: #e8eaef;
  --line-soft: #f0f2f5;

  --accent: #f5920b;
  --accent-2: #fbb040;
  --accent-soft: #fff4e2;
  --accent-grad: linear-gradient(135deg, #fbb040 0%, #f5920b 100%);

  --ok: #22a06b;
  --warn: #e8890b;

  --shadow-sm: 0 1px 2px rgba(24, 30, 40, 0.04), 0 2px 8px rgba(24, 30, 40, 0.05);
  --shadow-md: 0 8px 30px -12px rgba(24, 30, 40, 0.18);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: "Inter", "Noto Sans TC", system-ui, sans-serif; }
a { color: inherit; }

/* ---------- Ambient warm glow ---------- */
.bg-glow {
  position: fixed;
  inset: -10% -10% auto -10%;
  height: 70vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38vw 34vw at 50% -6%, rgba(251, 176, 64, 0.18), transparent 62%),
    radial-gradient(30vw 30vw at 88% 4%, rgba(245, 146, 11, 0.10), transparent 60%);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 5vw, 44px);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 3px 8px rgba(245,146,11,0.28)); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-tag { font-size: 0.68rem; color: var(--ink-faint); font-weight: 500; letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-dim);
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--accent); background: var(--accent-soft); }
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s;
}
.nav-btn:hover { border-color: #d7dae0; transform: translateY(-1px); }

/* ---------- Stage ---------- */
.stage {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(26px, 6vh, 56px) 22px 44px;
  text-align: center;
}
.pill-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  margin-bottom: 26px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: var(--accent-soft);
  border: 1px solid #ffe4bd;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pill-back:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(245,146,11,0.5); }

.headline {
  margin: 0 0 14px;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.headline em {
  font-style: normal;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subhead {
  margin: 0 auto;
  max-width: 34ch;
  color: var(--ink-dim);
  font-size: clamp(0.98rem, 2.4vw, 1.14rem);
}
.mob-br { display: none; }

/* ---------- The button ---------- */
.button-wrap {
  position: relative;
  margin: clamp(34px, 7vh, 58px) auto clamp(18px, 4vh, 30px);
  width: min(258px, 70vw);
  aspect-ratio: 1;
}
.useless-btn {
  position: relative;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: var(--accent-grad);
  padding: 0;
  isolation: isolate;
  box-shadow:
    0 24px 44px -16px rgba(245, 146, 11, 0.6),
    0 8px 18px -8px rgba(245, 146, 11, 0.5),
    inset 0 3px 4px rgba(255, 255, 255, 0.6),
    inset 0 -6px 12px rgba(180, 95, 0, 0.35);
  transition: transform 0.16s var(--ease), box-shadow 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-glow {
  position: absolute;
  inset: -16%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,176,64,0.55), transparent 68%);
  filter: blur(20px);
  animation: pulse 3.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(0.95); opacity: 0.55; }
  50%      { transform: scale(1.06); opacity: 0.85; }
}
.btn-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.btn-label {
  font-size: clamp(1.7rem, 7.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 2px 6px rgba(150, 78, 0, 0.4);
}
.btn-sub {
  margin-top: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.06em;
}
.useless-btn:hover { transform: translateY(-3px) scale(1.015); }
.useless-btn:active,
.useless-btn.is-press {
  transform: translateY(3px) scale(0.96);
  box-shadow:
    0 10px 20px -12px rgba(245, 146, 11, 0.6),
    inset 0 3px 5px rgba(255, 255, 255, 0.5),
    inset 0 -4px 10px rgba(180, 95, 0, 0.4);
}
.useless-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }

/* click ripples + floating +1 */
.fx-layer { position: absolute; inset: 0; pointer-events: none; }
.ripple {
  position: absolute;
  left: 50%; top: 50%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%) scale(0.2);
  border-radius: 50%;
  border: 2px solid rgba(245, 146, 11, 0.55);
  animation: ripple 0.7s var(--ease) forwards;
}
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1.55); opacity: 0; } }
.plusone {
  position: absolute;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent);
  animation: floatUp 0.9s var(--ease) forwards;
  will-change: transform, opacity;
}
@keyframes floatUp {
  0%   { transform: translateY(0) scale(0.8); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateY(-90px) scale(1.15); opacity: 0; }
}

/* ---------- Reaction line ---------- */
.reaction {
  min-height: 1.6em;
  margin: 0 auto 40px;
  font-size: clamp(0.98rem, 2.8vw, 1.12rem);
  font-weight: 600;
  color: var(--ink);
}
.reaction.flash { animation: flash 0.4s var(--ease); }
@keyframes flash { 0% { transform: translateY(6px); opacity: 0.2; } 100% { transform: translateY(0); opacity: 1; } }

/* ---------- Counters ---------- */
.counters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 540px;
  margin: 0 auto;
}
.counter {
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.counter--global { border-color: #ffe0b3; background: linear-gradient(180deg, #fffaf2, #fff); }
.counter-num {
  font-size: clamp(1.8rem, 6.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.counter--global .counter-num {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.counter-label { font-size: 0.8rem; color: var(--ink-dim); }
.counter-status { font-size: 0.7rem; color: var(--ink-faint); letter-spacing: 0.02em; }
.counter-status.ok::before  { content: "● "; color: var(--ok); }
.counter-status.off::before { content: "● "; color: var(--warn); }

/* ---------- Achievements ---------- */
.achievements {
  max-width: 720px;
  margin: clamp(44px, 8vh, 72px) auto 0;
  padding: 0 22px;
}
.ach-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ach-head h2 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.ach-progress { font-size: 0.82rem; color: var(--ink-dim); font-weight: 600; }
.ach-progress b { color: var(--accent); }
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.ach {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.ach.locked { background: var(--bg-soft); border-style: dashed; }
.ach.locked .ach-icon { filter: grayscale(1); opacity: 0.4; }
.ach.locked .ach-name,
.ach.locked .ach-desc { color: var(--ink-faint); }
.ach.unlocked { border-color: #ffe0b3; box-shadow: 0 8px 22px -14px rgba(245,146,11,0.5); }
.ach.pop { animation: achPop 0.5s var(--ease); }
@keyframes achPop { 0% { transform: scale(0.9); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }
.ach-icon {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  border-radius: 11px;
  background: var(--accent-soft);
}
.ach.locked .ach-icon { background: #eceef2; }
.ach-body { min-width: 0; }
.ach-name { font-size: 0.9rem; font-weight: 700; line-height: 1.25; }
.ach-desc { font-size: 0.74rem; color: var(--ink-dim); margin-top: 2px; }

/* unlock toast */
.toast-layer {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
  width: min(360px, calc(100vw - 32px));
}
.toast {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #ffe0b3;
  border-radius: 14px;
  box-shadow: 0 14px 40px -12px rgba(24,30,40,0.28);
  animation: toastIn 0.4s var(--ease), toastOut 0.4s var(--ease) 3.2s forwards;
}
@keyframes toastIn  { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(0.98); } }
.toast-icon { font-size: 1.6rem; }
.toast-body { line-height: 1.3; }
.toast-kicker { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.toast-name { font-size: 0.95rem; font-weight: 700; }

/* ---------- CTA to SecTools.tw ---------- */
.cta { padding: clamp(48px, 8vh, 80px) 22px 8px; }
.cta-card {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px clamp(22px, 4vw, 36px);
  border-radius: 22px;
  background: linear-gradient(120deg, #fff7ec 0%, #fffdfa 60%);
  border: 1px solid #ffe4bd;
  box-shadow: var(--shadow-md);
}
.cta-copy h2 { margin: 0 0 4px; font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 800; }
.cta-copy p { margin: 0; color: var(--ink-dim); }
.cta-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  background: var(--accent-grad);
  box-shadow: 0 12px 26px -12px rgba(245, 146, 11, 0.7);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(245, 146, 11, 0.8); }

/* ---------- About / SEO content ---------- */
.about { padding: clamp(46px, 8vh, 84px) 22px; }
.about-inner { max-width: 680px; margin: 0 auto; }
.about h2 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; margin: 0 0 20px; }
.about h2 span { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about p { color: var(--ink-dim); margin: 0 0 18px; }
.about strong { color: var(--ink); font-weight: 700; }

.faq { margin-top: 36px; }
.faq h3 { font-size: 1.1rem; margin: 0 0 14px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2px 18px;
  margin-bottom: 10px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}
.faq details[open] { border-color: #ffe0b3; }
.faq summary {
  cursor: pointer;
  padding: 13px 0;
  font-weight: 600;
  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(--accent); font-size: 1.3rem; font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 14px; font-size: 0.94rem; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 40px 22px 54px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.85rem;
  background: var(--bg-soft);
}
.footer a { color: var(--ink-dim); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer a:hover { color: var(--accent); }
.footer .fineprint { margin-top: 10px; font-size: 0.76rem; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .mob-br { display: inline; }
  .counters { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .nav-link { display: none; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .cta-btn { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn-glow, .plusone, .ripple, .ach.pop, .toast { animation: none; }
  * { scroll-behavior: auto; }
}
