/* ==========================================
   MoveDay Landing Page Stylesheet
   ========================================== */

/* --- Reset & Base --- */

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

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #1c2129;
  --border: #30363d;
  --text: #e6edf3;
  --text-secondary: #8b949e;
  --green-0: #161b22;
  --green-1: #0e4429;
  --green-2: #006d32;
  --green-3: #26a641;
  --green-4: #39d353;
  --accent: #39d353;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Shared Button --- */

.landing-btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.landing-btn-primary {
  background: var(--accent);
  color: #0d1117;
  padding: 8px 20px;
  font-size: 0.9rem;
}

.landing-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(57, 211, 83, 0.35);
  opacity: 0.92;
}

.landing-btn-lg {
  font-size: 1.05rem;
  padding: 14px 36px;
  border-radius: 12px;
}

/* --- Header --- */

.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 24px;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.landing-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-header.scrolled {
  background: rgba(13, 17, 23, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.landing-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.landing-logo span {
  color: var(--accent);
}

.landing-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

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

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

/* --- Hero --- */

.landing-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.landing-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.landing-hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.25;
  animation: fadeInUp 0.6s ease-out 0s both;
}

.landing-hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.65;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.landing-hero-content .landing-btn {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* --- Grass Grid --- */

.landing-grass-wrap {
  margin-top: 60px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.landing-grass-grid {
  display: grid;
  grid-template-columns: repeat(15, 14px);
  grid-template-rows: repeat(7, 14px);
  gap: 3px;
  opacity: 0.65;
}

.grass-cell {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--green-0);
}

.grass-cell[data-level="1"] {
  background: var(--green-1);
}

.grass-cell[data-level="2"] {
  background: var(--green-2);
}

.grass-cell[data-level="3"] {
  background: var(--green-3);
}

.grass-cell[data-level="4"] {
  background: var(--green-4);
}

/* --- Section Shared --- */

.landing-section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.landing-section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 48px;
}

/* --- Features --- */

.landing-features {
  padding: 96px 0;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.landing-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.landing-feature-icon {
  width: 52px;
  height: 52px;
  background: var(--green-1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}

.landing-feature-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.landing-feature-desc {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* --- Motivation --- */

.landing-motivation {
  padding: 96px 0;
  background: var(--surface);
}

.landing-quotes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.landing-quote {
  position: relative;
  padding: 24px 32px;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  border-radius: 0 12px 12px 0;
}

.landing-quote p {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.65;
  font-style: italic;
}

/* --- Final CTA --- */

.landing-cta {
  padding: 96px 0;
  background: linear-gradient(180deg, transparent, var(--surface));
}

.landing-cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.landing-cta-title {
  font-size: 2.2rem;
  font-weight: 700;
}

/* --- Footer --- */

.landing-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.landing-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.landing-footer .landing-logo {
  font-size: 1.2rem;
  display: inline-block;
}

.landing-footer-copy {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* --- Animations --- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Media Queries --- */

@media (max-width: 768px) {
  .landing-hero-title {
    font-size: 2rem;
  }

  .landing-hero-sub {
    font-size: 1rem;
  }

  .landing-grass-grid {
    grid-template-columns: repeat(10, 12px);
    grid-template-rows: repeat(7, 12px);
    gap: 2px;
  }

  .grass-cell {
    width: 12px;
    height: 12px;
  }

  /* hide cols 11-15 on mobile by keeping grid but reducing opacity further */
  .landing-grass-grid .grass-cell:nth-child(n+11):nth-child(-n+15),
  .landing-grass-grid .grass-cell:nth-child(n+26):nth-child(-n+30),
  .landing-grass-grid .grass-cell:nth-child(n+41):nth-child(-n+45),
  .landing-grass-grid .grass-cell:nth-child(n+56):nth-child(-n+60),
  .landing-grass-grid .grass-cell:nth-child(n+71):nth-child(-n+75),
  .landing-grass-grid .grass-cell:nth-child(n+86):nth-child(-n+90),
  .landing-grass-grid .grass-cell:nth-child(n+101):nth-child(-n+105) {
    display: none;
  }

  .landing-section-title {
    font-size: 1.6rem;
    margin-bottom: 32px;
  }

  .landing-features-grid {
    grid-template-columns: 1fr;
  }

  .landing-feature-card {
    padding: 24px;
  }

  .landing-quote p {
    font-size: 1rem;
  }

  .landing-cta-title {
    font-size: 1.6rem;
  }

  .landing-features,
  .landing-motivation,
  .landing-cta {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .landing-header {
    padding: 12px 16px;
  }

  .landing-hero {
    padding: 100px 16px 60px;
  }

  .landing-section-inner {
    padding: 0 16px;
  }

  .landing-grass-grid {
    grid-template-columns: repeat(8, 12px);
  }

  .landing-grass-grid .grass-cell:nth-child(n+9):nth-child(-n+15),
  .landing-grass-grid .grass-cell:nth-child(n+24):nth-child(-n+30),
  .landing-grass-grid .grass-cell:nth-child(n+39):nth-child(-n+45),
  .landing-grass-grid .grass-cell:nth-child(n+54):nth-child(-n+60),
  .landing-grass-grid .grass-cell:nth-child(n+69):nth-child(-n+75),
  .landing-grass-grid .grass-cell:nth-child(n+84):nth-child(-n+90),
  .landing-grass-grid .grass-cell:nth-child(n+99):nth-child(-n+105) {
    display: none;
  }
}
