/* CSS Reset & Variables */
:root {
  /* Color Palette - AutoCAD Dark Mode Inspired */
  --bg-main: #0a0f18;
  --bg-header: rgba(10, 15, 24, 0.85);
  --bg-card: rgba(17, 25, 40, 0.65);
  --bg-card-hover: rgba(22, 34, 54, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-glow: rgba(6, 182, 212, 0.2);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  
  /* Neons */
  --accent-cyan: #06b6d4;
  --accent-mint: #10b981;
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Outfit', sans-serif;
  --font-code: 'Fira Code', monospace;
  
  /* Layout Constants */
  --container-width: 1200px;
  --header-height: 80px;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  --glass-effect: backdrop-filter: blur(12px) saturate(160%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: #121316;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  
  /* AutoCAD Viewport Grid Pattern */
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.03) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 45%),
    /* Major grid lines (every 100px) */
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    /* Minor grid lines (every 20px) */
    linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan) 30%, var(--accent-mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.font-code {
  font-family: var(--font-code);
}

.text-center { text-align: center; }
.my-0 { margin-top: 0; margin-bottom: 0; }
.my-1 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-2 { margin-top: 1rem; margin-bottom: 1rem; }
.my-3 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.d-none { display: none !important; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-center { align-items: center; }
.w-100 { width: 100%; }

/* Grid System */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Sections */
.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.section-header {
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent-cyan);
  border: 1px solid var(--border-color-glow);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  background: rgba(6, 182, 212, 0.05);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-cta {
  background: var(--accent-cyan);
  color: #000000 !important;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.15);
}

.btn-cta:hover {
  background: #ffffff;
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.badge-mint { background: rgba(16, 185, 129, 0.15); color: var(--accent-mint); }
.badge-red { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }
.badge-blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--bg-card);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-color-glow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

/* Glassmorphism Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-card {
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Cards Glowing Border Accents */
.card-glow-cyan:hover {
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.25);
  border-color: var(--accent-cyan);
}
.card-glow-mint:hover {
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.25);
  border-color: var(--accent-mint);
}
.card-glow-blue:hover {
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.25);
  border-color: var(--accent-blue);
}
.card-glow-red:hover {
  box-shadow: 0 10px 30px -10px rgba(239, 68, 68, 0.25);
  border-color: var(--accent-red);
}

/* Header & Navbar */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: transparent;
  z-index: 100;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}

.main-header.scrolled {
  background: var(--bg-header);
  height: 70px;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.6rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: #ffffff;
}

.logo-text .highlight {
  color: var(--accent-cyan);
}

.nav-toggle {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

@media (min-width: 769px) {
  .nav-list {
    gap: 0;
    background: #191c26;
    padding: 0 4px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
  }

  .nav-list li {
    display: flex;
    align-items: center;
  }

  .nav-list li::after {
    content: '/';
    color: rgba(255, 255, 255, 0.15);
    margin-left: 4px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    pointer-events: none;
  }
  
  .nav-list li:last-child::after {
    display: none;
  }

  .nav-link {
    padding: 6px 18px;
    font-size: 0.85rem;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    border-radius: 0;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-link.active {
    background: #2d323e !important;
    box-shadow: inset 0 2px 0 var(--accent-cyan);
    font-weight: 700;
  }

  .nav-tab-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 6px;
    font-size: 0.75rem;
  }

  .nav-tab-plus:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  
  .nav-link {
    width: 100%;
    display: block;
    font-size: 1.1rem;
  }
  
  .btn-cta {
    width: 100%;
    text-center: center;
  }
}

/* Hero Section Styling */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title { font-size: 4.8rem; }
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
    padding: 0 2rem;
  }
}

.feat-card {
  padding: 2.2rem;
}

.feat-card .card-icon {
  font-size: 2rem;
  color: var(--accent-cyan);
  margin-bottom: 1.2rem;
}

.feat-card:nth-child(1) .card-icon { color: var(--accent-red); }
.feat-card:nth-child(2) .card-icon { color: var(--accent-cyan); }
.feat-card:nth-child(3) .card-icon { color: var(--accent-mint); }

/* Services Section Styling */
.services-section {
  position: relative;
}

.service-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.service-img-container {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-img {
  transform: scale(1.06);
}

.service-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(7, 11, 18, 0.85);
  border: 1px solid var(--border-color-glow);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--accent-cyan);
  backdrop-filter: blur(4px);
}

.service-body {
  padding: 2rem;
}

.service-card-wide {
  grid-column: 1 / -1;
}

.service-img-container-wide {
  height: 240px;
}

.border-left-divider {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .service-card-wide {
    grid-column: span 2;
  }
  
  .service-img-container-wide {
    height: 320px;
  }
  
  .border-left-divider {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    border-left: 1px solid var(--border-color);
    padding-left: 2rem;
  }
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.service-list {
  list-style: none;
  margin-top: 1rem;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.service-list li i {
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

.accent-cyan { color: var(--accent-cyan); }
.accent-mint { color: var(--accent-mint); }
.accent-blue { color: var(--accent-blue); }
.accent-red { color: var(--accent-red); }

/* How It Works Timeline */
.steps-timeline {
  position: relative;
  padding-left: 2.5rem;
}

.steps-timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  width: 2px;
  height: calc(100% - 1.5rem);
  background: var(--border-color);
}

.step-item {
  position: relative;
  margin-bottom: 2rem;
}

.step-item:last-child {
  margin-bottom: 0;
}

.step-number {
  position: absolute;
  left: -2.5rem;
  width: 32px;
  height: 32px;
  background: var(--bg-main);
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.step-body {
  padding-left: 1rem;
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Tabs Navigation & Layout */
.tab-nav-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.tab-nav {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.8rem 1.6rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  color: #ffffff;
}

.tab-btn.active {
  background: var(--accent-cyan);
  color: #000000;
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.2);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Program Content Details */
.program-intro {
  margin-bottom: 2rem;
}

.program-name {
  font-size: 2rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.program-name .version {
  font-size: 1rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 500;
  vertical-align: middle;
}

/* Accordion Styling */
.features-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.accordion-item.active {
  border-color: var(--accent-cyan);
}

.accordion-header {
  padding: 1.2rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  user-select: none;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.accordion-content {
  padding: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.accordion-item.active .accordion-content {
  padding: 1.5rem;
  height: auto;
  opacity: 1;
}

.feature-ol {
  list-style: none;
  counter-reset: my-counter;
}

.feature-ol li {
  counter-increment: my-counter;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.feature-ol li::before {
  content: counter(my-counter);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 20px;
  height: 20px;
  background: rgba(6, 182, 212, 0.15);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.feature-p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Video Wrapper & Lightboxes */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-title);
}

.video-caption i {
  color: var(--accent-red);
}

/* Screenshot Galleries */
.media-column {
  display: flex;
  flex-direction: column;
}

.gallery-title {
  font-size: 1.15rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

/* License Cards & Tables */
.license-card {
  padding: 1.5rem;
  border-radius: 8px;
}

.license-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.license-body-wrapper {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

@media (max-width: 576px) {
  .license-body-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
}

.license-thumbnail {
  width: 240px;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.license-list {
  list-style: none;
  font-size: 0.85rem;
}

.license-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.license-list li i {
  color: var(--accent-cyan);
}

/* Flow Steps PLATO-RAN */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.flow-step {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.01);
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.flow-num {
  font-family: var(--font-code);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.1);
  height: fit-content;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.flow-body h5 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.flow-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Quote blocks */
.callout-quote {
  border-left: 3px solid var(--accent-blue);
  background: rgba(59, 130, 246, 0.04);
  padding: 1rem;
  border-radius: 0 8px 8px 0;
}

.quote-text {
  font-family: var(--font-title);
  color: #ffffff;
  font-style: italic;
  font-size: 0.95rem;
}

.quote-text i {
  color: var(--accent-blue);
  opacity: 0.5;
}

/* Checklist */
.check-list {
  list-style: none;
  margin-top: 1rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.check-list li i {
  margin-top: 0.25rem;
}

/* Insejupy banner block */
.insejupy-banner {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.logo-catastro {
  height: 60px;
  object-fit: contain;
  border-radius: 4px;
}

.people-catastro {
  width: calc(100% - 100px);
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

/* Download Cards Grid */
.download-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.download-media {
  margin-top: 1.5rem;
}

/* Advantages Section */
.adv-card {
  text-align: center;
}

.adv-icon {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.adv-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.adv-text {
  font-size: 0.95rem;
}

/* Contact Info list */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--border-color-glow);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  color: var(--accent-cyan);
}

.info-body h5 {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.info-body p {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
}

.link-hover {
  text-decoration: none;
  color: #ffffff;
  transition: color 0.3s ease;
}

.link-hover:hover {
  color: var(--accent-cyan);
}

/* Contact Form container styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group select option {
  background-color: #0d121f;
  color: #ffffff;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.form-status-msg {
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status-msg.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-mint);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status-msg.error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Footer styling */
.main-footer {
  background: #06090e;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0;
}

.footer-grid {
  align-items: flex-start;
}

.footer-desc {
  font-size: 0.9rem;
}

.footer-heading {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: #ffffff;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.6rem;
}

.footer-links ul li a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--accent-cyan);
}

/* Animations Class Utilities */
.animate-up {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Lightbox overlay styling for fullscreen screenshot zoom */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 9, 14, 0.95);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--accent-cyan);
}

/* AutoCAD Cursor styling */
.cad-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.15s ease;
}

.cad-cursor.hidden {
  opacity: 0;
}

.cad-pickbox {
  pointer-events: none !important;
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  transform: translate(-50%, -50%);
}

.cad-line-x {
  pointer-events: none !important;
  position: absolute;
  width: 100vw;
  height: 1px;
  background: rgba(239, 68, 68, 0.45); /* Red AutoCAD X axis */
  transform: translate(-50%, -50%);
  left: 0;
  top: 0;
}

.cad-line-y {
  pointer-events: none !important;
  position: absolute;
  width: 1px;
  height: 100vh;
  background: rgba(34, 197, 94, 0.45); /* Green AutoCAD Y axis */
  transform: translate(-50%, -50%);
  left: 0;
  top: 0;
}

/* Body override to hide cursor */
body {
  cursor: none;
}

/* Restore cursors for interactive items */
a, button, input, select, textarea, .tab-btn, .accordion-header, .main-header, .whatsapp-float, .lightbox-close, .lightbox-overlay {
  cursor: auto; /* Browser will show standard cursor or hand pointer */
}

/* UCS Icon */
.ucs-icon {
  position: fixed;
  bottom: 45px;
  left: 24px;
  width: 60px;
  height: 60px;
  pointer-events: none;
  z-index: 9996;
  opacity: 0.7;
}

.axis-origin {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
}

.axis-y {
  position: absolute;
  bottom: 0;
  left: 3px;
  width: 2px;
  height: 50px;
  background: var(--accent-mint); /* green Y axis */
}

.axis-y::after {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 6px solid var(--accent-mint);
}

.axis-y .axis-label {
  position: absolute;
  top: -15px;
  left: -3px;
  font-size: 10px;
  color: var(--accent-mint);
  font-weight: 700;
}

.axis-x {
  position: absolute;
  bottom: 3px;
  left: 0;
  height: 2px;
  width: 50px;
  background: var(--accent-red); /* red X axis */
}

.axis-x::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 6px solid var(--accent-red);
}

.axis-x .axis-label {
  position: absolute;
  right: -15px;
  top: -4px;
  font-size: 10px;
  color: var(--accent-red);
  font-weight: 700;
}

/* ViewCube */
.viewcube-container {
  position: fixed;
  top: calc(var(--header-height) + 20px);
  right: 24px;
  width: 90px;
  height: 90px;
  pointer-events: none;
  z-index: 9996;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none;
}

@media (min-width: 992px) {
  .viewcube-container {
    display: block;
  }
}

.viewcube-container:hover {
  opacity: 0.95;
  transform: rotate(5deg) scale(1.05);
}

.viewcube-compass {
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(18, 19, 22, 0.4);
}

.viewcube-compass span {
  position: absolute;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
}

.compass-n { top: 2px; left: 50%; transform: translateX(-50%); }
.compass-e { right: 4px; top: 50%; transform: translateY(-50%); }
.compass-s { bottom: 2px; left: 50%; transform: translateX(-50%); }
.compass-w { left: 4px; top: 50%; transform: translateY(-50%); }

.viewcube-box {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 60px;
  height: 60px;
  background: #3e4450;
  border: 1.5px solid #6c7689;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4), var(--shadow-sm);
}

.cube-face {
  color: #d1d5db;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.viewcube-wcs {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--text-muted);
}

/* AutoCAD Status Bar */
.cad-status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35px;
  background: #21252d;
  border-top: 1px solid #383c47;
  z-index: 9998;
  color: #a4a9b2;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  user-select: none;
}

.status-left, .status-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-tab {
  padding: 10px 12px;
  height: 35px;
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  border-top: 2px solid transparent;
  transition: all 0.2s ease;
}

.status-tab.active {
  background: #121316;
  color: #ffffff;
  border-top-color: var(--accent-cyan);
}

.status-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.status-divider {
  color: #383c47;
}

.status-coords {
  font-size: 11px;
  color: #9ca3af;
  min-width: 200px;
}

.status-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
}

.status-btn.active {
  background: #3e4450;
  color: var(--accent-cyan);
}

.status-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Adjust footer margin to avoid overlapping with status bar */
.main-footer {
  padding-bottom: calc(4rem + 120px); /* Extra space for command line + status bar */
}

/* AutoCAD Command Line styling */
.cad-command-line {
  position: fixed;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 650px;
  background: rgba(33, 37, 45, 0.95);
  border: 1px solid #383c47;
  border-radius: 6px;
  z-index: 9997;
  box-shadow: var(--shadow-lg), 0 0 15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: opacity 0.15s ease;
}

.cad-command-line.hidden {
  opacity: 0;
  pointer-events: none;
}

.command-history {
  padding: 8px 12px;
  max-height: 70px;
  overflow-y: auto;
  font-size: 11px;
  color: #a4a9b2;
  border-bottom: 1px solid #2d323e;
  line-height: 1.4;
  text-align: left;
}

.command-history::-webkit-scrollbar {
  width: 4px;
}
.command-history::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

.command-input-container {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 4px 10px;
}

.command-icon {
  color: #4b5563;
  font-size: 12px;
  margin-right: 8px;
}

#command-input {
  flex-grow: 1;
  border: none;
  background: transparent;
  color: #111827;
  font-family: var(--font-code);
  font-size: 12px;
  padding: 4px 0;
  outline: none;
  cursor: text;
}

#command-input::placeholder {
  color: #9ca3af;
  font-style: italic;
}

/* ==========================================================================
   AutoCAD Layout Mode (Light Theme Overrides)
   ========================================================================== */

body.light-mode-layout {
  background-color: #f1f5f9; /* Light drawing sheet background */
  color: #0f172a;
  
  --bg-main: #f1f5f9;
  --bg-header: rgba(241, 245, 249, 0.85);
  --bg-card: rgba(255, 255, 255, 0.65);
  --bg-card-hover: rgba(255, 255, 255, 0.85);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-glow: rgba(59, 130, 246, 0.2);
  
  --text-main: #0f172a;
  --text-muted: #475569;

  /* AutoCAD Light Layout Grid Pattern */
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.02) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.02) 0%, transparent 45%),
    /* Major grid lines */
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    /* Minor grid lines */
    linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}

body.light-mode-layout h1, 
body.light-mode-layout h2, 
body.light-mode-layout h3, 
body.light-mode-layout h4, 
body.light-mode-layout h5, 
body.light-mode-layout h6 {
  color: #0f172a;
}

body.light-mode-layout .logo-text {
  color: #0f172a;
}

body.light-mode-layout .logo-text .highlight {
  color: var(--accent-blue);
}

body.light-mode-layout .nav-link {
  color: #475569;
}

@media (min-width: 769px) {
  body.light-mode-layout .nav-list {
    background: #cbd5e1;
    border: 1px solid rgba(0, 0, 0, 0.08);
  }

  body.light-mode-layout .nav-list li::after {
    color: rgba(0, 0, 0, 0.15);
  }
  
  body.light-mode-layout .nav-link.active {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: inset 0 2px 0 var(--accent-blue);
  }
  
  body.light-mode-layout .nav-link:hover:not(.active) {
    background: rgba(0, 0, 0, 0.04);
    color: #0f172a;
  }
  
  body.light-mode-layout .nav-tab-plus {
    color: rgba(0, 0, 0, 0.4);
  }
  
  body.light-mode-layout .nav-tab-plus:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.06);
  }
}

body.light-mode-layout .nav-menu {
  background: #f1f5f9;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  body.light-mode-layout .nav-menu {
    background: #f1f5f9;
  }
}

body.light-mode-layout .main-header.scrolled {
  background: rgba(241, 245, 249, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode-layout .cad-cursor .cad-pickbox {
  border-color: rgba(15, 23, 42, 0.8);
}

body.light-mode-layout .cad-cursor .cad-line-x,
body.light-mode-layout .cad-cursor .cad-line-y {
  background: rgba(15, 23, 42, 0.15);
}

body.light-mode-layout .axis-origin {
  background: #0f172a;
}

body.light-mode-layout .viewcube-box {
  background: #cbd5e1;
  border: 1.5px solid #94a3b8;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1), var(--shadow-sm);
}

body.light-mode-layout .cube-face {
  color: #334155;
}

body.light-mode-layout .viewcube-compass {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(241, 245, 249, 0.5);
}

body.light-mode-layout .viewcube-compass span {
  color: #475569;
}

body.light-mode-layout .cad-status-bar {
  background: #cbd5e1;
  border-top: 1px solid #94a3b8;
  color: #1e293b;
}

body.light-mode-layout .status-tab {
  color: #475569;
}

body.light-mode-layout .status-tab.active {
  background: #f1f5f9;
  color: #0f172a;
  border-top-color: var(--accent-blue);
}

body.light-mode-layout .status-tab:hover:not(.active) {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

body.light-mode-layout .status-divider {
  color: #94a3b8;
}

body.light-mode-layout .status-coords {
  color: #334155;
}

body.light-mode-layout .status-btn {
  color: #475569;
}

body.light-mode-layout .status-btn.active {
  background: #94a3b8;
  color: #0f172a;
}

body.light-mode-layout .status-btn:hover:not(.active) {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

body.light-mode-layout .cad-command-line {
  background: rgba(241, 245, 249, 0.95);
  border: 1px solid #cbd5e1;
}

body.light-mode-layout .command-history {
  color: #475569;
  border-bottom: 1px solid #cbd5e1;
}

body.light-mode-layout .main-footer {
  background: #cbd5e1;
  border-top: 1px solid #94a3b8;
}

body.light-mode-layout .footer-heading {
  color: #0f172a;
}

body.light-mode-layout .footer-links ul li a {
  color: #475569;
}

body.light-mode-layout .footer-links ul li a:hover {
  color: var(--accent-blue);
}

body.light-mode-layout .footer-copyright p {
  color: #475569;
}

body.light-mode-layout .form-group label {
  color: #475569;
}

body.light-mode-layout .form-group input, 
body.light-mode-layout .form-group select, 
body.light-mode-layout .form-group textarea {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

body.light-mode-layout .form-group select option {
  background-color: #ffffff;
  color: #0f172a;
}

body.light-mode-layout .form-group input::placeholder, 
body.light-mode-layout .form-group textarea::placeholder {
  color: #94a3b8;
}

body.light-mode-layout .form-group input:focus, 
body.light-mode-layout .form-group select:focus, 
body.light-mode-layout .form-group textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

body.light-mode-layout .insejupy-banner {
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid #cbd5e1;
}

body.light-mode-layout .flow-step {
  background: rgba(0, 0, 0, 0.01);
  border: 1px solid #cbd5e1;
}

body.light-mode-layout .accordion-item {
  background: rgba(0, 0, 0, 0.01);
  border: 1px solid #cbd5e1;
}

body.light-mode-layout .accordion-header {
  background: rgba(0, 0, 0, 0.015);
  color: #334155;
}

body.light-mode-layout .accordion-header:hover {
  background: rgba(0, 0, 0, 0.025);
}

body.light-mode-layout .tab-nav {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid #cbd5e1;
}

body.light-mode-layout .tab-btn {
  color: #475569;
}

body.light-mode-layout .tab-btn:hover {
  color: #0f172a;
}

body.light-mode-layout .tab-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
}

body.light-mode-layout .card {
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode-layout .card:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode-layout .card-glow-cyan:hover {
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.15);
}

body.light-mode-layout .card-glow-mint:hover {
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.15);
}

body.light-mode-layout .card-glow-blue:hover {
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.15);
}

body.light-mode-layout .card-glow-red:hover {
  box-shadow: 0 10px 30px -10px rgba(239, 68, 68, 0.15);
}
