/* ==========================================================================
   BELEVER — PREMIUM DESIGN SYSTEM (INSPIRADO EM ANTIGRAVITY.GOOGLE)
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  /* Colors */
  --primary: #12B2C1;
  --on-primary: #FFFFFF;
  --background: #06080A;
  --surface: #121317;
  --surface-variant: #18191D;
  
  --text-primary: #FFFFFF;
  --text-secondary: #8E939E;
  --text-muted: #505560;
  
  --border: #232730;
  --border-subtle: #16181D;
  --accent: #12B2C1;
  --glow-color: rgba(18, 178, 193, 0.12);
  --shadows-glow: 0 0 25px rgba(18, 178, 193, 0.25);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing Scale (Antigravity-inspired) */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 36px;
  --space-xl: 48px;
  --space-2xl: 60px;
  --space-3xl: 80px;
  --space-4xl: 120px;
  --space-5xl: 180px;

  /* Rounded Corners */
  --rounded-none: 0px;
  --rounded-xs: 2px;
  --rounded-sm: 4px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-full: 9999px;

  /* Motion */
  --motion-fast: 180ms;
  --motion-normal: 320ms;
  --motion-slow: 550ms;
  --motion-easing: cubic-bezier(0.16, 1, 0.3, 1); /* Ultra smooth ease-out */
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--background);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Background Canvas */
#network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  background-color: var(--background);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--rounded-sm);
  transition: background var(--motion-fast);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Typography Utility */
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.highlight-cyan {
  color: var(--primary);
}

/* Translate Transition */
.lang-transition {
  transition: opacity var(--motion-fast) var(--motion-easing), transform var(--motion-fast) var(--motion-easing);
  opacity: 1;
  transform: translateY(0);
}

.lang-transition.fade-out {
  opacity: 0;
  transform: translateY(4px);
}

/* Scroll Reveal Core Classes (Modern, cinematic transitions) */
.reveal {
  opacity: 0;
  transform: translateY(35px) scale(0.985);
  transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered entries for Grid Cards */
.services-grid .service-card {
  opacity: 0;
  transform: translateY(50px) scale(0.96);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color var(--motion-normal) var(--motion-easing),
              box-shadow var(--motion-normal) var(--motion-easing);
  will-change: transform, opacity;
}

.services-grid.reveal-visible .service-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.services-grid.reveal-visible .service-card:nth-child(1) { transition-delay: 50ms; }
.services-grid.reveal-visible .service-card:nth-child(2) { transition-delay: 200ms; }
.services-grid.reveal-visible .service-card:nth-child(3) { transition-delay: 350ms; }
.services-grid.reveal-visible .service-card:nth-child(4) { transition-delay: 500ms; }

/* Subtle indicator line drawing */
.reveal-line {
  position: relative;
}
.reveal-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--primary);
  transition: width 1300ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 200ms;
}
.reveal-line.reveal-visible::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.938rem;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--rounded-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--motion-normal) var(--motion-easing);
}

.btn-primary {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary);
  color: #06080A;
  box-shadow: var(--shadows-glow);
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #06080A;
  font-weight: 600;
}

.btn-accent:hover {
  background-color: transparent;
  color: var(--primary);
  box-shadow: var(--shadows-glow);
  transform: translateY(-1px);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.062rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  transition: background-color var(--motion-normal) var(--motion-easing),
              border-color var(--motion-normal) var(--motion-easing);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background-color: rgba(6, 8, 10, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}

.header-container {
  max-width: 1360px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: height var(--motion-normal) var(--motion-easing);
}

.header.scrolled .logo-img {
  height: 32px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.locale-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  user-select: none;
}

.indicator-item {
  transition: color var(--motion-fast) var(--motion-easing);
}

.indicator-item.active {
  color: var(--text-primary);
  font-weight: 500;
}

.indicator-separator {
  color: var(--border);
}

.lang-toggle-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--rounded-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--motion-fast) var(--motion-easing);
}

.lang-toggle-btn:hover {
  border-color: var(--primary);
  background-color: rgba(18, 178, 193, 0.05);
}

.nav-contact-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: var(--rounded-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--motion-normal) var(--motion-easing);
}

.nav-contact-btn:hover {
  background-color: var(--primary);
  color: #06080A;
  box-shadow: var(--shadows-glow);
}

.arrow-icon {
  width: 14px;
  height: 14px;
  transition: transform var(--motion-fast) var(--motion-easing);
}

.nav-contact-btn:hover .arrow-icon {
  transform: translateX(3px);
}

/* Sections Base */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.content-wrapper {
  padding-top: 80px;
}

/* Hero Section */
.hero-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: var(--space-2xl) 0 var(--space-4xl);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.hero-section .tech-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 0.12em;
  background-color: rgba(18, 178, 193, 0.06);
  padding: 6px 14px;
  border-radius: var(--rounded-full);
  border: 1px solid rgba(18, 178, 193, 0.15);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: 1.188rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
}

/* Scroll Down indicator */
.scroll-down {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-down-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: var(--text-muted);
  transition: color var(--motion-fast) var(--motion-easing);
}

.scroll-down-link:hover {
  color: var(--primary);
}

.scroll-down-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-down-line {
  width: 1px;
  height: 40px;
  background-color: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-down-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  transform: translateY(-100%);
  animation: scrollDownAnim 2.2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scrollDownAnim {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* About Section */
.about-section {
  border-top: 1px solid var(--border-subtle);
  background-color: rgba(6, 8, 10, 0.4);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about-left {
  position: sticky;
  top: 120px;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.about-paragraph {
  font-size: 1.062rem;
  line-height: 1.6;
}

.highlight-text {
  font-size: 1.188rem;
  color: var(--text-primary);
  font-weight: 300;
  line-height: 1.5;
}

.negative-statements {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 1px solid var(--border);
  padding-left: var(--space-md);
  margin: var(--space-sm) 0;
}

.statement-item {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--motion-fast) var(--motion-easing);
  cursor: default;
}

.statement-item:hover {
  color: var(--primary);
}

.declaration-text {
  font-family: var(--font-display);
  font-size: 1.625rem;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: var(--space-sm);
  position: relative;
  padding-left: var(--space-md);
}

.declaration-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 2px;
  background-color: var(--primary);
  box-shadow: var(--shadows-glow);
}

/* Services Section */
.services-section {
  border-top: 1px solid var(--border-subtle);
  background-color: rgba(6, 8, 10, 0.2);
}

.services-header {
  margin-bottom: var(--space-2xl);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.service-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rounded-md);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--motion-normal) var(--motion-easing),
              box-shadow var(--motion-normal) var(--motion-easing),
              transform var(--motion-normal) var(--motion-easing);
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadows-glow);
  transform: translateY(-3px);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, var(--glow-color), transparent 60%);
  opacity: 0;
  transition: opacity var(--motion-normal) var(--motion-easing);
  pointer-events: none;
}

.service-card:hover .card-glow {
  opacity: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}

.card-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--primary);
  background-color: rgba(18, 178, 193, 0.05);
  border: 1px solid rgba(18, 178, 193, 0.12);
  padding: 2px 8px;
  border-radius: var(--rounded-xs);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.card-description {
  font-size: 0.938rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Manifesto Section */
.manifesto-section {
  border-top: 1px solid var(--border-subtle);
  background-color: rgba(6, 8, 10, 0.5);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: start;
}

.manifesto-left {
  position: sticky;
  top: 120px;
}

.manifesto-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.manifesto-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.manifesto-quotes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: var(--space-sm);
}

.quote-item {
  display: flex;
  gap: 12px;
  font-size: 1.062rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.quote-dash {
  color: var(--primary);
  user-select: none;
}

/* Final CTA Section */
.cta-section {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-5xl) 0;
}

.cta-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rounded-lg);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 150px;
  background: radial-gradient(ellipse at top, var(--glow-color) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card .mono-label {
  margin-bottom: var(--space-lg);
}

.cta-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2xs);
}

.cta-subtitle {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.cta-text {
  font-size: 1.062rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background-color: #030405;
  padding: var(--space-xl) 0;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer-logo {
  height: 18px;
  width: auto;
  object-fit: contain;
}

.copyright {
  font-size: 0.813rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-pilar {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.footer-dot {
  color: var(--border);
  font-size: 8px;
  user-select: none;
}

/* Floating WhatsApp Widget */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background-color: var(--primary);
  color: #06080A;
  border-radius: var(--rounded-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  text-decoration: none;
  transition: transform var(--motion-normal) var(--motion-easing),
              background-color var(--motion-normal) var(--motion-easing),
              box-shadow var(--motion-normal) var(--motion-easing);
  animation: pulseFloat 3s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  background-color: #FFFFFF;
  box-shadow: var(--shadows-glow);
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
}

@keyframes pulseFloat {
  0% { box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 0 0 rgba(18, 178, 193, 0.4); }
  70% { box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 0 15px rgba(18, 178, 193, 0); }
  100% { box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 0 0 rgba(18, 178, 193, 0); }
}

/* ==========================================================================
   RESPONSIVENESS (MOBILE-FIRST PRINCIPLE ADAPTATION)
   ========================================================================== */

/* Tablet Layout adjustments */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .about-grid, .manifesto-grid {
    gap: var(--space-xl);
  }
}

/* Mobile Layout adjustments */
@media (max-width: 768px) {
  /* Spacing overrides for mobile */
  :root {
    --space-4xl: 80px;
    --space-5xl: 100px;
  }

  .header-container {
    padding: 0 var(--space-md);
  }
  
  .logo-img {
    height: 30px;
  }
  
  .header.scrolled .logo-img {
    height: 25px;
  }

  .nav-contact-btn {
    padding: 6px 12px;
    font-size: 0.813rem;
  }

  .nav-contact-btn span {
    display: none; /* Hide 'Fale Conosco' text, keep icon for space saving */
  }
  
  .nav-contact-btn::after {
    content: 'Contato';
    display: inline;
  }

  .locale-indicator {
    display: none; /* Hide on mobile to save screen real estate */
  }

  .content-wrapper {
    padding-top: 80px;
  }

  .hero-section {
    min-height: auto;
    padding: 40px 0 80px;
  }

  .hero-title {
    font-size: 2.25rem;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
  }

  .hero-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .scroll-down {
    display: none;
  }

  .about-grid, .manifesto-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-left, .manifesto-left {
    position: static;
  }

  .section-title {
    font-size: 1.875rem;
    margin-bottom: var(--space-md);
  }

  .declaration-text {
    font-size: 1.313rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .service-card {
    padding: 30px 24px;
  }

  .manifesto-title {
    font-size: 1.75rem;
  }

  .cta-card {
    padding: 48px 24px;
  }

  .cta-title {
    font-size: 1.625rem;
  }

  .cta-subtitle {
    font-size: 1.313rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .footer-left {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .footer-right {
    flex-wrap: wrap;
    justify-content: center;
  }

  .whatsapp-float {
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
  }

  .whatsapp-icon {
    width: 20px;
    height: 20px;
  }
}
