:root {
  --primary: #d9534f;
  --dark: #1f2937;
  --accent: #10b981;
  --bg: #ffffff;
}

body {
  margin: 0;
  font-family: Inter, system-ui;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.topbar {
  background: var(--primary);
  color: white;
  font-size: 14px;
}

.topbar-inner {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 8px 0;
}

.topbar a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
}

.topbar a:hover {
  opacity: 0.8;
}

.header-main {
  background: var(--bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo a {
  text-decoration: none;
  font-size: 26px;
  font-weight: bold;
}

.logo-red {
  color: var(--primary);
}

.logo-dark {
  color: var(--dark);
}

.tagline {
  display: block;
  font-size: 11px;
  color: #666;
}

.nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: var(--dark);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: var(--primary);
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-wrapper {
  position: relative;
}

#searchBox {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

#searchResults {
  position: absolute;
  top: 40px;
  background: white;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
}

.cta-btn {
  background: var(--accent);
  color: white;
  padding: 10px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
}

.cta-btn:hover {
  background: #059669;
}

.site-header.sticky {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
}

.mobile-toggle {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

.has-mega {
  position: relative;
}

.nav {
  position: relative;
}

.nav ul li {
  position: relative;
}

.has-mega:hover .mega-menu {
  display: grid;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
    width: 90%;
    max-width: 800px;
  padding: 25px;
  background: white;
  display: none;
  grid-template-columns: repeat(4,1fr);
  gap: 25px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 9999;
}

.mega-menu a {
  transition: all 0.2s ease;
}

.mega-menu a:hover {
  transform: translateX(5px);
  color: var(--primary);
}

.mega-column {
  min-width: 100px;
}

.mega-column h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

.mega-column a {
  display: block;
  color: var(--dark);
  margin: 6px 0;
  text-decoration: none;
}

.mega-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 15px;
}

.mega-column a:hover {
  color: var(--primary);
}

.mobile-menu {
  position: fixed;
  top: 0;
  width: 280px;
  height: 100vh;
  background: white;
  padding: 25px;
  transition: transform 0.35s ease, left 0.35s ease;
  z-index: 10000;
  box-shadow: 2px 0 20px rgba(0,0,0,0.1);
  will-change: transform;
  left: 0;
  transform: translateX(-100%);
  opacity: 0;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
  z-index: 9999;
}

body.menu-open {
  overflow: hidden;
}

.mobile-dropdown {
  cursor: pointer;
}

.mobile-dropdown span {
  display: block;
  padding: 12px 0;
  font-weight: 600;
}

.dropdown-content {
  display: none;
  padding-left: 10px;
}

.mobile-dropdown.open .dropdown-content {
  display: block;
}

.site-header {
  transition: background 0.3s ease, 
  padding 0.3s ease;
}

.site-header.shrink {
  padding: 5px 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
}

.site-header.shrink .logo a {
  font-size: 20px;
}

#pageLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 99999;
}

#pageLoader.active {
  transform: scaleX(1);
}

#app {
  transition: opacity 0.25s ease, 
  transform 0.25s ease;
}

#app.loading {
  opacity: 0.4;
  transform: translateY(10px);
}

.loading-card {
  height: 20px;
  background: #eee;
  margin: 10px 0;
  border-radius: 6px;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer{

  0% {background: #eee;}
  50% {background: #ddd;}
  100% {background: #eee;}

}

.skeleton-card {
  height: 20px;
  background: #eee;
  border-radius: 6px;
  margin: 10px 0;
  animation: shimmer 1.2s infinite;
}

.site-footer {
  background: #1f2937;
  padding: 60px 0 20px;
  position: relative;
  color: #d1d5db;
  overflow: hidden;
}

.footer-col h3,
.footer-col h4 {
  color: white;
  margin-bottom: 15px;
}

.footer-col a {
  display: block;
  color: #d1d5db;
  text-decoration: none;
  margin: 6px 0;
  transition: 0.2s;
  position: relative;
}

.footer-btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(16,185,129,0.5);
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #6b7280;
}

.footer-links a {
  margin-left: 15px;
  color: #9ca3af;
}

.footer-links a:hover {
  color: white;
}

.footer-col a::before {
  content: "› ";
  color: var(--primary);
}

.footer-col a:hover {
  letter-spacing: 0.3px;
  transform: translateX(5px);
  color: white;
}

.footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  width: 0%;
}

.footer-col a:hover::after {
  width: 100%;
}

.footer-col {
  transition: 0.3s ease;
  position: relative;
}

.footer-col:hover {
  transform: translateY(-3px);
}

.footer-btn {
  box-shadow: 0 5px 15px rgba(16,185,129,0.3);
  display: inline-block;
  margin-top: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  padding: 12px 18px;
  color: white;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(circle, rgba(217,83,79,0.25), transparent);
  filter: blur(60px);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
}

.footer-col h3 {
  font-size: 22px;
  font-weight: 700;
  color: white;
}

.footer-col h4 {
  font-size: 16px;
  color: white;
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  color: #9ca3af;
}

.footer-cta {
  background: rgba(255,255,255,0.03);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.hero {
  padding: 80px 0;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
}

/* layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

/* TEXT */
.hero-content h1 {
  font-size: 42px;
  line-height: 1.3;
  color: var(--dark);
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  margin: 20px 0;
  color: #4b5563;
  font-size: 16px;
}

/* CTA */
.hero-actions {
  display: flex;
  gap: 15px;
}

.hero-btn {
  padding: 12px 22px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
}

/* primary */
.hero-btn.primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 10px 25px rgba(16,185,129,0.3);
}

.hero-btn.primary:hover {
  transform: translateY(-2px);
}

/* secondary */
.hero-btn.secondary {
  border: 1px solid #ddd;
  color: var(--dark);
}

.hero-btn.secondary:hover {
  background: #f3f4f6;
}

/* TRUST */
.hero-trust {
  margin-top: 20px;
  color: #6b7280;
  font-size: 14px;
}

/* RIGHT VISUAL */

.hero-visual {
  display: flex;
  justify-content: center;
}

/* CARD */
.card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 300px;
}

.card h3 {
  margin-bottom: 10px;
}

.progress {
  height: 8px;
  background: #eee;
  border-radius: 10px;
  margin: 15px 0;
  overflow: hidden;
}

.progress-bar {
  width: 70%;
  height: 100%;
  background: var(--primary);
  animation: progressAnim 2s ease;
}

@keyframes progressAnim {
  from { width: 0; }
  to { width: 70%; }
}

.card button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  cursor: pointer;
}

.why {
  padding: 70px 0;
  text-align: center;
}

.why h2 {
  font-size: 28px;
  margin-bottom: 40px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
}

.why-card {
  padding: 25px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.why-card:hover {
  transform: translateY(-5px);
}

.categories {
  padding: 60px 0;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}

.cat-card {
  padding: 25px;
  text-align: center;
  background: #f9fafb;
  border-radius: 12px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  transition: 0.25s;
}

.cat-card:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.test-card {
  padding: 15px;
  margin: 10px 0;
  background: white;
  border-radius: 10px;
  border: 1px solid #eee;
}

.test-card h3 {
  font-size: 16px;
}

.stats {
  padding: 60px 0;
  background: #f3f4f6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  text-align: center;
}

.stats h3 {
  font-size: 28px;
  color: var(--primary);
}
.trusted {
  padding: 70px 0;
  text-align: center;
  background: #ffffff;
}

.trusted h2 {
  font-size: 26px;
  color: var(--dark);
}

.trusted-sub {
  color: #6b7280;
  margin: 10px 0 40px;
}

/* LOGOS */
.trusted-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

/* SVG / IMG */
.trusted-logos img {
  max-height: 150px;
  opacity: 1;
  transition: all 0.3s ease;
}

/* Hover effect */
.trusted-logos img:hover {
  opacity: 0.8;
  transform: scale(1.05);
}
.trusted {
  border-top: 1px solid #eee;
}
.trusted-logos img {
  transform: translateY(10px);
  opacity: 0;
  animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
  to {
    transform: translateY(0);
    opacity: 0.7;
  }
}

.header-user {
  position: relative;
}

/* login button */
.login-btn {
  padding: 10px 16px;
  border-radius: 20px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: var(--dark);
  transition: 0.2s;
}

.login-btn:hover {
  background: #f3f4f6;
}

/* avatar */
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  object-fit: cover;
}

/* dropdown */
.user-dropdown {
  position: absolute;
  right: 0;
  top: 50px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);

  display: none;
  min-width: 150px;
  overflow: hidden;
  z-index: 9999;
}

.user-dropdown a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: var(--dark);
}

.user-dropdown a:hover {
  background: #f3f4f6;
}

/* active */
.user-dropdown.active {
  display: block;
}

@media (max-width:768px){

  /* NAV */
  .nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  /* FOOTER */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .footer-col.active .footer-content {
    max-height: 300px;
  }

  .footer-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer-toggle::after {
    content: "⌄";
    transition: transform 0.3s;
  }

  .footer-col.active .footer-toggle::after {
    transform: rotate(180deg);
  }
  
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-actions {
    justify-content: center;
  }

  .why-grid,
  .cat-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .trusted-logos {
    gap: 30px;
  }

  .trusted-logos img {
    max-height: 40px;
  }


}