/* ============================================================
   CORELINE — styles.css
   ============================================================ */

/* ============================================================
   FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colors */
  --bg-primary:    #070B18;
  --bg-secondary:  #0B1025;
  --bg-card:       rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.055);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card:   rgba(255, 255, 255, 0.09);
  --border-hover:  rgba(79, 142, 247, 0.35);

  --accent:        #4F8EF7;
  --accent-dim:    rgba(79, 142, 247, 0.12);
  --accent-glow:   rgba(79, 142, 247, 0.22);
  --accent-purple: #7C5CE7;
  --accent-green:  #25D366;   /* WhatsApp */

  --gradient-text: linear-gradient(135deg, #4F8EF7 0%, #9B72F7 55%, #C77DFF 100%);
  --gradient-hero: linear-gradient(135deg, rgba(79,142,247,0.18) 0%, rgba(124,92,231,0.12) 100%);
  --gradient-cta:  linear-gradient(135deg, #1a2a4e 0%, #0e1830 50%, #160e2e 100%);

  --text-primary:   #EFF3FB;
  --text-secondary: #8FA3C0;
  --text-muted:     #7A90A8;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Spacing */
  --container-max:     1200px;
  --container-padding: clamp(20px, 5vw, 60px);
  --section-y:         clamp(80px, 10vw, 130px);

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-2xl: 40px;

  /* Transitions */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --t-fast:    0.18s;
  --t-base:    0.3s;
  --t-slow:    0.55s;
  --t-slower:  0.8s;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 4px 20px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 60px rgba(79, 142, 247, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

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

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section-header {
  max-width: 680px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-header p {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  line-height: 1.65;
  margin-top: 16px;
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding: 5px 12px;
  border: 1px solid rgba(79, 142, 247, 0.28);
  border-radius: 100px;
  background: rgba(79, 142, 247, 0.07);
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  transition: background var(--t-base) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-base) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.btn-primary:hover {
  background: #3b78f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 142, 247, 0.38);
}

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              background var(--t-base) var(--ease),
              transform var(--t-fast) var(--ease);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.btn-ghost svg {
  transition: transform var(--t-base) var(--ease);
}

.btn-ghost:hover svg {
  transform: translateX(4px);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--t-slow) var(--ease),
              border-color var(--t-slow) var(--ease),
              box-shadow var(--t-slow) var(--ease);
  border-bottom: 1px solid transparent;
}

#header.scrolled {
  background: rgba(7, 11, 24, 0.88);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}

.logo:hover .logo-img {
  transform: scale(1.06);
  opacity: 0.9;
}

.logo-name {
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Language switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  transition: color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              background var(--t-base) var(--ease),
              transform var(--t-fast) var(--ease);
  flex-shrink: 0;
}

.lang-switch:hover {
  color: var(--accent);
  border-color: rgba(79, 142, 247, 0.3);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 7px 12px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

/* Nav CTAs */
.nav-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-wa {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: var(--radius-md);
  transition: background var(--t-base) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-base) var(--ease);
}

.nav-wa:hover {
  background: rgba(37, 211, 102, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.18);
}

.nav-email {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              background var(--t-base) var(--ease),
              transform var(--t-fast) var(--ease);
}

.nav-email:hover {
  color: var(--accent);
  border-color: rgba(79, 142, 247, 0.3);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-sm);
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease),
              opacity var(--t-base) var(--ease),
              width var(--t-base) var(--ease);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px var(--container-padding) 80px;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center,
    rgba(79, 142, 247, 0.13) 0%,
    rgba(124, 92, 231, 0.07) 50%,
    transparent 70%
  );
  pointer-events: none;
  filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(79, 142, 247, 0.3);
  border-radius: 100px;
  background: rgba(79, 142, 247, 0.07);
  backdrop-filter: blur(10px);
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2.2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-headline {
  font-size: clamp(var(--text-4xl), 6.5vw, var(--text-7xl));
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-ctas .btn-primary {
  padding: 16px 32px;
  font-size: var(--text-base);
}

.hero-ctas .btn-ghost {
  padding: 16px 28px;
  font-size: var(--text-base);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-muted);
  animation: bounce-down 2s ease infinite;
  transition: color var(--t-base) var(--ease);
}

.hero-scroll:hover {
  color: var(--accent);
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
#trust {
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  border-radius: 100px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  transition: color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              background var(--t-base) var(--ease);
}

.badge:hover {
  color: var(--accent);
  border-color: rgba(79, 142, 247, 0.3);
  background: var(--accent-dim);
}

/* ============================================================
   AI SPOTLIGHT
   ============================================================ */
#ai {
  padding: var(--section-y) 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.ai-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}

.ai-intro h2 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-intro p {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: var(--text-secondary);
  line-height: 1.7;
}

.ai-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: clamp(36px, 5vw, 52px);
}

.ai-feature {
  padding: 28px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}

.ai-feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-text);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}

.ai-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 142, 247, 0.25);
  box-shadow: var(--shadow-card), 0 0 30px rgba(79, 142, 247, 0.08);
}

.ai-feature:hover::before {
  opacity: 1;
}

.ai-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.ai-feature h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.ai-feature p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

.ai-cta-row {
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .ai-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .ai-features {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SERVICES
   ============================================================ */
#services {
  padding: var(--section-y) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  transition: background var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 142, 247, 0.5), transparent);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(79, 142, 247, 0.22);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 40px rgba(79, 142, 247, 0.08);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--accent);
  transition: background var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}

.service-card:hover .service-icon {
  background: rgba(79, 142, 247, 0.2);
  transform: scale(1.05);
}

.service-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   WHY CORELINE
   ============================================================ */
#why {
  padding: var(--section-y) 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

#why::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 92, 231, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.why-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: start;
}

.why-header {
  position: sticky;
  top: 100px;
}

.why-header h2 {
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-4xl));
  margin-bottom: 16px;
}

.why-header p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.why-item {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  transition: background var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}

.why-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(79, 142, 247, 0.18);
  transform: translateY(-2px);
}

.why-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 14px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  transition: background var(--t-base) var(--ease);
}

.why-item:hover .why-icon {
  background: rgba(79, 142, 247, 0.18);
}

.why-item h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.why-item p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   PROCESS
   ============================================================ */
#process {
  padding: var(--section-y) 0;
}

.process-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
}

.process-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-card) 10%, var(--border-card) 90%, transparent);
  transform: translateX(-50%);
}

.process-step {
  display: flex;
  gap: 24px;
  padding: 36px 40px;
  position: relative;
}

.process-step:nth-child(odd) {
  padding-right: 56px;
  justify-content: flex-end;
  text-align: right;
}

.process-step:nth-child(even) {
  padding-left: 56px;
}

.process-step:nth-child(odd) .step-content {
  align-items: flex-end;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  transform: translateY(-50%);
  box-shadow: 0 0 16px var(--accent-glow);
}

.process-step:nth-child(odd)::after  { right: -5px; }
.process-step:nth-child(even)::after { left: -5px; }

.step-number {
  font-size: clamp(var(--text-5xl), 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.7), rgba(124, 92, 231, 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 6px;
}

.step-content {
  display: flex;
  flex-direction: column;
}

.step-content h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.step-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 300px;
}

.process-step:nth-child(odd) .step-content p {
  margin-left: auto;
}

/* ============================================================
   SUCCESS CASES
   ============================================================ */
#work {
  padding: var(--section-y) 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

#work::before {
  content: '';
  position: absolute;
  bottom: -300px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* With 9 cards (odd count), the last card stays in its natural column */

.case-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  transition: background var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
  position: relative;
  overflow: hidden;
}

.case-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease);
}

.case-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(79, 142, 247, 0.18);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.case-card:hover::after {
  transform: scaleX(1);
}

.case-meta {
  margin-bottom: 14px;
}

.case-industry {
  display: inline-block;
  padding: 4px 12px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 100px;
  border: 1px solid rgba(79, 142, 247, 0.2);
}

.case-title {
  font-size: clamp(var(--text-lg), 1.8vw, var(--text-xl));
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.35;
}

.case-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.case-section h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.case-section p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.case-tags span {
  padding: 4px 12px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
}

/* ============================================================
   TECH CAPABILITIES
   ============================================================ */
#tech {
  padding: var(--section-y) 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tech-area {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  transition: background var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}

.tech-area:hover {
  background: var(--bg-card-hover);
  border-color: rgba(79, 142, 247, 0.18);
  transform: translateY(-2px);
}

.tech-area h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.tech-area h3 svg {
  color: var(--accent);
  flex-shrink: 0;
}

.tech-area ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

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

.tech-area li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
#contact {
  padding: clamp(80px, 12vw, 150px) 0;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-cta);
  z-index: 0;
}

.cta-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center,
    rgba(79, 142, 247, 0.18) 0%,
    rgba(124, 92, 231, 0.1) 40%,
    transparent 70%
  );
}

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

.cta-content {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.cta-content .section-label {
  margin-bottom: 20px;
}

.cta-content h2 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.cta-content > p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 48px;
}

.cta-contact-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  margin-inline: auto;
}

.cta-option {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid;
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              background var(--t-base) var(--ease);
}

.cta-option:hover {
  transform: translateY(-3px);
}

.cta-whatsapp {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.3);
  color: #fff;
}

.cta-whatsapp:hover {
  background: rgba(37, 211, 102, 0.17);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.18);
}

.cta-whatsapp .cta-option-icon {
  color: #25D366;
}

.cta-email {
  background: var(--accent-dim);
  border-color: rgba(79, 142, 247, 0.3);
  color: #fff;
}

.cta-email:hover {
  background: rgba(79, 142, 247, 0.16);
  box-shadow: 0 12px 40px rgba(79, 142, 247, 0.18);
}

.cta-email .cta-option-icon {
  color: var(--accent);
}

.cta-option-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.cta-option-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.cta-option-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cta-option-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.cta-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

.cta-option:hover .cta-arrow {
  transform: translateX(5px);
  color: var(--text-secondary);
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  padding: clamp(48px, 6vw, 80px) 0 32px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  font-size: var(--text-2xl);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
}

.footer-links-group h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-group a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--t-base) var(--ease);
}

.footer-links-group a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.32s; }

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .why-header {
    position: static;
    max-width: 600px;
  }

  .process-track {
    grid-template-columns: 1fr;
  }

  .process-track::before {
    left: 28px;
    top: 0;
    bottom: 0;
    transform: none;
  }

  .process-step {
    flex-direction: row;
    text-align: left;
    padding: 24px 24px 24px 64px;
    justify-content: flex-start;
  }

  .process-step:nth-child(odd) {
    text-align: left;
    padding: 24px 24px 24px 64px;
    justify-content: flex-start;
  }

  .process-step:nth-child(odd) .step-content {
    align-items: flex-start;
  }

  .process-step::after {
    top: 28px;
    transform: none;
  }

  .process-step:nth-child(odd)::after,
  .process-step:nth-child(even)::after {
    left: 23px;
    right: auto;
  }

  .process-step:nth-child(odd) .step-content p {
    margin-left: 0;
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .nav-links { display: none; }
  .nav-ctas { display: none; }
  .nav-toggle { display: flex; }

  /* Keep lang-switch visible on mobile even when nav-ctas is hidden */
  .lang-switch {
    display: flex;
    margin-left: auto;
    margin-right: 8px;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(7, 11, 24, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 20px 20px;
    gap: 2px;
    z-index: 999;
  }

  .nav-links.open .nav-link {
    padding: 12px 16px;
    font-size: var(--text-base);
    border-radius: var(--radius-sm);
  }

  .nav-links.open + .nav-ctas {
    display: flex;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    padding: 16px 20px;
    background: rgba(7, 11, 24, 0.97);
    border-top: 1px solid var(--border-subtle);
    z-index: 998;
    backdrop-filter: blur(20px);
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {

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

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

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

  /* single-column on mobile — no special last-child handling needed */

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .cta-contact-options {
    max-width: 100%;
  }

  .cta-option {
    padding: 18px 20px;
    gap: 14px;
  }

  .cta-option-value {
    font-size: var(--text-base);
  }

  .hero-headline {
    font-size: clamp(var(--text-3xl), 9vw, var(--text-5xl));
  }

  .step-number {
    display: none;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
