/* ============================================================
   ZIULBOT — index.css
   Estilos da landing page (index.html)
   ============================================================ */

/* ── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--px);
  background: rgba(8, 10, 8, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}
nav.scrolled { padding: .7rem var(--px); }

.nav-logo {
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.25rem;
  color: var(--white); text-decoration: none;
  letter-spacing: -.5px;
  display: flex; align-items: center; gap: 9px;
}
.nav-logo .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--g); box-shadow: 0 0 12px var(--g);
  animation: blink 2s infinite;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: var(--muted2); text-decoration: none;
  font-size: .88rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--g); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--g); color: #000;
  font-weight: 700; font-size: .82rem;
  padding: .5rem 1.1rem; border-radius: 8px;
  text-decoration: none; transition: all .2s;
  box-shadow: 0 0 18px rgba(83, 252, 24, .22);
  white-space: nowrap;
}
.nav-cta:hover { background: #fff; box-shadow: 0 0 28px rgba(83, 252, 24, .35); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--muted2); border-radius: 2px;
  transition: all .25s;
}
.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;
  position: fixed; top: 56px; left: 0; right: 0; z-index: 99;
  background: rgba(8, 10, 8, .97);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem var(--px);
  flex-direction: column; gap: 1rem;
  backdrop-filter: blur(14px);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text); text-decoration: none;
  font-size: 1rem; font-weight: 500; padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--g); }
.mobile-cta {
  background: var(--g) !important; color: #000 !important;
  text-align: center; border-radius: 8px;
  padding: .75rem !important; font-weight: 700 !important;
  border-bottom: none !important;
}

/* ── HERO ────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 7rem var(--px) 4rem;
  position: relative; overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(83, 252, 24, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 252, 24, .045) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 50%, black, transparent);
  animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 55px 55px; }
}

.hero-glow {
  position: absolute; top: 40%; right: 10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(83, 252, 24, .09) 0%, transparent 68%);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-content { position: relative; z-index: 1; max-width: 680px; }

/* ── HERO INNER LAYOUT (texto + robô) ── */
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-inner .hero-content { flex: 1 1 520px; min-width: 0; }

/* ── ROBÔ ANIMADO ── */
.hero-visual {
  flex: 0 0 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.robot-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  animation: robotFloat 4.5s ease-in-out infinite;
  filter: drop-shadow(0 25px 45px rgba(83,252,24,.14));
}

.robot-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: eyeBlink 4.5s ease-in-out infinite;
}
.eye-r { animation-delay: .15s; }

.antenna-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: antennaPulse 2s ease-in-out infinite;
}

.badge-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: badgeGlow 2.4s ease-in-out infinite;
}

.robot-arm { transform-box: fill-box; }
.arm-r { transform-origin: top center; animation: armWave 2.6s ease-in-out infinite; }

.chat-dot { animation: dotBlink 1.4s ease-in-out infinite; }
.chat-dot-2 { animation-delay: .2s; }
.chat-dot-3 { animation-delay: .4s; }

@keyframes robotFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
@keyframes eyeBlink {
  0%, 88%, 100% { transform: scaleY(1); }
  92%            { transform: scaleY(.12); }
}
@keyframes antennaPulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: .55; transform: scale(1.35); }
}
@keyframes badgeGlow {
  0%, 100% { opacity: .15; transform: scale(1); }
  50%       { opacity: .45; transform: scale(1.12); }
}
@keyframes armWave {
  0%, 100% { transform: rotate(0deg); }
  50%       { transform: rotate(6deg); }
}
@keyframes dotBlink {
  0%, 20%  { opacity: .25; }
  30%       { opacity: 1; }
  60%, 100% { opacity: .25; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(83, 252, 24, .07);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem 1rem;
  font-size: .73rem; font-weight: 500;
  color: var(--g); letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 1.4rem;
  animation: fadeInDown .6s ease both;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--g); animation: blink 1.5s infinite;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 700; line-height: 1.07;
  letter-spacing: -2.5px; color: var(--white);
  margin-bottom: 1.3rem;
  animation: fadeInUp .7s .1s ease both;
}
.hero h1 em { font-style: normal; color: var(--g); }

.hero p {
  font-size: clamp(.95rem, 2.2vw, 1.1rem);
  color: var(--muted2); max-width: 500px;
  margin-bottom: 2.2rem; line-height: 1.75;
  animation: fadeInUp .7s .2s ease both;
}

.hero-actions {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  animation: fadeInUp .7s .3s ease both;
}

.btn-ghost-hero {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--muted2); font-size: .92rem; font-weight: 500;
  text-decoration: none; transition: color .2s;
}
.btn-ghost-hero:hover { color: var(--white); }

/* Terminal */
.hero-terminal {
  margin-top: 2.4rem;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden; max-width: 460px;
  animation: fadeInUp .7s .4s ease both;
  box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(83,252,24,.05);
}
.terminal-bar {
  background: var(--s2);
  padding: .55rem 1rem;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--border);
}
.tbar-dot  { width: 10px; height: 10px; border-radius: 50%; }
.tbar-title { margin-left: 8px; font-family: var(--font-mono); font-size: .65rem; color: #444; }
.terminal-body {
  padding: .9rem 1.1rem;
  font-family: var(--font-mono);
  font-size: .75rem; line-height: 2;
  min-height: 120px;
}
.tc { color: var(--muted); }
.tg { color: var(--g); }
.tw { color: var(--white); }
.ty { color: #f5a623; }
.term-line { opacity: 0; animation: termLine .3s ease forwards; }
.cursor {
  display: inline-block; width: 8px; height: 13px;
  background: var(--g); vertical-align: middle;
  animation: cursorBlink .8s infinite;
}
@keyframes cursorBlink { 0%,49%{opacity:1} 50%,100%{opacity:0} }
@keyframes termLine { from{opacity:0;transform:translateX(-4px)} to{opacity:1;transform:none} }

/* ── STATS ───────────────────────────────────────────── */
.stats-section {
  padding: 2.5rem var(--px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--s1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}
.stat-item {
  text-align: center; padding: 1.1rem .5rem;
  transition: background .2s; border-radius: 10px;
}
.stat-item:hover { background: rgba(83, 252, 24, .04); }
.stat-num {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 700;
  color: var(--g); line-height: 1;
}
.stat-desc { font-size: .72rem; color: var(--muted); margin-top: .4rem; text-transform: uppercase; letter-spacing: .5px; }

/* ── FEATURES ────────────────────────────────────────── */
.features-section { padding: 5rem var(--px); }

.section-label {
  font-size: .68rem; color: var(--g);
  letter-spacing: 2px; text-transform: uppercase;
  font-weight: 600; margin-bottom: .7rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 700; letter-spacing: -1px;
  color: var(--white); margin-bottom: 3rem;
  line-height: 1.15;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.feature-card {
  background: var(--s1); padding: 1.8rem 1.6rem;
  transition: background .2s;
}
.feature-card:hover { background: var(--s2); }
.feature-icon {
  width: 42px; height: 42px;
  background: rgba(83, 252, 24, .08);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: 1.1rem;
  transition: background .2s, box-shadow .2s;
}
.feature-card:hover .feature-icon {
  background: rgba(83, 252, 24, .15);
  box-shadow: 0 0 16px rgba(83, 252, 24, .15);
}
.feature-card h3 {
  font-family: var(--font-head);
  font-size: .95rem; font-weight: 600;
  color: var(--white); margin-bottom: .45rem;
}
.feature-card p { font-size: .85rem; color: var(--muted2); line-height: 1.65; }

/* ── HOW TO ──────────────────────────────────────────── */
.howto-section {
  padding: 5rem var(--px);
  background: var(--s1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem; margin-top: 2.8rem;
}
.step { display: flex; gap: 1rem; }
.step-num {
  flex-shrink: 0; width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .72rem;
  color: var(--g); margin-top: .1rem;
  transition: background .2s, border-color .2s;
}
.step:hover .step-num { background: rgba(83,252,24,.08); border-color: var(--border2); }
.step-body h4 {
  font-family: var(--font-head);
  font-size: .95rem; font-weight: 600;
  color: var(--white); margin-bottom: .35rem;
}
.step-body p { font-size: .85rem; color: var(--muted2); line-height: 1.65; }

/* ── CTA ─────────────────────────────────────────────── */
.cta-section {
  padding: 5.5rem var(--px); text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(83,252,24,.07), transparent 68%);
  pointer-events: none;
  animation: orbFloat 10s ease-in-out infinite;
}
.cta-section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 700; letter-spacing: -1.5px;
  color: var(--white); margin-bottom: .9rem; position: relative;
}
.cta-section p {
  color: var(--muted2); font-size: 1rem;
  max-width: 420px; margin: 0 auto 2.2rem; position: relative;
}

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem var(--px);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: var(--font-head);
  font-weight: 700; color: var(--muted);
  font-size: .88rem; letter-spacing: -.5px;
  display: flex; align-items: center; gap: 7px;
}
.footer-logo .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--g); box-shadow: 0 0 6px var(--g);
}
footer p  { font-size: .75rem; color: var(--muted); }
footer a  { color: var(--g); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-visual { flex: 0 0 240px; }
  .robot-svg { max-width: 240px; }
}
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { display: none; }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 680px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
}
@media (max-width: 560px) {
  .stats-section { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
}
@media (max-width: 400px) {
  .hero { padding-top: 6rem; padding-bottom: 3rem; }
  .hero h1 { letter-spacing: -1.5px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .btn-primary-g { width: 100%; justify-content: center; }
  .hero-terminal { max-width: 100%; }
  .terminal-body { font-size: .68rem; }
  .stat-num { font-size: 1.6rem; }
}
