/* ============================================
   ASDE Connect - Commercial Website Styles
   Design System: Professional B2B Theme
   ============================================ */

/* CSS Variables - Light Mode Only */
:root {
  /* Brand Colors */
  --brand-primary: #0052CC;
  --brand-secondary: #172B4D;
  --accent-success: #00875A;
  --accent-premium: #FFAB00;
  --whatsapp-green: #25D366;

  /* Neutral Scale */
  --surface-light: #F7F8FC;
  --surface-white: #FFFFFF;
  --text-primary: rgba(23, 43, 77, 0.92);
  --text-secondary: #5E6C84;
  --text-tertiary: #8993A4;
  --border-light: rgba(9, 30, 66, 0.13);
  --border-medium: rgba(9, 30, 66, 0.22);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(9, 30, 66, 0.06);
  --shadow-md: 0 4px 12px rgba(9, 30, 66, 0.08);
  --shadow-lg: 0 8px 24px rgba(9, 30, 66, 0.12);
  --shadow-xl: 0 20px 40px rgba(9, 30, 66, 0.15);

  /* Spacing (8pt grid) */
  --space-micro: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-xxl: 96px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1280px;
  --content-width: 720px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background:
    radial-gradient(at 80% 0%, rgba(0, 82, 204, 0.08), transparent 50%),
    radial-gradient(at 20% 100%, rgba(0, 135, 90, 0.06), transparent 50%),
    var(--surface-light);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font: inherit;
  cursor: pointer;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.05;
}

h2 {
  font-size: 28px;
  letter-spacing: -0.4px;
}

h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

h4 {
  font-size: 18px;
  font-weight: 600;
}

p {
  margin: 0;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.8;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-weight: 900;
  font-size: 16px;
  color: var(--text-primary);
}

.brand-text span {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.nav a {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.nav a:hover {
  color: var(--text-primary);
  background: rgba(0, 82, 204, 0.08);
}

.nav a.active {
  color: var(--brand-primary);
  background: rgba(0, 82, 204, 0.12);
  font-weight: 600;
}

.btn-nav-cta {
  padding: 10px 18px !important;
  background: linear-gradient(135deg, var(--brand-primary), #0065FF) !important;
  color: white !important;
  font-weight: 600 !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 2px 8px rgba(0, 82, 204, 0.25);
}

.btn-nav-cta:hover {
  background: linear-gradient(135deg, #0065FF, var(--brand-primary)) !important;
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.35) !important;
  transform: translateY(-1px);
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  color: white;
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  background: #20bd5a;
}

.whatsapp-float svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* ============================================
   MAIN LAYOUT
   ============================================ */

#app {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
  margin: 0;
}

section:first-child {
  padding-top: var(--space-lg);
}

/* Animation for scroll reveal */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), #0065FF);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 82, 204, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: white;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  box-shadow: 0 2px 8px rgba(0, 82, 204, 0.1);
}

.btn-secondary:hover {
  background: rgba(0, 82, 204, 0.08);
  border-color: #0065FF;
  color: #0065FF;
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  font-size: 18px;
  padding: 18px 32px;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

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

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  min-height: 85vh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.eyebrow {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(0, 82, 204, 0.1);
  border: 1px solid rgba(0, 82, 204, 0.2);
  border-radius: var(--radius-full);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.hero h1 {
  margin: var(--space-sm) 0;
  color: var(--brand-secondary);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.trust-badges {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-badge svg {
  width: 20px;
  height: 20px;
  color: var(--accent-success);
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgba(0, 82, 204, 0.2);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: rotate(0deg);
}

.hero-image-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  max-width: 280px;
}

.hero-image-card h4 {
  font-size: 16px;
  margin-bottom: var(--space-xs);
  color: var(--brand-secondary);
}

.hero-image-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  text-align: center;
  max-width: var(--content-width);
  margin: 0 auto var(--space-xl);
}

.section-header h2 {
  color: var(--brand-secondary);
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   TWO COLUMN COMPARISON (Sistema)
   ============================================ */

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

.comparison-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.comparison-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(0, 82, 204, 0.1);
  border: 1px solid rgba(0, 82, 204, 0.2);
  border-radius: var(--radius-full);
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
}

.comparison-screenshot {
  width: 100%;
  max-width: 350px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-left: auto;
  margin-right: auto;
}

.comparison-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.comparison-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
}

.comparison-feature svg {
  width: 20px;
  height: 20px;
  color: var(--accent-success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   FEATURE GRID (Hardware & Plataforma)
   ============================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.feature-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 82, 204, 0.3);
}

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--brand-primary);
  margin-bottom: var(--space-xs);
}

.feature-card h3 {
  font-size: 20px;
  color: var(--brand-secondary);
  margin-bottom: var(--space-xs);
}

.feature-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.feature-thumbnail {
  width: 100%;
  max-width: 350px;
  border-radius: var(--radius-sm);
  margin-top: var(--space-sm);
  border: 1px solid var(--border-light);
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   ROLE CARDS
   ============================================ */

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

.role-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.role-card.admin {
  border-color: rgba(255, 171, 0, 0.3);
  background: linear-gradient(135deg, rgba(255, 171, 0, 0.03) 0%, white 50%);
}

.role-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(0, 82, 204, 0.12);
  border: 1px solid rgba(0, 82, 204, 0.2);
  border-radius: var(--radius-full);
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.role-card.admin .role-badge {
  background: rgba(255, 171, 0, 0.12);
  border-color: rgba(255, 171, 0, 0.3);
  color: #FF8B00;
}

.role-card h3 {
  font-size: 18px;
  margin: var(--space-sm) 0;
  color: var(--brand-secondary);
}

.role-permissions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-sm);
}

.role-permission {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.role-permission.allowed {
  color: var(--text-secondary);
}

.role-permission.denied {
  color: var(--text-tertiary);
}

.role-permission svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.role-permission.allowed svg {
  color: var(--accent-success);
}

.role-permission.denied svg {
  color: var(--text-tertiary);
}

/* ============================================
   SCREENSHOT GALLERY
   ============================================ */

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

.screenshot-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  background: var(--surface-white);
}

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.screenshot-card img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.screenshot-card:hover img {
  transform: scale(1.05);
}

.screenshot-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  font-size: 14px;
  font-weight: 600;
}

/* ============================================
   CONTACT CTA SECTION
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #0065FF 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-xxl) var(--space-xl);
  text-align: center;
  color: white;
  box-shadow: var(--shadow-xl);
  margin: var(--space-xl) 0;
}

.cta-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
}

.cta-section h2 {
  color: white;
  font-size: 36px;
  margin-bottom: var(--space-sm);
}

.cta-section p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  opacity: 0.95;
}

.cta-secondary-text {
  font-size: 14px;
  margin-top: var(--space-md);
  opacity: 0.85;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: white;
  border-top: 1px solid var(--border-light);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xxl);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-xl);
}

.footer-company h4 {
  font-size: 18px;
  color: var(--brand-secondary);
  margin-bottom: var(--space-sm);
}

.footer-company p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 4px 0;
}

.footer-links h4 {
  font-size: 14px;
  color: var(--brand-secondary);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links-list a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-lg) auto 0;
  padding: var(--space-md) var(--space-md) 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --space-xl: 48px;
    --space-xxl: 72px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: var(--space-lg);
  }

  .hero-image-card {
    position: static;
    margin-top: var(--space-md);
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .roles-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --space-md: 20px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
  }

  body {
    font-size: 15px;
  }

  .header-inner {
    padding: var(--space-sm);
  }

  .nav {
    display: none; /* Simplified for mobile - could add hamburger menu */
  }

  .brand-text span {
    display: none;
  }

  h1 {
    font-size: clamp(32px, 8vw, 48px);
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  .hero {
    padding-top: var(--space-md);
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .trust-badges {
    flex-direction: column;
    gap: var(--space-sm);
  }

  section {
    padding: var(--space-lg) 0;
  }

  .section-header {
    margin-bottom: var(--space-lg);
  }

  .section-header h2 {
    font-size: 24px;
  }

  .section-header p {
    font-size: 16px;
  }

  .feature-grid,
  .feature-grid-2,
  .feature-grid-3 {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: var(--space-xl) var(--space-md);
  }

  .cta-section h2 {
    font-size: 28px;
  }

  .cta-section p {
    font-size: 16px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* Mobile Navigation - Show simplified version */
@media (max-width: 768px) {
  .nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-light);
    padding: var(--space-xs);
    justify-content: space-around;
    box-shadow: 0 -2px 12px rgba(9, 30, 66, 0.08);
  }

  .nav a {
    font-size: 11px;
    padding: var(--space-xs);
    flex: 1;
    text-align: center;
    max-width: 80px;
  }

  .btn-nav-cta {
    display: none !important;
  }

  /* Add padding to body to account for fixed bottom nav */
  body {
    padding-bottom: 60px;
  }
}
