:root {
  --background: #02040a;
  --foreground: #f8fafc;
  --primary: #06b6d4;
  --primary-glow: rgba(6, 182, 212, 0.5);
  --emerald: #10b981;
  --accent: #3b82f6;
  --secondary: #0f172a;
  --glass: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --muted: #94a3b8;
}

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

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Glowing Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  opacity: 0.3;
  animation: float 20s infinite ease-in-out alternate;
}

.orb-1 { width: 500px; height: 500px; background: var(--primary); top: -200px; left: -100px; }
.orb-2 { width: 600px; height: 600px; background: var(--emerald); top: 30%; right: -200px; animation-delay: -7s; opacity: 0.15; }
.orb-3 { width: 500px; height: 500px; background: var(--accent); bottom: -100px; left: 10%; animation-delay: -12s; opacity: 0.2; }

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -60px) scale(1.1); }
}

/* Layout Utilities */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 8rem 0;
}

/* Glassmorphism */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.text-gradient {
  background: linear-gradient(to right, #06b6d4, #10b981);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-muted { color: var(--muted); }
.mt-4 { margin-top: 1.5rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

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

.btn-primary:hover {
  background: #e2e8f0;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
}

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

.logo { flex: 1; display: flex; align-items: center; }
.logo-img { height: 32px; filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.4)); }

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

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

.nav-links a:hover { color: var(--foreground); }

.nav-actions { flex: 1; display: flex; justify-content: flex-end; }

/* Hero Section */
.hero {
  padding-top: 13rem;
  padding-bottom: 6rem;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto 3rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Image Presentation Window */
.mac-window {
  margin-top: 5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 60px rgba(6, 182, 212, 0.15);
  overflow: hidden;
  background: var(--background);
}

.mac-header {
  height: 2rem;
  background: var(--secondary);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 8px;
}

.mac-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.mac-dot.red { background: #ff5f56; }
.mac-dot.yellow { background: #ffbd2e; }
.mac-dot.green { background: #27c93f; }

.hero-mockup-img {
  width: 100%;
  display: block;
}

/* Bento Grid System */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-family: 'Outfit', sans-serif; font-size: 2.75rem; letter-spacing: -0.02em; }
.section-subtitle { color: var(--muted); font-size: 1.15rem; max-width: 700px; margin: 1rem auto 0; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--glass-border);
}

.bento-card:hover { 
  transform: translateY(-5px); 
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.5);
}

.item-wide { grid-column: span 2; }
.item-full { grid-column: span 3; }

.bento-icon {
  width: 50px; height: 50px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.bento-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; color: var(--foreground); }
.bento-card p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

/* Image Containers inside Bento */
.bento-image-container {
  margin-top: 2rem;
  flex-grow: 1;
  border-radius: 0.5rem;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  background: var(--secondary);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 300px; /* Placeholder minimum */
}

.bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.placeholder-box {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 10px, transparent 10px, transparent 20px);
  color: var(--muted);
  font-family: monospace;
  text-align: center;
  padding: 2rem;
}
.placeholder-box span { margin-top: 0.5rem; font-size: 0.85rem; color: var(--primary); }

/* Terminal Blocks */
.terminal {
  border-radius: 1rem; text-align: left;
  border: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.terminal pre {
  padding: 1.5rem; margin: 0;
  font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; overflow-x: auto; color: #e4e4e7;
}

.terminal .keyword { color: #f472b6; }
.terminal .string { color: #34d399; }
.terminal .property { color: #7dd3fc; }
.terminal .comment { color: #52525b; }

/* Alerts / Callouts */
.alert-box {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid var(--emerald);
  margin-top: 1rem;
}
.alert-box.cyan {
  background: rgba(6, 182, 212, 0.1);
  border-left-color: var(--primary);
}

/* Footer */
footer { padding: 3rem 0; border-top: 1px solid var(--glass-border); margin-top: 5rem; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }

/* Global Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Mobile Grid */
@media (max-width: 992px) {
  .bento-grid { grid-template-columns: 1fr; }
  .item-wide, .item-full { grid-column: 1; }
  .nav-links { display: none; }
}
