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

:root {
  /* Colors - Apple Dark Mode Aesthetic */
  --bg-color: #000000;
  --surface-rgb: 30, 30, 32;
  --surface: rgba(var(--surface-rgb), 0.6);
  --surface-hover: rgba(var(--surface-rgb), 0.8);
  
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #424245;

  --accent-color: #06c;
  --accent-hover: #0077ed;
  
  --gold-accent: #d4af37; /* Luxury touch if needed */
  --gold-glow: rgba(212, 175, 55, 0.08);
  --blue-glow: rgba(0, 102, 204, 0.05);
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(255, 255, 255, 0.2);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Spacing & Radii */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  
  --space-unit: 8px;
  --container-width: 1200px;
  
  /* Transitions */
  --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset & Semantics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Animated Mesh Gradient Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-color);
  filter: blur(80px); /* Heavy blur to create the mesh effect */
}

.blob {
  position: absolute;
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
  opacity: 0.6;
}

.blob-1 {
  width: 50vw;
  height: 50vw;
  background: #001f3f; /* Deep Navy */
  top: -10vw;
  left: -10vw;
  animation-duration: 25s;
}

.blob-2 {
  width: 40vw;
  height: 40vw;
  background: #044b3f; /* Dark Emerald / Green */
  bottom: -20vw;
  right: -10vw;
  animation-duration: 30s;
  animation-direction: reverse;
}

.blob-3 {
  width: 45vw;
  height: 45vw;
  background: #2a3338; /* Silver / Dark Metallic */
  top: 50vh;
  left: 30vw;
  animation-duration: 35s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(15vw, -15vh) scale(1.1);
  }
  66% {
    transform: translate(-10vw, 10vh) scale(0.9);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img, iframe {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.headline-super {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.headline-1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.headline-2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.headline-3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.lead-text {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 32px;
  max-width: 800px;
}

.subtitle-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Base Glassmorphism */
.glass-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-top-color: var(--border-glow);
  border-left-color: var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Header - Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-smooth);
}

.main-nav a:hover, .main-nav a.active {
  color: var(--text-primary);
}

/* Checkbox Hack for Mobile Menu */
#nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; }
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); margin: 5px 0;
  transition: var(--transition-smooth);
}

@media (max-width: 768px) {
  .nav-burger { display: block; }
  .main-nav {
    position: fixed; top: 64px; left: 0; width: 100%; height: calc(100vh - 64px);
    background: #000; flex-direction: column; align-items: center; padding-top: 40px;
    clip-path: circle(0% at 100% 0); transition: clip-path 0.5s ease-in-out;
  }
  #nav-toggle:checked ~ .main-nav { clip-path: circle(150% at 100% 0); }
  .main-nav a { font-size: 1.5rem; }
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 85vh;
  padding-top: 64px; /* header offset */
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-color);
}

.btn-primary:hover {
  transform: scale(1.03);
  background: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.03);
}

.btn-accent {
  background: var(--accent-color);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
}

.action-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

/* Bento Box Grid */
.bento-section {
  padding: 80px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  grid-auto-rows: minmax(300px, auto);
}

.bento-item {
  grid-column: span 12;
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth);
}

.bento-item:hover {
  transform: translateY(-4px) scale(1.01);
}

@media (min-width: 768px) {
  .bento-item.span-4 { grid-column: span 4; }
  .bento-item.span-6 { grid-column: span 6; }
  .bento-item.span-8 { grid-column: span 8; }
  .bento-item.span-12 { grid-column: span 12; }
}

/* App Store Cards (Meetings/Videos) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.app-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  border-top-color: var(--border-glow);
  border-left-color: var(--border-glow);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-smooth);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.app-card:hover {
  transform: scale(1.02) translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), 0 0 20px var(--blue-glow);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  z-index: 10;
}

.card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1c1c1e;
  position: relative;
  overflow: hidden;
}

.card-media img, .card-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.app-card:hover .card-media img {
  transform: scale(1.05); /* Slight Ken Burns effect */
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* Filter Navigation (Pills) */
.filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.filter-pill:hover, .filter-pill.active {
  background: var(--text-primary);
  color: var(--bg-color);
  border-color: var(--text-primary);
}

/* Generic Section styling */
.section-padding { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.uppercase { text-transform: uppercase; }
.muted { color: var(--text-secondary); }

/* Footer */
.site-footer {
  padding: 64px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.empty-state { text-align: center; padding: 64px 0; color: var(--text-secondary); }

/* Play icon overlay for videos */
.play-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.2);
  opacity: 0; transition: opacity var(--transition-smooth);
}
.app-card:hover .play-overlay { opacity: 1; }
.play-btn-visual {
  width: 64px; height: 64px; background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px); border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
}
.play-btn-visual::after {
  content: ''; display: block;
  border-style: solid; border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
