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

:root {
  --bg: #0a0a0f;
  --bg-subtle: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --border: #23233a;
  --border-light: #2a2a45;
  --text: #e4e4ed;
  --text-muted: #9494a8;
  --text-dim: #6b6b80;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --accent: #06b6d4;
  --gradient: linear-gradient(135deg, #6366f1, #06b6d4);
  --gradient-warm: linear-gradient(135deg, #f59e0b, #f97316);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.2;
  font-weight: 600;
}

a { text-decoration: none; color: inherit; }

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon { width: 36px; height: 36px; }

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

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.1);
}

.btn-full { width: 100%; }

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

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

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--text);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.glow-1 {
  width: 600px; height: 600px;
  background: rgba(99, 102, 241, 0.15);
  top: -200px; right: -100px;
}

.glow-2 {
  width: 400px; height: 400px;
  background: rgba(6, 182, 212, 0.1);
  bottom: 20%; left: -100px;
}

.glow-3 {
  width: 300px; height: 300px;
  background: rgba(139, 92, 246, 0.08);
  top: 40%; left: 40%;
}

.hero-content {
  text-align: center;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--primary-light);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
  margin-left: auto;
  margin-right: auto;
}

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

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

.orbit-system {
  position: relative;
  width: 360px;
  height: 360px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 { width: 200px; height: 200px; animation: spin 12s linear infinite; }
.orbit-2 { width: 280px; height: 280px; animation: spin 18s linear infinite reverse; }
.orbit-3 { width: 360px; height: 360px; animation: spin 25s linear infinite; }

.orbit-dot {
  width: 8px; height: 8px;
  background: var(--primary-light);
  border-radius: 50%;
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

.core-element {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 3s ease-in-out infinite;
}

.core-element svg { width: 80px; height: 80px; }

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.08); } }

/* About */
.about {
  padding: 120px 0;
}

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

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
}

.about-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.about-icon {
  width: 48px; height: 48px;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Focus Areas */
.focus {
  padding: 120px 0;
  background: var(--bg-subtle);
}

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

.focus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.focus-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.focus-number {
  position: absolute;
  top: 20px; right: 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(99, 102, 241, 0.06);
}

.focus-icon-wrap {
  width: 56px; height: 56px;
  margin-bottom: 24px;
}

.focus-icon-wrap svg { width: 100%; height: 100%; }

.focus-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.focus-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Services */
.services {
  padding: 120px 0;
}

.services-grid {
  display: grid;
  gap: 0;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.service-item:first-child { border-top: 1px solid var(--border); }

.service-item:hover { padding-left: 16px; }

.service-line {
  width: 4px;
  min-height: 60px;
  background: var(--gradient);
  border-radius: 4px;
  flex-shrink: 0;
  opacity: 0.3;
  transition: var(--transition);
}

.service-item:hover .service-line { opacity: 1; }

.service-content h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.service-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
}

/* Products */
.products {
  padding: 120px 0;
  background: var(--bg-subtle);
}

.product-showcase {
  display: flex;
  justify-content: center;
}

.product-featured {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  max-width: 560px;
  position: relative;
  transition: var(--transition);
}

.product-featured:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.product-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 28px;
}

.product-logo {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
}

.product-logo svg { width: 100%; height: 100%; }

.product-card h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.product-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Contact */
.contact {
  padding: 120px 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 20px;
}

.contact-info > p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-detail svg {
  width: 20px; height: 20px;
  color: var(--primary-light);
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* Footer */
.footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
  }

  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .orbit-system { width: 280px; height: 280px; }
  .orbit-1 { width: 160px; height: 160px; }
  .orbit-2 { width: 220px; height: 220px; }
  .orbit-3 { width: 280px; height: 280px; }

  .about-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }
  .footer-content { flex-direction: column; gap: 40px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle { display: flex; }

  .hero { padding-top: 120px; min-height: auto; padding-bottom: 60px; }
  .hero h1 { font-size: 2rem; }

  .about, .focus, .services, .products, .contact { padding: 80px 0; }
  .section-header { margin-bottom: 40px; }

  .focus-card, .about-card { padding: 28px; }
  .product-featured { padding: 36px; }

  .footer-links { gap: 40px; }
}
