/* ============================================================
   EAGOX STUDIO — AI TOOLS HUB
   Premium SaaS aesthetic inspired by Vercel, Linear, and Stripe
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg-0: #050508;
  --bg-1: #0f0f14;
  --bg-2: #16161d;
  --bg-3: #1f1f2a;
  --surface: #1a1a23;
  --surface-2: #212230;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text-1: #fafbfc;
  --text-2: #b0b3c1;
  --text-3: #73778a;
  --accent: #7c5cff;
  --accent-2: #d946ef;
  --accent-glow: rgba(124,92,255,0.2);
  --green: #10b981;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.4);
  --card-shadow-hover: 0 8px 32px rgba(124,92,255,0.15);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

[data-theme="light"] {
  --bg-0: #fafbfc;
  --bg-1: #f6f7f9;
  --bg-2: #eef0f4;
  --bg-3: #e5e8f0;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border: rgba(0,0,0,0.06);
  --border-hover: rgba(0,0,0,0.12);
  --text-1: #0a0e27;
  --text-2: #5a5f7e;
  --text-3: #8b92ab;
  --accent: #7c5cff;
  --accent-2: #d946ef;
  --accent-glow: rgba(124,92,255,0.1);
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06);
  --card-shadow-hover: 0 4px 16px rgba(124,92,255,0.12);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---------- Loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-0);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 280px;
}

.loader-bar {
  width: 100%;
  height: 2px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-bar::after {
  content: '';
  position: absolute;
  left: -40%;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: loaderSlide 1.2s ease infinite;
}

@keyframes loaderSlide {
  to { left: 140%; }
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-3);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- Navbar ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  background: rgba(5,5,8,0.6);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

[data-theme="light"] #navbar {
  background: rgba(250,251,252,0.7);
}

#navbar.scrolled {
  background: var(--bg-1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: var(--border-hover);
}

.nav-logo-section {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.logo-icon {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
}

.logo-accent {
  color: var(--accent);
  margin-left: 2px;
}

.logo-subtitle {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  transition: color var(--transition);
  letter-spacing: 0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-1);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-2);
  transition: all var(--transition);
  background: var(--surface);
}

.theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(180deg);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: 1rem 5%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition);
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

/* ---------- Container & Layout ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-gap {
  padding: 7rem 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #5555cc, transparent);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #9030c0, transparent);
  bottom: 0;
  left: -100px;
  animation-delay: -4s;
}

@keyframes blobFloat {
  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-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 5%;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--text-2);
  margin-bottom: 2rem;
  background: var(--surface);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text-1);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ---------- Search ---------- */
.search-wrap {
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  width: 16px;
  height: 16px;
  color: var(--text-3);
  pointer-events: none;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 14px 48px 14px 44px;
  border-radius: 60px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-1);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.search-input::placeholder {
  color: var(--text-3);
  font-weight: 400;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow), 0 4px 16px rgba(124,92,255,0.2);
  background: var(--bg-1);
}

.search-clear {
  position: absolute;
  right: 14px;
  color: var(--text-3);
  font-size: 0.8rem;
  display: none;
  padding: 6px;
  border-radius: 50%;
  transition: all var(--transition);
  z-index: 2;
}

.search-clear:hover {
  color: var(--accent);
  background: var(--bg-3);
}

.search-clear.visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-count {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--transition);
}

.search-count.visible {
  opacity: 1;
}

/* ---------- Premium Search Dropdown ---------- */
.search-dropdown-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 12px;
  max-height: 420px;
  border-radius: 12px;
  z-index: 9999;
  overflow: hidden;
  animation: searchDropdownSlide 0.2s ease-out;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              0 4px 16px rgba(0, 0, 0, 0.2);
}

.search-dropdown-container.hidden {
  display: none;
  animation: none;
}

@keyframes searchDropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-results-section,
.search-recent-section {
  max-height: 420px;
  overflow-y: auto;
}

.search-results-section.hidden,
.search-recent-section.hidden {
  display: none;
}

.search-dropdown-header {
  padding: 10px 14px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.01);
  position: sticky;
  top: 0;
  z-index: 2;
}

.search-dropdown-list,
.search-recent-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.search-dropdown-item,
.search-recent-item {
  padding: 10px 12px;
  color: var(--text-2);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.search-dropdown-item:last-child,
.search-recent-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover,
.search-recent-item:hover {
  background: rgba(124, 92, 255, 0.08);
  color: var(--text-1);
  padding-left: 14px;
}

.search-dropdown-item.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
}

.search-dropdown-emoji,
.search-recent-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.search-dropdown-name,
.search-recent-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(124, 92, 255, 0.15);
  color: var(--accent);
  margin-left: auto;
  flex-shrink: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Empty Search State */
.search-empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-3);
}

.search-empty-state.hidden {
  display: none;
}

.empty-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.search-empty-state p {
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- Hero Stats ---------- */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-1);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: var(--text-1);
}

.section-desc {
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- Featured Grid ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* ---------- Tool Card ---------- */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.tool-card:hover {
  border-color: rgba(124, 92, 255, 0.2);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.tool-icon {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.tool-category {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 600;
}

.tool-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin: 0;
}

.tool-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.55;
  flex: 1;
  margin: 0;
}

.tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(124, 92, 255, 0.2);
  transition: all var(--transition);
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  font-family: var(--font-body);
}

.tool-link:hover {
  background: rgba(124, 92, 255, 0.1);
  border-color: var(--accent);
  transform: translateX(2px);
  color: var(--accent);
}

/* ---------- Category Tabs ---------- */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.cat-tab {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.cat-tab:hover {
  border-color: var(--border-hover);
  color: var(--text-1);
}

.cat-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139,139,255,0.35);
}

/* ---------- Tools Grid ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ---------- No Results ---------- */
.no-results {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-3);
}

.no-results-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.hidden { display: none; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: 5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-3);
  max-width: 280px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-3);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-3);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom p {
  margin: 0;
  letter-spacing: 0.02em;
}

.footer-credits {
  font-size: 0.75rem;
  color: var(--text-3);
  opacity: 0.7;
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive Design ---------- */
@media (max-width: 768px) {
  :root {
    font-size: 15px;
  }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .logo-subtitle {
    display: none;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .search-input {
    font-size: 0.9rem;
    padding: 12px 44px 12px 40px;
  }

  .search-wrap {
    max-width: 100%;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-num {
    font-size: 1.1rem;
  }

  .featured-grid,
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cat-tabs {
    gap: 0.3rem;
    margin-bottom: 1.5rem;
  }

  .cat-tab {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .section-gap {
    padding: 3.5rem 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .search-dropdown-container {
    max-height: 320px;
  }

  .tool-card {
    padding: 1.25rem;
  }

  .tool-icon {
    font-size: 1.5rem;
  }

  .tool-name {
    font-size: 0.95rem;
  }

  .tool-desc {
    font-size: 0.8rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-grid,
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Optimize scrollbar on mobile */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 4px;
  }

  ::-webkit-scrollbar-thumb {
    border-radius: 2px;
  }
}
.page-hero {
  padding: 8rem 5% 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-1);
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
}

.page-body {
  padding: 5rem 5%;
  max-width: 800px;
  margin: 0 auto;
}

.page-section {
  margin-bottom: 3rem;
}

.page-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.page-section p {
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ---------- About Page ---------- */
.about-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 2rem;
  text-align: center;
}

.about-text {
  max-width: 700px;
  margin: 0 auto 4rem;
  text-align: center;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-2);
}

.developer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  margin-bottom: 4rem;
  text-align: center;
}

.developer-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.5rem;
}

.developer-title {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.developer-info p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: var(--text-2);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.developer-contact {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.developer-contact p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.developer-contact a {
  color: var(--accent);
  text-decoration: none;
}

.developer-contact a:hover {
  text-decoration: underline;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.feature-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 1rem;
}

.feature-item p {
  color: var(--text-2);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ---------- Info Card ---------- */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.5rem;
}

.info-card p, .info-card a {
  font-size: 0.9rem;
  color: var(--text-2);
}

.info-card a {
  color: var(--accent);
}

.info-card a:hover { text-decoration: underline; }

/* ---------- Settings ---------- */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.setting-row:hover {
  border-color: var(--border-hover);
}

.setting-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.2rem;
}

.setting-info p {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* Toggle Switch */
.toggle-switch {
  width: 48px;
  height: 26px;
  background: var(--bg-3);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  border: none;
  flex-shrink: 0;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-3);
  transition: all var(--transition);
}

.toggle-switch.on {
  background: var(--accent);
}

.toggle-switch.on::after {
  left: 25px;
  background: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-title { font-size: 2.4rem; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .featured-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .stat-num { font-size: 1.2rem; }

  .cat-tabs {
    gap: 0.4rem;
  }

  .cat-tab {
    font-size: 0.78rem;
    padding: 7px 14px;
  }

  .section-gap { padding: 4rem 0; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}