/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0D0F14;
  --surface: #1A1D24;
  --elevated: #252830;
  --accent: #4ADE80;
  --accent-secondary: #F59E0B;
  --text: #FFFFFF;
  --text-secondary: #9CA3AF;
  --error: #EF4444;
  --border: rgba(255,255,255,0.06);
  --radius: 16px;
  --font-heading: 'Georgia', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* === Animations === */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Nav === */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(13,15,20,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700;
}
.nav-icon {
  width: 36px; height: 36px; border-radius: 8px;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: var(--bg); border: none; border-radius: 10px;
  padding: 0.6rem 1.25rem; font-weight: 600; font-size: 0.9rem; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(74,222,128,0.3); }
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 5px 0; transition: 0.3s;
}

/* === Hero === */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 8rem 2rem 4rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(74,222,128,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(245,158,11,0.05) 0%, transparent 50%);
  animation: glow 15s ease-in-out infinite alternate;
}
@keyframes glow {
  0% { transform: translate(0,0) rotate(0deg); }
  100% { transform: translate(-2%,-2%) rotate(3deg); }
}
.hero-inner {
  max-width: 1200px; width: 100%; display: flex; align-items: center;
  gap: 4rem; position: relative; z-index: 1;
}
.hero-content { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 0.4rem 1rem; font-size: 0.85rem;
  color: var(--accent); margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1; margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .accent-2 { color: var(--accent-secondary); }
.hero p { color: var(--text-secondary); font-size: 1.2rem; max-width: 500px; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: var(--bg); border: none; border-radius: 12px;
  padding: 0.9rem 1.75rem; font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(74,222,128,0.3); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.9rem 1.75rem; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: transform 0.2s, border-color 0.2s;
}
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--accent); }

/* Phone mockup with real screenshot */
.hero-phone { flex: 0 0 300px; position: relative; }
.phone-frame {
  width: 280px; height: 570px; border-radius: 40px;
  border: 3px solid var(--elevated); background: var(--bg);
  position: relative; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
}
.phone-notch {
  width: 120px; height: 28px; background: var(--bg);
  border-radius: 0 0 20px 20px; margin: 0 auto; position: relative; z-index: 2;
}
.phone-screenshot {
  width: 100%; height: calc(100% - 28px); object-fit: cover;
  object-position: top; display: block; margin-top: -28px;
}

/* === Section shared === */
section { padding: 6rem 2rem; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 4rem; }
.section-header .label {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.section-header p { color: var(--text-secondary); font-size: 1.1rem; }

/* === Moo AI Section === */
.moo-ai-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: start;
}
.moo-ai-grid h3 {
  font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 1.5rem;
  color: var(--accent);
}
.ai-input-list { display: flex; flex-direction: column; gap: 1.25rem; }
.ai-input-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  transition: border-color 0.3s;
}
.ai-input-item:hover { border-color: rgba(74,222,128,0.25); }
.ai-input-icon {
  flex: 0 0 44px; height: 44px; border-radius: 12px;
  background: rgba(74,222,128,0.12); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.ai-input-icon.warning { background: rgba(245,158,11,0.12); color: var(--accent-secondary); }
.ai-input-icon svg { width: 22px; height: 22px; }
.ai-input-text { display: flex; flex-direction: column; gap: 0.25rem; }
.ai-input-text strong { font-size: 1rem; }
.ai-input-text span { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }

.ai-output-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ai-output-card {
  background: var(--elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  transition: transform 0.3s, border-color 0.3s;
}
.ai-output-card:hover { transform: translateY(-3px); border-color: rgba(74,222,128,0.2); }
.ai-output-card.accent-border { border-color: rgba(74,222,128,0.3); }
.ai-output-num {
  font-family: var(--font-heading); font-size: 2rem; font-weight: 700;
  color: var(--accent); line-height: 1; margin-bottom: 0.25rem;
  display: flex; align-items: center;
}
.ai-output-num svg { width: 32px; height: 32px; }
.ai-output-label {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-secondary); margin-bottom: 0.5rem;
}
.ai-output-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

.moo-ai-tagline {
  max-width: 800px; margin: 3.5rem auto 0; text-align: center;
  padding: 2rem; background: var(--elevated); border: 1px solid var(--border);
  border-radius: var(--radius); position: relative;
}
.moo-ai-tagline::before {
  content: '\201C'; position: absolute; top: -0.5rem; left: 2rem;
  font-family: var(--font-heading); font-size: 4rem; color: var(--accent); opacity: 0.3;
  line-height: 1;
}
.tagline-text {
  font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7;
  font-style: italic;
}

@media (max-width: 768px) {
  .moo-ai-grid { grid-template-columns: 1fr; }
  .ai-output-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .ai-output-cards { grid-template-columns: 1fr; }
}

/* === App Screenshots === */
.screenshots-row {
  display: flex; justify-content: center; gap: 2rem;
  max-width: 1200px; margin: 0 auto;
  overflow-x: auto; padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screenshots-row::-webkit-scrollbar { display: none; }

.screenshot-phone {
  flex: 0 0 auto; display: flex; flex-direction: column;
  align-items: center; gap: 0.75rem;
}
.screenshot-frame {
  width: 200px; height: 420px; border-radius: 28px;
  border: 3px solid var(--elevated); background: var(--bg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.screenshot-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(74,222,128,0.15);
}
.screenshot-frame img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: top; display: block;
}
.screenshot-label {
  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.05em;
}

@media (max-width: 1100px) {
  .screenshots-row {
    justify-content: flex-start;
    padding-left: 2rem; padding-right: 2rem;
  }
}
@media (max-width: 768px) {
  .screenshot-frame { width: 160px; height: 340px; border-radius: 22px; }
  .screenshots-row { gap: 1.25rem; }
  .screenshots-row.peek-hint {
    animation: peekScroll 1.2s ease-in-out 0.8s 1;
  }
}

@keyframes peekScroll {
  0%   { transform: translateX(0); }
  40%  { transform: translateX(-48px); }
  100% { transform: translateX(0); }
}

/* === Features === */
.features-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px); border-color: rgba(74,222,128,0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
}
.feature-icon.green { background: rgba(74,222,128,0.12); color: var(--accent); }
.feature-icon.amber { background: rgba(245,158,11,0.12); color: var(--accent-secondary); }
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }
.feature-tag {
  display: inline-block; margin-top: 1rem; font-size: 0.75rem; font-weight: 600;
  color: var(--accent); background: rgba(74,222,128,0.1); border-radius: 6px;
  padding: 0.25rem 0.75rem;
}

/* === Levels Grid === */
.levels-container { max-width: 900px; margin: 0 auto; }

.levels-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
  margin-bottom: 2.5rem;
}
.level-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.level-card:hover {
  transform: translateY(-3px); border-color: rgba(74,222,128,0.2);
}
.level-card.legendary {
  border-color: rgba(245,158,11,0.4);
  box-shadow: 0 0 20px rgba(245,158,11,0.1);
}
.level-card.legendary:hover {
  border-color: rgba(245,158,11,0.6);
  box-shadow: 0 0 30px rgba(245,158,11,0.15);
}
.level-emoji { font-size: 2rem; line-height: 1; }
.level-info { display: flex; flex-direction: column; gap: 0.1rem; }
.level-num { font-size: 0.7rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.level-card.legendary .level-num { color: var(--accent-secondary); }
.level-name { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; color: var(--text); }
.level-card.legendary .level-name { color: var(--accent-secondary); }
.level-xp { font-size: 0.7rem; color: var(--text-secondary); }

@media (max-width: 768px) {
  .levels-grid { grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
  .level-card { padding: 0.6rem 0.4rem; }
  .level-emoji { font-size: 1.5rem; }
  .level-name { font-size: 0.65rem; }
  .level-xp { font-size: 0.6rem; }
  .level-num { font-size: 0.6rem; }
}
@media (max-width: 480px) {
  .levels-grid { grid-template-columns: repeat(2, 1fr); }
  .level-card { flex-direction: row; text-align: left; gap: 0.75rem; }
  .level-info { align-items: flex-start; }
  .level-emoji { font-size: 1.75rem; }
  .level-name { font-size: 0.85rem; }
}

/* XP explainer cards */
.progression-explainer {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem; margin-top: 1rem;
}
.xp-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  transition: border-color 0.3s;
}
.xp-card:hover { border-color: rgba(74,222,128,0.25); }
.xp-icon {
  flex: 0 0 40px; height: 40px; border-radius: 10px;
  background: rgba(74,222,128,0.12); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.xp-icon svg { width: 20px; height: 20px; }
.xp-card h4 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 0.35rem; }
.xp-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; }

/* === How It Works === */
.steps { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }
.step {
  display: flex; align-items: flex-start; gap: 2rem;
}
.step-num {
  flex: 0 0 64px; height: 64px; border-radius: 50%;
  background: rgba(74,222,128,0.1); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
  color: var(--accent);
}
.step-content h3 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 0.5rem; }
.step-content p { color: var(--text-secondary); font-size: 1rem; }

/* === Pricing === */
.pricing-grid {
  max-width: 800px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem;
}
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem; position: relative;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(74,222,128,0.1);
}
.price-card .popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--bg); font-size: 0.75rem; font-weight: 700;
  padding: 0.3rem 1rem; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em;
}
.price-card .plan-name {
  font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 0.5rem;
}
.price-card .plan-price {
  font-size: 2.5rem; font-weight: 800; margin-bottom: 0.25rem;
}
.price-card .plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-secondary); }
.price-card .plan-desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 2rem; }
.price-card ul { list-style: none; margin-bottom: 2rem; }
.price-card li {
  padding: 0.5rem 0; font-size: 0.95rem; color: var(--text-secondary);
  display: flex; align-items: center; gap: 0.75rem;
}
.price-card li .check { color: var(--accent); font-weight: 700; }
.price-card .plan-btn {
  display: block; width: 100%; text-align: center; padding: 0.9rem;
  border-radius: 12px; font-weight: 600; font-size: 1rem; cursor: pointer;
  border: none; transition: transform 0.2s, box-shadow 0.2s;
}
.price-card .plan-btn.primary { background: var(--accent); color: var(--bg); }
.price-card .plan-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(74,222,128,0.3); }
.price-card .plan-btn.secondary { background: var(--elevated); color: var(--text); border: 1px solid var(--border); }
.price-card .plan-btn.secondary:hover { border-color: var(--accent); transform: translateY(-2px); }

/* === Footer === */
footer {
  border-top: 1px solid var(--border); padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700;
  margin-bottom: 1rem;
}
.footer-icon {
  width: 32px; height: 32px; border-radius: 7px;
}
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; max-width: 300px; }
.footer-col h4 {
  font-family: var(--font-heading); font-size: 0.95rem; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-disclaimer {
  max-width: 1200px; margin: 2rem auto 0; padding: 1.25rem 1.5rem;
  background: var(--elevated); border: 1px solid var(--border); border-radius: 12px;
}
.footer-disclaimer p {
  font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; opacity: 0.7;
}
.footer-bottom {
  max-width: 1200px; margin: 2rem auto 0; padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-secondary); font-size: 0.85rem;
}
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: border-color 0.2s, color 0.2s;
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); }

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--border); padding: 1.5rem 2rem; gap: 1rem;
  }
  .hamburger { display: block; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-phone { flex: 0 0 auto; }
  .step { flex-direction: column; align-items: center; text-align: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}
