/*
 *
 * @Copyright 2025 VOID SOFTWARE, S.A.
 *
 */

/* PRECISION TECH - Industrial 3D Printing Design System */
:root {
  /* Dark Foundation */
  --bg-dark: #0F1419;
  --bg-darker: #000000;
  --surface: #1A1F29;
  --surface-hover: #232936;
  
  /* Light Elements */
  --bg-light: #FFFFFF;
  --text-light: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  /* Brand Accents - Premium Purple/Pink */
  --brand-pink: #A855F7;
  --brand-pink-hover: #8B5CF6;
  --electric-cyan: #EC4899;
  --electric-cyan-hover: #DB2777;
  --electric-blue: #0EA5E9;
  --tech-orange: #FF6B35;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  --gradient-cyan: linear-gradient(135deg, #DB2777 0%, #EC4899 100%);
  --gradient-pink: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
  --gradient-dark: linear-gradient(180deg, #0F1419 0%, #000000 100%);
  
  /* Borders & Shadows */
  --border-subtle: rgba(148, 163, 184, 0.1);
  --border-medium: rgba(148, 163, 184, 0.2);
  --glow-cyan: 0 0 20px rgba(236, 72, 153, 0.3);
  --glow-pink: 0 0 20px rgba(168, 85, 247, 0.4);
  --glow-blue: 0 0 30px rgba(14, 165, 233, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background: var(--bg-dark);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1200px, 94%);
  margin: 0 auto;
}

/* HEADER - Premium Tech */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.site-nav a:hover {
  color: var(--electric-cyan);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.nav-group {
  position: relative;
}

.nav-group::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.nav-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-trigger:hover {
  color: var(--brand-pink);
}

.chev {
  display: inline-block;
  transition: transform 0.3s ease;
}

.nav-trigger[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 12px;
  display: none;
  z-index: 200;
  margin-top: 0;
}

.nav-group.open .mega,
.nav-group:hover .mega,
.nav-group:focus-within .mega {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mega a {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  padding: 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.mega a:hover {
  background: var(--surface-hover);
  color: var(--electric-cyan);
}

.mega .caption {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

#page-nav {
  display: flex;
  gap: 32px;
}

/* HERO - Bold Impact */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  min-height: 500px;
}

.hero-copy {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--text-light);
}

.lead {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* BUTTONS - Powerful CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-accent {
  background: var(--gradient-pink);
  color: white;
  box-shadow: var(--glow-pink);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233, 30, 99, 0.6);
  background: var(--brand-pink);
}

.btn-ghost {
  background: transparent;
  border-color: var(--brand-pink);
  color: var(--brand-pink);
}

.btn-ghost:hover {
  background: var(--brand-pink);
  border-color: var(--brand-pink);
  color: white;
  box-shadow: var(--glow-pink);
}

.hero-media {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 48%;
  max-width: 600px;
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
}

/* ============================================
   MOBILE SECTION LAYOUT
   ============================================ */

.mobile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 70vh;
}

.mobile-text-section {
  max-width: 600px;
  justify-self: start;
}

.mobile-devices-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

@media (max-width: 900px) {
  .mobile-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: auto;
  }
  
  .mobile-text-section {
    max-width: 100%;
  }
  
  .mobile-devices-section {
    min-height: 350px;
  }
}


/* SECTIONS */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--surface);
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 48px;
  text-align: center;
}

/* CARDS - Sleek Modules */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-pink);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--glow-pink);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  font-size: 22px;
  margin: 0 0 16px;
  color: var(--text-light);
}

.card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.checklist {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.checklist li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-muted);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-pink);
  font-weight: 700;
}

/* TIMELINE SHOWCASE */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 48px auto 0;
  padding-left: 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 29px;
  top: 20px;
  bottom: 80px;
  width: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  box-shadow: var(--glow-cyan);
  z-index: 2;
}

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 24px 28px;
  position: relative;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  border-color: var(--brand-pink);
  transform: translateX(8px);
  box-shadow: var(--glow-pink);
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 24px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 12px solid var(--border-medium);
  transition: border-right-color 0.3s ease;
}

.timeline-content:hover::before {
  border-right-color: var(--brand-pink);
}

.timeline-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-pink);
  margin: 0 0 12px;
}

.timeline-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 16px;
}

@media (max-width: 640px) {
  .timeline::before {
    left: 18px;
  }
  
  .timeline-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .timeline-item {
    padding-left: 70px;
  }
}

/* FOOTER - Minimal Premium */
.contact-email {
  text-align: center;
  padding: 40px 0;
  background: var(--surface);
}

.contact-email-link {
  cursor: pointer;
  text-decoration: none;
  border-bottom: 2px solid var(--brand-pink);
  transition: all 0.3s ease;
  color: var(--brand-pink);
}

.contact-email-link:hover {
  color: var(--text-light);
  border-bottom-color: var(--text-light);
}

.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px;
}

.footer-main-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.footer-main-logo img {
  height: 120px;
  filter: brightness(1.2);
}

.footer-partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-bottom: 32px;
  opacity: 0.7;
}

.logo-prr img {
  height: 60px;
}

.legal {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

.legal a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 16px;
  transition: color 0.2s ease;
}

.legal a:hover {
  color: var(--electric-cyan);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .hero-media {
    right: 0;
    width: 55%;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }
  
  .hero-copy {
    max-width: 100%;
  }
  
  .hero-media {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  .site-nav {
    gap: 16px;
  }
  
  .hero {
    padding: 60px 0 40px;
  }
  
  .section {
    padding: 60px 0;
  }
}

.visually-hidden {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
