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

/* main.css - Core Design System & Base Styles */

:root {
  /* Colors - Premium Tweak */
  /* Official App Theme Colors (Material 3 Scheme) */
  --bg-page: #0b121e;
  --bg-surface: #131b28;
  --bg-surface-variant: #1c2635;
  --text-primary: #F8F9FA;
  --text-secondary: #B0BAC5;
  --accent: #6db1b5;
  --accent-glow: rgba(109, 177, 181, 0.4);
  --accent-hover: #8ac8cc;
  --error: #E57373;
  --border: #2a3544;
  
  /* Spacing - Increased for whitespace */
  --space-xs: 0.75rem;
  --space-sm: 1.25rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 8rem;
  
  /* Typography - Material 3 Inspired */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.05) 0px, transparent 50%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 80px; /* Space for sticky CTA */
  }
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: 6rem 0; /* Reduced from var(--space-xl) which is 8rem */
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .text-center-mobile { text-align: center; }
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.font-mono { font-family: var(--font-mono); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: transform 0.1s ease, background-color 0.2s ease;
  cursor: pointer;
  border: none;
  gap: 0.5rem;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg-page);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: rotate(30deg);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% { left: -60%; }
  30% { left: 140%; }
  100% { left: 140%; }
}

.btn-primary:hover, .btn-hero-primary:hover {
  background-color: var(--accent-hover);
  color: var(--bg-page);
}

.btn-hero-primary {
  background: var(--accent);
  color: var(--bg-page);
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: rotate(30deg);
  animation: shimmer 4s infinite;
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Background Blobs */
.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--accent-glow);
  filter: blur(120px);
  border-radius: 50%;
  z-index: -2;
  opacity: 0.15;
  pointer-events: none;
}

.blob-1 { top: -100px; right: -100px; }
.blob-2 { bottom: -200px; left: -200px; background: #3b82f6; opacity: 0.1; }

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

