/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: #0D0D0D;
  padding-top: 100px;
  padding-bottom: var(--sp-7);
}

/* Background glow — top right */
.hero::before {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(226, 75, 74, 0.08) 0%,
    rgba(163, 45, 45, 0.03) 40%,
    transparent 70%);
  top: -300px;
  right: -150px;
  pointer-events: none;
  z-index: 0;
  animation: hero-drift-a 14s ease-in-out infinite alternate;
  will-change: transform;
}

/* Background glow — bottom left */
.hero::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(163, 45, 45, 0.05) 0%,
    transparent 70%);
  bottom: -150px;
  left: 5%;
  pointer-events: none;
  z-index: 0;
  animation: hero-drift-b 18s ease-in-out infinite alternate-reverse;
  will-change: transform;
}

@keyframes hero-drift-a {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(60px, 40px); }
}

@keyframes hero-drift-b {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-40px, -30px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after { animation: none; }
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}

/* ── Left column ── */
.hero__content {
  max-width: 620px;
}

.hero__badge {
  margin-bottom: var(--sp-4);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 1px solid rgba(226, 75, 74, 0.3);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero__badge-dot { animation: none; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--color-text);
  margin-bottom: var(--sp-3);
  text-decoration: none;
  padding-bottom: 8px;
}

/* Only the highlighted span gets the gradient — rest of title stays white */
.hero-title__highlight {
  background: linear-gradient(
    90deg,
    #E24B4A 0%,
    #A32D2D 30%,
    #FF6B6A 60%,
    #E24B4A 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
  animation: gradient-shift 3s linear infinite;
}

@keyframes gradient-shift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title__highlight { animation: none; }
}

.hero__sub {
  font-size: 17px;
  line-height: 1.65;
  color: #D3D1C7;
  max-width: 520px;
  margin-bottom: var(--sp-4);
}

.hero__demo-note {
  font-size: 12px;
  color: #888780;
  margin-top: 16px;
  letter-spacing: 0.04em;
}

.hero__ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* ── Right column: animated widget card ── */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero__visual-card {
  background: #0F0F0F;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
}

/* ── Zone 1: Terminal ── */
.hero__terminal {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero__terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1A1A1A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hero__terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__terminal-title {
  font-size: 11px;
  color: #555;
  margin-left: 6px;
  font-family: 'Courier New', monospace;
}

.hero__terminal-body {
  padding: 14px 16px;
  min-height: 140px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.terminal-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  opacity: 0;
  animation: line-appear 0.3s ease forwards;
}

.terminal-prompt { color: #E24B4A; font-weight: 700; flex-shrink: 0; }
.terminal-cmd    { color: #D3D1C7; }
.terminal-out    { color: #888780; padding-left: 16px; }
.terminal-ok     { color: #6BCB77; }

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #E24B4A;
  margin-left: 4px;
  vertical-align: middle;
  animation: cursor-blink 0.7s step-end infinite;
}

@keyframes line-appear {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Zone 2: Métricas ── */
.hero__metrics {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero__metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.hero__metric-label {
  font-size: 11px;
  color: #888780;
  font-weight: 500;
}

.hero__metric-status { font-size: 11px; }
.hero__metric-status--done   { color: #6BCB77; }
.hero__metric-status--active { color: #E24B4A; }
.hero__metric-status--pulse  {
  color: #E24B4A;
  animation: status-pulse 1.5s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero__metric-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}

.hero__metric-bar {
  height: 100%;
  border-radius: 999px;
  background: #E24B4A;
}

.hero__metric-bar--full { width: 100%; }

.hero__metric-bar--animated {
  width: 0%;
  transition: width 0.05s linear;
}

.hero__metric-bar--pulse {
  width: 65%;
  animation: bar-pulse 2s ease-in-out infinite;
}

@keyframes bar-pulse {
  0%, 100% { width: 65%; opacity: 1; }
  50%       { width: 72%; opacity: 0.8; }
}

.hero__metric-value {
  font-size: 11px;
  color: #D3D1C7;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .hero__metric-status--pulse,
  .hero__metric-bar--pulse { animation: none; }
  .terminal-cursor { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__visual {
    justify-content: center;
  }

  .hero__visual-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 80px;
    padding-bottom: var(--sp-6);
  }
}

@media (max-width: 480px) {
  .hero__sub {
    font-size: 15px;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Hero Before/After ── */
.hero__before-after {
  background: rgba(10, 10, 10, 0.82);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 28px 32px;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.hero__ba-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hero__ba-col-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__ba-col-label--before {
  color: #888780;
}

.hero__ba-col-label--before i {
  width: 15px; height: 15px;
  color: #555;
}

.hero__ba-col-label--after {
  color: #E24B4A;
  justify-content: flex-end;
}

.hero__ba-col-label--after i {
  width: 15px; height: 15px;
  color: #E24B4A;
}

.hero__ba-divider-top {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.1);
}

.hero__ba-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__ba-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s ease;
  opacity: 0;
  transform: translateY(6px);
  animation: ba-row-appear 0.4s ease forwards;
}

.hero__ba-row:nth-child(1) { animation-delay: 0.1s; }
.hero__ba-row:nth-child(2) { animation-delay: 0.25s; }
.hero__ba-row:nth-child(3) { animation-delay: 0.4s; }
.hero__ba-row:nth-child(4) { animation-delay: 0.55s; }

@keyframes ba-row-appear {
  to { opacity: 1; transform: translateY(0); }
}

.hero__ba-row:hover {
  background: rgba(255,255,255,0.03);
}

.hero__ba-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.hero__ba-cell--before {
  color: #666260;
  text-decoration: line-through;
  text-decoration-color: rgba(136,135,128,0.5);
  text-decoration-thickness: 1px;
}

.hero__ba-cell--after {
  color: #D3D1C7;
  font-weight: 500;
  justify-content: flex-start;
}

.hero__ba-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero__ba-cell--before .hero__ba-icon {
  color: #444;
}

.hero__ba-cell--after .hero__ba-icon {
  color: #E24B4A;
}

.hero__ba-arrow {
  color: rgba(226,75,74,0.4);
  font-size: 14px;
  text-align: center;
  flex-shrink: 0;
}

.hero__ba-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.hero__ba-tagline {
  font-size: 13px;
  font-weight: 600;
  color: #888780;
  letter-spacing: 0.04em;
}

.hero__inner {
  align-items: center;
}

@media (max-width: 768px) {
  .hero__before-after {
    max-width: 100%;
    padding: 20px;
  }

  .hero__ba-cell {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__ba-row { animation: none; opacity: 1; transform: none; }
}

/* ── Instagram button ── */
.hero__instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__ig-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}
