* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #030712;
  --bg-secondary: #0a0f1e;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border: #1f2937;
  --border-light: #374151;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --accent-cyan: #06b6d4;
  --gradient-1: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --gradient-2: linear-gradient(135deg, #10b981, #06b6d4);
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, #030712 0%, #0a1225 30%, #0d1830 50%, #0a1225 70%, #050b18 100%);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.stars div {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

.stars div:nth-child(odd) {
  background: #c8d8ff;
}

.stars div:nth-child(3n) {
  width: 3px;
  height: 3px;
  box-shadow: 0 0 6px 1px rgba(59, 130, 246, 0.4);
}

.stars div:nth-child(5n) {
  width: 2.5px;
  height: 2.5px;
  box-shadow: 0 0 4px 1px rgba(139, 92, 246, 0.4);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient-1);
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
}

.lang-flag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(139, 92, 246, 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(16, 185, 129, 0.08), transparent);
}

.hero-content {
  position: relative;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 4px 30px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.btn-card {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.btn-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Products ---- */
.products {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-purple);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-codx::before { background: var(--gradient-1); }
.card-agentx::before { background: linear-gradient(90deg, #10b981, #06b6d4); }
.card-mathx::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.card-genx::before { background: linear-gradient(90deg, #4B3FBE, #06b6d4); }
.card-matterx::before { background: linear-gradient(90deg, #8b5cf6, #ec4899); }

.product-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.card-logo img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-codx .card-icon { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.card-agentx .card-icon { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.card-mathx .card-icon { background: rgba(245, 158, 11, 0.15); color: var(--accent-orange); }
.card-matterx .card-icon { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }

.product-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.card-features {
  list-style: none;
  margin-bottom: 24px;
}

.card-features li {
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.card-codx .card-features li::before { background: var(--accent-blue); }
.card-agentx .card-features li::before { background: var(--accent-emerald); }
.card-mathx .card-features li::before { background: var(--accent-orange); }
.card-genx .card-features li::before { background: #4B3FBE; }
.card-matterx .card-features li::before { background: var(--accent-purple); }

/* ---- About ---- */
.about {
  padding: 120px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.about-content > p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 36px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-blue);
}

.about-icon svg {
  width: 20px;
  height: 20px;
}

.about-feature h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-stack {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
}

.tech-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 20px;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-chip {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s;
}

.tech-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--border-light);
}

/* ---- Contact ---- */
.contact {
  padding: 120px 0;
  text-align: center;
}

.contact-content {
  max-width: 600px;
}

.contact h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.contact p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-mb {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.footer-mb:hover {
  opacity: 0.8;
}

.footer-mb img {
  width: 38px;
  height: 38px;
}

/* ---- Solvatex System (Solar System) ---- */
.solar-system {
  position: relative;
  width: 500px;
  height: 500px;
  margin: 0 auto 48px;
}

.system-label {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  z-index: 20;
}

.sun {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.sun-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(139, 92, 246, 0.12) 40%, transparent 70%);
  animation: sun-glow-pulse 3s ease-in-out infinite;
}

.sun-logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5)) drop-shadow(0 0 40px rgba(139, 92, 246, 0.25));
  animation: sun-pulse 4s ease-in-out infinite;
}

@keyframes sun-pulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5)) drop-shadow(0 0 40px rgba(139, 92, 246, 0.25)); }
  50% { filter: drop-shadow(0 0 35px rgba(59, 130, 246, 0.7)) drop-shadow(0 0 60px rgba(139, 92, 246, 0.4)); }
}

@keyframes sun-glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(59, 130, 246, 0.08);
  border-radius: 50%;
  animation: orbit-spin linear infinite;
}

.orbit-1 { width: 180px; height: 180px; margin: -90px 0 0 -90px; animation-duration: 14s; border-color: rgba(59, 130, 246, 0.22); }
.orbit-2 { width: 250px; height: 250px; margin: -125px 0 0 -125px; animation-duration: 20s; border-color: rgba(16, 185, 129, 0.20); }
.orbit-3 { width: 330px; height: 330px; margin: -165px 0 0 -165px; animation-duration: 28s; border-color: rgba(75, 63, 190, 0.18); }
.orbit-4 { width: 410px; height: 410px; margin: -205px 0 0 -205px; animation-duration: 36s; border-color: rgba(245, 158, 11, 0.16); }
.orbit-5 { width: 490px; height: 490px; margin: -245px 0 0 -245px; animation-duration: 44s; border-color: rgba(139, 92, 246, 0.16); }

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.planet {
  position: absolute;
  top: -24px;
  left: 50%;
  margin-left: -24px;
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s, filter 0.3s;
}

.planet img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.planet-name {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.planet:hover .planet-name { opacity: 1; }

.planet-codx img { filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5)); }
.planet-agentx img { filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5)); }
.planet-mathx img { filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5)); }
.planet-matterx img { filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5)); }
.planet-genx img { filter: drop-shadow(0 0 8px rgba(75, 63, 190, 0.5)); }

.planet:hover { transform: scale(1.25); z-index: 20; }
.planet:hover img { filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.8)) brightness(1.1); }

/* Counter-rotate planets so they stay upright */
.orbit-1 .planet { animation: counter-spin 14s linear infinite; }
.orbit-2 .planet { animation: counter-spin 20s linear infinite; }
.orbit-3 .planet { animation: counter-spin 28s linear infinite; }
.orbit-4 .planet { animation: counter-spin 36s linear infinite; }
.orbit-5 .planet { animation: counter-spin 44s linear infinite; }

@keyframes counter-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@media (max-width: 768px) {
  .solar-system { width: 370px; height: 370px; margin-bottom: 36px; }
  .system-label { font-size: 0.6rem; top: -24px; }
  .orbit-1 { width: 120px; height: 120px; margin: -60px 0 0 -60px; }
  .orbit-2 { width: 170px; height: 170px; margin: -85px 0 0 -85px; }
  .orbit-3 { width: 225px; height: 225px; margin: -112px 0 0 -112px; }
  .orbit-4 { width: 290px; height: 290px; margin: -145px 0 0 -145px; }
  .orbit-5 { width: 360px; height: 360px; margin: -180px 0 0 -180px; }
  .sun-logo { width: 76px; height: 76px; }
  .sun-glow { width: 110px; height: 110px; }
  .planet { width: 38px; height: 38px; top: -19px; margin-left: -19px; }
  .planet img { width: 38px; height: 38px; }
}

/* ---- Animations ---- */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge { animation: fade-in-up 0.6s ease both; }
.hero h1 { animation: fade-in-up 0.6s ease 0.1s both; }
.hero-subtitle { animation: fade-in-up 0.6s ease 0.2s both; }
.hero-actions { animation: fade-in-up 0.6s ease 0.3s both; }
.hero-stats { animation: fade-in-up 0.6s ease 0.4s both; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { gap: 32px; }
  .stat-value { font-size: 1.5rem; }

  .product-grid { grid-template-columns: 1fr; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-header h2,
  .about-content h2,
  .contact h2 {
    font-size: 1.8rem;
  }
}
