@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700;800&display=swap');

:root {
  /* Brand Palette */
  --bg-base: #030712; /* Very dark blue/black */
  --bg-surface: #0f172a; /* Slate 900 */
  --bg-glass: rgba(15, 23, 42, 0.6);
  --border-glass: rgba(255, 255, 255, 0.08);
  
  --brand-primary: #3b82f6; /* Blue 500 */
  --brand-secondary: #8b5cf6; /* Violet 500 */
  --brand-glow: rgba(59, 130, 246, 0.4);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  
  --layout-max: 1280px;
  --header-height: 80px;
}

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

html {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  scroll-behavior: smooth;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
}

/* Background Effects */
body::before {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

h1 { font-size: clamp(3rem, 6vw, 5rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Layout Utilities */
.container {
  width: min(var(--layout-max), 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding: 2rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  box-shadow: 0 4px 14px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.3);
  filter: brightness(1.1);
}

.btn-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}

.btn-glass:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  transition: background 0.3s ease;
}

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

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text-main);
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.gradient-text {
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Glass UI Elements - Showing instead of just telling */
.hero-visual {
  position: relative;
  height: 600px;
  perspective: 1000px;
  z-index: 1;
}

.glass-card {
  position: absolute;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 24px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}

.mockup-main {
  top: 10%; right: 0;
  width: 400px;
  height: 480px;
  transform: rotateY(-10deg) rotateX(5deg);
}

.mockup-float-1 {
  bottom: 15%; left: 0;
  width: 250px;
  animation-delay: -2s;
  transform: rotateY(15deg) rotateX(-5deg) translateZ(50px);
}

.mockup-float-2 {
  top: 5%; left: -20px;
  width: 220px;
  animation-delay: -4s;
  transform: rotateY(-15deg) translateZ(30px);
}

.ui-skeleton-line {
  height: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  margin-bottom: 12px;
}
.ui-skeleton-line.w-full { width: 100%; }
.ui-skeleton-line.w-3-4 { width: 75%; }
.ui-skeleton-line.w-1-2 { width: 50%; }

.ui-status-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Features Grid */
.features-header {
  text-align: center;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-inline: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, -20%), rgba(59, 130, 246, 0.1), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--brand-primary);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Stats Ribbon */
.stats-ribbon {
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: rgba(15, 23, 42, 0.4);
  padding: 1rem 0;
  margin: 1rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h4 {
  font-size: 3rem;
  color: white;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animated Map / Process Section */
.process-section {
  position: relative;
}

.map-viz {
  position: relative;
  height: 400px;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  margin-bottom: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-node {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--brand-primary);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--brand-primary);
}

.node-1 { top: 40%; left: 20%; }
.node-2 { top: 60%; left: 50%; }
.node-3 { top: 30%; left: 80%; }

.map-line {
  position: absolute;
  border-top: 2px dashed rgba(59, 130, 246, 0.3);
  transform-origin: left center;
}
.line-1 { top: 40%; left: 20%; width: 33%; transform: rotate(18deg); }
.line-2 { top: 60%; left: 50%; width: 34%; transform: rotate(-25deg); }

.pulse-ring {
  position: absolute;
  width: 40px; height: 40px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  top: -14px; left: -14px;
  animation: pulse 2s infinite;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 3rem 0 1rem;
  background: #020408;
}

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

.footer-brand p {
  margin-top: 1.5rem;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: white;
}

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

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

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

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}


/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0) rotateY(-10deg) rotateX(5deg); }
  50% { transform: translateY(-20px) rotateY(-10deg) rotateX(7deg); }
}

@keyframes pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

/* Reveal classes for intersection observer */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 1rem 0; }
}
