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

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-400: #a0a0a0;
  --gray-600: #606060;
  --gray-800: #1a1a1a;
  --accent: #7C5CFC;
  --accent-light: #a78bfa;
  --accent-muted: #ede9fe;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--black);
  text-decoration: none;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--black); }

.nav-cta {
  background: var(--black);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: var(--accent) !important; transform: translateY(-1px); color: var(--white) !important; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 40px 100px;
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(124,92,252,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  text-transform: uppercase;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -3px;
  color: var(--black);
  max-width: 900px;
  margin-bottom: 24px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 560px;
  margin-bottom: 48px;
  font-weight: 400;
  line-height: 1.75;
}

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

.btn-primary {
  background: var(--black);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,92,252,0.3); }

.btn-ghost {
  color: var(--gray-600);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}
.btn-ghost:hover { color: var(--black); }
.btn-ghost::after { content: '\2192'; transition: transform var(--transition); }
.btn-ghost:hover::after { transform: translateX(4px); }

.hero-stats {
  display: flex;
  gap: 64px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--gray-200);
}
.stat { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; letter-spacing: -1px; color: var(--black); }
.stat-label { font-size: 0.8rem; color: var(--gray-400); font-weight: 500; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* TICKER */
.ticker { background: var(--black); overflow: hidden; padding: 16px 0; }
.ticker-inner {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 20px;
}
.ticker-dot {
  width: 4px; height: 4px;
  background: var(--accent-light);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* SECTION BASE */
section { padding: 120px 60px; }
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; color: var(--black); margin-bottom: 20px; }
.section-desc { font-size: 1rem; color: var(--gray-600); max-width: 560px; line-height: 1.75; }

/* SERVICES */
#services { background: var(--white); }
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; flex-wrap: wrap; gap: 24px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }

.service-card-link { text-decoration: none; color: inherit; display: block; }

.service-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 40px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card-link:hover .service-card { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 20px 60px rgba(124,92,252,0.15); }
.service-card-link:hover .service-card::before { opacity: 0.04; }

.service-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 12px; }

.service-icon {
  width: 52px; height: 52px;
  background: var(--accent-muted);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--accent); stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--transition); }
.service-card-link:hover .service-icon { background: var(--accent); }
.service-card-link:hover .service-icon svg { stroke: var(--white); }

.price-badge { font-size: 0.8rem; font-weight: 700; color: var(--accent); background: var(--accent-muted); padding: 5px 12px; border-radius: 100px; white-space: nowrap; letter-spacing: -0.2px; flex-shrink: 0; }
.price-badge.warning { color: #b45309; background: #fef3c7; }

.service-title { font-size: 1.15rem; font-weight: 700; color: var(--black); margin-bottom: 12px; letter-spacing: -0.3px; }
.service-desc { font-size: 0.9rem; color: var(--gray-600); line-height: 1.7; }

.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag { font-size: 0.72rem; font-weight: 600; color: var(--accent); background: var(--accent-muted); padding: 4px 12px; border-radius: 100px; letter-spacing: 0.3px; }

.service-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 0.85rem; font-weight: 600; color: var(--accent); transition: gap var(--transition); }
.service-card-link:hover .service-cta { gap: 10px; }

/* PROCESS */
#process { background: var(--gray-50); }
.process-header { text-align: center; margin-bottom: 80px; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; max-width: 1100px; margin: 0 auto; }
.process-steps::before { content: ''; position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 1px; background: var(--gray-200); z-index: 0; }
.process-step { text-align: center; padding: 0 24px; position: relative; z-index: 1; }
.step-num {
  width: 56px; height: 56px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-400);
  margin: 0 auto 24px;
  transition: var(--transition);
}
.process-step:hover .step-num { background: var(--accent); border-color: var(--accent); color: var(--white); }
.step-title { font-size: 1rem; font-weight: 700; color: var(--black); margin-bottom: 10px; }
.step-desc { font-size: 0.85rem; color: var(--gray-600); line-height: 1.65; }

/* WHY US */
#why { background: var(--black); }
#why .section-label { color: var(--accent-light); }
#why .section-title { color: var(--white); }
#why .section-desc { color: rgba(255,255,255,0.5); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 64px; }
.why-features { display: flex; flex-direction: column; gap: 32px; }
.why-feature { display: flex; gap: 20px; align-items: flex-start; }
.why-icon {
  width: 44px; height: 44px;
  background: rgba(124,92,252,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-icon svg { width: 20px; height: 20px; stroke: var(--accent-light); stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.why-feature h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.why-feature p { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.65; }

.why-visual { background: var(--gray-800); border-radius: var(--radius); padding: 48px; border: 1px solid rgba(255,255,255,0.06); }
.metrics-list { display: flex; flex-direction: column; gap: 24px; }
.metric-row { display: flex; align-items: center; gap: 16px; }
.metric-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); width: 130px; flex-shrink: 0; }
.metric-bar-wrap { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 100px; overflow: hidden; }
.metric-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); border-radius: 100px; animation: growBar 1.5s ease forwards; transform-origin: left; }
@keyframes growBar { from { width: 0; } }
.metric-val { font-size: 0.8rem; font-weight: 700; color: var(--accent-light); width: 36px; text-align: right; }

/* =====================
   CONTACT / MEET SECTION
   ===================== */
#contact { background: var(--white); }

/* Meet header */
.meet-header { max-width: 640px; margin-bottom: 64px; }

/* Locations */
.locations-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 100px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.location-card {
  flex: 1;
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background var(--transition);
}
.location-card:hover { background: var(--accent-muted); }

.location-flag {
  width: 52px; height: 52px;
  background: var(--accent-muted);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: background var(--transition);
}
.location-card:hover .location-flag { background: var(--accent); }
.location-card:hover .location-flag svg path,
.location-card:hover .location-flag svg circle { stroke: var(--white); }

.location-country {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}
.location-city {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--black);
  line-height: 1;
  margin-bottom: 12px;
}
.location-detail {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 500;
  margin-bottom: 20px;
}
.location-note {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 32px;
}
.location-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: gap var(--transition);
}
.location-cta:hover { gap: 10px; }

.location-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  flex-shrink: 0;
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
}
.location-divider span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 2px;
  writing-mode: vertical-rl;
}

/* Work / Past Projects */
.work-header { max-width: 640px; margin-bottom: 48px; }

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card-link { text-decoration: none; color: inherit; display: block; }

.project-card {
  position: relative;
  background: var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
.project-card-link:hover .project-card {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.project-card-inner {
  position: relative;
  z-index: 2;
  padding: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.project-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-light);
  background: rgba(124,92,252,0.18);
  padding: 5px 12px;
  border-radius: 100px;
}
.project-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6b7280;
  flex-shrink: 0;
}
.status-dot.active {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: pulse-dot 2s infinite;
}
.status-dot.demo {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245,158,11,0.55);
  animation: pulse-dot-amber 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px rgba(34,197,94,0.6); }
  50% { box-shadow: 0 0 14px rgba(34,197,94,0.9); }
}
@keyframes pulse-dot-amber {
  0%, 100% { box-shadow: 0 0 6px rgba(245,158,11,0.55); }
  50% { box-shadow: 0 0 14px rgba(245,158,11,0.85); }
}

.project-logo-block {
  margin-bottom: 20px;
}
.project-logo-text {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--white);
  line-height: 1;
}
.project-logo-text span { color: var(--accent-light); }

.project-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}

.project-card .tag {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.08);
}
.project-card-link:hover .project-card .tag {
  background: rgba(124,92,252,0.25);
  color: var(--accent-light);
  border-color: rgba(124,92,252,0.3);
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-light);
  transition: gap var(--transition);
}
.project-card-link:hover .project-cta { gap: 10px; }

.project-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.07;
  transition: opacity var(--transition);
  pointer-events: none;
}
.project-card-link:hover .project-glow { opacity: 0.14; }
.elev8-glow {
  background: radial-gradient(ellipse at top right, #7C5CFC 0%, transparent 65%);
}
.treeroute-glow {
  background: radial-gradient(ellipse at top right, #22c55e 0%, transparent 65%);
}

/* FOOTER */
footer { background: var(--black); padding: 80px 60px 40px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 64px; }
.footer-brand .logo { display: inline-block; margin-bottom: 16px; font-size: 1.25rem; color: var(--white); }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 300px; }
.footer-col h5 { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: var(--accent-light); text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  nav { padding: 18px 30px; }
  section { padding: 80px 30px; }
  footer { padding: 60px 30px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-steps::before { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav {
    padding: 12px 20px;
    flex-wrap: wrap;
  }
  .lang-switcher {
    order: 2;
    margin-left: auto;
  }
  .nav-links {
    order: 3;
    display: flex;
    width: 100%;
    overflow-x: auto;
    gap: 20px;
    padding: 12px 0 4px;
    margin-top: 8px;
    border-top: 1px solid var(--gray-200);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links li {
    flex-shrink: 0;
  }
  .nav-links a {
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .nav-cta {
    padding: 6px 14px;
    font-size: 0.8rem !important;
  }

  section { padding: 60px 20px; }
  footer { padding: 48px 20px 28px; }
  .hero-stats { gap: 32px; flex-wrap: wrap; justify-content: center; }
  .services-header { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .locations-grid { flex-direction: column; }
  .location-divider { padding: 20px; border-left: none; border-right: none; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
  .location-divider span { writing-mode: initial; }
  .location-card { padding: 36px 28px; }
  .projects-grid { grid-template-columns: 1fr; }
}

/* Global mobile nav override to ensure tabs are visible on all pages */
@media (max-width: 768px) {
  .nav-links {
    display: flex !important;
  }
}
