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

/* ============================================================
   ZERODESK — V5 LUXURY AI & SOFT GLASS ARCHITECTURE
   ============================================================ */

:root {
  /* Obsidian & Midnight Palette */
  --bg-core: #030303; 
  --bg-card: rgba(20, 20, 22, 0.6);
  --bg-card-hover: rgba(30, 30, 34, 0.8);
  
  --accent-cyan: #00F0FF;
  --accent-violet: #A855F7;
  
  /* Text strictness */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* Borders & Glass */
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.12);
  --glass-blur: blur(40px);

  /* Typography strict */
  --font-global: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Easings for silky motion */
  --ease-lux: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);

  /* Spacing */
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 2rem;
  --space-6: 4rem;
  --space-8: 8rem;

  --border-radius-lg: 24px;
  --border-radius-md: 12px;
}

/* ============================================================
   1. RESET & FUNDAMENTALS
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-core);
}

body {
  font-family: var(--font-global);
  color: var(--text-primary);
  background-color: transparent; /* Allows canvas behind body to show */
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base Canvas / Immersive Background */
#aurora-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
  background-color: var(--bg-core);
}

/* A grain overlay to make the Aurora look premium, not flat */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: -9;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
}

/* ============================================================
   2. FLAWLESS TYPOGRAPHY (Absolute Readability)
   ============================================================ */

/* We strict left-align almost everything per luxury editorial standards */
h1, h2, h3, h4, p {
  text-align: left;
}

.text-hero {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 500; /* Modern luxury is medium/semibold, not heavy */
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: var(--space-4);
}

.text-h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.text-h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.text-body-hero {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 750px;
  line-height: 1.6;
}

.text-body-lg {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Gradients for emphasis only, not entire headers */
.text-glow-accent {
  background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Minimal overlines */
.text-overline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-3);
}

.text-overline::before {
  content: '';
  display: block;
  width: 12px;
  height: 1px;
  background: var(--text-muted);
}

/* ============================================================
   3. LAYOUT STRUCTURE
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

/* ============================================================
   4. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: all 0.5s var(--ease-lux);
}

.nav.scrolled {
  padding: 1rem var(--space-4);
  background: rgba(3, 3, 3, 0.6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-glass);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* ============================================================
   5. LUXURY BUTTON COMPONENTS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 9999px; /* Pill shape is highly modern layout */
  cursor: pointer;
  transition: all 0.4s var(--ease-lux);
  border: 1px solid transparent;
  gap: 8px;
}

.btn-primary {
  background: #fff;
  color: #000;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,255,255,0.15);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-light);
}

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: 120px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
}

/* ============================================================
   7. SOFT GLASS BENTO GRID
   ============================================================ */
.glass-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: all 0.5s var(--ease-lux);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
}

/* Top Glow for cards */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.glass-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  color: #fff;
}

.glass-col-12 { grid-column: span 12; }
.glass-col-8 { grid-column: span 8; }
.glass-col-6 { grid-column: span 6; }
.glass-col-4 { grid-column: span 4; }

/* ============================================================
   8. COMPARISON TABLE (The Math)
   ============================================================ */
.table-container {
  overflow-x: auto;
}

.glass-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.glass-table th {
  padding: 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid var(--border-glass);
}

.glass-table td {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  color: var(--text-primary);
}

.glass-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.text-danger { color: #f87171; }
.text-success { color: #4ade80; }

/* ============================================================
   9. FORMS (Consultation)
   ============================================================ */
.lux-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 1.2rem;
  font-size: 1.1rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 1.5rem;
  font-family: var(--font-global);
  transition: all 0.3s ease;
}

.lux-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.6);
}

.lux-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================================
   10. FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 40px;
  background: transparent;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-link {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* ============================================================
   11. ANIMATION UTILITIES (Smooth Motion)
   ============================================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s var(--ease-lux), transform 1s var(--ease-lux);
}

/* Delay modifiers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ============================================================
   12. HIGH-END INTERACTIONS (Spatial Glow & Authority)
   ============================================================ */
/* Spatial Glass Card */
.spatial-card {
  position: relative;
}

.spatial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 240, 255, 0.08),
    transparent 40%
  );
  z-index: 0;
  transition: opacity 0.5s ease;
  opacity: 0;
  border-radius: inherit;
}

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

/* Ensure content stays above the spatial background */
.spatial-card > * {
  position: relative;
  z-index: 1;
}

/* Social Authority Bar */
.social-proof-bar {
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.01);
  padding: 2rem 0;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-global);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.metric-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Pill Wrapping Utility */
.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ============================================================
   13. RESPONSIVE & MOBILE FIXES (Audit Polish)
   ============================================================ */
@media (max-width: 1024px) {
  .glass-col-8 { grid-column: span 12; }
  .glass-col-4 { grid-column: span 12; }
  .glass-col-6 { grid-column: span 12; }

  .nav-links {
    display: none; /* Hide on mobile for simplicity, require hamburger normally */
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 100px;
    align-items: flex-start;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Table Mobile Fixes - Stack Instead of Squash */
  .glass-table thead {
    display: none; /* Hide headers */
  }
  .glass-table, .glass-table tbody, .glass-table tr, .glass-table td {
    display: block;
    width: 100%;
  }
  .glass-table tr {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.02);
  }
  .glass-table td {
    border-bottom: 1px solid var(--border-glass);
    text-align: right;
    padding-left: 50%;
    position: relative;
  }
  .glass-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    width: 45%;
    padding-right: 10px;
    text-align: left;
    font-weight: 500;
    color: var(--text-secondary);
  }
  
  .glass-card {
    padding: 24px;
  }
}
