/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { margin:0; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif; background:#f5f7fa; color:#1a1a2e; line-height:1.6; transition: background 0.3s, color 0.3s; }

/* ===== Header ===== */
header { background:#0a0e27; color:#f0b429; padding:0 1rem; position:sticky; top:0; z-index:100; box-shadow:0 2px 8px rgba(0,0,0,0.3); }
header > div { max-width:1280px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; height:64px; }
header .logo { font-size:1.6rem; font-weight:800; letter-spacing:1px; }
header nav { display:flex; gap:2rem; font-size:0.95rem; }
header nav a { color:#f0b429; text-decoration:none; position:relative; transition: color 0.3s, transform 0.2s; }
header nav a::after { content:''; position:absolute; left:0; bottom:-2px; width:0; height:2px; background:#f0b429; transition: width 0.3s; }
header nav a:hover { color:#ffd966; transform:translateY(-1px); }
header nav a:hover::after { width:100%; }
#darkModeToggle { background:transparent; border:1px solid #f0b429; color:#f0b429; padding:0.3rem 0.8rem; border-radius:20px; cursor:pointer; transition: background 0.3s, color 0.3s, transform 0.2s; }
#darkModeToggle:hover { background:#f0b429; color:#0a0e27; transform:scale(1.05); }

/* ===== Hero Section ===== */
.hero { background:linear-gradient(135deg,#0a0e27 0%,#1a1a3e 50%,#2a2a5e 100%); color:#fff; padding:5rem 1rem; text-align:center; position:relative; overflow:hidden; }
.hero::before { content:''; position:absolute; top:-50%; left:-50%; width:200%; height:200%; background:radial-gradient(circle at 30% 50%, rgba(240,180,41,0.08) 0%, transparent 60%); animation: heroGlow 6s ease-in-out infinite alternate; }
@keyframes heroGlow { 0% { transform:translate(0,0); } 100% { transform:translate(10%,10%); } }
.hero > div { position:relative; z-index:1; max-width:1000px; margin:0 auto; }
.hero h1 { font-size:2.8rem; margin:0 0 1rem; font-weight:800; letter-spacing:2px; animation: fadeInUp 0.8s ease-out; }
.hero p { font-size:1.3rem; line-height:1.8; max-width:800px; margin:0 auto 2rem; color:#d0d4e8; animation: fadeInUp 0.8s ease-out 0.2s both; }
.hero .cta-group { display:flex; justify-content:center; gap:1.5rem; flex-wrap:wrap; animation: fadeInUp 0.8s ease-out 0.4s both; }
.hero .btn-primary { background:#f0b429; color:#0a0e27; padding:0.8rem 2rem; border-radius:40px; font-weight:700; text-decoration:none; font-size:1.1rem; transition: transform 0.3s, box-shadow 0.3s; }
.hero .btn-primary:hover { transform:translateY(-3px) scale(1.02); box-shadow:0 8px 20px rgba(240,180,41,0.4); }
.hero .btn-secondary { border:2px solid #f0b429; color:#f0b429; padding:0.8rem 2rem; border-radius:40px; font-weight:600; text-decoration:none; transition: background 0.3s, color 0.3s, transform 0.3s; }
.hero .btn-secondary:hover { background:#f0b429; color:#0a0e27; transform:translateY(-3px); }

/* ===== Section Headings ===== */
section h2 { font-size:2rem; border-left:6px solid #f0b429; padding-left:1rem; color:#0a0e27; margin-bottom:1.5rem; position:relative; }
section h2::after { content:''; position:absolute; left:0; bottom:-4px; width:40px; height:3px; background:#f0b429; border-radius:2px; }

/* ===== About ===== */
#about { max-width:1280px; margin:0 auto; padding:4rem 1rem; }
#about .grid { display:grid; grid-template-columns:1fr 1fr; gap:2.5rem; margin-top:2rem; }
#about .info-card { background:#eef0f5; border-radius:16px; padding:2rem; backdrop-filter:blur(10px); transition: transform 0.3s, box-shadow 0.3s; }
#about .info-card:hover { transform:translateY(-4px); box-shadow:0 8px 24px rgba(0,0,0,0.1); }
#about .info-card ul { list-style:none; padding:0; line-height:2.2; }
#about .info-card ul li { border-bottom:1px solid rgba(0,0,0,0.05); padding:0.3rem 0; }
#about .info-card ul li:last-child { border-bottom:none; }

/* ===== Cards (Products, Services, Solutions, etc.) ===== */
.card { background:#f8f9fc; border-radius:16px; padding:1.8rem; box-shadow:0 2px 8px rgba(0,0,0,0.04); transition: transform 0.3s, box-shadow 0.3s, background 0.3s; backdrop-filter:blur(4px); }
.card:hover { transform:translateY(-6px); box-shadow:0 12px 28px rgba(0,0,0,0.1); }
.card h3 { color:#0a0e27; margin-top:0; }
.card p { line-height:1.7; color:#3d3d54; }

/* ===== Products Grid ===== */
#products { background:#fff; padding:4rem 1rem; }
#products .grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:2rem; margin-top:2rem; }

/* ===== Services Grid ===== */
#services { max-width:1280px; margin:0 auto; padding:4rem 1rem; }
#services .grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1.8rem; margin-top:2rem; }

/* ===== Solutions ===== */
#solutions { background:#fff; padding:4rem 1rem; }
#solutions .grid { display:grid; grid-template-columns:1fr 1fr; gap:2rem; margin-top:2rem; }

/* ===== Features ===== */
#features { max-width:1280px; margin:0 auto; padding:4rem 1rem; }
#features .grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:1.5rem; margin-top:2rem; }
#features .feature-item { text-align:center; padding:1.5rem; transition: transform 0.3s; }
#features .feature-item:hover { transform:translateY(-4px); }
#features .feature-item span { font-size:2.5rem; display:block; margin-bottom:0.5rem; }
#features .feature-item h3 { margin:0.5rem 0; }

/* ===== Testimonials ===== */
#testimonials { background:#fff; padding:4rem 1rem; }
#testimonials .grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:2rem; margin-top:2rem; }
blockquote { background:#f8f9fc; border-radius:12px; padding:1.8rem; margin:0; font-style:normal; position:relative; transition: transform 0.3s, box-shadow 0.3s; }
blockquote::before { content:'"'; font-size:3rem; color:#f0b429; position:absolute; top:0.2rem; left:1rem; opacity:0.3; }
blockquote:hover { transform:translateY(-4px); box-shadow:0 8px 20px rgba(0,0,0,0.08); }
blockquote p { line-height:1.6; }
blockquote footer { margin-top:1rem; font-weight:600; }

/* ===== Knowledge Hub ===== */
#resources { max-width:1280px; margin:0 auto; padding:4rem 1rem; }
#resources .grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:1.8rem; margin-top:2rem; }
#resources article { background:#fff; border-radius:12px; padding:1.5rem; box-shadow:0 2px 6px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; }
#resources article:hover { transform:translateY(-5px); box-shadow:0 10px 24px rgba(0,0,0,0.1); }
#resources article h3 { font-size:1.2rem; color:#0a0e27; }
#resources article p { color:#555; line-height:1.5; }
#resources article a { color:#f0b429; font-weight:600; text-decoration:none; transition: color 0.3s; }
#resources article a:hover { color:#d49a1e; }

/* ===== HowTo ===== */
#howto { background:#fff; padding:4rem 1rem; }
#howto .howto-box { margin-top:2rem; background:#f8f9fc; border-radius:16px; padding:2rem; backdrop-filter:blur(6px); }
#howto ol { line-height:2.2; font-size:1.05rem; padding-left:1.5rem; }
#howto ol li { padding:0.3rem 0; transition: transform 0.2s; }
#howto ol li:hover { transform:translateX(4px); }

/* ===== FAQ ===== */
#faq { max-width:1280px; margin:0 auto; padding:4rem 1rem; }
#faq details { border-bottom:1px solid #ddd; padding:1rem 0; transition: background 0.3s; }
#faq details:hover { background:rgba(240,180,41,0.03); }
#faq summary { font-weight:600; cursor:pointer; font-size:1.05rem; padding:0.3rem 0; transition: color 0.3s; }
#faq summary:hover { color:#f0b429; }
#faq summary::marker { color:#f0b429; }
#faq p { margin-top:0.8rem; line-height:1.6; }

/* ===== Contact ===== */
#contact { background:#0a0e27; color:#f0b429; padding:4rem 1rem; }
#contact .grid { max-width:1280px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:2.5rem; }
#contact h2 { color:#fff; border-left-color:#f0b429; }
#contact h2::after { background:#f0b429; }
#contact .contact-info p { line-height:1.8; color:#d0d4e8; }
#contact .contact-info ul { list-style:none; padding:0; line-height:2.2; color:#d0d4e8; }
#contact .contact-info ul li { border-bottom:1px solid rgba(255,255,255,0.05); padding:0.2rem 0; }
#contact .form-box { background:#1a1a3e; border-radius:16px; padding:2rem; backdrop-filter:blur(8px); }
#contact .form-box h3 { margin-top:0; color:#fff; }
#contact .form-box label { display:block; margin-bottom:0.5rem; color:#d0d4e8; }
#contact .form-box input,
#contact .form-box textarea { width:100%; padding:0.6rem; border-radius:8px; border:1px solid #555; margin-bottom:1rem; background:#2a2a5e; color:#fff; transition: border-color 0.3s, box-shadow 0.3s; }
#contact .form-box input:focus,
#contact .form-box textarea:focus { outline:none; border-color:#f0b429; box-shadow:0 0 0 3px rgba(240,180,41,0.2); }
#contact .form-box button { background:#f0b429; color:#0a0e27; border:none; padding:0.7rem 2rem; border-radius:40px; font-weight:700; cursor:pointer; transition: transform 0.3s, box-shadow 0.3s; }
#contact .form-box button:hover { transform:translateY(-2px); box-shadow:0 6px 16px rgba(240,180,41,0.3); }

/* ===== Footer ===== */
footer { background:#0a0e27; color:#aaa; padding:2rem 1rem; border-top:1px solid #2a2a5e; }
footer > div { max-width:1280px; margin:0 auto; display:flex; justify-content:space-between; flex-wrap:wrap; gap:1.5rem; }
footer a { color:#f0b429; text-decoration:none; transition: color 0.3s; }
footer a:hover { color:#ffd966; text-decoration:underline; }

/* ===== Back to Top ===== */
#backToTop { position:fixed; bottom:2rem; right:2rem; background:#f0b429; color:#0a0e27; border:none; border-radius:50%; width:48px; height:48px; font-size:1.5rem; cursor:pointer; display:none; box-shadow:0 4px 12px rgba(0,0,0,0.3); z-index:200; transition: transform 0.3s, box-shadow 0.3s; }
#backToTop:hover { transform:scale(1.1) translateY(-2px); box-shadow:0 8px 20px rgba(240,180,41,0.4); }

/* ===== Dark Mode ===== */
body.dark { background:#12122a; color:#e0e0f0; }
body.dark header { background:#0a0e27; }
body.dark .hero { background:linear-gradient(135deg,#0a0e27 0%,#15153a 50%,#1f1f4e 100%); }
body.dark section h2 { color:#e0e0f0; }
body.dark .card { background:#1a1a3e; color:#d0d4e8; }
body.dark .card h3 { color:#f0b429; }
body.dark .card p { color:#b0b4c8; }
body.dark #about .info-card { background:#1a1a3e; color:#d0d4e8; }
body.dark #about .info-card ul li { border-bottom-color:rgba(255,255,255,0.05); }
body.dark #products { background:#12122a; }
body.dark #solutions { background:#12122a; }
body.dark #testimonials { background:#12122a; }
body.dark blockquote { background:#1a1a3e; color:#d0d4e8; }
body.dark #resources article { background:#1a1a3e; color:#d0d4e8; }
body.dark #resources article h3 { color:#f0b429; }
body.dark #resources article p { color:#b0b4c8; }
body.dark #howto { background:#12122a; }
body.dark #howto .howto-box { background:#1a1a3e; color:#d0d4e8; }
body.dark #faq details { border-bottom-color:#2a2a5e; }
body.dark #faq summary { color:#e0e0f0; }
body.dark #faq p { color:#b0b4c8; }
body.dark #contact { background:#0a0e27; }
body.dark #contact .form-box { background:#1a1a3e; }
body.dark footer { border-top-color:#2a2a5e; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(30px); }
  to { opacity:1; transform:translateY(0); }
}
section { animation: fadeInUp 0.6s ease-out both; }
section:nth-child(1) { animation-delay:0.1s; }
section:nth-child(2) { animation-delay:0.2s; }
section:nth-child(3) { animation-delay:0.3s; }
section:nth-child(4) { animation-delay:0.4s; }
section:nth-child(5) { animation-delay:0.5s; }
section:nth-child(6) { animation-delay:0.6s; }
section:nth-child(7) { animation-delay:0.7s; }
section:nth-child(8) { animation-delay:0.8s; }
section:nth-child(9) { animation-delay:0.9s; }
section:nth-child(10) { animation-delay:1.0s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  #about .grid { grid-template-columns:1fr; }
  #solutions .grid { grid-template-columns:1fr; }
  #contact .grid { grid-template-columns:1fr; }
}
@media (max-width: 768px) {
  header nav { gap:1rem; font-size:0.85rem; }
  header nav a { padding:0.3rem 0; }
  .hero h1 { font-size:2rem; }
  .hero p { font-size:1.1rem; }
  #contact .grid { grid-template-columns:1fr; }
  footer > div { flex-direction:column; align-items:center; text-align:center; }
}
@media (max-width: 480px) {
  header > div { flex-wrap:wrap; height:auto; padding:0.5rem 0; }
  header .logo { font-size:1.2rem; }
  header nav { gap:0.6rem; font-size:0.8rem; flex-wrap:wrap; justify-content:center; }
  .hero { padding:3rem 1rem; }
  .hero h1 { font-size:1.6rem; }
  .hero p { font-size:1rem; }
  .hero .cta-group { flex-direction:column; align-items:center; }
  section h2 { font-size:1.5rem; }
  #about .info-card { padding:1.2rem; }
  .card { padding:1.2rem; }
  #contact .form-box { padding:1.2rem; }
}