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

:root {
  --bg: #080808;
  --bg2: #0f0f0f;
  --bg3: #161616;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --accent: #00e5a0;
  --accent-dim: rgba(0,229,160,0.12);
  --text-primary: #f0f0f0;
  --text-secondary: #888;
  --text-muted: #555;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  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 48px;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(16px);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.85; }

/* SECTIONS */
section { padding: 120px 48px; max-width: 1400px; margin: 0 auto; }

/* HERO */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 48px 80px;
  max-width: 100%;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
  margin-bottom: 32px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.7s ease 0.1s forwards;
}
.hero-eyebrow::before {
  content: '';
  display: block; width: 28px; height: 1px;
  background: var(--accent);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 900px;
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.25s forwards;
}
.hero-headline em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 32px;
  line-height: 1.65;
  font-weight: 300;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.7s ease 0.45s forwards;
}
.hero-actions {
  display: flex; align-items: center; gap: 20px;
  margin-top: 48px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.7s ease 0.6s forwards;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-ghost {
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text-primary); }
.btn-ghost svg { transition: transform 0.2s; }
.btn-ghost:hover svg { transform: translateX(3px); }

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 64px;
  opacity: 0; animation: fadeUp 0.7s ease 0.75s forwards;
}
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 100px;
}
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* GRID BG */
.hero-grid {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(0,229,160,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,160,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 80%);
}
.hero-glow {
  position: absolute; top: 10%; right: 10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,229,160,0.06) 0%, transparent 65%);
  pointer-events: none;
}

/* PROBLEM */
#problem {
  padding: 80px 48px;
  max-width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.problem-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr; gap: 80px;
  align-items: center;
}
.problem-label {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.problem-text {
  font-size: 22px; line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 300;
}
.problem-text strong { color: var(--text-primary); font-weight: 500; }

/* SERVICES */
#services { border-top: 1px solid var(--border); }
.section-label {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 64px;
  max-width: 700px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.service-card {
  background: var(--bg); padding: 36px 28px;
  position: relative; transition: background 0.3s;
}
.service-card:hover { background: var(--bg3); }
.service-num {
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--text-muted); font-weight: 600; margin-bottom: 20px;
}
.service-name {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.service-price { color: var(--accent); font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.service-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; font-weight: 300; margin-bottom: 24px; }
.service-timeline {
  font-size: 12px; color: var(--text-muted);
  border-top: 1px solid var(--border); padding-top: 16px;
  display: flex; align-items: center; gap: 8px;
}
.service-timeline::before { content: ''; display: block; width: 16px; height: 1px; background: var(--text-muted); }
.service-featured { background: var(--bg3); }
.service-featured::before {
  content: 'Most popular';
  position: absolute; top: 14px; right: 14px;
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #000; background: var(--accent);
  padding: 3px 8px; border-radius: 100px; font-weight: 600;
}

/* WORK */
#work { border-top: 1px solid var(--border); }
.work-grid { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.work-item {
  background: var(--bg); padding: 40px 44px;
  display: grid; grid-template-columns: 1fr 2fr auto;
  gap: 48px; align-items: start;
  transition: background 0.2s;
}
.work-item:hover { background: var(--bg3); }
.work-item:hover .work-arrow { opacity: 1; transform: translateX(0); }
.work-client { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.work-industry { font-size: 12px; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }
.work-problem { font-size: 14px; font-weight: 500; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; }
.work-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; font-weight: 300; }
.work-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.stack-tag { font-size: 11px; color: var(--text-muted); border: 1px solid var(--border); padding: 4px 10px; border-radius: 4px; }
.work-arrow { font-size: 20px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: all 0.2s; align-self: center; }

/* ABOUT */
#about {
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.about-bio { font-size: 17px; line-height: 1.75; color: var(--text-secondary); font-weight: 300; margin-bottom: 32px; }
.about-bio strong { color: var(--text-primary); font-weight: 500; }
.about-stack-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.about-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-pill {
  font-size: 13px; color: var(--text-secondary);
  border: 1px solid var(--border); padding: 7px 14px; border-radius: 6px;
  transition: border-color 0.2s, color 0.2s;
}
.stack-pill:hover { border-color: var(--accent); color: var(--accent); }
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; margin-bottom: 32px;
}
.stat-box { background: var(--bg2); padding: 28px 24px; }
.stat-num { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -0.04em; color: var(--text-primary); line-height: 1; }
.stat-num span { color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; font-weight: 300; }
.about-langs { display: flex; gap: 12px; margin-top: 24px; }
.lang-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary);
  background: var(--bg3); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 6px;
}
.lang-flag { font-size: 16px; }

/* CONTACT */
#contact {
  border-top: 1px solid var(--border);
  text-align: center; padding: 140px 48px;
  max-width: 100%; position: relative; overflow: hidden;
}
.contact-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.contact-glow {
  position: absolute; bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,229,160,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.contact-eyebrow { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 24px; }
.contact-title { font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 24px; }
.contact-sub { font-size: 17px; color: var(--text-secondary); line-height: 1.65; font-weight: 300; margin-bottom: 48px; max-width: 480px; margin-left: auto; margin-right: auto; }
.contact-details { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-top: 40px; }
.contact-item { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.contact-item::before { content: ''; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* FOOTER */
footer {
  border-top: 1px solid var(--border); padding: 32px 48px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-name { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text-muted); }
.footer-name span { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* ANIMATIONS */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  section, #hero, #problem, #contact, footer { padding-left: 24px; padding-right: 24px; }
  .problem-inner { grid-template-columns: 1fr; gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .work-item { grid-template-columns: 1fr; gap: 20px; }
  .work-arrow { display: none; }
  #about { grid-template-columns: 1fr; gap: 48px; }
}

/* LANG TOGGLE */
.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
