/* ================================================================
   JP JESUS — Design System
   Dark Premium | Glassmorphism | Animated
================================================================ */

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

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-1: #0a84ff;
  --blue-2: #005dff;
  --purple-1: #7c3aed;
  --purple-2: #4f46e5;
  --bg-deep: #0b0b0b;
  --bg-dark: #111111;
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-hover: rgba(255, 255, 255, 0.075);
  --text-primary: #f0f0f0;
  --text-secondary: rgba(210, 210, 210, 0.70);
  --text-muted: rgba(180, 180, 180, 0.45);
  --accent: #0a84ff;
  --accent-glow: rgba(10, 132, 255, 0.28);
  --gold: #f5c842;
  --gold-soft: rgba(245, 200, 66, 0.15);
  --green: #22c55e;
  --coming-soon-bg: rgba(255, 255, 255, 0.025);
  --radius-card: 18px;
  --radius-pill: 100px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 36px rgba(10, 132, 255, 0.14);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', 'Inter', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Animated Background ───────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 5%,  rgba(55, 55, 55, 0.30) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 95%, rgba(35, 35, 35, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(25, 25, 25, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ─── Container ─────────────────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Hero Section ──────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 0 40px;
  position: relative;
}

.hero-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.hero-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff9c00, #ffbe45, #ffe08a, #ff9c00);
  animation: spin 5s linear infinite;
  z-index: 0;
  filter: blur(0.5px);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-avatar-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #1a1a1a;
  background: radial-gradient(circle at 30% 30%, #2a2a2a, #111111);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.6);
}

.hero-avatar-inner img {
  width: 140%;
  height: 140%;
  object-fit: cover;
  object-position: 35% 8%;
  margin-left: -20%;
  margin-top: -2%;
}

.hero-logo {
  height: 44px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: brightness(1.1);
}

.hero-name {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-tagline {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 360px;
  margin-bottom: 28px;
  line-height: 1.5;
}

.hero-tagline strong {
  color: #ff9c00;
  font-weight: 600;
}

/* ─── Social Icons ──────────────────────────────────────────── */
.social-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.social-btn:hover {
  background: rgba(255, 156, 0, 0.15);
  border-color: #ff9c00;
  color: #ff9c00;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 156, 0, 0.25);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ─── Section Divider ───────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0 18px;
}

.section-label span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  white-space: nowrap;
}

.section-label::before,
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--glass-border));
}

.section-label::after {
  background: linear-gradient(to left, transparent, var(--glass-border));
}

/* ─── Product Cards ─────────────────────────────────────────── */
.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,132,255,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(10, 132, 255, 0.40);
  background: var(--glass-hover);
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
}

.card-icon.blue   { background: rgba(10, 132, 255, 0.15); border: 1px solid rgba(10,132,255,0.3); }
.card-icon.purple { background: rgba(124, 58, 237, 0.15); border: 1px solid rgba(124,58,237,0.3); }
.card-icon.teal   { background: rgba(20, 184, 166, 0.15); border: 1px solid rgba(20,184,166,0.3); }
.card-icon.gold   { background: rgba(245, 200, 66, 0.12); border: 1px solid rgba(245,200,66,0.3); }
.card-icon.red    { background: rgba(239, 68, 68, 0.12);  border: 1px solid rgba(239,68,68,0.3); }
.card-icon.green  { background: rgba(34, 197, 94, 0.12);  border: 1px solid rgba(34,197,94,0.3); }

.card-body {
  flex: 1;
  position: relative;
  z-index: 1;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.card-arrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.card:hover .card-arrow {
  background: var(--blue-1);
  border-color: var(--blue-1);
  color: white;
  transform: translateX(2px);
}

.card-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
}

.badge-hot {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.3);
}

.badge-new {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.3);
}

/* ─── Coming Soon Card ──────────────────────────────────────── */
.card-coming-soon {
  opacity: 0.55;
  pointer-events: none;
  border-style: dashed;
  cursor: default;
}

.card-coming-soon:hover {
  transform: none;
  border-color: var(--glass-border);
  box-shadow: var(--shadow-card);
}

.badge-soon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 8px;
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 48px 0 40px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--blue-1);
}

/* ─── Entrance Animations ───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim { animation: fadeUp 0.55s ease both; }
.anim-d1 { animation-delay: 0.05s; }
.anim-d2 { animation-delay: 0.12s; }
.anim-d3 { animation-delay: 0.19s; }
.anim-d4 { animation-delay: 0.26s; }
.anim-d5 { animation-delay: 0.33s; }
.anim-d6 { animation-delay: 0.40s; }
.anim-d7 { animation-delay: 0.47s; }
.anim-d8 { animation-delay: 0.54s; }
.anim-d9 { animation-delay: 0.61s; }

/* ─── Amber Button Glow (Produtos) ──────────────────────────── */
.card-wpp:hover {
  border-color: rgba(255, 156, 0, 0.50);
  box-shadow: var(--shadow-card), 0 0 30px rgba(255, 156, 0, 0.15);
}

.card-wpp:hover .card-arrow {
  background: #ff9c00;
  border-color: #ff9c00;
  color: #111;
}

/* ─── Responsivo ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero { padding: 40px 0 28px; }
  .hero-avatar-wrap { width: 96px; height: 96px; }
  .hero-logo { height: 36px; }
  .card { padding: 15px 16px; gap: 13px; }
  .card-icon { width: 44px; height: 44px; min-width: 44px; font-size: 1.2rem; }
  .card-title { font-size: 0.93rem; }
}

/* ─── Ecosystem Grid ────────────────────────────────────────── */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.eco-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.eco-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,132,255,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

a.eco-card:hover {
  border-color: rgba(10, 132, 255, 0.40);
  background: var(--glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

a.eco-card:hover::before {
  opacity: 1;
}

.eco-card-soon {
  opacity: 0.45;
  cursor: default;
  border-style: dashed;
}

.eco-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid transparent;
  position: relative;
  z-index: 1;
}

.eco-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.eco-desc {
  font-size: 0.73rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

/* Logo tiles no ecossistema — fundo preto/vidro */
.eco-icon-logo {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px;
  width: 62px;
  height: 62px;
  min-width: 62px;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 16px rgba(0,0,0,0.40);
}

.eco-icon-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  filter: contrast(1.1);
}

/* Logo SEP nos cards principais */
.card-icon-logo {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 16px rgba(0,0,0,0.40);
}

.card-icon-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.1);
}



@media (max-width: 480px) {
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .eco-card { padding: 16px 10px; }
  .eco-icon { width: 42px; height: 42px; font-size: 1.2rem; }
  .eco-name { font-size: 0.82rem; }
}


::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }
