/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --green:       #6CBA00;
  --green-dark:  #5EA61B;
  --green-light: #9FCF59;
  --green-glow:  rgba(108, 186, 0, 0.18);
  --green-glow2: rgba(108, 186, 0, 0.08);

  --black:       #ffffff;
  --card:        #f4f4f4;
  --card-hover:  #ececec;
  --border:      #e2e2e2;
  --border-soft: #ededed;

  --text:        #0a0a0a;
  --text-muted:  #5a5a5a;
  --text-subtle: #aaaaaa;

  --radius:    16px;
  --radius-lg: 24px;
  --max-w:     1200px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--black);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }


/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  line-height: 1.65;
  color: var(--text-muted);
}

.accent { color: var(--green); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.section-label.light { color: var(--green-light); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-header h2 { margin-bottom: 1rem; }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 2rem;
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity  0.75s var(--ease) var(--delay, 0ms),
    transform 0.75s var(--ease) var(--delay, 0ms);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.logo-v    { color: var(--green); }
.logo-rest { color: var(--text); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

/* Nav CTA button */
.btn-nav {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  background: var(--green);
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-nav:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}

/* Login button — desabilitado temporariamente */
.btn-login {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-subtle);
  background: transparent;
  border: 1.5px solid var(--border);
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s ease;
}

/* keep scroll-wheel visible on light bg */
.scroll-wheel {
  border-color: rgba(0,0,0,0.2);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 2rem 1.75rem;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
}

.mobile-menu ul { display: flex; flex-direction: column; gap: 0.25rem; }

.mobile-link {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-soft);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--text); }

.mobile-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.mobile-dl {
  display: block;
  text-align: center;
  flex: 1;
}

.mobile-login {
  display: block;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}


/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Background layers */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,186,0,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,186,0,0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 75%);
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(108,186,0,0.07) 0%, transparent 65%);
}

/* Speed lines */
.speed-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sl {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108,186,0,0.35), transparent);
  animation: speedline 3.5s ease-in-out infinite;
  opacity: 0;
}

.sl-1 { top: 28%; width: 380px; left: -400px; animation-delay: 0s;   animation-duration: 3.2s; }
.sl-2 { top: 45%; width: 260px; left: -300px; animation-delay: 0.9s; animation-duration: 4s;   }
.sl-3 { top: 62%; width: 460px; left: -500px; animation-delay: 1.8s; animation-duration: 3.6s; }
.sl-4 { top: 75%; width: 200px; left: -250px; animation-delay: 2.5s; animation-duration: 4.2s; }

@keyframes speedline {
  0%   { transform: translateX(0);        opacity: 0;   }
  10%  { opacity: 1; }
  80%  { opacity: 0.6; }
  100% { transform: translateX(140vw);    opacity: 0;   }
}

/* Hero inner layout */
.hero-inner {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 100px 2rem 60px;
  gap: 3rem;
}

/* Hero text */
.hero-text {
  flex: 1;
  min-width: 0;
  animation: heroFadeIn 0.9s var(--ease) 0.1s both;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-light);
  background: rgba(108,186,0,0.1);
  border: 1px solid rgba(108,186,0,0.25);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  animation: heroFadeIn 0.7s var(--ease) 0.2s both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  margin-bottom: 1.5rem;
  animation: heroFadeIn 0.8s var(--ease) 0.3s both;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.25rem;
  animation: heroFadeIn 0.8s var(--ease) 0.45s both;
}

/* CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.875rem;
  animation: heroFadeIn 0.8s var(--ease) 0.6s both;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--text);
  color: var(--black);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.12);
}

.cta-primary.cta-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  color: var(--black);
}

.cta-sub   { display: block; font-size: 0.65rem; font-weight: 500; opacity: 0.6; }
.cta-store { display: block; font-size: 0.95rem; font-weight: 700; line-height: 1.2; }

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  color: var(--text-muted);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-weight: 600;
  cursor: default;
  position: relative;
}

.badge-soon {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--green);
  color: var(--black);
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}


/* ============================================================
   HERO VISUAL — real app screenshot
   ============================================================ */
.hero-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: heroFadeIn 1s var(--ease) 0.4s both;
}

.hero-shot-glow {
  position: absolute;
  width: 340px;
  height: 620px;
  background: radial-gradient(ellipse at center, rgba(108,186,0,0.22) 0%, transparent 68%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.hero-shot {
  position: relative;
  z-index: 1;
  width: 320px;
  height: auto;
  filter: drop-shadow(0 32px 48px rgba(0,0,0,0.22));
  animation: float 5.5s ease-in-out infinite;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(0.4deg); }
}


/* ============================================================
   SCROLL HINT
   ============================================================ */
.hero-scroll-hint {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 2rem;
}

.scroll-wheel {
  width: 26px;
  height: 44px;
  border: 2px solid rgba(200,255,200,1.0);
  border-radius: 13px;
  position: relative;
}

.scroll-wheel::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--green);
  border-radius: 2px;
  animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
  0%   { opacity: 1; top: 6px;  }
  100% { opacity: 0; top: 22px; }
}


/* ============================================================
   VALUE STRIP
   ============================================================ */
.value-strip {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.vs-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.vs-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.vs-item svg { color: var(--green); flex-shrink: 0; }

.vs-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}


/* ============================================================
   APP PREVIEW — dark mode section
   ============================================================ */
#preview {
  background: #f0f0f0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.preview-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.preview-text h2 { margin-bottom: 1rem; }
.preview-text > p { margin-bottom: 2rem; }

.preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.preview-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.preview-list li svg {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.preview-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.preview-shot-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(108,186,0,0.15) 0%, transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}

.preview-image img {
  position: relative;
  z-index: 1;
  width: 300px;
  height: auto;
  filter: drop-shadow(0 32px 48px rgba(0,0,0,0.18));
  animation: float 6s ease-in-out 1s infinite;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ============================================================
   FEATURES
   ============================================================ */
#features { background: var(--black); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  cursor: default;
}

.feature-card:hover {
  background: var(--card-hover);
  border-color: rgba(108,186,0,0.25);
  transform: translateY(-4px);
}

.fc-icon {
  width: 52px;
  height: 52px;
  background: var(--green-glow2);
  border: 1px solid rgba(108,186,0,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 1.25rem;
}

.feature-card h3 { color: var(--text); margin-bottom: 0.6rem; }
.feature-card p  { font-size: 0.9rem; line-height: 1.6; }


/* ============================================================
   HOW IT WORKS
   ============================================================ */
#how {
  background: #f8f8f8;
  border-top: 1px solid var(--border);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: 60px 40px 1fr;
  align-items: start;
  gap: 0 1rem;
  padding: 2rem 0;
}

.step-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  padding-top: 0.1rem;
  letter-spacing: -0.04em;
}

.step-connector {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.step-connector::after {
  content: '';
  display: block;
  width: 2px;
  height: 100%;
  min-height: 80px;
  background: linear-gradient(180deg, var(--green) 0%, transparent 100%);
  border-radius: 2px;
}

.step-connector.last::after {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 60%, transparent 100%);
  min-height: 40px;
}

.step-body { padding-top: 0.1rem; }
.step-body h3 { color: var(--text); margin-bottom: 0.5rem; font-size: 1.1rem; }
.step-body p  { font-size: 0.9rem; }


/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
#download {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.dl-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dl-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,186,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,186,0,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
}

.dl-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(108,186,0,0.12) 0%, transparent 65%);
}

.dl-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem 7rem;
  text-align: center;
}

.dl-shot-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.dl-shot {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.5));
  animation: float 6s ease-in-out 0.5s infinite;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.dl-inner h2 { margin-bottom: 1rem; }

.dl-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.dl-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.dl-apple {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.18);
}

.dl-apple.disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.dl-google {
  background: var(--card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: default;
}

.dl-btn-text { display: flex; flex-direction: column; text-align: left; }
.dl-sub   { font-size: 0.65rem; opacity: 0.6; font-weight: 500; }
.dl-store { font-size: 0.95rem; font-weight: 700; line-height: 1.2; }

.dl-soon-tag {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--green);
  color: var(--black);
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #f4f4f4;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.03em; }

.footer-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-subtle);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-muted); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-subtle);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .btn-nav   { display: none; }
  .hamburger { display: flex; }

  .mobile-menu.open { display: flex; }

  /* Hero */
  .hero-inner {
    flex-direction: column;
    padding: 90px 1.5rem 40px;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-desc  { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-ctas  { justify-content: center; }
  .hero-badge { margin-left: auto; margin-right: auto; }

  .hero-visual { width: 100%; }
  .hero-shot   { width: 260px; }

  /* Preview */
  .preview-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 4rem 1.5rem;
  }

  .preview-image { order: -1; }
  .preview-image img { width: 260px; }

  .phone {
    width: 240px;
    height: 490px;
    border-radius: 42px;
  }

  .phone-notch { width: 74px; height: 22px; }

  /* Value strip */
  .vs-dot { display: none; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }

  /* How */
  .step { grid-template-columns: 48px 32px 1fr; }
  .step-number { font-size: 1.8rem; }

  /* Download */
  .dl-inner { padding: 5rem 1.5rem; }

  /* General */
  .section-wrap { padding: 4rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .cta-primary, .cta-secondary { justify-content: center; }
  .dl-ctas { flex-direction: column; align-items: stretch; }
  .dl-btn  { justify-content: center; }
}
