/* ===== DESIGN TOKENS ===== */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #0f172a;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --brand-primary: #1e40af;
  --brand-secondary: #2563eb;
  --brand-accent: #3b82f6;
  --border-light: #e2e8f0;
  --border-dark: #334155;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.2s ease-in-out;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-secondary); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--bg-secondary); }
.bg-dark { background-color: var(--bg-tertiary); color: var(--text-light); }

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-secondary);
  margin-bottom: 12px;
}

.bg-dark .section-label { color: var(--brand-accent); }

.section-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.bg-dark .section-title { color: var(--text-light); }

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.7;
}

.bg-dark .section-subtitle { color: #cbd5e1; }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #ffffff;
  padding: 20px 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-light);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  z-index: 1001;
}
.nav-logo:hover { color: var(--text-primary); }
.nav-logo .logo-icon {
  width: 32px; height: 32px;
  background: var(--brand-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.nav-links a:hover,
.nav-links a.active { color: var(--brand-primary); }

.nav-cta {
  padding: 10px 24px !important;
  background: var(--brand-primary) !important;
  border-radius: var(--radius-sm) !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--brand-secondary) !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== BUTTONS ===== */
.btn-primary {
  padding: 14px 28px;
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-primary:hover { background: var(--brand-secondary); border-color: var(--brand-secondary); color: #fff; }

.btn-secondary {
  padding: 14px 28px;
  background: transparent;
  border: 1px solid var(--text-secondary);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.bg-dark .btn-secondary { border-color: #cbd5e1; color: #fff; }
.bg-dark .btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* ===== HERO ===== */
.hero {
  padding: 160px 0 100px;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== STATS ===== */
.stats-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-light);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 8px;
  line-height: 1;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== PILLARS / SERVICES ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 50px;
}
.pillar-card {
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.pillar-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pillar-icon {
  width: 56px; height: 56px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.pillar-icon svg { width: 28px; height: 28px; color: var(--brand-primary); }
.pillar-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.pillar-card p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 24px; }
.pillar-features { display: flex; flex-direction: column; gap: 12px; }
.pillar-feature-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-primary); }
.pillar-feature-item svg { width: 16px; height: 16px; color: var(--brand-secondary); flex-shrink: 0; }

/* ===== PRODUCTS TABS ===== */
.products-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 24px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}
.tab-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.tab-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.product-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: none;
  transition: var(--transition);
}
.product-card.visible { display: block; animation: fadeIn 0.4s ease; }
.product-card:hover { box-shadow: var(--shadow-md); border-color: var(--brand-secondary); }

.product-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.product-icon {
  width: 48px; height: 48px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-icon svg { width: 24px; height: 24px; color: var(--brand-primary); }
.product-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--text-primary); }
.product-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.product-card p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary);
}
.product-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.product-link:hover svg { transform: translateX(3px); }

/* ===== COLLABORATIONS ===== */
.collab-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 50px;
}
.collab-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  color: var(--text-light);
  overflow: hidden;
  align-items: center;
}
.collab-content {
  padding: 40px;
}
.collab-media {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: var(--bg-secondary);
  position: relative;
}
.collab-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collab-partner {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-accent);
  margin-bottom: 12px;
  display: block;
}
.collab-card h3 { font-size: 1.75rem; font-weight: 700; margin-bottom: 16px; }
.collab-card p { font-size: 1rem; color: #cbd5e1; line-height: 1.7; margin-bottom: 24px; }

/* ===== BLOG SECTION ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 50px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.blog-image {
  width: 100%;
  height: 200px;
  background: var(--bg-secondary);
  position: relative;
}
.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}
.blog-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.4;
}
.blog-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}
.blog-link {
  font-weight: 600;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.blog-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.blog-link:hover svg { transform: translateX(4px); }

/* ===== RESPONSIVE VIDEO EMBED ===== */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: #000;
  width: 100%;
}
.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}
.about-features { display: grid; gap: 24px; }
.about-feature {
  display: flex;
  gap: 16px;
}
.about-icon {
  width: 48px; height: 48px; min-width: 48px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
}
.about-icon svg { width: 24px; height: 24px; }
.about-feature h4 { font-size: 1.125rem; font-weight: 700; margin-bottom: 6px; }
.about-feature p { font-size: 0.95rem; color: var(--text-secondary); }

/* ===== CTA ===== */
.cta-section {
  text-align: center;
}
.cta-box {
  padding: 80px 40px;
  background: var(--brand-primary);
  border-radius: var(--radius-md);
  color: #fff;
}
.cta-box .section-title, 
.cta-box .section-subtitle { color: #fff; }
.cta-box .section-subtitle { margin: 0 auto 32px; opacity: 0.9; }
.btn-cta {
  padding: 14px 32px;
  background: #fff;
  color: var(--brand-primary);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  transition: var(--transition);
}
.btn-cta:hover { background: var(--bg-secondary); color: var(--brand-primary); transform: translateY(-2px); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-tertiary);
  color: var(--text-light);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand .nav-logo { color: #fff; margin-bottom: 16px; display: inline-flex; }
.footer-brand p { font-size: 0.95rem; color: #cbd5e1; max-width: 320px; }
.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: #fff;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: #cbd5e1; font-size: 0.95rem; }
.footer-col a:hover { color: var(--brand-accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.9rem;
  color: #94a3b8;
}
.footer-socials { display: flex; gap: 16px; }
.footer-socials a { 
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; 
  height: 40px; 
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff; 
  transition: var(--transition);
}
.footer-socials a svg { width: 20px; height: 20px; }
.footer-socials a:hover { background: var(--brand-primary); transform: translateY(-3px); }

/* Sticky Contact Buttons */
.sticky-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}
.sticky-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.sticky-btn:hover { transform: scale(1.1); }
.sticky-btn.whatsapp { background: #25D366; }
.sticky-btn.mail { background: var(--brand-primary); }
.sticky-btn svg { width: 24px; height: 24px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .collab-card { grid-template-columns: 1fr; }
  .collab-media { min-height: 250px; }
}

@media (max-width: 768px) {
  .section-padding { padding: 60px 0; }
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2.25rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  
  .nav-links {
    position: fixed;
    top: 73px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .menu-toggle { display: flex; }
  .navbar.scrolled .nav-links { top: 57px; }
  
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
