/*
 * CozyLife Marketing Landing Page Stylesheet
 * Elegant, premium glassmorphism, responsive warm pastels, and fluid CSS hover scales.
 */

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

:root {
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --pastel-bg: #E8F0FE;
  --bg-gradient: linear-gradient(135deg, #E8F0FE 0%, #FFF0F5 50%, #F5F5DC 100%);
  
  --work-pastel: #E8F0FE;
  --work-dark: #2F69CB;
  
  --personal-pastel: #FDF3CD;
  --personal-dark: #B28300;
  
  --family-pastel: #FCE8E6;
  --family-dark: #C53929;
  
  --border-dark: rgba(0, 0, 0, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.45);
  --text-main: #2C3E50;
  --text-muted: #5D6D7E;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------
 * Header & Navigation
 * ------------------------------------------------------------ */
header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-main);
  text-decoration: none;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}

nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

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

.nav-link:hover {
  color: var(--text-main);
}

/* ------------------------------------------------------------
 * Hero Section
 * ------------------------------------------------------------ */
.hero {
  max-width: 1200px;
  margin: 60px auto 100px auto;
  padding: 0 24px;
  text-align: center;
  position: relative;
}

.badge-tag {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-dark);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--work-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

h1 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 3.6rem;
  line-height: 1.15;
  color: var(--text-main);
  max-width: 800px;
  margin: 0 auto 20px auto;
  letter-spacing: -0.02em;
}

h1 span {
  background: linear-gradient(135deg, var(--work-dark), var(--family-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px auto;
}

.btn-cta {
  background: linear-gradient(135deg, #2F69CB, #5389e7);
  color: white;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 16px 36px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 8px 20px rgba(47, 105, 203, 0.25);
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(47, 105, 203, 0.35);
}

/* ------------------------------------------------------------
 * Visual Card Showcase
 * ------------------------------------------------------------ */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 40px auto;
  perspective: 1000px;
}

.showcase-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-dark);
  border-radius: 24px;
  padding: 24px;
  text-align: left;
  box-shadow: 0 12px 30px rgba(0,0,0,0.04);
  transform: rotateX(10deg) rotateY(-5deg) rotateZ(1deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.showcase-card:hover {
  transform: scale(1.03) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.showcase-card.work-card { background: rgba(232, 240, 254, 0.7); }
.showcase-card.personal-card { background: rgba(253, 243, 205, 0.7); }
.showcase-card.family-card { background: rgba(252, 232, 230, 0.7); }

.card-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ------------------------------------------------------------
 * Pricing & Ethics Grid
 * ------------------------------------------------------------ */
.pricing-section {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 24px;
  text-align: center;
}

.section-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 50px auto;
  font-size: 1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.price-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-dark);
  border-radius: 28px;
  padding: 40px;
  text-align: left;
  box-shadow: 0 16px 36px rgba(0,0,0,0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-card.premium {
  border: 2px solid var(--work-dark);
}

.premium-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--work-dark);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.price-header h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.price-num {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.price-num span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.feature-list {
  list-style: none;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-list li::before {
  content: '✨';
  font-size: 0.9rem;
}

.btn-price {
  text-align: center;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border-dark);
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  display: block;
  transition: all 0.2s ease;
}

.btn-price:hover {
  background: var(--text-main);
  color: white;
}

.price-card.premium .btn-price {
  background: var(--work-dark);
  color: white;
  border: none;
}

.price-card.premium .btn-price:hover {
  background: #1d4fa4;
}

/* ------------------------------------------------------------
 * Swaying CSS Garden Animation
 * ------------------------------------------------------------ */
.breeze-plant {
  position: absolute;
  bottom: -40px;
  right: 10%;
  width: 120px;
  height: 120px;
  opacity: 0.15;
  pointer-events: none;
  animation: sway 6s ease-in-out infinite alternate;
  transform-origin: bottom center;
}

@keyframes sway {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(5deg); }
}

/* ------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------ */
footer {
  max-width: 1200px;
  margin: 100px auto 0 auto;
  padding: 40px 24px;
  border-top: 1px dashed var(--border-dark);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
 * Interactive Laptop Demo Showcase
 * ------------------------------------------------------------ */
.demo-section {
  max-width: 1200px;
  margin: -30px auto 80px auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.demo-container {
  width: 100%;
  max-width: 960px;
}

.demo-laptop-frame {
  perspective: 1000px;
  position: relative;
}

.laptop-screen {
  background: #111;
  border: 14px solid #222;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 24px 70px rgba(0,0,0,0.18), inset 0 0 2px rgba(255,255,255,0.2);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: stretch;
}

.demo-iframe {
  border: none;
  width: 100%;
  height: 100%;
  background: var(--pastel-bg);
}

.laptop-base {
  background: linear-gradient(to bottom, #e1e4e6 0%, #a8adb3 100%);
  height: 20px;
  border-radius: 0 0 16px 16px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-top: none;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  position: relative;
}

.laptop-notch {
  width: 120px;
  height: 6px;
  background: rgba(0, 0, 0, 0.2);
  margin: 0 auto;
  border-radius: 0 0 10px 10px;
}

/* ------------------------------------------------------------
 * Responsive Layouts
 * ------------------------------------------------------------ */
@media(max-width: 900px) {
  h1 {
    font-size: 2.8rem;
  }
  .demo-section {
    margin: -10px auto 40px auto;
  }
  .laptop-screen {
    border-width: 8px;
    border-radius: 12px 12px 0 0;
  }
  .laptop-base {
    height: 12px;
    border-radius: 0 0 10px 10px;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    perspective: none;
  }
  .showcase-card {
    transform: none;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
 * --- COOKIE CONSENT BANNER STYLING ---
 * ------------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 30px; /* Positioned floating at the bottom on the marketing landing page */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 40px);
  max-width: 680px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  border: 1px solid var(--border-dark);
  border-radius: 24px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
  z-index: 99999;
  animation: cookieSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes cookieSlideUp {
  from {
    transform: translate(-50%, 40px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.cookie-icon {
  font-size: 1.8rem;
  line-height: 1;
  user-select: none;
}

.cookie-content p {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.45;
  margin: 0;
  user-select: text;
  text-align: left;
}

.cookie-content p a {
  color: var(--work-dark);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie-primary, .btn-cookie-secondary {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-cookie-primary {
  background: var(--work-dark);
  color: white;
  box-shadow: 0 4px 12px rgba(47, 105, 203, 0.2);
}

.btn-cookie-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(47, 105, 203, 0.3);
}

.btn-cookie-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-dark);
}

.btn-cookie-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  .btn-cookie-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
  }
  .btn-cookie-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
  }
}

/* Responsive adjustments for narrow viewports */
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
  }
  .cookie-content {
    align-items: flex-start;
  }
  .cookie-actions {
    justify-content: flex-end;
    width: 100%;
  }
}
