@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #F9FAFB; /* Clean Light Background */
  --surface-color: #FFFFFF; /* Crisp Card surface */
  --surface-light: #F3F4F6;
  --primary-color: #2563EB; /* Trust Blue */
  --primary-color-dark: #1D4ED8;
  --secondary-color: #8B5CF6; /* Soft Purple */
  --accent-color: #F43F5E; /* Accent Red */
  
  --text-primary: #111827; /* Near Black */
  --text-secondary: #4B5563; /* Slate Graphic */
  --text-muted: #9CA3AF;
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  
  --shadow-neon-cyan: 0 10px 30px rgba(37, 99, 235, 0.15);
  --shadow-neon-purple: 0 10px 30px rgba(139, 92, 246, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --font-main: 'Space Grotesk', sans-serif;
  --transition-speed: 0.3s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: var(--transition-speed); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: 1.05rem;
  cursor: pointer; border: none; transition: all var(--transition-speed);
  position: relative; overflow: hidden; z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  box-shadow: var(--shadow-neon-purple);
}

.btn-primary::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  opacity: 0; z-index: -1; transition: opacity var(--transition-speed);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(176, 38, 255, 0.5); }

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  box-shadow: var(--shadow-neon-cyan);
}
.btn-outline:hover {
  background: var(--primary-color);
  color: var(--bg-color);
}

/* Scroll Animation */
.animate-on-scroll {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up-active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 24px 0; transition: all var(--transition-speed);
}
.header.scrolled {
  background: var(--glass-bg); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo-container { display: flex; flex-direction: column; }
.logo-text {
  font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; line-height: 1.1;
  background: linear-gradient(to right, #111827, var(--primary-color));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.logo-subtext {
  font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
  letter-spacing: 0.5px;
}
.nav-links { display: flex; gap: 32px; }
.nav-link { font-weight: 500; font-size: 1rem; color: var(--text-primary); position: relative; }
.nav-link:hover { color: var(--primary-color); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: 80px; }
.hero-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.glow-orb {
  position: absolute; width: 40vw; height: 40vw; background: var(--primary-color);
  border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%);
  filter: blur(150px); opacity: 0.1; z-index: -1;
}
.hero-content { position: relative; z-index: 10; text-align: left; }
.hero-tag {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  background: rgba(0, 240, 255, 0.1); border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--primary-color); font-weight: 600; font-size: 0.9rem; margin-bottom: 24px;
  box-shadow: var(--shadow-neon-cyan); text-transform: uppercase; letter-spacing: 1px;
}
.hero-title { font-size: 5rem; letter-spacing: -2px; margin-bottom: 30px; line-height: 1.1; }
.hero-subtitle { font-size: 1.3rem; color: var(--text-secondary); margin-bottom: 40px; font-weight: 400; max-width: 600px; }
.hero-title span {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text; 
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ai-ecosystem {
  position: relative; width: 100%; max-width: 450px; height: 450px;
  margin: 0 auto; display: flex; align-items: center; justify-content: center;
}
.core-node {
  position: relative; width: 100px; height: 100px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; z-index: 10;
  box-shadow: 0 0 50px rgba(37, 99, 235, 0.4), inset 0 0 20px rgba(255,255,255,0.4);
}
.glow-pulse {
  position: absolute; width: 100%; height: 100%; border-radius: 50%;
  background: var(--primary-color); opacity: 0.5; filter: blur(25px);
  animation: corePulse 3s infinite alternate; z-index: -1;
}
@keyframes corePulse { 0% { transform: scale(1); opacity: 0.4; } 100% { transform: scale(1.6); opacity: 0.8; } }

.orbit {
  position: absolute; border-radius: 50%; top: 50%; left: 50%;
  border: 1px solid rgba(0,0,0,0.1);
}
.orbit-inner {
  width: 250px; height: 250px; margin-top: -125px; margin-left: -125px;
  animation: spinReverse 20s linear infinite;
}
.orbit-outer {
  width: 400px; height: 400px; margin-top: -200px; margin-left: -200px;
  border: 1px dashed rgba(0,0,0,0.15);
  animation: spin 35s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spinReverse { 100% { transform: rotate(-360deg); } }
@keyframes spinCounter { 100% { transform: rotate(360deg); } }
@keyframes spinCounterReverse { 100% { transform: rotate(-360deg); } }

.satellite {
  position: absolute; width: 60px; height: 60px;
  background: var(--surface-color); border: 1px solid var(--glass-border);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.orbit-inner .satellite { animation: spinCounter 20s linear infinite; }
.orbit-outer .satellite { animation: spinCounterReverse 35s linear infinite; }

/* Philosophy Section */
.philosophy { background: var(--surface-color); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.philosophy-text { font-size: 2.2rem; font-weight: 300; line-height: 1.5; color: var(--text-primary); max-width: 900px; margin: 0 auto; }
.philosophy-text strong { color: var(--primary-color); font-weight: 600; }

/* App Universe Tab Category Buttons */
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 3rem; }
.category-filters { display: flex; justify-content: center; gap: 16px; margin-bottom: 50px; flex-wrap: wrap; }
.cat-btn {
  background: var(--surface-light); color: var(--text-secondary); border: 1px solid var(--glass-border);
  padding: 10px 24px; border-radius: 50px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: 0.3s;
}
.cat-btn.active, .cat-btn:hover {
  background: rgba(0, 240, 255, 0.1); color: var(--primary-color);
  border-color: var(--primary-color); box-shadow: var(--shadow-neon-cyan);
}

/* App Grid */
.apps-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
  gap: 30px; 
  padding-top: 20px;
}
.app-card {
  background: var(--surface-color); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); transition: 0.3s; position: relative; 
  display: flex; flex-direction: column; margin-top: 30px;
}
.app-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  opacity: 0; transition: 0.3s; z-index: 20; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.app-card:hover {
  transform: translateY(-8px); border-color: rgba(0,0,0,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.app-card:hover::before { opacity: 1; }
.app-card-content {
  padding: 40px 30px 30px; position: relative; background: transparent;
  flex-grow: 1; z-index: 5; display: flex; flex-direction: column;
}
.app-icon {
  width: 65px; height: 65px; border-radius: 16px; background: var(--surface-color);
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  position: absolute; top: -32.5px; left: 30px; border: 1px solid var(--glass-border);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1); z-index: 10;
}
.app-card h3 { font-size: 1.6rem; margin-bottom: 12px; }
.app-card p { color: var(--text-secondary); margin-bottom: 24px; font-size: 0.95rem; line-height: 1.6; }
.app-actions {
  margin-top: auto; padding-top: 24px; border-top: 1px dashed var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
}
.store-links { display: flex; gap: 16px; align-items: center; }
.store-icon svg { width: 22px; height: 22px; fill: var(--text-muted); transition: 0.3s; }
.store-icon:hover svg { fill: var(--primary-color); transform: scale(1.1); }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; border-width: 2px; }

/* Metrics */
.metrics { background: linear-gradient(to right, rgba(37,99,235,0.05), rgba(139,92,246,0.05)); padding: 80px 0; border-top: 1px solid var(--glass-border); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.metric-item h4 { font-size: 4rem; color: var(--text-primary); margin-bottom: 5px; text-shadow: var(--shadow-neon-cyan); }
.metric-item p { color: var(--primary-color); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 0.9rem; }

/* Collaboration */
.collab-box {
  background: var(--surface-color); border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 60px; text-align: center; position: relative; overflow: hidden;
}
.collab-box::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 50%;
  background: linear-gradient(to top, rgba(176,38,255,0.1), transparent); z-index: 0;
}
.collab-content { position: relative; z-index: 10; max-width: 600px; margin: 0 auto; }
.collab-content h2 { font-size: 2.5rem; }

/* Footer */
.footer { border-top: 1px solid var(--glass-border); padding: 80px 0 30px; background: var(--surface-light); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 20px; color: var(--text-primary); }
.footer-col a { display: block; color: var(--text-secondary); margin-bottom: 12px; }
.footer-col a:hover { color: var(--primary-color); }
.footer-bottom { text-align: center; border-top: 1px solid var(--glass-border); padding-top: 30px; color: var(--text-muted); font-size: 0.9rem; }

/* Mobile Menu & Responsive */
.mobile-btn { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

@media(max-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  .philosophy-text { font-size: 1.8rem; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 50px; }
  .hero-split, .philosophy-split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-content { text-align: center; margin: 0 auto; }
}

@media(max-width: 768px) {
  .nav-links { display: none; }
  .mobile-btn { display: block; }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .collab-box { padding: 40px 20px; }
}
