/* ==========================================================================
   NEXA GESTÃO E PERFORMANCE — PREMIUM LINK-IN-BIO
   Design System: Deep Petroleum Blue, Pure Black, Technical Amber & Performance Orange
   Architecture: High-Conversion Authority, Zero AI-cliche, Mobile-First
   ========================================================================== */

:root {
  /* Surface & Base Palette */
  --bg-deep: #03060d;
  --bg-surface: #070d1a;
  --bg-card: rgba(10, 19, 36, 0.72);
  --bg-card-hover: rgba(15, 27, 52, 0.88);
  --bg-card-active: rgba(19, 35, 68, 0.95);
  
  /* Brand Accent Tokens */
  --orange-primary: #ff6a00;
  --orange-hover: #ff7d1a;
  --orange-glow: rgba(255, 106, 0, 0.28);
  --amber-accent: #ffa048;
  --amber-subtle: rgba(255, 160, 72, 0.12);
  
  /* Technical Blue Tokens */
  --blue-petroleum: #0a2540;
  --blue-petroleum-border: rgba(30, 78, 128, 0.35);
  --blue-glow: rgba(14, 56, 122, 0.3);
  
  /* Typography Colors */
  --text-pure: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #ffad66;
  
  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.11);
  --border-focus: #ff6a00;
  
  /* Layout Sizing & Typography Scale */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Syne', 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Motion Curves */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-smooth: 0.35s;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden !important;
  background-color: var(--bg-deep);
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-deep);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2.2rem 1.25rem 3rem;
}

/* --------------------------------------------------------------------------
   Background Architecture (Atmospheric Depth & Technical Precision)
   -------------------------------------------------------------------------- */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow-top {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: min(120vw, 780px);
  height: min(70vh, 520px);
  background: radial-gradient(
    ellipse at center,
    rgba(16, 42, 86, 0.55) 0%,
    rgba(10, 24, 52, 0.35) 45%,
    rgba(3, 6, 13, 0) 75%
  );
  filter: blur(50px);
}

.ambient-glow-accent {
  position: absolute;
  top: 14%;
  left: 60%;
  width: min(60vw, 420px);
  height: min(40vh, 320px);
  background: radial-gradient(
    circle,
    rgba(255, 106, 0, 0.09) 0%,
    rgba(255, 106, 0, 0) 70%
  );
  filter: blur(65px);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 28%, black 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 28%, black 20%, transparent 85%);
}

.ambient-orbital {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 560px);
  height: min(92vw, 560px);
  border-radius: 50%;
  border: 1px dashed rgba(255, 160, 72, 0.08);
  pointer-events: none;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Container & Layout
   -------------------------------------------------------------------------- */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

/* Logo Frame with Orbital Accent */
.logo-container {
  position: relative;
  margin-bottom: 1.25rem;
}

.logo-orbital-ring {
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--radius-lg) + 8px);
  border: 1px solid rgba(255, 160, 72, 0.22);
  background: radial-gradient(circle at top right, rgba(255, 106, 0, 0.12), transparent 70%);
  animation: rotateOrbital 24s linear infinite;
  pointer-events: none;
}

.logo-frame {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  background: #091526;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(14, 48, 100, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
}

/* Status Badge */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 37, 64, 0.6);
  border: 1px solid var(--blue-petroleum-border);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c9d7e8;
  margin-bottom: 0.85rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status-indicator {
  position: relative;
  display: flex;
  width: 7px;
  height: 7px;
}

.status-indicator-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--orange-primary);
  opacity: 0.75;
  animation: pingDot 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-indicator-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-primary);
}

/* Brand Name */
.brand-name {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-pure);
  margin-bottom: 0.65rem;
}

/* Commercial Statement (Copy Oficial) */
.brand-tagline {
  font-size: clamp(0.96rem, 3.4vw, 1.08rem);
  font-weight: 500;
  color: #e2e8f0;
  max-width: 400px;
  margin-bottom: 1.15rem;
  line-height: 1.45;
}

.tagline-gradient {
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(90deg, #ffffff 0%, #ffc085 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Frentes de Atuação Strip */
.fronts-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.6rem;
  background: rgba(11, 22, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.55rem 1rem;
  max-width: 420px;
  margin-bottom: 0.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.front-item {
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.front-separator {
  color: var(--orange-primary);
  font-size: 0.7rem;
  opacity: 0.8;
}

/* Posicionamento Técnico */
.positioning-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Official Link Channels (Hierarchical & Conversional)
   -------------------------------------------------------------------------- */
.links-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
}

/* Base Link Card */
.link-card {
  position: relative;
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform var(--duration-smooth) var(--ease-spring),
              background var(--duration-smooth) var(--ease-spring),
              border-color var(--duration-smooth) var(--ease-spring),
              box-shadow var(--duration-smooth) var(--ease-spring);
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.link-card:focus-visible {
  outline: 2px solid var(--orange-primary);
  outline-offset: 3px;
}

.link-card:hover {
  transform: translateY(-2px);
}

.link-card:active {
  transform: translateY(0) scale(0.99);
}

/* Card Content Structure */
.card-icon-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.95rem;
  transition: transform var(--duration-smooth) var(--ease-spring);
}

.card-icon-svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
}

.card-text-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
}

.card-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-pure);
  line-height: 1.25;
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-subtitle {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  margin-left: 0.5rem;
  color: var(--text-muted);
  transition: transform var(--duration-smooth) var(--ease-spring),
              color var(--duration-smooth) var(--ease-spring);
}

.card-arrow-svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
  stroke: currentColor;
  fill: none;
}

.link-card:hover .card-arrow {
  transform: translateX(3px);
  color: var(--text-pure);
}

/* --------------------------------------------------------------------------
   Specific Card Variations
   -------------------------------------------------------------------------- */

/* 1. Primary CTA Card (Fale com a NEXA / Formulário de Avaliação) */
.card-primary-cta {
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.16) 0%, rgba(18, 32, 60, 0.85) 100%);
  border: 1px solid rgba(255, 106, 0, 0.45);
  box-shadow: 
    0 10px 28px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 106, 0, 0.18);
}

.card-primary-cta .card-icon-box {
  background: var(--orange-primary);
  color: #030712;
  box-shadow: 0 4px 14px var(--orange-glow);
}

.card-primary-cta .card-title {
  color: #ffffff;
}

.card-primary-cta .card-subtitle {
  color: #fed7aa;
}

.card-primary-cta:hover {
  border-color: rgba(255, 106, 0, 0.75);
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.22) 0%, rgba(22, 40, 75, 0.9) 100%);
  box-shadow: 
    0 14px 34px rgba(0, 0, 0, 0.6),
    0 0 28px rgba(255, 106, 0, 0.32);
}

.card-primary-cta:hover .card-icon-box {
  transform: scale(1.05);
}

.badge-featured {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 106, 0, 0.25);
  border: 1px solid rgba(255, 106, 0, 0.45);
  color: #ffffff;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
}

/* 2. Official Website Card */
.card-site {
  border-color: rgba(30, 80, 135, 0.35);
}

.card-site .card-icon-box {
  background: rgba(14, 45, 80, 0.85);
  border: 1px solid rgba(40, 100, 165, 0.4);
  color: #60a5fa;
}

.card-site:hover {
  background: var(--bg-card-hover);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(14, 56, 122, 0.25);
}

/* 3. WhatsApp Community / Support Card */
.card-support {
  border-color: rgba(255, 255, 255, 0.09);
}

.card-support .card-icon-box {
  background: rgba(16, 32, 58, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--amber-accent);
}

.card-support:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 160, 72, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 160, 72, 0.15);
}

/* 4. Instagram Card */
.card-instagram {
  border-color: rgba(255, 255, 255, 0.08);
}

.card-instagram .card-icon-box {
  background: rgba(20, 24, 40, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f472b6;
}

.card-instagram:hover {
  background: var(--bg-card-hover);
  border-color: rgba(244, 114, 182, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* --------------------------------------------------------------------------
   Shiny Sweep Effect (Pure CSS Fluid Diagonal Light)
   -------------------------------------------------------------------------- */
.shiny-sweep {
  position: relative;
}

.shiny-sweep::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.75s var(--ease-spring);
}

.card-primary-cta.shiny-sweep::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 210, 165, 0.16) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.link-card:hover.shiny-sweep::after,
.link-card:active.shiny-sweep::after {
  opacity: 1;
  transform: rotate(25deg) translate(340%, -10%);
}

/* --------------------------------------------------------------------------
   Footer & Legal Integrity
   -------------------------------------------------------------------------- */
.footer-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.trust-icon-svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
}

.footer-copy {
  font-size: 0.68rem;
  color: #475569;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Keyframes & Animations
   -------------------------------------------------------------------------- */
@keyframes pingDot {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes rotateOrbital {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Responsive Adjustments (Mobile-First 320px to 480px+)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
  body {
    padding: 1.5rem 0.85rem 2.2rem;
  }
  
  .logo-frame {
    width: 80px;
    height: 80px;
  }
  
  .brand-name {
    font-size: 1.35rem;
  }
  
  .brand-tagline {
    font-size: 0.9rem;
  }
  
  .fronts-pill {
    padding: 0.45rem 0.7rem;
    gap: 0.25rem 0.45rem;
  }
  
  .front-item {
    font-size: 0.7rem;
  }
  
  .card-icon-box {
    width: 38px;
    height: 38px;
    min-width: 38px;
    margin-right: 0.75rem;
  }
  
  .card-title {
    font-size: 0.88rem;
  }
  
  .card-subtitle {
    font-size: 0.7rem;
  }
}

/* --------------------------------------------------------------------------
   Accessibility: Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .shiny-sweep::after {
    display: none !important;
  }
  
  .logo-orbital-ring {
    animation: none !important;
  }
  
  .status-indicator-ping {
    animation: none !important;
  }
}
