:root {
  --bg: #0a0e16;
  --bg-alt: #0f1521;
  --surface: #141b29;
  --border: #243043;
  --text: #eef2f8;
  --muted: #8b97ac;
  --primary: #4d9fff;
  --primary-glow: #7fc1ff;
  --gradient: linear-gradient(135deg, #3b82f6, #38bdf8);
  --shadow-glow: 0 10px 40px -10px rgba(77, 159, 255, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 14, 22, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; letter-spacing: 0.02em; }
.logo { color: var(--primary); font-size: 1.25rem; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--muted); transition: color 0.2s; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.nav-links .lang-toggle {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links .lang-toggle:hover { color: var(--primary); border-color: var(--primary); }

/* BURGER MENU */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  align-items: center;
  justify-content: center;
}
.burger-menu span {
  width: 1.5rem;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.burger-menu.active span:nth-child(2) {
  opacity: 0;
}
.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('smartphone.png') center/cover no-repeat;
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,22,0.7) 0%, rgba(10,14,22,0.9) 100%);
}
.hero-content { position: relative; max-width: 800px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.75rem; color: var(--primary);
  margin-bottom: 1rem;
}
.eyebrow.center { text-align: center; }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 1.15rem; color: var(--muted);
  max-width: 560px; margin: 0 auto 2.5rem;
}
.cta-row {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gradient);
  color: #06101f;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 50px -10px rgba(77, 159, 255, 0.6); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* SECTIONS */
.section { padding: 6rem 1.5rem; }
.section.alt { background: var(--bg-alt); }
.container { max-width: 1100px; margin: 0 auto; text-align: center; }
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-lead {
  color: var(--muted); max-width: 640px;
  margin: 0 auto 3rem; font-size: 1.05rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card, .stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover, .stat:hover { transform: translateY(-4px); border-color: var(--primary); }
.icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.muted { color: var(--muted); font-size: 0.9rem; }
.stat-num {
  font-size: 3rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; }

/* BRANDS */
.brands {
  display: flex; flex-wrap: wrap;
  gap: 1rem; justify-content: center;
}
.brand-chip {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  font-weight: 600; font-size: 0.95rem;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s, color 0.2s;
}
.brand-chip i { color: var(--primary); font-size: 1.1rem; }
.brand-chip:hover { transform: translateY(-3px); border-color: var(--primary); color: var(--primary); }
.brand-chip:hover i { color: var(--primary-glow); }

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  /* Soft "ease-out-back"-ish curve so elements glide up and settle. */
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Accessibility: honour users who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Per-section reveal variants — each section animates in differently. */
/* Why choose us: cards pop up with a subtle scale. */
#why .card.reveal { transform: translateY(30px) scale(0.92); }
#why .card.reveal.is-visible { transform: none; }

/* What we supply: tiles fan in from alternating sides. */
#products .card.reveal:nth-child(odd)  { transform: translateX(-44px); }
#products .card.reveal:nth-child(even) { transform: translateX(44px); }
#products .card.reveal.is-visible { transform: none; }

/* Who we work with: brand chips pop in. */
#brands .brand-chip.reveal { transform: translateY(22px) scale(0.8); }
#brands .brand-chip.reveal.is-visible { transform: none; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem; text-align: center;
  color: var(--muted); font-size: 0.85rem;
}

@media (max-width: 600px) {
  .nav { padding: 1rem; }
  .burger-menu { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 14, 22, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 99;
  }
  .nav-links.active {
    display: flex;
    opacity: 1;
  }
  .nav-links a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  .nav-links a:hover {
    background: rgba(77, 159, 255, 0.1);
  }
  .nav-links .lang-toggle {
    margin: 0.5rem 1.5rem;
    display: inline-block;
    width: auto;
  }
  .section { padding: 4rem 1.25rem; }
  
  #products .card.reveal:nth-child(odd) { transform: translateY(28px); }
  #products .card.reveal:nth-child(even) { transform: translateY(28px); }
}
