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

/* ═══ TOKENS ═══ */
:root {
  --primary: #86C9D1;
  --primary-light: #a8dbe1;
  --secondary: #A7D79C;
  --tertiary: #56A3B9;
  --neutral: #F0F4F4;
  --white: #ffffff;
  --black: #1a2e35;
  --dark: #1a2e35;
  --dark-card: #234550;
  --star: #f0b429;
  --border: 2px solid #1a2e35;
  --shadow-sm: 4px 4px 0px 0px #1a2e35;
  --shadow-lg: 8px 8px 0px 0px #1a2e35;
  --shadow-xl: 12px 12px 0px 0px #1a2e35;
  --radius: 0.75rem;
  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

.hidden { display: none !important; }

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); font-weight: 500; color: var(--dark); line-height: 1.6; overflow-x: hidden; background: var(--white); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); letter-spacing: -0.04em; line-height: 1.1; }

/* ═══ DOT PATTERN ═══ */
.dot-bg { position: relative; }
.dot-bg::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, #1a2e35 1px, transparent 1px);
  background-size: 32px 32px; opacity: 0.06; pointer-events: none;
}
.dot-bg > * { position: relative; z-index: 1; }

/* ═══ CONTAINER ═══ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ═══ BUTTONS ═══ */
.btn-push {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 1rem 2rem; font-size: 1rem; font-weight: 700;
  border: var(--border); border-radius: var(--radius);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-push--primary {
  background: var(--dark); color: var(--white);
  box-shadow: var(--shadow-lg);
}
.btn-push--primary:hover { transform: translate(4px, 4px); box-shadow: var(--shadow-sm); }
.btn-push--primary:active { transform: translate(8px, 8px); box-shadow: none; }

.btn-push--secondary {
  background: var(--white); color: var(--black);
  box-shadow: var(--shadow-sm);
}
.btn-push--secondary:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0px 0px #1a2e35; }
.btn-push--secondary:active { transform: translate(4px, 4px); box-shadow: none; }

.btn-push--teal {
  background: var(--primary); color: var(--dark);
  box-shadow: var(--shadow-lg);
}
.btn-push--teal:hover { transform: translate(4px, 4px); box-shadow: var(--shadow-sm); }
.btn-push--teal:active { transform: translate(8px, 8px); box-shadow: none; }

/* ═══ AUTH BUTTONS ═══ */
.auth-buttons {
  display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap;
}
.btn-auth {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; font-size: 0.95rem; font-weight: 600;
  border: var(--border); border-radius: var(--radius);
  cursor: pointer; font-family: var(--font-body);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-sm);
}
.btn-auth--google {
  background: var(--white); color: var(--dark);
}
.btn-auth--discord {
  background: #5865F2; color: var(--white); border-color: #4752c4;
}
.btn-auth:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px 0px #1a2e35;
}
.btn-auth:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

/* ═══ PILL BADGE ═══ */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; font-size: 0.85rem; font-weight: 700;
  border: var(--border); border-radius: 999px; font-family: var(--font-body);
  background: var(--white);
}
.pill--dark { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* ═══ SECTION ═══ */
.section { padding: 80px 0; }
.section-label {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
}

/* ═══ SCROLL REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══ USER BADGE & NAV CENTER ═══ */
.nav-user-center { position: relative; display: flex; align-items: center; }
.nav-avatar {
  width: 40px; height: 40px; border-radius: 50%; border: var(--border);
  cursor: pointer; transition: transform 0.2s; background: var(--white);
}
.nav-avatar:hover { transform: scale(1.05); }

.user-menu {
  position: absolute; top: 55px; right: 0; width: 200px;
  background: var(--white); border: var(--border); border-radius: 12px;
  box-shadow: 6px 6px 0px 0px var(--dark); padding: 12px 0; z-index: 1000;
  animation: slideInUp 0.2s ease;
}
.user-menu-info { padding: 8px 20px; }
.user-menu-info p { font-weight: 800; font-size: 0.95rem; color: var(--dark); }
.user-menu hr { border: none; border-top: 1px solid #eee; margin: 8px 0; }
.user-menu a {
  display: block; padding: 10px 20px; font-size: 0.9rem; font-weight: 600;
  color: var(--dark); text-decoration: none; transition: background 0.2s;
}
.user-menu a:hover { background: var(--neutral); color: var(--primary); }

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

/* ═══ MODAL ═══ */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(26, 46, 53, 0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; animation: fadeIn 0.3s ease;
}
.modal-content {
  background: var(--white); border: 3px solid var(--dark);
  border-radius: 24px; padding: 48px; width: 100%; max-width: 480px;
  position: relative; box-shadow: 12px 12px 0px 0px var(--dark);
  text-align: center; animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-close {
  position: absolute; top: 20px; right: 20px; font-size: 2rem;
  background: none; border: none; cursor: pointer; color: var(--dark);
  line-height: 1; transition: transform 0.2s;
}
.modal-close:hover { transform: rotate(90deg); color: #dc2626; }

.modal-content h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.modal-content p { color: #666; margin-bottom: 32px; line-height: 1.5; }

.modal-auth-grid { display: flex; flex-direction: column; gap: 16px; }
.modal-auth-grid .btn-auth {
  justify-content: center; padding: 16px; font-size: 1.05rem; width: 100%;
  border-width: 2px;
}

.modal-footer { font-size: 0.8rem; margin-top: 24px; opacity: 0.6; }
.modal-footer a { color: var(--dark); text-decoration: underline; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ═══ GATED DOWNLOAD ═══ */
.download-gate {
  filter: grayscale(0.5); opacity: 0.9;
}
.btn-push--teal.download-gate {
  filter: none; opacity: 1;
}

/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 80px; background: var(--primary);
  border-bottom: var(--border);
  display: flex; align-items: center;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; }
.nav-logo-icon {
  width: 40px; height: 40px; background: var(--dark); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-weight: 700; font-size: 0.95rem; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 0.7; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-download { font-size: 0.9rem; font-weight: 700; }

/* Mobile menu */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero { padding-top: 160px; padding-bottom: 80px; background: var(--primary); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { margin-bottom: 24px; }
.hero-badge .pill { background: var(--white); }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800; margin-bottom: 24px; }
.hero h1 .outline-text {
  color: var(--dark);
  background: var(--white);
  padding: 2px 16px;
  border: var(--border);
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-sub { font-size: 1.15rem; margin-bottom: 36px; max-width: 500px; opacity: 0.8; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Browser Mockup */
.browser-mockup {
  background: var(--white); border: var(--border); border-radius: 1rem;
  box-shadow: var(--shadow-xl); overflow: hidden;
}
.browser-bar {
  background: var(--dark); padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
}
.browser-dot { width: 12px; height: 12px; border-radius: 50%; }
.browser-dot--red { background: #ff5f57; }
.browser-dot--yellow { background: #febc2e; }
.browser-dot--green { background: #28c840; }
.browser-bar-url {
  margin-left: 12px; background: var(--dark-card); border-radius: 6px;
  padding: 4px 12px; font-size: 0.75rem; color: #888; flex: 1;
}
.browser-content { padding: 20px; }
.mock-dash { display: grid; grid-template-columns: 140px 1fr; gap: 16px; min-height: 280px; }
.mock-sidebar {
  background: var(--dark); border-radius: 10px; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.mock-sidebar-item { height: 10px; border-radius: 4px; background: rgba(255,255,255,0.15); }
.mock-sidebar-item.active { background: var(--primary); }
.mock-main { display: flex; flex-direction: column; gap: 12px; }
.mock-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stat {
  background: #f8f8f8; border: 1px solid #e5e5e5; border-radius: 8px;
  padding: 12px; text-align: center;
}
.mock-stat-val { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; }
.mock-stat-label { font-size: 0.65rem; color: #888; margin-top: 2px; }
.mock-chart {
  flex: 1; background: var(--secondary); border-radius: 10px; padding: 16px; opacity: 0.6;
  display: flex; align-items: flex-end; gap: 8px; min-height: 120px;
}
.mock-bar { flex: 1; background: var(--dark); border-radius: 4px 4px 0 0; min-height: 20px; }

/* ══════════════════════════════════════
   SOCIAL PROOF MARQUEE
   ══════════════════════════════════════ */
.marquee-section {
  background: var(--dark); border-bottom: var(--border);
  padding: 24px 0; overflow: hidden;
}
.marquee-track {
  display: flex; gap: 64px; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem;
  color: var(--primary-light); opacity: 0.5; white-space: nowrap;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ══════════════════════════════════════
   PROBLEM vs SOLUTION
   ══════════════════════════════════════ */
.pvs { background: var(--white); }
.pvs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pvs-card {
  padding: 40px; border-radius: 24px;
}
.pvs-card--problem {
  background: #f4f4f5; border: 2px dashed #ccc; opacity: 0.8;
}
.pvs-card--solution {
  background: var(--primary); border: var(--border);
  box-shadow: var(--shadow-lg);
}
.pvs-card h3 { font-size: 1.8rem; margin-bottom: 24px; }
.pvs-list { display: flex; flex-direction: column; gap: 16px; }
.pvs-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; }
.pvs-icon {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
}
.pvs-icon--x { background: #fee2e2; color: #dc2626; }
.pvs-icon--check { background: #dcfce7; color: #16a34a; }

/* ══════════════════════════════════════
   FEATURE GRID
   ══════════════════════════════════════ */
.features {
  background: var(--primary);
  border-top: var(--border); border-bottom: var(--border);
}
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0px 0px #1a2e35; }
.feature-icon {
  width: 48px; height: 48px; background: var(--secondary); border: var(--border);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: background 0.2s; font-size: 1.3rem;
}
.feature-card:hover .feature-icon { background: var(--primary); }
.feature-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; opacity: 0.7; }

/* ══════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════ */
.how { background: var(--dark); color: var(--white); }
.how-flow { display: flex; align-items: flex-start; justify-content: center; gap: 0; position: relative; }
.how-step { text-align: center; flex: 1; position: relative; z-index: 1; padding: 0 24px; }
.how-circle {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.8rem;
  background: var(--dark); border: 4px solid var(--secondary);
}
.how-step:nth-child(2) .how-circle { border-color: var(--primary); }
.how-step:nth-child(3) .how-circle { border-color: var(--white); }
.how-line {
  position: absolute; top: 40px; left: 15%; right: 15%; height: 2px;
  background: var(--dark-card); z-index: 0;
}
.how-step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.how-step p { font-size: 0.9rem; opacity: 0.7; max-width: 260px; margin: 0 auto; }

/* ══════════════════════════════════════
   PRICING
   ══════════════════════════════════════ */
.pricing { background: var(--white); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card {
  border: var(--border); border-radius: var(--radius); padding: 40px 32px;
  background: var(--white); text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card--featured {
  background: var(--primary); box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}
.pricing-card--featured:hover { transform: scale(1.04) translate(-2px, -2px); box-shadow: 10px 10px 0px 0px #1a2e35; }
.pricing-card:not(.pricing-card--featured):hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0px 0px #1a2e35; }
.pricing-badge { margin-bottom: 16px; }
.pricing-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.pricing-price { font-family: var(--font-head); font-weight: 800; font-size: 3rem; margin-bottom: 4px; }
.pricing-price span { font-size: 1rem; font-weight: 500; opacity: 0.6; }
.pricing-desc { font-size: 0.9rem; opacity: 0.7; margin-bottom: 28px; }
.pricing-features { text-align: left; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.pricing-features li::before { content: '✓'; font-weight: 800; color: #16a34a; }
.pricing-card--featured .pricing-features li::before { color: var(--dark); }

/* ══════════════════════════════════════
   USE CASE PERSONAS
   ══════════════════════════════════════ */
.personas { background: var(--white); }
.personas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.persona-card {
  border: var(--border); border-radius: var(--radius); padding: 36px 28px;
  box-shadow: var(--shadow-sm);
}
.persona-card--sage { background: var(--secondary); }
.persona-card--teal { background: var(--primary); box-shadow: var(--shadow-lg); }
.persona-card--dark { background: var(--dark-card); color: var(--white); }
.persona-badge { margin-bottom: 20px; }
.persona-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.persona-card p { font-size: 0.95rem; opacity: 0.8; }
.persona-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.persona-list li { font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.persona-list li::before { content: '→'; font-weight: 700; }

/* ══════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════ */
.testimonials { background: var(--neutral); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--white); border: var(--border); padding: 32px;
  border-radius: 2px 20px 2px 20px;
  box-shadow: var(--shadow-sm);
}
.testimonial-stars { display: flex; gap: 4px; margin-bottom: 16px; }
.testimonial-star { color: var(--star); font-size: 1.1rem; }
.testimonial-text { font-size: 1rem; margin-bottom: 20px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; border: var(--border);
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800;
}
.testimonial-name { font-weight: 700; }
.testimonial-role { font-size: 0.85rem; opacity: 0.6; }

/* ══════════════════════════════════════
   FINAL CTA
   ══════════════════════════════════════ */
.final-cta { background: var(--primary); border-top: var(--border); text-align: center; }
.final-cta h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 16px; }
.final-cta p { font-size: 1.15rem; opacity: 0.7; margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer { background: var(--dark); color: var(--white); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.9rem; opacity: 0.6; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; opacity: 0.5; }
.footer-col a { display: block; font-size: 0.95rem; opacity: 0.7; margin-bottom: 10px; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-social {
  width: 40px; height: 40px; background: var(--dark-card);
  border: 1px solid #444; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; font-size: 0.9rem;
}
.footer-social:hover { background: var(--primary); color: var(--dark); border-color: var(--dark); }
.footer-bottom {
  border-top: 1px solid #333; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; opacity: 0.5;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid, .pricing-grid, .personas-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .pvs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .how-flow { flex-direction: column; align-items: center; gap: 40px; }
  .how-line { display: none; }
  .pricing-card--featured { transform: scale(1); }
  .pricing-card--featured:hover { transform: translate(-2px, -2px); }
}

@media (max-width: 768px) {
  .nav-links, .nav-right .btn-push { display: none; }
  .hamburger { display: flex; }
  .nav-mobile {
    position: fixed; top: 80px; left: 0; right: 0; background: var(--primary);
    border-bottom: var(--border); padding: 24px;
    display: flex; flex-direction: column; gap: 16px;
    transform: translateY(-120%); transition: transform 0.3s;
  }
  .nav-mobile.open { transform: translateY(0); }
  .nav-mobile a { font-weight: 700; font-size: 1.1rem; padding: 8px 0; }
  .features-grid, .pricing-grid, .personas-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
  .section { padding: 60px 0; }
  .mock-dash { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
}
