
:root{
  --bg-grad-start:#10b981; /* Moodie green */
  --bg-grad-end:#fbbf24; /* Moodie yellow */
  --surface:#ffffff;
  --ink:#0f172a;
  --muted:#64748b;
  --accent:#fbbf24; /* Moodie yellow */
  --accent-hover:#f59e0b;
  --ring: rgba(15,23,42,.08);
  --success:#10b981;
  --border: rgba(255,255,255,.2);
}

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

html{
  scroll-behavior:smooth;
  font-size: 16px;
}

body{
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color:var(--ink);
  background: linear-gradient(135deg, var(--bg-grad-start) 0%, #22c55e 25%, #84cc16 50%, #eab308 75%, var(--bg-grad-end) 100%);
  background-attachment: fixed;
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  line-height: 1.6;
  overflow-x: hidden;
}

@keyframes gradientShift{
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 25%; }
  50% { background-position: 50% 100%; }
  75% { background-position: 25% 0%; }
  100% { background-position: 0% 50%; }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease-out forwards;
}

.slide-up:nth-child(2) { animation-delay: 0.2s; }
.slide-up:nth-child(3) { animation-delay: 0.4s; }
.slide-up:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideUp {
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Container */
.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

/* Header */
.header{
  position:sticky; 
  top:0; 
  z-index:1000;
  backdrop-filter:saturate(180%) blur(20px);
  background: rgba(255,255,255,.85);
  border-bottom:1px solid var(--border);
  transition: all 0.3s ease;
}

.nav{
  display:flex; 
  align-items:center; 
  justify-content:center;
  padding: 16px 0;
  position: relative;
}

.brand{
  display:flex; 
  align-items:center; 
  gap:12px; 
  text-decoration:none; 
  color:var(--ink);
  font-weight: 700;
  z-index: 1001;
}

.brand img{
  height:42px; 
  width:42px; 
  border-radius:12px; 
  box-shadow:0 4px 20px var(--ring);
  transition: transform 0.3s ease;
}

.brand:hover img {
  transform: scale(1.05);
}

.brand .name{
  font-weight:800; 
  letter-spacing:-0.02em;
  font-size: 1.25rem;
}

/* CTA Buttons */
.cta-row{ 
  display:flex; 
  gap:16px; 
  flex-wrap:wrap; 
  justify-content:flex-start;
}

/* Menu */
.menu {
  display: flex;
  gap: 8px;
}

.menu a{
  color:var(--ink);
  text-decoration:none;
  padding:12px 16px;
  border-radius:12px;
  transition: all .3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,.9);
  transition: left 0.3s ease;
  z-index: -1;
}

.menu a:hover::before {
  left: 0;
}

.menu a:hover{ 
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--ring);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 20px 20px;
    gap: 0;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,.1);
  }
  
  .menu.active {
    right: 0;
  }
  
  .menu a {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 4px 0;
  }
}

/* Hero Section */
.hero{
  display:grid; 
  grid-template-columns: 1.1fr 0.9fr; 
  gap:40px; 
  align-items:center;
  padding: 80px 0 40px;
  min-height: 80vh;
}

@media (max-width: 768px){ 
  .hero{ 
    grid-template-columns:1fr; 
    text-align:center;
    padding: 60px 0 40px;
    min-height: auto;
  } 
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kicker{ 
  display:inline-block; 
  background: rgba(255,255,255,.9);
  padding:8px 16px; 
  border-radius:999px;
  font-size: .9rem; 
  color:var(--ink); 
  font-weight:600;
  box-shadow: 0 4px 20px var(--ring);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.3);
  align-self: flex-start;
}

@media (max-width: 768px) {
  .kicker {
    align-self: center;
  }
}

h1{
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height:1.1; 
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--ink) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lede{ 
  font-size:1.25rem;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.8;
  max-width: 90%;
}

@media (max-width: 768px) {
  .lede {
    max-width: 100%;
    font-size: 1.1rem;
  }
}

/* Download Badges */
.download-badges {
  margin: 24px 0;
}

.download-badges h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--ink);
}

.badge-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .badge-container {
    justify-content: center;
  }
}

.app-badge {
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  display: inline-block;
}

.app-badge img {
  display: block;
  transition: all 0.3s ease;
}

.app-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

/* CTA Buttons */
.cta-row{ 
  display:flex; 
  gap:16px; 
  flex-wrap:wrap; 
  justify-content:flex-start;
}

@media (max-width:768px){ 
  .cta-row{ 
    justify-content:center;
  } 
}

.btn{
  border:0; 
  cursor:pointer; 
  font-weight:600;
  padding:16px 24px; 
  border-radius:12px;
  transition: all .3s ease;
  box-shadow: 0 4px 20px var(--ring);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary{
  background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 50%, #eab308 100%);
  color: #1f2937;
  font-weight: 700;
  text-shadow: none;
}

.btn-outline{
  background: rgba(255,255,255,.9);
  color: var(--ink);
  border: 2px solid rgba(255,255,255,.3);
}

.btn:hover{ 
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.btn-large {
  padding: 18px 32px;
  font-size: 1.1rem;
}

/* Device Frame */
.device-frame{
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  padding:20px; 
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
}

.gallery{
  display:grid; 
  grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); 
  gap:16px;
}

@media (max-width: 640px){ 
  .gallery{ 
    grid-template-columns: repeat(2, 1fr); 
  } 
}

.gallery img{
  width:100%; 
  border-radius:16px; 
  display:block;
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
  transform: translateY(20px) scale(0.9);
  opacity:0;
  transition: all .8s cubic-bezier(.2,.8,.2,1);
}

.reveal.inview img{ 
  opacity:1; 
  transform: translateY(0) scale(1);
}

.gallery img:nth-child(1) { transition-delay: 0.1s; }
.gallery img:nth-child(2) { transition-delay: 0.2s; }
.gallery img:nth-child(3) { transition-delay: 0.3s; }
.gallery img:nth-child(4) { transition-delay: 0.4s; }
.gallery img:nth-child(5) { transition-delay: 0.5s; }

/* Sections */
.section{
  margin: 48px 0;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 24px;
  box-shadow: 0 20px 60px var(--ring);
  padding: 40px;
  backdrop-filter: blur(20px);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease;
}

.section.inview {
  transform: translateY(0);
  opacity: 1;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .section {
    padding: 32px 24px;
    margin: 32px 0;
  }
  
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 24px;
  }
}

/* Features */
.features{
  display:grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap:24px;
}

.feature{
  background:#fff; 
  border-radius:20px; 
  padding:32px 24px;
  box-shadow: 0 8px 30px var(--ring);
  transition: all .3s ease;
  text-align: center;
  border: 1px solid rgba(255,255,255,.3);
}

.feature:hover{ 
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.feature h3{ 
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.feature p{ 
  color: var(--muted); 
  margin:0;
  line-height: 1.6;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 8px 30px var(--ring);
  transition: all 0.3s ease;
  text-align: center;
  border: 1px solid rgba(255,255,255,.3);
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,.1);
}

.stars {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.testimonial p {
  font-style: italic;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.6;
}

.testimonial cite {
  color: var(--muted);
  font-weight: 500;
  font-style: normal;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255,255,255,.5);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.benefit:hover {
  background: rgba(255,255,255,.8);
  transform: translateX(8px);
}

.benefit-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.benefit h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .benefit {
    text-align: center;
    flex-direction: column;
    gap: 12px;
  }
}

/* Footer */
.footer{
  color:#e7f7ff;
  text-align:center;
  padding: 48px 0 80px;
  margin-top: 40px;
}

.footer a{ 
  color:#fff; 
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer a:hover {
  opacity: 0.8;
}

.footer .links{ 
  display:flex; 
  gap:16px; 
  justify-content:center; 
  flex-wrap:wrap; 
  margin-bottom:16px;
  font-weight: 500;
}

.small{ 
  font-size:.9rem; 
  opacity:.9;
  font-weight: 400;
}

@media (max-width: 768px) {
  .footer .links {
    flex-direction: column;
    gap: 12px;
  }
}

/* Content pages */
.article{
  max-width: 900px;
  margin: 24px auto 48px;
  background: rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.3);
  border-radius: 24px;
  box-shadow: 0 20px 60px var(--ring);
  padding: 40px;
  backdrop-filter: blur(20px);
}

.article h1{ 
  margin-top:0;
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

.article h2{ 
  margin-top: 2rem; 
  color:var(--ink);
  font-weight: 600;
}

.article h3{ 
  margin-top: 1.5rem;
  font-weight: 600;
}

.article .meta{ 
  color:var(--muted); 
  font-size:.95rem; 
  margin-bottom: 24px;
}

.article a{ 
  color:var(--accent-hover);
  transition: color 0.3s ease;
}

.article a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .article {
    padding: 32px 24px;
    margin: 16px;
  }
  
  .article h1 {
    font-size: 2rem;
  }
}

/* Back to Top Button */
.backtop{
  position:fixed; 
  right:24px; 
  bottom:24px; 
  z-index:100;
  background: linear-gradient(135deg, #10b981 0%, #22c55e 50%, #84cc16 100%);
  color:#fff; 
  border:0;
  padding:16px 18px; 
  border-radius:50%; 
  cursor:pointer;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
  opacity:0; 
  visibility: hidden;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  font-weight: bold;
}

.backtop.show{ 
  opacity:1;
  visibility: visible;
}

.backtop:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

@media (max-width: 768px) {
  .backtop {
    right: 16px;
    bottom: 16px;
    padding: 14px 16px;
  }
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 2s infinite;
}

/* Smooth scrolling for better UX */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
