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

:root {
  --brand: #4c3fc1;
  --brand-light: #eef0ff;
  --brand-mid: #7b72e8;
  --accent: #f97316;
  --text-dark: #1a1a2e;
  --text-body: #3d3d5c;
  --text-muted: #6f6f8a;
  --bg: #f6f7fb;
  --white: #ffffff;
  --border: #e2e2f0;
  --radius: 14px;
  --shadow: 0 2px 16px rgba(76, 63, 193, 0.08);
}

body {
  font-family: "Sora", sans-serif;
  background: var(--bg);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.7;
}

.header-top {
  max-width: 1200px;
  margin: 0 auto;
}
/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: 600;
  font-size: 20px;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo i {
  font-size: 22px;
  line-height: 1;
  color: var(--brand);
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--brand);
}

.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
}

.nav-cta:hover {
  background: #3a2fb0 !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--text-dark);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

.nav-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.nav-toggle:focus-visible {
  outline: 3px solid rgba(76, 63, 193, 0.25);
  outline-offset: 2px;
}

/* Mobile nav */
@media (max-width: 900px) {
  nav {
    padding: 12px 24px;
    height: auto;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--border);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .nav-menu a:hover {
    background: var(--brand-light);
  }

  .nav-menu .nav-cta {
    text-align: center;
    padding: 12px 16px;
  }
}
/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2770 50%, #4c3fc1 100%);
  color: #fff;
  padding: 90px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 70% 40%,
    rgba(123, 114, 232, 0.35) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d4d0ff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-family: "Literata", serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.15;
  max-width: 760px;
  margin: 0 auto 24px;
  color: #fff;
}
.hero h1 em {
  font-style: italic;
  color: #a8a3ff;
}
.hero-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-search {
  max-width: 560px;
  margin: 0 auto 48px;
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 16px 54px 16px 48px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  font-family: "Sora", sans-serif;
  outline: none;
  transition:
    border 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.hero-search input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.hero-search-icon {
  position: absolute;
  left: 16px;
  top: 18px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.hero-search-clear {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.hero-search-clear:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-search-meta {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  min-height: 20px;
}

.is-hidden {
  display: none !important;
}

.search-match {
  box-shadow: 0 0 0 2px rgba(123, 114, 232, 0.28);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  display: block;
}
.hero-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
/* ── SECTION COMMON ── */
section {
  padding: 72px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.section-title {
  font-family: "Literata", serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ── ABOUT ── */
.about-wrap {
  background: var(--white);
  border-radius: 20px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  box-shadow: var(--shadow);
}
.about-text p {
  color: var(--text-body);
  margin-bottom: 16px;
  line-height: 1.8;
}
.about-text p:last-child {
  margin-bottom: 0;
}
.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.highlight-card {
  background: var(--brand-light);
  border: 1px solid rgba(76, 63, 193, 0.12);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.highlight-icon {
  width: 40px;
  height: 40px;
  background: var(--brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.highlight-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.highlight-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ── CATEGORIES ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(76, 63, 193, 0.12);
  border-color: rgba(76, 63, 193, 0.2);
}
.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.cat-icon i {
  font-size: 20px;
  color: var(--brand);
  line-height: 1;
}
.cat-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.cat-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.cat-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cat-tag {
  font-size: 11px;
  background: var(--bg);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* ── HOW IT WORKS ── */
.how-bg {
  background: linear-gradient(135deg, #1a1a2e, #2d2770);
  padding: 72px 40px;
}
.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.how-inner .section-title {
  color: #fff;
}
.how-inner .section-desc {
  color: rgba(255, 255, 255, 0.65);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.step-num {
  width: 36px;
  height: 36px;
  background: var(--brand-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.step p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* ── TOOLS GRID ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
  display: block;
}
.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(76, 63, 193, 0.18);
}
.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}
.tool-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}
.tool-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.tool-btn {
  display: inline-block;
  margin-top: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
}

/* ── WHY ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.why-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}
.why-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.why-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── FAQ ── */
.faq-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 0;
}

.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.faq-item[open] {
  border-color: rgba(76, 63, 193, 0.35);
  box-shadow: 0 4px 24px rgba(76, 63, 193, 0.09);
}

.faq-item summary {
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  user-select: none;
  outline: none;
  border-radius: 12px;
  transition:
    color 0.15s,
    background 0.15s;
}

.faq-q:hover {
  color: var(--brand);
  background: rgba(76, 63, 193, 0.03);
}

.faq-q:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: -3px;
  border-radius: 12px;
}

.faq-item[open] .faq-q {
  color: var(--brand);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.25s,
    color 0.2s;
}

.faq-q:hover .faq-icon {
  background: var(--brand-light);
  border-color: rgba(76, 63, 193, 0.3);
  color: var(--brand);
}

.faq-item[open] .faq-icon {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: rotate(45deg);
}

.faq-body {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.85;
  padding: 0 24px 22px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  animation: faqIn 0.22s ease;
}

@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-body {
    animation: none;
  }
}

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--brand), var(--brand-mid));
  border-radius: 20px;
  padding: 56px 60px;
  text-align: center;
  color: #fff;
  margin: 0 40px 72px;
}
.cta-banner h2 {
  font-family: "Literata", serif;
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 32px;
}
.cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s;
}
.cta-btn:hover {
  transform: scale(1.03);
}

/* ── FOOTER ── */
footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 56px 40px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand i {
  font-size: 20px;
  line-height: 1;
  color: #a8a3ff;
}
.footer-about {
  font-size: 14px;
  line-height: 1.7;
}
.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .about-wrap {
    grid-template-columns: 1fr;
    padding: 36px;
    gap: 36px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding: 60px 24px 56px;
  }
  section {
    padding: 56px 24px;
  }
  .cta-banner {
    margin: 0 24px 56px;
    padding: 40px 28px;
  }
  nav {
    padding: 0 24px;
  }
  nav ul {
    display: none;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  color: #111;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 1000;
}
.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;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WCAG 2.4.7 – Focus Visible fixes
   Adds :focus-visible outlines to every interactive element that was missing
   one. :focus-visible only fires for keyboard / sequential navigation so
   mouse users see zero visual change.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Logo link */
.logo:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* All nav links */
nav a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* CTA nav button */
.nav-cta:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* Hero search clear button */
.hero-search-clear:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Category cards (anchor elements) */
.cat-card:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Tool cards (anchor elements) */
.tool-card:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Tool "Use" button links */
.tool-btn:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* CTA banner button */
.cta-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-radius: 10px;
}

/* Footer links */
.footer-col a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
  border-radius: 4px;
}
