@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@300;400;600;700&display=swap');

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

:root {
  --bg:       #080808;
  --surface:  #111111;
  --border:   #1a1a1a;
  --accent:   #b3e837;
  --danger:   #CC0000;
  --text:     #f5f5f5;
  --muted:    #888888;
  --font-ui: 'Inter', sans-serif;
  --font-mono:'JetBrains Mono', monospace;
  --font-display: 'Orbitron', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Inter', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button, .btn {
  font-family: var(--font-ui);
  cursor: pointer;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* ─── BACKGROUND PATTERN ─── */
#bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='1' cy='1' r='0.5' fill='%231a1a1a'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 40px 40px;
}

/* ─── GLOBAL LANDING ─── */
section { padding: 72px 0; }
.mono   { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.danger { color: var(--danger); }
.muted  { color: var(--muted); }

/* ─── NAV ─── */
nav {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  position: sticky;
  top: 0;
  background: rgba(8,8,8,0.96);
  z-index: 1000;
  isolation: isolate;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
nav img {
  background: transparent;
  display: block;
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  nav .container { justify-content: space-between; }
  .nav-cta { display: inline-block; }
}
.nav-cta { display: none; }

@media (max-width: 767px) {
  nav .container {
    justify-content: center;
  }
  .nav-cta {
    display: none;
  }
  nav {
    border-bottom: none;
    padding: 8px 0;
  }
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-cta {
  background: var(--accent);
  color: #080808;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 8px 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.15s;
}
.nav-cta:hover { background: #c4f04a; }

/* ─── SECTION BASE ─── */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 80px 0;
}

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--accent);
  color: #080808;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 16px 32px;
  display: inline-block;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  transition: background 0.15s;
}
.btn-primary:hover { background: #c4f04a; }
.btn-primary-full {
  background: var(--accent);
  color: #080808;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 16px;
  display: block;
  width: 100%;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  transition: background 0.15s;
}
.btn-primary-full:hover { background: #c4f04a; }

/* ─── HERO ─── */
#hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#hero .container {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 0.88rem;
  color: #b0b0b0;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.95);
}
.hero-terminal-col { display: none; }
.hero-mobile-preview {
  display: none;
}
@media (max-width: 767px) {
  .hero-mobile-preview {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 28px auto 0;
    border-radius: 16px;
  }
}
@media (min-width: 768px) {
  .hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }
  .hero-terminal-col { display: block; }
}

/* ─── TERMINAL ─── */
.terminal {
  background: #0a0a0a;
  border: 1px solid var(--border);
  overflow: hidden;
}
.terminal-bar {
  background: #1a1a1a;
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.terminal-dot.red    { background: #CC0000; }
.terminal-dot.yellow { background: #f5c518; }
.terminal-dot.green  { background: var(--accent); }
.terminal-title { font-family: var(--font-mono); font-size: 0.65rem; color: var(--muted); margin-left: 6px; }
.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.9;
  color: #ccc;
  min-height: 280px;
}
.t-dim    { color: #555; }
.t-accent { color: var(--accent); }
.t-white  { color: #fff; font-weight: 700; }

/* ─── TERMINAL ANIMATED ─── */
.terminal-demo {
  background: #0a0a0a;
  border: 1px solid var(--border);
  overflow: hidden;
  max-width: 620px;
  margin: 32px auto 0;
}
.terminal-demo .terminal-body { min-height: 340px; }
.t-line, .demo-line {
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.t-line.visible, .demo-line.visible { opacity: 1; }

/* ─── BADGES ─── */
.badge-s {
  display: inline-block;
  background: #b3e837;
  color: #080808;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
}
.badge-a {
  display: inline-block;
  background: #22c55e;
  color: #080808;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
}
.badge-b {
  display: inline-block;
  background: #4ec9b0;
  color: #080808;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
}
.badge-c {
  display: inline-block;
  background: #555;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
}

/* ─── FADE-IN SCROLL ─── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ─── PROBLEM ─── */
#problem { border-bottom: 1px solid var(--border); }
.problem-bullets { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 0; }
.problem-bullets li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.problem-bullets li:last-child { border-bottom: none; }
.problem-bullets li::before { content: '→'; font-family: var(--font-mono); color: var(--accent); flex-shrink: 0; }

/* ─── MECHANISM ─── */
#mechanism { border-bottom: 1px solid var(--border); }
.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 2;
  color: var(--muted);
  margin-top: 24px;
  overflow-x: auto;
}
.code-block span { color: var(--accent); }

/* ─── HOW ─── */
#how { border-bottom: 1px solid var(--border); }
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: 16px;
}
@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .step-card { padding: 20px; }
  .step-num { font-size: 1.4rem; margin-bottom: 10px; }
}
.step-card { background: var(--surface); border: 1px solid var(--border); padding: 28px; }
.step-num { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--border); line-height: 1; margin-bottom: 16px; }
.step-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-icon {
  flex-shrink: 0;
  opacity: 0.85;
}
.step-card p  { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.steps-note { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); margin-top: 20px; letter-spacing: 0.06em; }

/* ─── DISCOVER TABLE ─── */
#discover { border-bottom: 1px solid var(--border); }
.table-wrap { overflow-x: auto; margin-top: 24px; }
.oferta-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.oferta-table th {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.oferta-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.oferta-table tr:last-child td { border-bottom: none; }
.btn-disabled {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #444;
  border: 1px solid #2a2a2a;
  background: transparent;
  padding: 4px 10px;
  cursor: not-allowed;
  margin-right: 4px;
  border-radius: 2px;
}
.table-note { font-family: var(--font-mono); font-size: 0.68rem; color: #444; margin-top: 16px; }
@media (max-width: 767px) {
  .oferta-table td, .oferta-table th { padding: 10px; font-size: 0.78rem; }
  .table-wrap { margin: 0 -4px; }
}

/* ─── STATS GRID ─── */
#stats { border-bottom: 1px solid var(--border); }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 32px;
  border: 1px solid var(--border);
  overflow: hidden;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-card {
  background: #0d0d0d;
  padding: 20px 16px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-top: 2px solid var(--accent);
  position: relative;
  transition: background 0.2s;
}
.stat-card:hover { background: #111; }
.stat-card svg {
  position: absolute;
  top: 12px;
  left: 12px;
  opacity: 0.45;
}
.stat-num {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.4;
}

/* ─── AUDIENCE ─── */
#audience { border-bottom: 1px solid var(--border); }
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .audience-grid { grid-template-columns: 1fr 1fr; }
}
.audience-col h3 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.audience-col ul { list-style: none; }
.audience-col ul li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; display: flex; gap: 10px; align-items: flex-start; }
.audience-col ul li:last-child { border-bottom: none; }
.check-yes { color: var(--accent); font-family: var(--font-mono); flex-shrink: 0; }
.check-no  { color: var(--danger); font-family: var(--font-mono); flex-shrink: 0; }

/* ─── PRICING ─── */
#pricing { border-bottom: 1px solid var(--border); }
.pricing-anchor { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 32px; max-width: 540px; }
.pricing-card { border: 1px solid var(--accent); padding: 40px; max-width: 420px; margin: 0 auto; }
.pricing-card-muted {
  border: 1px solid var(--border);
  padding: 40px;
  opacity: 0.75;
}
.pricing-card-name { font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--muted); margin-bottom: 16px; }
.price-main { display: flex; align-items: baseline; gap: 4px; margin-bottom: 24px; }
.price-currency { font-family: var(--font-mono); font-size: 1rem; color: var(--muted); }
.price-value    { font-size: 3.5rem; font-weight: 800; line-height: 1; color: var(--accent); }
.price-period   { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.price-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.price-features li { font-size: 0.85rem; display: flex; align-items: flex-start; gap: 10px; }
.price-features li::before { content: '✓'; font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.price-cancel { font-family: var(--font-mono); font-size: 0.65rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* ─── GUARANTEE ─── */
#guarantee { border-bottom: 1px solid var(--border); }
.guarantee-card { border: 1px solid var(--border); padding: 40px 32px; max-width: 480px; margin: 0 auto; text-align: center; }
.guarantee-icon { margin: 0 auto 20px; }
.guarantee-card h3 { font-family: 'Inter', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.guarantee-card p  { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

/* ─── FAQ ─── */
#faq { border-bottom: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  padding: 20px 0;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); font-size: 1.2rem; color: var(--accent); flex-shrink: 0; transition: transform 0.2s; }
.faq details[open] summary { color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-answer { font-size: 0.87rem; color: var(--muted); line-height: 1.7; padding-bottom: 20px; }

/* ─── CTA FINAL ─── */
#cta-final { text-align: center; padding: 96px 0; border-bottom: 1px solid var(--border); }
#cta-final .section-title { margin-bottom: 32px; }

/* ─── FOOTER ─── */
footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-copy { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); text-align: center; }

/* ─── SMALL SCREEN FIXES ─── */
@media (max-width: 480px) {
  .pricing-card   { padding: 28px 20px; }
  .guarantee-card { padding: 28px 20px; }
}

/* ─── SIGNALS GRID (mecanismo 14 critérios) ─── */
.signals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
@media (min-width: 768px) {
  .signals-grid { grid-template-columns: 1fr 1fr; }
}
.signal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .hero-text { text-align: center; }
  .hero-eyebrow { text-align: center; }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .hero-text .btn-primary,
  .hero-text a[href*="cakto"],
  .hero-text a[href="#pricing"] {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 16px;
    font-size: 0.82rem;
  }
  .hero-text a + a {
    margin-top: 10px;
  }
}

/* ─── STICKY CTA MOBILE ─── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 12px 16px;
  background: #080808;
  border-top: 1px solid var(--border);
}
.sticky-cta.visible { display: block; }
.sticky-cta a {
  display: block;
  background: var(--accent);
  color: #080808;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 14px;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
}
@media (min-width: 768px) {
  .sticky-cta { display: none !important; }
}

nav .container img {
  height: 22px !important;
  background: transparent !important;
  mix-blend-mode: normal;
}

#demo {
  overflow: hidden;
}
#app-demo {
  overflow: hidden;
  height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  contain: strict;
}
#demo-phase-1,
#demo-phase-2,
#demo-phase-3 {
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
}

.btn-primary, .btn-primary-full {
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.btn-primary::before, .btn-primary-full::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 60deg,
    rgba(255,255,255,0.9) 90deg,
    rgba(179,232,55,1) 120deg,
    transparent 150deg,
    transparent 360deg
  );
  border-radius: 6px;
  animation: border-spin 2.4s linear infinite;
  z-index: -1;
}
.btn-primary::after, .btn-primary-full::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--accent);
  border-radius: 4px;
  z-index: -1;
}
@keyframes border-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.problem-bullets li {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.problem-bullets li.bullet-visible {
  opacity: 1;
  transform: translateX(0);
}
.problem-bullets li::before {
  display: inline-block;
  transition: transform 0.3s ease;
}
.problem-bullets li.bullet-visible::before {
  animation: arrow-pulse 1.8s ease-in-out infinite;
}
@keyframes arrow-pulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
.demo-filter {
  transition: all 0.15s ease;
  border-radius: 2px;
}
.demo-filter:hover:not([data-market="Nutra"]) {
  opacity: 0.85;
}
