/* Medano Clean Services - Landing Premium */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;600;800&display=swap');

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Palette */
  --bg-dark: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(51, 65, 85, 0.8);
  --primary: #38bdf8;
  /* sky-400 */
  --primary-glow: rgba(56, 189, 248, 0.5);
  --accent: #22d3ee;
  /* cyan-400 */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  /* Glassmorphism */
  --glass: blur(12px) saturate(180%);
  --border-light: rgba(255, 255, 255, 0.1);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
.brand {
  font-family: var(--font-heading);
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0));
  backdrop-filter: blur(4px);
}

.brand {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #000;
  font-size: 18px;
  -webkit-text-fill-color: initial;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-weight: 500;
}

.btn-login {
  padding: 10px 24px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: var(--primary);
  color: #0f172a;
  box-shadow: 0 0 20px var(--primary-glow);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.1);
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: 64px;
  margin: 0 0 24px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero p {
  font-size: 20px;
  color: #cbd5e1;
  max-width: 540px;
  margin-bottom: 40px;
}

.cta-group {
  display: flex;
  gap: 16px;
}

.btn-primary {
  padding: 16px 32px;
  border-radius: 12px;
  background: var(--primary);
  color: #0f172a;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-glass {
  padding: 16px 32px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  color: white;
  font-weight: 600;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --- Bento Grid Section --- */
.bento {
  padding: 100px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 60px;
}

.section-head h2 {
  font-size: 42px;
  margin: 0 0 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 18px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 320px);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

/* Span classes */
.span-2 {
  grid-column: span 2;
}

.span-full {
  grid-column: 1 / -1;
}

.card h3 {
  font-size: 24px;
  margin: 0 0 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

.visual-preview {
  flex: 1;
  margin-top: 24px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  /* Force visibility on mobile */
}

/* Card Specific Visuals */
.vis-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 12px;
}

.cal-day {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.cal-day.active {
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.vis-stats {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 20px;
  gap: 8px;
  height: 100%;
  min-height: 160px;
  /* Ensure chart has height */
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 20px;
  /* Grid lines */
}

.stat-bar {
  width: 100%;
  background: var(--accent);
  opacity: 1;
  /* Max visibility */
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.5);
  /* Stronger glow */
  animation: growBar 2s ease-out forwards;
}

@keyframes growBar {
  from {
    height: 0;
  }
}

.vis-inventory {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.inv-track {
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.inv-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  width: 0;
  animation: slideRight 1.5s ease-out forwards;
}

@keyframes slideRight {
  from {
    width: 0;
  }
}

.vis-incidents {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.inc-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.inc-text {
  font-size: 12px;
  color: #cbd5e1;
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 5;
}

/* Footer */
footer {
  padding: 60px 40px;
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.6);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 18px;
  }

  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  /* Nav Fixes */
  .nav {
    padding: 0 16px;
    height: 70px;
    background: rgba(15, 23, 42, 0.95);
    /* Always solid on mobile for readability */
    backdrop-filter: blur(12px);
  }

  .brand {
    font-size: 20px;
  }

  .nav-links {
    display: none;
  }

  .btn-login {
    padding: 8px 16px;
    font-size: 14px;
  }

  /* Hero Fixes */
  .hero {
    padding: 0 20px;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-glass {
    width: 100%;
    text-align: center;
  }

  /* Bento Padding */
  .bento {
    padding: 60px 20px;
  }

  .card {
    padding: 24px;
  }
}