/* =====================================================
   AteaLabs — Premium Light Mode Design
   Modern Engineering & Software Agency
   ===================================================== */

:root {
  /* Light Mode Colors (Refined & More Vibrant HSL Palettes for 2026) */
  --bg-primary: #FAFBFD;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F1F4F9;
  --bg-elevated: #E8EEF5;
  
  --text-primary: #0B0F19;
  --text-secondary: #4A5568;
  --text-muted: #8E9CAE;
  
  /* Modern Indigo Accent Palette */
  --accent-primary: #4F46E5;
  --accent-secondary: #6366F1;
  --accent-tertiary: #C7D2FE;
  --accent-dark: #3730A3;
  --accent-glow: rgba(79, 70, 229, 0.15);
  
  --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #818CF8 100%);
  --gradient-soft: linear-gradient(135deg, #EEF2FF 0%, #F5F7FF 100%);
  
  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  
  /* Modern Subtle Shadow System */
  --shadow-xs: 0 1px 2px rgba(11, 15, 25, 0.02);
  --shadow-sm: 0 4px 12px rgba(11, 15, 25, 0.03);
  --shadow-md: 0 10px 30px rgba(11, 15, 25, 0.05);
  --shadow-lg: 0 20px 50px rgba(11, 15, 25, 0.08);
  --shadow-glow: 0 10px 40px rgba(79, 70, 229, 0.25);
  
  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 450ms cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Container */
  --container-max: 1200px;
  --container-padding: clamp(20px, 5vw, 64px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
.display-xl {
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display-lg {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-md {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display-sm {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px var(--space-md);
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid rgba(79, 70, 229, 0.12);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.text-lg { font-size: 18px; line-height: 1.7; }
.text-md { font-size: 16px; line-height: 1.6; }
.text-sm { font-size: 14px; line-height: 1.5; }
.text-xs { font-size: 12px; line-height: 1.4; }

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
  width: min(var(--container-max), calc(100% - var(--container-padding)));
  margin: 0 auto;
}

.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-sm {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-pad {
  padding: var(--space-4xl) 0;
}

/* =====================================================
   NAVIGATION & GLASSMORPHISM
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 253, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  transition: all var(--transition-fast);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: var(--space-2xl);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 140px;
  transition: transform var(--transition-fast);
}

.brand:hover {
  transform: scale(1.02);
}

.brand-logo {
  height: 38px;
  width: auto;
}

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

.nav-links a {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.nav-links a.active {
  color: var(--accent-primary);
  background: rgba(79, 70, 229, 0.06);
}

.nav-cta {
  background: var(--accent-primary) !important;
  color: #FFFFFF !important;
  padding: var(--space-sm) var(--space-lg) !important;
}

.nav-cta:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Elegant Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-tertiary);
  padding: 4px;
  border-radius: 100px;
  margin-left: var(--space-md);
  border: 1px solid rgba(15, 23, 42, 0.03);
}

.lang-btn {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 100px;
  transition: all var(--transition-fast);
  text-transform: uppercase;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  color: var(--accent-primary);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-xs);
}

/* Mobile Menu Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-sm);
  z-index: 101;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* Open states for nav button */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 868px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    gap: var(--space-sm);
    z-index: 99;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .lang-switcher {
    margin-left: 0;
    margin-top: var(--space-md);
    width: fit-content;
  }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-primary);
  color: #FFFFFF;
  border: none;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-primary);
  border: none;
  padding: var(--space-sm) var(--space-md);
}

.btn-ghost:hover {
  background: rgba(79, 70, 229, 0.06);
  border-radius: var(--radius-md);
}

.btn-lg {
  padding: 18px var(--space-2xl);
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: 13px;
}

/* =====================================================
   HERO SECTION & DYNAMIC BACKGROUND BLOBS
   ===================================================== */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: var(--space-5xl) 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

/* Glowing Background Blobs */
.hero-blobs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, rgba(199, 210, 254, 0.4) 0%, rgba(99, 102, 241, 0.05) 70%);
  animation: pulse-blob-1 12s infinite alternate ease-in-out;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  bottom: -5%;
  left: -5%;
  background: radial-gradient(circle, rgba(224, 231, 255, 0.5) 0%, rgba(79, 70, 229, 0.05) 70%);
  animation: pulse-blob-2 15s infinite alternate-reverse ease-in-out;
}

@keyframes pulse-blob-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.1); }
  100% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes pulse-blob-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.15); }
  100% { transform: translate(-20px, 10px) scale(0.9); }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px var(--space-md);
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: var(--space-xl);
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero-text {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

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

.hero-visual {
  position: absolute;
  right: var(--container-padding);
  top: 50%;
  transform: translateY(-50%);
  width: 42%;
  max-width: 520px;
  z-index: 1;
}

/* Premium Card on Hero */
.hero-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

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

.hero-card-header span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.capability-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.02);
  transition: all var(--transition-smooth);
}

.capability-item:hover {
  background: var(--bg-secondary);
  border-color: rgba(79, 70, 229, 0.15);
  box-shadow: var(--shadow-sm);
  transform: translateX(6px);
}

.capability-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  font-size: 22px;
  color: #FFFFFF;
}

.capability-text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.capability-text p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* =====================================================
   SECTIONS & SEPARATORS
   ===================================================== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-4xl);
}

.section-header h2 {
  margin: var(--space-md) 0 var(--space-lg);
}

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

/* =====================================================
   BENTO CARDS & GRIDS
   ===================================================== */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-smooth);
}

.card:hover {
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Modern Bento Grid */
.premium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.premium-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: background var(--transition-fast);
}

.premium-card:hover {
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.premium-card:hover::before {
  background: var(--gradient-primary);
}

.premium-card.featured {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.02) 0%, rgba(99, 102, 241, 0.01) 100%), var(--bg-secondary);
  border-color: rgba(79, 70, 229, 0.15);
  grid-column: span 1;
}

.premium-card.featured::before {
  background: var(--gradient-primary);
}

.card-kicker {
  display: inline-block;
  padding: 4px var(--space-sm);
  background: rgba(79, 70, 229, 0.08);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xl);
  width: fit-content;
}

.premium-card h3 {
  font-size: 22px;
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

.premium-card > p {
  font-size: 15px;
  color: var(--text-secondary);
  flex-grow: 1;
  line-height: 1.6;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.card-actions a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-primary);
  transition: all var(--transition-fast);
}

.card-actions a:hover {
  color: var(--accent-dark);
  gap: var(--space-sm);
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-smooth);
}

.service-card:hover {
  background: var(--bg-secondary);
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-card span {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
  opacity: 0.6;
}

.service-card h2 {
  font-size: 24px;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

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

/* Process Layout & Steps */
.process-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-3xl);
  align-items: start;
}

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

.process-list article {
  padding: var(--space-xl);
  background: var(--bg-secondary);
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
}

.process-list article:hover {
  border-color: rgba(79, 70, 229, 0.15);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.step-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.process-list h3 {
  font-size: 19px;
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

.process-list p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* =====================================================
   PORTFOLIO / PROJECTS
   ===================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-tertiary);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11, 15, 25, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-2xl);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.04);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: rgba(79, 70, 229, 0.3);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-item h3 {
  font-size: 24px;
  color: #FFFFFF;
  margin-bottom: var(--space-xs);
  font-weight: 700;
}

.portfolio-item p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* =====================================================
   APPS GRID
   ===================================================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.app-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.2);
}

.app-preview {
  aspect-ratio: 16/10;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
  border-bottom: 1px solid rgba(15, 23, 42, 0.03);
}

.app-info {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.app-tag {
  display: inline-block;
  padding: 4px var(--space-sm);
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
  width: fit-content;
}

.app-card h3 {
  font-size: 22px;
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

.app-card > p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.app-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.app-stat {
  text-align: left;
}

.app-stat strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.app-stat span {
  font-size: 11px;
  color: var(--text-muted);
}

/* =====================================================
   STATS
   ===================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.stat-item {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--bg-secondary);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.15);
}

.stat-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-dark));
  border-radius: var(--radius-xl);
  padding: var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  color: #FFFFFF;
  margin-bottom: var(--space-md);
  position: relative;
  font-weight: 800;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 580px;
  margin: 0 auto var(--space-2xl);
  position: relative;
}

.cta-section .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  position: relative;
}

.cta-section .btn-secondary:hover {
  background: #FFFFFF;
  color: var(--accent-primary);
  border-color: #FFFFFF;
  box-shadow: var(--shadow-md);
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.15);
}

.testimonial-quote {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  font-style: italic;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15);
}

.testimonial-info strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.testimonial-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  color: var(--text-secondary);
  max-width: 400px;
  margin-top: var(--space-md);
  font-size: 14px;
}

.footer-column h2 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.footer-column a {
  display: block;
  padding: var(--space-xs) 0;
  color: var(--text-secondary);
  font-size: 15px;
  transition: all var(--transition-fast);
}

.footer-column a:hover {
  color: var(--accent-primary);
  transform: translateX(2px);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--accent-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.copyright {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-muted);
}

/* =====================================================
   FORMS & INPUTS
   ===================================================== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238E9CAE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  padding-right: var(--space-3xl);
}

textarea.form-input {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent-primary);
}

/* =====================================================
   PAGE HEADER
   ===================================================== */
.page-header {
  padding: var(--space-5xl) 0 var(--space-4xl);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.page-header .eyebrow {
  margin-bottom: var(--space-md);
}

.page-header h1 {
  margin-bottom: var(--space-md);
  max-width: 800px;
}

/* =====================================================
   BADGES
   ===================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-tertiary);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}

.badge-primary {
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-primary);
}

.badge-blue {
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-primary);
}

/* =====================================================
   CONTACT LAYOUT
   ===================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4xl);
  align-items: start;
}

.contact-form {
  background: var(--bg-secondary);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-lg);
}

.contact-form .btn {
  margin-top: var(--space-md);
}

.mail-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-primary);
  margin-top: var(--space-lg);
  transition: all var(--transition-fast);
}

.mail-link:hover {
  color: var(--accent-dark);
  gap: var(--space-md);
}

/* =====================================================
   COMPANY PANEL
   ===================================================== */
.company-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.company-copy {
  padding-left: var(--space-3xl);
  border-left: 3px solid var(--accent-primary);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.proof-strip article {
  padding: var(--space-xl);
  background: var(--bg-secondary);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
}

.proof-strip article:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 70, 229, 0.15);
  box-shadow: var(--shadow-md);
}

.proof-strip span {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}

.proof-strip p {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

/* =====================================================
   PRODUCT DETAIL PAGE SPECIFICS
   ===================================================== */
.product-hero {
  padding: var(--space-5xl) 0 var(--space-4xl);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.product-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.product-note {
  background: var(--bg-secondary);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.product-note span {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.product-note p {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}

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

.product-points article {
  padding: var(--space-2xl);
  background: var(--bg-secondary);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
}

.product-points article:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.15);
  box-shadow: var(--shadow-md);
}

.product-points h2 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}

.product-points p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* =====================================================
   PREMIUM SCROLL REVEAL ANIMATIONS (IntersectionObserver)
   ===================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  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-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Delay classes for staggered children reveals */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* =====================================================
   RESPONSIVE LAYOUTS
   ===================================================== */
@media (max-width: 1200px) {
  .service-grid,
  .services-grid,
  .apps-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .section {
    padding: var(--space-4xl) 0;
  }

  .hero {
    min-height: auto;
    padding: var(--space-4xl) 0;
  }

  .hero-visual {
    display: none;
  }

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

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

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

  .product-layout,
  .contact-layout,
  .company-panel,
  .process-layout {
    grid-template-columns: 1fr;
  }

  .product-note {
    margin-top: var(--space-xl);
  }

  .company-copy {
    border-left: none;
    border-top: 3px solid var(--accent-primary);
    padding-left: 0;
    padding-top: var(--space-xl);
  }
}

@media (max-width: 768px) {
  :root {
    --space-4xl: 64px;
    --space-5xl: 80px;
  }

  .nav {
    flex-wrap: wrap;
    min-height: auto;
    padding: var(--space-md) 0;
    gap: var(--space-md);
  }

  .nav-links {
    width: 100%;
  }

  .services-grid,
  .service-grid,
  .portfolio-grid,
  .apps-grid,
  .testimonials-grid,
  .premium-grid {
    grid-template-columns: 1fr;
  }
  
  .premium-card.featured {
    grid-column: span 1;
  }

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

  .stat-item {
    padding: var(--space-xl);
  }

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

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

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .product-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .btn-lg {
    padding: var(--space-md) var(--space-xl);
    width: 100%;
  }

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

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

/* =====================================================
   2026 Premium Refresh
   Light engineering interface system for AteaLabs
   ===================================================== */
:root {
  --bg-primary: #f7f9fc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eef3f7;
  --bg-elevated: #f2f6fa;

  --text-primary: #101418;
  --text-secondary: #59636f;
  --text-muted: #8a96a3;

  --accent-primary: #e51b23;
  --accent-secondary: #09a6b6;
  --accent-tertiary: #dceef3;
  --accent-dark: #a70f15;
  --accent-glow: rgba(229, 27, 35, 0.16);

  --gradient-primary: linear-gradient(90deg, #e51b23 0%, #101418 46%, #09a6b6 100%);
  --gradient-soft: linear-gradient(135deg, #ffffff 0%, #eef6f8 100%);

  --border-light: #dfe7ee;
  --border-medium: #cbd7e2;

  --shadow-xs: 0 1px 2px rgba(16, 20, 24, 0.04);
  --shadow-sm: 0 8px 18px rgba(16, 20, 24, 0.06);
  --shadow-md: 0 18px 38px rgba(16, 20, 24, 0.08);
  --shadow-lg: 0 28px 70px rgba(16, 20, 24, 0.12);
  --shadow-glow: 0 18px 45px rgba(229, 27, 35, 0.18);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 8px;

  --container-max: 1240px;
}

body {
  background:
    linear-gradient(rgba(16, 20, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 24, 0.03) 1px, transparent 1px),
    var(--bg-primary);
  background-size: 56px 56px, 56px 56px, auto;
}

.display-xl,
.display-lg,
.display-md,
.display-sm {
  letter-spacing: 0;
}

.display-xl {
  font-size: clamp(46px, 6.6vw, 92px);
  line-height: 0.98;
  font-weight: 800;
}

.display-lg {
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.02;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  display: inline;
}

.site-header {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(16, 20, 24, 0.08);
  box-shadow: 0 8px 30px rgba(16, 20, 24, 0.04);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(16, 20, 24, 0.08);
}

.nav {
  min-height: 74px;
}

.brand {
  min-width: 132px;
  padding: 6px 10px 6px 0;
}

.brand-logo {
  height: 34px;
  object-fit: contain;
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  border-radius: 6px;
  color: #4b5563;
  font-size: 13px;
  letter-spacing: 0;
}

.nav-links a:hover,
.nav-links a.active {
  background: #f1f5f9;
  color: var(--text-primary);
}

.nav-links a.active {
  box-shadow: inset 0 -2px 0 var(--accent-primary);
}

.nav-cta {
  background: #101418 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(16, 20, 24, 0.14);
}

.nav-cta:hover {
  background: var(--accent-primary) !important;
  box-shadow: var(--shadow-glow);
}

.lang-switcher {
  border-radius: 8px;
  background: #eef3f7;
}

.lang-btn {
  border-radius: 5px;
  letter-spacing: 0;
}

.hero {
  min-height: auto;
  padding: clamp(62px, 7vw, 104px) 0 clamp(46px, 5vw, 74px);
  background:
    radial-gradient(circle at 86% 28%, rgba(9, 166, 182, 0.12), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  align-items: center;
  gap: clamp(36px, 6vw, 82px);
}

.hero-content {
  max-width: 650px;
}

.hero-text {
  max-width: 620px;
  color: #4f5b66;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-2xl);
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: #47515c;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}

.hero-proof span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-secondary);
  border-radius: 50%;
}

.hero-visual {
  position: static;
  transform: none;
  width: 100%;
  max-width: none;
  z-index: 2;
}

.cad-stage {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(16, 20, 24, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.cad-stage::before {
  content: "";
  position: absolute;
  inset: auto 28px -40px 28px;
  height: 110px;
  background: linear-gradient(90deg, rgba(229, 27, 35, 0.16), rgba(9, 166, 182, 0.16));
  filter: blur(34px);
  z-index: -1;
}

.cad-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
}

.cad-toolbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c8d2dc;
}

.cad-toolbar span:first-child {
  background: var(--accent-primary);
}

.cad-toolbar span:nth-child(2) {
  background: #f0b429;
}

.cad-toolbar span:nth-child(3) {
  background: var(--accent-secondary);
}

.cad-toolbar strong {
  margin-left: 8px;
  color: #687482;
  font-size: 12px;
  font-weight: 700;
}

.cad-canvas {
  position: relative;
  min-height: 440px;
  background:
    linear-gradient(rgba(16, 20, 24, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 24, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

.panel-visual {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.grid-line {
  fill: none;
  stroke: rgba(16, 20, 24, 0.1);
  stroke-width: 1;
}

.cut-line {
  fill: none;
  stroke: var(--accent-secondary);
  stroke-width: 4;
  stroke-dasharray: 9 12;
  stroke-linecap: round;
  animation: drawPath 5s linear infinite;
}

.panel-layout-group {
  transform-origin: center;
  animation: floatAssembly 7s ease-in-out infinite;
}

.cad-panel {
  position: absolute;
  display: grid;
  gap: 3px;
  min-width: 132px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 20, 24, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.cad-panel span {
  color: #687482;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.cad-panel strong {
  color: var(--text-primary);
  font-size: 20px;
}

.cad-panel-top {
  top: 24px;
  right: 24px;
}

.cad-panel-bottom {
  left: 24px;
  bottom: 24px;
}

@keyframes drawPath {
  to { stroke-dashoffset: -84; }
}

@keyframes floatAssembly {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.section,
.section-sm,
.page-header,
.product-hero {
  background-color: transparent;
}

.section[style*="--bg-tertiary"],
.section-sm[style*="--bg-tertiary"] {
  background:
    linear-gradient(rgba(16, 20, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 24, 0.03) 1px, transparent 1px),
    var(--bg-tertiary) !important;
  background-size: 56px 56px, 56px 56px, auto !important;
}

.eyebrow,
.card-kicker,
.step-num,
.app-tag,
.product-note span,
.proof-strip span {
  letter-spacing: 0;
}

.eyebrow {
  border-radius: 6px;
  background: #ffffff;
  color: var(--accent-dark);
  border-color: rgba(229, 27, 35, 0.22);
  box-shadow: var(--shadow-xs);
}

.premium-card,
.service-card,
.process-list article,
.stat-item,
.testimonial-card,
.app-card,
.product-points article,
.proof-strip article,
.contact-form,
.product-note {
  border-radius: 8px;
  border-color: rgba(16, 20, 24, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.premium-card,
.service-card,
.process-list article,
.stat-item,
.app-card,
.product-points article,
.proof-strip article {
  background: rgba(255, 255, 255, 0.86);
}

.premium-card::before {
  height: 3px;
}

.premium-card:hover,
.service-card:hover,
.process-list article:hover,
.stat-item:hover,
.app-card:hover,
.product-points article:hover,
.proof-strip article:hover {
  border-color: rgba(229, 27, 35, 0.24);
  box-shadow: var(--shadow-md);
}

.card-kicker,
.step-num {
  background: transparent;
  color: var(--accent-primary);
  padding: 0;
}

.card-actions a {
  color: var(--accent-dark);
}

.card-actions a:hover {
  color: var(--accent-primary);
}

.stats-grid {
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
}

.stat-item {
  border: 0;
  border-radius: 0;
}

.stat-number {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
}

.cta-section {
  background:
    linear-gradient(135deg, #101418 0%, #20272f 48%, #0b7984 100%);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(16, 20, 24, 0.18);
}

.cta-section::before {
  width: 100%;
  height: 1px;
  top: 0;
  left: 0;
  transform: none;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.btn {
  border-radius: 6px;
  letter-spacing: 0;
}

.btn-primary {
  background: #101418;
  box-shadow: 0 12px 24px rgba(16, 20, 24, 0.16);
}

.btn-primary:hover {
  background: var(--accent-primary);
}

.btn-secondary {
  background: #ffffff;
}

.app-preview {
  background:
    linear-gradient(rgba(16, 20, 24, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 24, 0.05) 1px, transparent 1px),
    #f8fafc;
  background-size: 28px 28px, 28px 28px, auto;
  overflow: hidden;
}

.app-preview::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(16, 20, 24, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.product-glyph {
  position: relative;
  width: 118px;
  height: 118px;
  border: 3px solid #101418;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 14px 14px 0 rgba(9, 166, 182, 0.12);
}

.product-glyph::before,
.product-glyph::after {
  content: "";
  position: absolute;
}

.product-glyph-dxf::before {
  inset: 22px 18px auto 18px;
  height: 3px;
  background: var(--accent-primary);
  box-shadow: 0 22px 0 #101418, 0 44px 0 var(--accent-secondary);
}

.product-glyph-dxf::after {
  right: 18px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  border-right: 3px solid #101418;
  border-bottom: 3px solid #101418;
}

.product-glyph-cadcam::before {
  left: 22px;
  top: 24px;
  width: 74px;
  height: 54px;
  border: 3px solid var(--accent-secondary);
  transform: skewX(-14deg);
}

.product-glyph-cadcam::after {
  left: 28px;
  bottom: 22px;
  width: 62px;
  height: 3px;
  background: var(--accent-primary);
  box-shadow: 14px -24px 0 #101418;
}

.product-glyph-cut::before {
  left: 18px;
  top: 18px;
  width: 80px;
  height: 80px;
  border: 3px dashed var(--accent-primary);
  border-radius: 50%;
}

.product-glyph-cut::after {
  left: 26px;
  top: 54px;
  width: 70px;
  height: 3px;
  background: #101418;
  transform: rotate(-28deg);
  box-shadow: 0 18px 0 var(--accent-secondary);
}

.page-header,
.product-hero {
  background:
    radial-gradient(circle at 84% 22%, rgba(9, 166, 182, 0.1), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.mail-link {
  color: var(--accent-dark);
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(229, 27, 35, 0.12);
}

.reveal-on-scroll {
  opacity: 1;
  transform: none;
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.animate-reveals .reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
}

body.animate-reveals .reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal-on-scroll,
body.animate-reveals .hero .reveal-on-scroll {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: 760px;
  }
}

@media (max-width: 768px) {
  .display-xl {
    font-size: clamp(38px, 11vw, 54px);
    line-height: 1.02;
  }

  .hero {
    padding-top: 64px;
  }

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

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

  .cad-canvas {
    min-height: 330px;
  }

  .panel-visual {
    min-height: 320px;
  }

  .cad-panel {
    min-width: 112px;
    padding: 10px 12px;
  }

  .cad-panel strong {
    font-size: 17px;
  }

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

@media (max-width: 560px) {
  .brand-logo {
    height: 28px;
  }

  .hero-proof {
    flex-direction: column;
  }

  .cad-toolbar strong {
    display: none;
  }

  .cad-panel-top {
    top: 14px;
    right: 14px;
  }

  .cad-panel-bottom {
    left: 14px;
    bottom: 14px;
  }

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

  .product-glyph {
    width: 96px;
    height: 96px;
  }
}

/* ---- Service detail grid ---------------------------------------------- */
.svc-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.svc-list {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.svc-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
}

html[dir="rtl"] .svc-list li { padding-left: 0; padding-right: 22px; text-align: right; }
html[dir="rtl"] .svc-list li::before { left: auto; right: 0; }

@media (max-width: 768px) {
  .svc-detail-grid { grid-template-columns: 1fr; }
}

/* ---- Language dropdown switcher ---------------------------------------- */
.lang-switcher.lang-select {
  position: relative;
  display: inline-flex;
  background: transparent;
  border: none;
  padding: 0;
  margin-left: var(--space-md);
}

.lang-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid rgba(15, 23, 42, 0.10);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.lang-select-btn:hover {
  border-color: rgba(15, 23, 42, 0.25);
  box-shadow: var(--shadow-xs);
}

.lang-globe { font-size: 13px; line-height: 1; }
.lang-caret { font-size: 10px; color: var(--text-muted); transition: transform var(--transition-fast); }
.lang-switcher.lang-select.open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  max-height: 340px;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(15, 23, 42, 0.12));
  padding: 6px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 120;
}

.lang-switcher.lang-select.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-option:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* RTL support */
html[dir="rtl"] .nav-links { flex-direction: row-reverse; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .hero-content,
html[dir="rtl"] .section-header,
html[dir="rtl"] .cta-section { text-align: right; }
html[dir="rtl"] .lang-switcher.lang-select { margin-left: 0; margin-right: var(--space-md); }

