* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: #000; /* Outer boundary for desktop */
  color: var(--color-text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography Classes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
}

button {
  font-family: var(--font-heading);
  border: none;
  cursor: pointer;
  outline: none;
  font-weight: 700;
}

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

/* Desktop/PC Wrapper */
.desktop-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(circle at 30% 50%, rgba(0, 240, 255, 0.08) 0%, #000 60%);
}

.desktop-presentation {
  display: none; /* Escondido por defeito (mobile) */
}

@media (min-width: 1024px) {
  .desktop-wrapper {
    justify-content: space-evenly;
    padding: 0 40px;
  }
  
  .desktop-presentation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    padding-right: 40px;
    animation: fadeIn 1.5s ease-out;
  }
}

/* App Container */
#mobile-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-bg);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  /* Default Desktop layout (Dashboard/App) */
  #mobile-container {
      height: 100vh;
      border-radius: 0;
      border: none;
      box-shadow: none;
  }
  .desktop-wrapper {
      padding: 0;
  }
  .desktop-presentation {
      display: none !important;
  }
  #app {
      border-radius: 0;
      height: 100vh; 
  }
  
  /* Logged-out Landing page specific layout - Faux Phone + Rich presentation */
  body.public-landing .desktop-wrapper {
      justify-content: center;
      gap: 40px;
      padding: 40px;
      flex-wrap: wrap;
      align-items: center;
  }
  body.public-landing .desktop-presentation {
      display: flex !important;
      flex-direction: column;
      justify-content: center;
      max-width: 800px;
      min-width: 350px;
      flex: 1 1 500px;
      padding-right: 0;
      animation: fadeIn 1.5s ease-out;
  }
  body.public-landing #mobile-container {
      width: 420px;
      min-height: 800px; 
      height: 85vh;
      max-height: 900px;
      border-radius: 40px;
      border: 12px solid #111;
      box-shadow: 0 25px 80px rgba(0, 255, 163, 0.15), 0 0 0 1px #333;
      overflow: hidden;
  }
  body.public-landing #app {
      height: 100%;
      border-radius: 28px; /* Internal radius for phone sim */
  }
}

#app {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100vh; /* Lock height to viewport for App-like feel */
  overflow: hidden;
}

/* Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius-lg);
}

.primary-btn {
  background: linear-gradient(135deg, var(--color-primary), #00A2FF);
  color: #000;
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  font-size: 1.1rem;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px var(--color-primary-glow);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.primary-btn:active {
  transform: scale(0.96);
}

.glow-text {
  text-shadow: 0 0 10px var(--color-primary-glow);
}

/* Animations */
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px var(--color-primary-glow); }
  50% { box-shadow: 0 0 25px var(--color-primary-glow); }
  100% { box-shadow: 0 0 10px var(--color-primary-glow); }
}

/* Hidden Scrollbar */
::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

/* Admin Mode Overrides for PC */
body.admin-mode .desktop-presentation {
  display: none !important;
}

body.admin-mode .desktop-wrapper {
  background: var(--color-bg);
  padding: 0;
}

body.admin-mode #mobile-container {
  max-width: 1200px;
  width: 100%;
  height: auto;
  min-height: 100vh;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

body.admin-mode #app {
  border-radius: 0;
}

/* Hero Presentation Animations & Effects */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--color-primary);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  width: max-content;
  align-self: flex-start;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  animation: pulseBadge 2s infinite;
}

.hero-badge::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-primary);
}



@keyframes pulseBadge {
  0% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.1); }
  50% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.4); }
  100% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.1); }
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-bottom: 24px;
  align-self: flex-start;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.hero-text {
  font-size: 1.25rem;
  color: var(--color-text-dim);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.6;
  align-self: flex-start;
  animation: fadeUp 1s ease-out 0.3s both;
}

.hero-cards-container {
  display: flex;
  gap: 20px;
  margin-bottom: 48px;
  perspective: 1000px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  animation: fadeUp 1s ease-out 0.5s both;
}

.hero-card:nth-child(1) { animation-delay: 0.5s; }
.hero-card:nth-child(2) { animation-delay: 0.6s; }
.hero-card:nth-child(3) { animation-delay: 0.7s; }

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero-card:hover {
  transform: translateY(-10px) scale(1.02) rotateX(5deg) rotateY(-5deg);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 240, 255, 0.15), 0 10px 20px rgba(0, 0, 0, 0.4);
}

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.partner-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  align-self: flex-start;
  animation: fadeUp 1s ease-out 0.9s both;
}

.partner-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.partner-link img {
  height: 40px;
  border-radius: 8px;
  transition: transform 0.3s;
}

.partner-link:hover img {
  transform: scale(1.05);
}

.glow-cursor {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: left 0.1s linear, top 0.1s linear;
  opacity: 0;
}

