/* =========================================================
   EDUPIDIA — PDF TOOLS HUB
   Production-ready, responsive, accessible stylesheet
   ========================================================= */

/* ---------- 1. RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 120px;
  /* offset for sticky header + cat nav */
}

:root {
  /* Brand colors */
  --c-primary: #4F46E5;
  --c-primary-dark: #4338CA;
  --c-primary-light: #6366F1;
  --c-secondary: #7C3AED;
  --c-accent: #06B6D4;
  --c-success: #10B981;
  --c-warning: #F59E0B;
  --c-danger: #EF4444;

  /* Neutrals */
  --c-bg: #FFFFFF;
  --c-bg-alt: #F8FAFC;
  --c-bg-elev: #FFFFFF;
  --c-surface: #F1F5F9;
  --c-border: #E2E8F0;
  --c-text: #0F172A;
  --c-text-muted: #64748B;
  --c-text-soft: #94A3B8;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  --grad-soft: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 100%);
  --grad-hero: radial-gradient(1200px 600px at 10% -10%, #EEF2FF 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 10%, #F5F3FF 0%, transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(79, 70, 229, 0.15);
  --shadow-xl: 0 30px 60px rgba(79, 70, 229, 0.22);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Fonts */
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-display: 'Poppins', 'Inter', sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-base: 260ms;
  --t-slow: 420ms;

  /* Layout */
  --header-h: 72px;
  --cat-h: 60px;
  --max-w: 1240px;
}

/* Dark theme */
[data-theme="dark"] {
  --c-bg: #0B1020;
  --c-bg-alt: #0F172A;
  --c-bg-elev: #111A33;
  --c-surface: #1E293B;
  --c-border: #1E293B;
  --c-text: #F1F5F9;
  --c-text-muted: #94A3B8;
  --c-text-soft: #64748B;
  --grad-hero: radial-gradient(1200px 600px at 10% -10%, rgba(79, 70, 229, 0.18) 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, #0B1020 0%, #0F172A 100%);
  --grad-soft: linear-gradient(135deg, #1E1B4B 0%, #2E1065 100%);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.45);
}

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

::selection {
  background: var(--c-primary);
  color: #fff;
}

/* ---------- 2. UTILITIES ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
}

.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 {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--c-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  z-index: 9999;
  transition: top var(--t-fast);
}

.skip-link:focus {
  top: 16px;
}

.grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--grad-soft);
  color: var(--c-primary);
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

.section {
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 56px);
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin: 14px 0 12px;
  color: var(--c-text);
}

.section-sub {
  color: var(--c-text-muted);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
}

/* ---------- 3. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 15px;
  transition: all var(--t-base) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-border);
}

.btn-ghost:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: var(--grad-soft);
}

/* Ripple */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 600ms linear;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ---------- 4. HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: all var(--t-base) var(--ease);
}

[data-theme="dark"] .site-header {
  background: rgba(11, 16, 32, 0.85);
}

.site-header.scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--c-text);
}

.logo-mark {
  display: inline-flex;
}

.logo-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-desktop .nav-list {
  display: flex;
  gap: 6px;
}

.nav-desktop a {
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 15px;
  color: var(--c-text-muted);
  transition: all var(--t-fast) var(--ease);
  position: relative;
}

.nav-desktop a:hover {
  color: var(--c-primary);
  background: var(--grad-soft);
}

.nav-desktop a[aria-current="page"] {
  color: var(--c-primary);
  background: var(--grad-soft);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--c-text-muted);
  transition: all var(--t-fast) var(--ease);
}

.theme-toggle:hover {
  color: var(--c-primary);
  background: var(--grad-soft);
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

/* Hamburger */
.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  position: relative;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}

.hamburger:hover {
  background: var(--grad-soft);
}

.hamburger-line {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2.5px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease),
    opacity var(--t-fast) var(--ease),
    top var(--t-base) var(--ease);
}

.hamburger-line:nth-child(1) {
  top: 14px;
}

.hamburger-line:nth-child(2) {
  top: 20px;
}

.hamburger-line:nth-child(3) {
  top: 26px;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) var(--ease);
  z-index: 99;
}

.mobile-menu[aria-hidden="false"] {
  max-height: 500px;
}

.mobile-list {
  padding: 12px 20px 20px;
}

.mobile-list li {
  border-bottom: 1px solid var(--c-border);
}

.mobile-list li:last-child {
  border-bottom: 0;
}

.mobile-list a {
  display: block;
  padding: 16px 4px;
  font-weight: 500;
  font-size: 16px;
  color: var(--c-text);
  transition: color var(--t-fast);
}

.mobile-list a:hover,
.mobile-list a[aria-current="page"] {
  color: var(--c-primary);
}

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 110px) 0 clamp(60px, 7vw, 90px);
  background: var(--grad-hero);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}

.blob-1 {
  width: 380px;
  height: 380px;
  background: #C7D2FE;
  top: -120px;
  left: -80px;
}

.blob-2 {
  width: 320px;
  height: 320px;
  background: #DDD6FE;
  top: 10%;
  right: -80px;
  animation-delay: -4s;
}

.blob-3 {
  width: 260px;
  height: 260px;
  background: #A5F3FC;
  bottom: -80px;
  left: 30%;
  animation-delay: -8s;
}

[data-theme="dark"] .blob {
  opacity: 0.25;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 18px 0 18px;
}

.hero-sub {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--c-text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-search {
  max-width: 620px;
  margin: 0 auto 36px;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--c-bg-elev);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-full);
  padding: 6px 8px 6px 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base) var(--ease);
}

.search-wrap:focus-within {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12), var(--shadow-md);
}

.search-icon {
  color: var(--c-text-soft);
  flex-shrink: 0;
}

.search-wrap input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 12px;
  font-size: 15px;
  color: var(--c-text);
  font-family: inherit;
}

.search-wrap input::placeholder {
  color: var(--c-text-soft);
}

.search-wrap kbd {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  color: var(--c-text-muted);
  margin-right: 4px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  margin-bottom: 36px;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 18px;
  background: var(--c-bg-elev);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  min-width: 110px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base) var(--ease);
}

.hero-stats li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hero-stats strong {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats span {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-top: 2px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 6. POPULAR TOOLS ---------- */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.popular-card {
  position: relative;
  padding: 32px 28px;
  background: var(--c-bg-elev);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base) var(--ease);
  overflow: hidden;
}

.popular-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity var(--t-base);
  z-index: 0;
}

.popular-card>* {
  position: relative;
  z-index: 1;
}

.popular-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.3);
}

.popular-card:hover::before {
  opacity: 1;
}

.popular-card.featured {
  border-color: rgba(79, 70, 229, 0.2);
}

.popular-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  border-radius: var(--r-md);
  margin-bottom: 18px;
}

.popular-card h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.popular-card p {
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.popular-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--c-text-muted);
  margin-bottom: 18px;
}

/* Badges */
.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-ready {
  background: rgba(16, 185, 129, 0.12);
  color: var(--c-success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-soon {
  background: rgba(245, 158, 11, 0.12);
  color: var(--c-warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ---------- 7. CATEGORY NAV ---------- */
.cat-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}

[data-theme="dark"] .cat-nav {
  background: rgba(11, 16, 32, 0.92);
}

.cat-list {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.cat-list::-webkit-scrollbar {
  display: none;
}

.cat-link {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-muted);
  background: transparent;
  border: 1.5px solid transparent;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
}

.cat-link:hover {
  color: var(--c-primary);
  background: var(--grad-soft);
}

.cat-link.active {
  color: #fff;
  background: var(--grad-primary);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

/* ---------- 8. TOOL CARDS ---------- */
.tools-section {
  background: var(--c-bg-alt);
}

.tool-category {
  margin-bottom: 56px;
}

.tool-category:last-child {
  margin-bottom: 0;
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--c-border);
}

.cat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  border-radius: var(--r-md);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
}

.cat-header h3 {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  margin-bottom: 4px;
}

.cat-header p {
  color: var(--c-text-muted);
  font-size: 14px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.tool-card {
  position: relative;
  padding: 24px 22px 22px;
  background: var(--c-bg-elev);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  transition: all var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.25);
}

.tool-card.coming-soon {
  opacity: 0.92;
}

.tool-card.coming-soon:hover {
  transform: translateY(-2px);
}

.tool-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  color: var(--c-primary);
  border-radius: var(--r-sm);
  margin-bottom: 14px;
  transition: transform var(--t-base) var(--ease);
}

.tool-card:hover .tool-icon {
  transform: scale(1.08) rotate(-4deg);
}

.tool-card h4 {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.tool-card p {
  color: var(--c-text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 14px;
  flex-grow: 1;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
  transition: all var(--t-base) var(--ease);
  margin-top: auto;
}

.tool-link:hover {
  color: var(--c-primary-dark);
  transform: translateX(4px);
}

.tool-link span {
  transition: transform var(--t-base) var(--ease);
}

.tool-link:hover span {
  transform: translateX(6px);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--c-text-muted);
}

.empty-state[hidden] {
  display: none;
}

.empty-icon {
  color: var(--c-text-soft);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--c-text);
}

/* ---------- 9. ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text h3 {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--c-text);
}

.about-text p {
  color: var(--c-text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-text a {
  color: var(--c-primary);
  font-weight: 600;
}

.about-text a:hover {
  text-decoration: underline;
}

.about-card {
  background: var(--grad-soft);
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: sticky;
  top: calc(var(--header-h) + var(--cat-h) + 20px);
}

.about-card h3 {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
}

.highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(79, 70, 229, 0.15);
  font-size: 15px;
  color: var(--c-text);
}

.highlights li:last-child {
  border-bottom: 0;
}

.check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-success);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- 10. HOW TO ---------- */
.howto {
  background: var(--c-bg-alt);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--c-bg-elev);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  text-align: center;
  position: relative;
  transition: all var(--t-base) var(--ease);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.25);
}

.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  border-radius: var(--r-md);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.3);
}

.step h3 {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step p {
  color: var(--c-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- 11. FEATURES ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--c-bg-elev);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 26px 22px;
  transition: all var(--t-base) var(--ease);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.25);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  color: var(--c-primary);
  border-radius: var(--r-sm);
  margin-bottom: 14px;
}

.feature h3 {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature p {
  color: var(--c-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- 12. WHY CHOOSE ---------- */
.why {
  background: var(--c-bg-alt);
}

.why-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-text p {
  color: var(--c-text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.why-text strong {
  color: var(--c-text);
}

.why-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.why-stats>div {
  background: var(--c-bg-elev);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 18px 20px;
  text-align: center;
  transition: all var(--t-base) var(--ease);
}

.why-stats>div:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.25);
}

.why-stats strong {
  display: block;
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.why-stats span {
  font-size: 13px;
  color: var(--c-text-muted);
}

.why-visual{
    position:relative;
    width:100%;
    max-width:520px;
    height:420px;
    margin:auto;
}

.why-card{
    position:absolute;

    width:140px;
    height:110px;

    display:flex;
    flex-direction:column;
    justify-content:center;

    padding:18px;

    background:#fff;
    border:1px solid var(--c-border);
    border-radius:18px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    animation:floatCard 5s ease-in-out infinite;
}

.why-card.c1{
    top:20px;
    left:30px;
}

.why-card.c2{
    top:30px;
    right:20px;
    animation-delay:.6s;
}

.why-card.c3{
    top:155px;
    left:0;
    animation-delay:1.2s;
}

.why-card.c4{
    top:170px;
    right:0;
    animation-delay:1.8s;
}

.why-card.c5{
    bottom:20px;
    left:40px;
    animation-delay:2.4s;
}

.why-card.c6{
    bottom:10px;
    right:30px;
    animation-delay:3s;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* ---------- 13. FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--c-bg-elev);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all var(--t-base) var(--ease);
}

.faq-item[open] {
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  transition: color var(--t-fast);
}

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

.faq-item summary:hover {
  color: var(--c-primary);
}

.faq-item summary a {
  color: var(--c-primary);
  font-weight: 600;
}

.faq-item summary a:hover {
  text-decoration: underline;
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
  transition: transform var(--t-base) var(--ease);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--c-primary);
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transition: transform var(--t-base) var(--ease);
}

.faq-icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item p {
  padding: 0 22px 20px;
  color: var(--c-text-muted);
  line-height: 1.7;
  font-size: 15px;
}

.faq-item p a {
  color: var(--c-primary);
  font-weight: 600;
}

/* ---------- 14. EXPLORE MORE ---------- */
.explore {
  background: var(--c-bg-alt);
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.explore-card {
  background: var(--c-bg-elev);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--t-base) var(--ease);
}

.explore-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.25);
}

.explore-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.explore-card h3 {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.explore-card p {
  color: var(--c-text-muted);
  font-size: 13px;
}

.coming-soon-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: var(--grad-primary);
  color: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
}

.csb-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--r-md);
  font-size: 28px;
  flex-shrink: 0;
}

.coming-soon-banner h3 {
  font-family: var(--f-display);
  font-size: 20px;
  margin-bottom: 4px;
}

.coming-soon-banner p {
  opacity: 0.9;
  font-size: 14px;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.coming-soon-banner .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.coming-soon-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

/* ================= FOOTER ================= */

.site-footer {
  background: #111827;
  color: #cbd5e1;
  padding: 70px 0 25px;
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 45px;
}

.footer-brand .logo {
  margin-bottom: 18px;
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.8;
  font-size: 15px;
  max-width: 330px;
}

/* Social Icons */

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;

  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);

  color: #94a3b8;

  transition: .35s ease;
}

.socials a:hover {
  background: #4F46E5;
  color: #fff;
  border-color: #4F46E5;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, .35);
}

/* Columns */

.footer-col h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-col ul li {
  margin-bottom: 14px;
}

.footer-col a {
  color: #94a3b8;
  transition: .3s ease;
  position: relative;
}

.footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;

  width: 0%;
  height: 2px;

  background: #6366F1;
  transition: .3s;
}

.footer-col a:hover {
  color: #fff;
  padding-left: 8px;
}

.footer-col a:hover::after {
  width: 100%;
}

/* Bottom */

.footer-bottom {
  margin-top: 20px;
  padding-top: 25px;

  border-top: 1px solid rgba(255, 255, 255, .08);

  color: #94a3b8;
  text-align: center;
  font-size: 15px;
}

/* ---------- 16. BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--t-base) var(--ease);
  z-index: 80;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* ---------- 17. REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 18. RESPONSIVE ---------- */
@media (max-width: 1024px) {

  .about-grid,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-card {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero-stats li {
    min-width: 90px;
    padding: 10px 12px;
  }

  .hero-stats strong {
    font-size: 18px;
  }

  .hero-stats span {
    font-size: 12px;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .why-visual {
    max-width: 320px;
  }

  .why-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-brand {
    margin-bottom: 10px;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .coming-soon-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 16px;
  }

  .hero-title {
    font-size: 34px;
  }

  .section-title {
    font-size: 26px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-stats {
    grid-template-columns: 1fr 1fr;
  }

  .why-stats strong {
    font-size: 22px;
  }

  .popular-card {
    padding: 24px 20px;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
}

/* ---------- 19. ACCESSIBILITY ---------- */
:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}