*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #1f1f1f;
  --card: #262626;
  --card-hv: #2e2e2e;
  --accent: #e65616;
  --accent-2: #d1310a;
  --a08: rgba(230, 86, 22, 0.08);
  --a15: rgba(230, 86, 22, 0.15);
  --a30: rgba(230, 86, 22, 0.30);
  --a50: rgba(230, 86, 22, 0.50);
  --text: #ffffff;
  --muted: #cfcfcf;
  --border: rgba(255, 255, 255, 0.07);
  --nav-h: 64px;
  --r-card: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#tools { scroll-margin-top: calc(var(--nav-h) + 20px); }
#about { scroll-margin-top: calc(var(--nav-h) + 20px); }
#faq   { scroll-margin-top: calc(var(--nav-h) + 20px); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes glowPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.75; } }
@keyframes scanLine {
  0% { top: -3px; opacity: 0.6; }
  30% { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}
@keyframes aboutReveal {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes statPop {
  0% { opacity: 0; transform: scale(0.8) translateY(6px); }
  70% { transform: scale(1.06) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes pillGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 86, 22, 0); }
  50% { box-shadow: 0 0 10px 2px rgba(230, 86, 22, 0.2); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(31, 31, 31, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  animation: navSlideDown 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
.topbar-brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s;
}
.topbar-brand:hover { opacity: 0.75; }
.topbar-brand span { color: var(--accent); }
.topbar-nav a {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border: 1px solid var(--a30);
  border-radius: 6px;
  background: var(--a08);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.topbar-nav a:hover {
  background: var(--a15);
  border-color: var(--a50);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  padding: 96px 48px 80px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(175deg, #1f1f1f 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--border);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 72% 56% at 50% 0%, rgba(230,86,22,0.13) 0%, transparent 68%);
  pointer-events: none;
  animation: glowPulse 7s ease-in-out infinite;
}
.hero-scan {
  position: absolute;
  left: 0;
  top: -3px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(230,86,22,0.22) 50%, transparent 100%);
  pointer-events: none;
  animation: scanLine 5s linear infinite;
}
.hero > *:not(.hero-glow):not(.hero-scan) {
  position: relative;
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.16s; }
.hero-desc { animation-delay: 0.26s; }
.hero-cta { animation-delay: 0.36s; }
.hero-stats { animation-delay: 0.46s; }
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 14px;
  background: var(--a08);
  border: 1px solid var(--a30);
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 44px;
}
.hero-cta {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  padding: 13px 30px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  opacity: 0.87;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230,86,22,0.3);
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  padding: 13px 30px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}
.hero-stats {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.hero-stat {
  flex: 1;
  padding: 22px 16px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
  animation: statPop 0.7s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-stat:nth-child(1) { animation-delay: 0.55s; }
.hero-stat:nth-child(2) { animation-delay: 0.65s; }
.hero-stat:nth-child(3) { animation-delay: 0.75s; }
.hero-stat:last-child { border-right: none; }
.hero-stat:hover { background: var(--card-hv); }
.hero-stat-num {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.about-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 48px 72px;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.about-section.is-visible { opacity: 1; transform: translateY(0); }
.about-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.about-section h3 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 20px;
}
.about-section p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto;
}

.tools-section {
  padding: 0 48px 100px;
  max-width: 1440px;
  margin: 0 auto;
}
.tools-header {
  padding: 52px 0 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.tools-header h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.tools-header p {
  font-size: 14px;
  color: var(--muted);
}
.search-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}
.search-box {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  transition: color 0.2s;
  z-index: 1;
}
.search-box:focus-within .search-icon { color: var(--accent); }
.search-box input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 13px 16px 13px 44px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus {
  border-color: var(--a50);
  box-shadow: 0 0 0 3px rgba(230,86,22,0.08);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

/* Responsive Grid */
@media (max-width: 1120px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .topbar { padding: 0 20px; }
  .hero { padding: 72px 20px 60px; }
  .about-section { padding: 60px 20px; }
  .tools-section { padding: 0 20px 72px; }
  .faq-section { padding: 48px 20px 72px; }
}

/* Card */
.tool-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 22px 22px 20px 26px;
  overflow: hidden;

  height: 100%;
  display: flex;
  flex-direction: column;

  opacity: 0;
  transform: translateY(18px);

  transition:
    opacity 0.55s cubic-bezier(0.22,1,0.36,1),
    transform 0.55s cubic-bezier(0.22,1,0.36,1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.tool-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tool-card:hover {
  border-color: var(--a30);
  box-shadow: 0 18px 44px rgba(0,0,0,0.42), 0 0 0 1px var(--a15);
}

/* Left Accent Line */
.tool-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(230,86,22,0.25) 100%);
  border-radius: 0 2px 2px 0;
  transition: width 0.2s ease;
}

.tool-card:hover::before {
  width: 4px;
}

/* Title Section */
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.card-title-text {
  flex: 1;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
}

.tool-card:hover .card-title-text {
  color: var(--accent);
}

.card-count {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: var(--a08);
  border: 1px solid var(--a30);
  border-radius: 20px;
  padding: 2px 9px;
  letter-spacing: 0.04em;
  transition: background 0.2s, box-shadow 0.2s;
}

.tool-card:hover .card-count {
  background: var(--a15);
  animation: pillGlow 1.8s ease infinite;
}

/* Links List */
.card-links {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-direction: column;
  gap: 8px;

  flex-grow: 1;

  max-height: 240px;
  overflow-y: auto;

  padding-right: 6px;

  scrollbar-width: thin;
  scrollbar-color: var(--a30) transparent;
}

.card-links::-webkit-scrollbar {
  width: 6px;
}

.card-links::-webkit-scrollbar-thumb {
  background: var(--a30);
  border-radius: 8px;
}

.card-links::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.card-links li {
  min-width: 0;
}

.card-links li a {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.55;

  padding: 10px 10px;
  border-radius: 7px;

  overflow-wrap: anywhere;

  transition: color 0.18s, background 0.18s, transform 0.18s;
}

.card-links li a::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(230,86,22,0.28);
  margin-top: 6px;

  transition: background 0.18s, transform 0.2s;
}

.card-links li a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  transform: translateX(3px);
}

.card-links li a:hover::before {
  background: var(--accent);
  transform: scale(1.45);
}

/* Hidden / Filter States */
.tool-card.is-hidden {
  display: none !important;
}

.tool-card.is-matched {
  border-color: var(--a15);
}

/* No Results */
.no-results {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 72px 0;
  color: var(--muted);
  font-size: 15px;
}

.no-results.show {
  display: block;
}

.no-results strong {
  color: var(--text);
}

/* ============================= */
/* FAQ SECTION */
/* ============================= */

.faq-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}

.faq-section h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 14px;
}

.faq-section h2 span {
  color: var(--accent);
}

.faq-intro {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}


/* ============================= */
/* FAQ GRID */
/* ============================= */

.faq-accordion {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 26px;
}

@media (max-width: 900px) {
  .faq-accordion {
    grid-template-columns: 1fr;
  }
}


/* ============================= */
/* FAQ ITEM */
/* ============================= */

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.faq-item:hover {
  border-color: var(--a30);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}


/* ============================= */
/* QUESTION BUTTON */
/* ============================= */

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  text-align: left;

  padding: 22px 26px;
  cursor: pointer;
}

.faq-q span:first-child {
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}


/* PLUS ICON */

.faq-q .indicator {
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  transition: transform .25s ease, color .25s ease;
}

.faq-q[aria-expanded="true"] .indicator {
  transform: rotate(45deg);
  color: var(--accent-2);
}


/* ============================= */
/* ANSWER */
/* ============================= */

.faq-a {
  display: none;
  padding: 0 26px 22px;

  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.faq-q[aria-expanded="true"] + .faq-a {
  display: block;
}


/* ============================= */
/* OPTIONAL HOVER EFFECT */
/* ============================= */

.faq-q:hover span:first-child {
  color: var(--accent-2);
}

/* Footer */

.footer {
  background: #05060a;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 6px;
  font-size: 14px;
  color: #aaa;
}

/* Footer Link */

.footer-link {
  color: #e65616;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.footer-link:hover {
  color: #d1310a;
}
