/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background: #f8fafc;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}
body.dark-mode {
  background: #0f172a;
  color: #e2e8f0;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}
ul, ol {
  list-style: none;
}
img, svg {
  max-width: 100%;
  display: block;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}
/* ===== Header & Navigation ===== */
header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.4s ease, border-color 0.4s ease;
}
body.dark-mode header {
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.3rem;
  color: #0f172a;
  transition: transform 0.3s ease;
}
body.dark-mode .logo {
  color: #f1f5f9;
}
.logo:hover {
  transform: scale(1.03);
}
.logo svg {
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease;
}
.logo:hover svg {
  transform: rotate(-8deg);
}
.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}
.nav-links a {
  font-weight: 500;
  color: #334155;
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.3s ease;
}
body.dark-mode .nav-links a {
  color: #cbd5e1;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #facc15;
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: #facc15;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.dark-mode-toggle {
  font-size: 1.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  transition: background 0.3s ease, transform 0.3s ease;
  background: rgba(0,0,0,0.03);
}
body.dark-mode .dark-mode-toggle {
  background: rgba(255,255,255,0.08);
}
.dark-mode-toggle:hover {
  transform: rotate(20deg);
  background: rgba(0,0,0,0.08);
}
.mobile-menu-toggle {
  display: none;
  font-size: 1.6rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  transition: background 0.3s ease;
}
.mobile-menu-toggle:hover {
  background: rgba(0,0,0,0.06);
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.2rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    animation: slideDown 0.3s ease;
  }
  body.dark-mode .nav-links {
    background: rgba(15,23,42,0.97);
    border-bottom: 1px solid #334155;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ===== Hero Section ===== */
#hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #334155 100%);
  color: #f8fafc;
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(250, 204, 21, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(250, 204, 21, 0.08) 0%, transparent 40%);
  animation: heroGlow 12s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, -5%); }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
#hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  background: linear-gradient(to right, #facc15, #fde047, #facc15);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(250,204,21,0.15);
}
#hero p {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: #facc15;
  color: #0f172a;
  box-shadow: 0 4px 16px rgba(250,204,21,0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(250,204,21,0.5);
  background: #fde047;
}
.btn-secondary {
  background: transparent;
  border-color: #facc15;
  color: #facc15;
}
.btn-secondary:hover {
  background: rgba(250,204,21,0.12);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(250,204,21,0.2);
}
/* ===== Section Common ===== */
section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }
section:nth-child(7) { animation-delay: 0.6s; }
section:nth-child(8) { animation-delay: 0.7s; }
section:nth-child(9) { animation-delay: 0.8s; }
section:nth-child(10) { animation-delay: 0.9s; }
section:nth-child(11) { animation-delay: 1s; }
section:nth-child(12) { animation-delay: 1.1s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}
h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #facc15, #fde047);
  border-radius: 2px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #0f172a;
}
body.dark-mode h3 {
  color: #f1f5f9;
}
p {
  margin-bottom: 0.8rem;
  color: #475569;
}
body.dark-mode p {
  color: #94a3b8;
}
/* ===== Grid Layouts ===== */
.about-grid,
.products-grid,
.solutions-grid,
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}
article {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226,232,240,0.6);
  border-radius: 1.2rem;
  padding: 1.8rem;
  transition: all 0.4s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
body.dark-mode article {
  background: rgba(30,41,59,0.75);
  border-color: rgba(51,65,85,0.6);
}
article:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  border-color: #facc15;
}
body.dark-mode article:hover {
  box-shadow: 0 12px 32px rgba(250,204,21,0.08);
}
article .btn {
  margin-top: 1rem;
}
/* ===== Features ===== */
#features ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
#features li {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(226,232,240,0.5);
  border-radius: 1rem;
  padding: 1rem 1.4rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
}
body.dark-mode #features li {
  background: rgba(30,41,59,0.7);
  border-color: rgba(51,65,85,0.5);
}
#features li::before {
  content: '⚡';
  font-size: 1.2rem;
}
#features li:hover {
  transform: translateX(4px);
  border-color: #facc15;
  background: rgba(250,204,21,0.06);
}
/* ===== FAQ ===== */
.faq-list details {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(226,232,240,0.5);
  border-radius: 1rem;
  padding: 0.8rem 1.2rem;
  margin-bottom: 0.8rem;
  transition: all 0.3s ease;
  cursor: pointer;
}
body.dark-mode .faq-list details {
  background: rgba(30,41,59,0.7);
  border-color: rgba(51,65,85,0.5);
}
.faq-list details:hover {
  border-color: #facc15;
  transform: translateX(3px);
}
.faq-list summary {
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.4rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #0f172a;
}
body.dark-mode .faq-list summary {
  color: #f1f5f9;
}
.faq-list summary::after {
  content: '▾';
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: #facc15;
}
.faq-list details[open] summary::after {
  transform: rotate(180deg);
}
.faq-list details p {
  padding: 0.8rem 0 0.4rem;
  border-top: 1px solid rgba(226,232,240,0.4);
  margin-top: 0.6rem;
}
/* ===== How-to ===== */
#howto ol {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
#howto li {
  counter-increment: step;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(226,232,240,0.5);
  border-radius: 1rem;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  transition: all 0.3s ease;
}
body.dark-mode #howto li {
  background: rgba(30,41,59,0.7);
  border-color: rgba(51,65,85,0.5);
}
#howto li::before {
  content: counter(step);
  background: #facc15;
  color: #0f172a;
  font-weight: 700;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
#howto li:hover {
  transform: translateX(4px);
  border-color: #facc15;
}
/* ===== Testimonials ===== */
#testimonials blockquote {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226,232,240,0.5);
  border-left: 4px solid #facc15;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  margin: 1rem 0;
  transition: all 0.3s ease;
}
body.dark-mode #testimonials blockquote {
  background: rgba(30,41,59,0.7);
  border-color: rgba(51,65,85,0.5);
  border-left-color: #facc15;
}
#testimonials blockquote:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
#testimonials blockquote p {
  font-style: italic;
  font-size: 1.05rem;
  color: #334155;
}
body.dark-mode #testimonials blockquote p {
  color: #e2e8f0;
}
#testimonials cite {
  display: block;
  margin-top: 0.8rem;
  font-weight: 600;
  color: #facc15;
  font-style: normal;
}
/* ===== Contact ===== */
address {
  font-style: normal;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226,232,240,0.5);
  border-radius: 1.2rem;
  padding: 1.8rem 2rem;
  display: grid;
  gap: 0.6rem;
  max-width: 500px;
}
body.dark-mode address {
  background: rgba(30,41,59,0.7);
  border-color: rgba(51,65,85,0.5);
}
address p {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
address p::before {
  content: '📞';
}
address p:nth-child(2)::before {
  content: '✉️';
}
address p:nth-child(3)::before {
  content: '📍';
}
/* ===== Footer ===== */
footer {
  background: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
}
footer a {
  color: #facc15;
  transition: color 0.3s ease;
}
footer a:hover {
  color: #fde047;
  text-decoration: underline;
}
.footer-content p {
  margin-bottom: 0.4rem;
  color: #94a3b8;
}
/* ===== Back to Top ===== */
#back-to-top {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #facc15;
  color: #0f172a;
  border: none;
  border-radius: 50%;
  width: 3.2rem;
  height: 3.2rem;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(250,204,21,0.4);
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 28px rgba(250,204,21,0.5);
  background: #fde047;
}
/* ===== Responsive ===== */
@media (max-width: 600px) {
  #hero {
    padding: 3rem 1rem;
    min-height: 60vh;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  section {
    padding: 2.5rem 1rem;
  }
  .about-grid,
  .products-grid,
  .solutions-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }
  #features ul {
    grid-template-columns: 1fr;
  }
  #howto ol {
    grid-template-columns: 1fr;
  }
  address {
    max-width: 100%;
  }
}
/* ===== Dark Mode Refinements ===== */
body.dark-mode .logo span {
  color: #f1f5f9;
}
body.dark-mode #hero p {
  color: #94a3b8;
}
body.dark-mode #features li::before {
  color: #facc15;
}
/* ===== Smooth Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
body.dark-mode ::-webkit-scrollbar-track {
  background: #1e293b;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
body.dark-mode ::-webkit-scrollbar-thumb {
  background: #475569;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
/* ===== Selection ===== */
::selection {
  background: #facc15;
  color: #0f172a;
}