/* 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, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif; line-height: 1.6; color: #e0e0e0; background: #0f0f1a; min-height: 100vh; }
a { color: #ffd700; text-decoration: none; transition: color 0.3s ease; }
a:hover, a:focus { color: #ffe44d; }
ul, ol { padding-left: 1.5rem; }
img { max-width: 100%; height: auto; }

/* Dark mode variables */
:root { --bg-primary: #0f0f1a; --bg-secondary: #1a1a2e; --bg-card: rgba(26, 26, 46, 0.7); --text-primary: #e0e0e0; --text-secondary: #b0b0c0; --accent: #ffd700; --accent-hover: #ffe44d; --glass-bg: rgba(255, 255, 255, 0.05); --glass-border: rgba(255, 255, 255, 0.1); --shadow: 0 8px 32px rgba(0,0,0,0.3); --radius: 16px; --gradient-1: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); --gradient-2: linear-gradient(135deg, #ffd700, #ff8c00); }

/* Header & Navigation */
header { background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; z-index: 100; }
nav { max-width: 1200px; margin: 0 auto; padding: 0.8rem 1.5rem; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; padding: 0; }
nav ul li a { display: inline-block; padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.9rem; font-weight: 500; color: #c0c0d0; transition: all 0.3s ease; background: transparent; }
nav ul li a:hover, nav ul li a:focus { background: var(--accent); color: #1a1a2e; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); }

/* Main Content */
main { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }

/* Section Common */
section { margin-bottom: 3rem; padding: 2rem; border-radius: var(--radius); background: var(--bg-card); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--glass-border); box-shadow: var(--shadow); transition: transform 0.4s ease, box-shadow 0.4s ease; opacity: 0; transform: translateY(30px); animation: fadeInUp 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: 1.0s; }
section:nth-child(12) { animation-delay: 1.1s; }
section:nth-child(13) { animation-delay: 1.2s; }
section:nth-child(14) { animation-delay: 1.3s; }
section:nth-child(15) { animation-delay: 1.4s; }
section:nth-child(16) { animation-delay: 1.5s; }
section:nth-child(17) { animation-delay: 1.6s; }
section:nth-child(18) { animation-delay: 1.7s; }
section:nth-child(19) { animation-delay: 1.8s; }
section:nth-child(20) { animation-delay: 1.9s; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

section:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }

h1, h2, h3 { color: #ffffff; margin-bottom: 1rem; font-weight: 700; }
h1 { font-size: 2.5rem; background: var(--gradient-2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
h2 { font-size: 1.8rem; border-bottom: 2px solid var(--accent); padding-bottom: 0.5rem; display: inline-block; }
h3 { font-size: 1.3rem; color: var(--accent); }
p { margin-bottom: 1rem; color: var(--text-secondary); }
ul li, ol li { margin-bottom: 0.5rem; }

/* Hero Section */
#hero { background: var(--gradient-1); border: none; text-align: center; padding: 4rem 2rem; position: relative; overflow: hidden; }
#hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 40%, rgba(255,215,0,0.1) 0%, transparent 60%); animation: heroGlow 6s ease-in-out infinite alternate; }
@keyframes heroGlow { 0% { transform: translate(0, 0); } 100% { transform: translate(10%, 10%); } }
#hero h1 { font-size: 2.8rem; margin-bottom: 1.5rem; position: relative; z-index: 1; }
#hero p { font-size: 1.1rem; max-width: 700px; margin: 0 auto 2rem; color: #d0d0e0; position: relative; z-index: 1; }
#hero a[role="button"] { display: inline-block; padding: 1rem 2.5rem; background: var(--gradient-2); color: #1a1a2e; font-weight: 700; font-size: 1.1rem; border-radius: 50px; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(255,215,0,0.4); position: relative; z-index: 1; }
#hero a[role="button"]:hover { transform: scale(1.05); box-shadow: 0 8px 30px rgba(255,215,0,0.6); }

/* Card-like sections for lists */
#products ul, #services ul, #solutions ul, #industries ul, #features ul, #benefits ul, #knowledge-center ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
#products ul li, #services ul li, #solutions ul li, #industries ul li, #features ul li, #benefits ul li, #knowledge-center ul li { background: var(--glass-bg); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1rem 1.2rem; transition: all 0.3s ease; }
#products ul li:hover, #services ul li:hover, #solutions ul li:hover, #industries ul li:hover, #features ul li:hover, #benefits ul li:hover, #knowledge-center ul li:hover { background: rgba(255,215,0,0.1); transform: translateY(-3px); border-color: var(--accent); }

/* FAQ details */
details { background: var(--glass-bg); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border: 1px solid var(--glass-border); border-radius: 12px; margin-bottom: 0.8rem; padding: 0.8rem 1.2rem; transition: all 0.3s ease; }
details:hover { border-color: var(--accent); }
details summary { cursor: pointer; font-weight: 600; color: #ffffff; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-size: 1.2rem; color: var(--accent); transition: transform 0.3s ease; }
details[open] summary::after { content: '−'; transform: rotate(180deg); }
details p { margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--glass-border); }

/* Blockquote */
blockquote { background: var(--glass-bg); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; padding: 1rem 1.5rem; margin: 1rem 0; font-style: italic; }
blockquote footer { margin-top: 0.5rem; color: var(--accent); font-style: normal; }

/* Workflow & HowTo lists */
#workflow ol, #howto ol { background: var(--glass-bg); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border-radius: 12px; padding: 1.5rem 2rem; list-style-position: inside; }
#workflow ol li, #howto ol li { padding: 0.5rem 0; border-bottom: 1px solid var(--glass-border); }
#workflow ol li:last-child, #howto ol li:last-child { border-bottom: none; }

/* Case studies */
#case-studies article { background: var(--glass-bg); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border-radius: 12px; padding: 1.2rem; margin-bottom: 1rem; border: 1px solid var(--glass-border); transition: all 0.3s ease; }
#case-studies article:hover { border-color: var(--accent); transform: translateX(5px); }

/* Contact & Legal */
#contact ul, #legal p { background: var(--glass-bg); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border-radius: 12px; padding: 1rem 1.5rem; list-style: none; }
#contact ul li { padding: 0.3rem 0; }

/* Footer */
footer { background: var(--bg-secondary); border-top: 1px solid var(--glass-border); text-align: center; padding: 2rem 1.5rem; margin-top: 3rem; }
footer p { color: #888; font-size: 0.9rem; margin-bottom: 0.5rem; }
footer nav ul { list-style: none; display: flex; justify-content: center; gap: 1.5rem; padding: 1rem 0 0; }
footer nav ul li a { color: #aaa; font-size: 0.9rem; }
footer nav ul li a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  #hero h1 { font-size: 2rem; }
  #hero p { font-size: 1rem; }
  section { padding: 1.5rem; }
  nav ul { gap: 0.3rem; }
  nav ul li a { font-size: 0.8rem; padding: 0.3rem 0.8rem; }
  #products ul, #services ul, #solutions ul, #industries ul, #features ul, #benefits ul, #knowledge-center ul { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  main { padding: 1rem; }
  section { padding: 1rem; }
  #hero { padding: 2rem 1rem; }
  #hero h1 { font-size: 1.6rem; }
  #hero a[role="button"] { padding: 0.8rem 1.8rem; font-size: 1rem; }
  footer nav ul { flex-direction: column; gap: 0.5rem; }
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

/* Selection */
::selection { background: var(--accent); color: #1a1a2e; }