:root {
  --bg: #030303;
  --fg: #fcfcfc;
  --fg-dim: #94a3b8;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.4);
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.3);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --surface-border: rgba(255, 255, 255, 0.1);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', var(--font-main);
  --glass-blur: 16px;
  --spring-easing: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  word-spacing: 0.05em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Background Effects */
.blob {
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

.blob-1 { top: -200px; left: -100px; }
.blob-2 { bottom: -200px; right: -100px; background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%); }

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--surface-border);
  padding: 0.6rem 1.2rem;
  border-radius: 99px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.7);
  transition: transform 0.3s var(--spring-easing);
}

.nav-container:hover {
  transform: scale(1.01);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  text-decoration: none;
}

.logo i {
  color: var(--accent);
}

.version-badge {
  font-size: 0.65rem;
  background: var(--accent);
  color: white;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 800;
  margin-left: 0.2rem;
  vertical-align: middle;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--fg);
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom, #fff 40%, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 5rem;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: white;
  border: none;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 25px 50px -12px var(--accent-glow);
  filter: brightness(1.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.platforms-row {
  margin-top: -3.5rem;
  margin-bottom: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.platforms-row span {
  font-size: 0.8rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.platform-icons {
  display: flex;
  gap: 1.5rem;
  color: #475569;
  opacity: 0.6;
}

.platform-icons i {
  width: 20px;
  height: 20px;
}

.size-stats {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
}

.size-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.size-item i {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.lang-switcher {
  background: var(--surface);
  color: #94a3b8;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.lang-switcher:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--fg);
}

.hero-image-container {
  position: relative;
  border-radius: 24px;
  padding: 0.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
  border: 1px solid var(--surface-border);
  box-shadow: 0 60px 120px -20px rgba(0,0,0,0.9);
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  transition: transform 0.6s var(--spring-easing);
}

.hero-image-container:hover {
  transform: scale(1.02) translateY(-10px);
}

.hero-image {
  width: 100%;
  border-radius: 16px;
  display: block;
}

/* Features Section */
.features {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: #94a3b8;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1.5rem;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.4s var(--spring-easing);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(59, 130, 246, 0.4);
  background: var(--surface-hover);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.bento-card.col-span-2 { grid-column: span 2; }
.bento-card.row-span-2 { grid-row: span 2; }

@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.col-span-2 { grid-column: span 2; }
}

@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.col-span-2 { grid-column: 1; }
}

.bento-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.bento-header i {
  color: var(--accent);
  width: 28px;
  height: 28px;
  background: rgba(59, 130, 246, 0.1);
  padding: 10px;
  border-radius: 12px;
  box-sizing: content-box;
}

.bento-header h3 {
  font-size: 1.4rem;
  margin: 0;
}

.bento-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
}

.bento-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bento-list strong {
  color: var(--fg);
  font-size: 1.05rem;
}

.bento-list span {
  color: var(--fg-dim);
  font-size: 0.95rem;
}


/* Architecture Section */
.architecture {
  padding: 8rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

.arch-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.arch-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.arch-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item h4 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: #94a3b8;
  font-size: 0.9rem;
}

.scroll-indicator {
  margin-top: 4rem;
  color: var(--fg-dim);
  animation: bounce 2s infinite;
  display: flex;
  justify-content: center;
  font-size: 2rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}

/* Footer */
footer {
  padding: 8rem 0 4rem;
  background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.03));
  border-top: 1px solid var(--surface-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-info p {
  color: var(--fg-dim);
  margin-top: 1.5rem;
  max-width: 300px;
  font-size: 0.95rem;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--fg-dim);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
  display: inline-block;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #475569;
  font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .arch-content { grid-template-columns: 1fr; }
  header nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
