/* ── Reset & Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.04);
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--slate-700);
  line-height: 1.7;
  font-size: 1.0625rem;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--slate-900);
  line-height: 1.2;
  font-weight: 700;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9375rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  letter-spacing: .01em;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: 0 6px 20px rgba(37,99,235,.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border: 2px solid var(--blue-200, var(--blue-100));
}
.btn-outline:hover {
  background: var(--blue-50);
  border-color: var(--blue-400);
}

.btn-white {
  background: var(--white);
  color: var(--blue-700);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ── Navigation ──────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-700);
  letter-spacing: -.02em;
}
.nav-logo span { color: var(--slate-400); font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--blue-600); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .8125rem;
  font-weight: 600;
  background: var(--slate-100);
  border-radius: 8px;
  padding: 4px;
}
.lang-switch a {
  padding: 4px 10px;
  border-radius: 6px;
  transition: all var(--transition);
  color: var(--slate-600);
}
.lang-switch a.active {
  background: var(--white);
  color: var(--blue-700);
  box-shadow: var(--shadow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(165deg, var(--white) 0%, var(--blue-50) 50%, var(--blue-100) 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.15);
  border-radius: 50px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  letter-spacing: -.03em;
  margin-bottom: 24px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 1.1875rem;
  color: var(--slate-600);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-shapes {
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  position: relative;
}

.shape {
  position: absolute;
  border-radius: var(--radius-lg);
  animation: float 6s ease-in-out infinite;
}
.shape-1 {
  width: 280px; height: 200px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  top: 10%; left: 5%;
  box-shadow: 0 20px 60px rgba(37,99,235,.3);
}
.shape-2 {
  width: 200px; height: 160px;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-200, var(--blue-100)));
  top: 35%; right: 0;
  animation-delay: -2s;
}
.shape-3 {
  width: 160px; height: 120px;
  background: var(--white);
  bottom: 10%; left: 15%;
  box-shadow: var(--shadow-lg);
  animation-delay: -4s;
}
.shape-code {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .75rem;
  color: rgba(255,255,255,.85);
  white-space: pre;
  background: rgba(30,64,175,.85);
  backdrop-filter: blur(8px);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  line-height: 1.8;
  z-index: 2;
}

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

/* ── Section common ──────────────────────────────────────────────────── */
.section {
  padding: 120px 0;
}

.section-alt {
  background: var(--slate-50);
}

.section-blue {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: var(--white);
}
.section-blue h2,
.section-blue h3,
.section-blue h4 { color: var(--white); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.section-label {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.section-blue .section-label { color: var(--blue-400); }

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--slate-600);
}
.section-blue .section-header p { color: rgba(255,255,255,.7); }

/* ── Services ────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-100);
}

.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: var(--blue-50);
}
.service-icon svg {
  width: 28px; height: 28px;
  color: var(--blue-600);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--slate-600);
  font-size: .9375rem;
  line-height: 1.7;
}

/* ── Portfolio ───────────────────────────────────────────────────────── */
.portfolio-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.portfolio-card:hover {
  box-shadow: var(--shadow-lg);
}

.portfolio-preview {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  padding: 48px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
}

.portfolio-mockup {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,.25);
  width: 100%;
  max-width: 360px;
  position: relative;
  z-index: 1;
}

.mockup-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.mockup-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--slate-200);
}

.mockup-content {
  background: var(--slate-100);
  border-radius: 8px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  color: var(--slate-400);
}

.portfolio-info {
  padding: 48px 48px 48px 0;
}

.portfolio-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.portfolio-info h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.portfolio-info p {
  color: var(--slate-600);
  margin-bottom: 24px;
  line-height: 1.7;
}

.portfolio-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.portfolio-tech span {
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--slate-100);
  color: var(--slate-600);
}

/* ── Process ─────────────────────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: var(--slate-200);
}

.process-step {
  text-align: center;
  position: relative;
}

.process-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}

.process-step h4 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: .875rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* ── CTA ─────────────────────────────────────────────────────────────── */
.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 20px;
}

.cta-inner p {
  font-size: 1.125rem;
  margin-bottom: 40px;
  color: rgba(255,255,255,.75);
}

.cta-inner .btn-white {
  font-size: 1rem;
  padding: 16px 40px;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
}
.footer-logo span { color: var(--slate-600); }

.footer-text {
  font-size: .875rem;
}

/* ── Animations ──────────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-shapes { max-width: 360px; }

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

  .portfolio-card { grid-template-columns: 1fr; }
  .portfolio-info { padding: 40px; }

  .process-grid { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .process-grid::before { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section-header { margin-bottom: 48px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
  }
  .nav-toggle { display: flex; }

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

  .portfolio-preview { min-height: 280px; padding: 32px; }
  .portfolio-info { padding: 32px; }

  .process-grid { grid-template-columns: 1fr; gap: 40px; }
}
